head	1.16;
access;
symbols
	rpm-4_4_8-release:1.7.2.11
	rpm-4_4_7-release:1.7.2.11
	db-4_5_20:1.16
	rpm-4_4_6-release:1.7.2.10
	rpm-4_4_5-release:1.7.2.10
	db-4_4_20:1.15
	rpm-4_4_4-release:1.7.2.9
	db-4_4_16:1.14
	rpm-4_4_3-release:1.7.2.7
	db-4_4_11:1.13
	db-4_3_29:1.7.2.3
	jbj_before_tklcpatches:1.7.2.2
	rpm-4_4_2-release:1.7.2.2
	pjones-sparse-experiment:1.12.0.2
	db-4_4_4:1.11
	rpm-4_4_1-release:1.7.2.2
	db-4_3_27:1.8
	rpm-4_4-release:1.7
	rpm-4_4:1.7.0.2
	db-4_3_21:1.6
	db-4_3_14:1.3
	db-4_2_52:1.2
	rpm-4_3_1-start:1.2
	rpm-4_3:1.2.0.2
	rpm-4_2_1-release:1.1.1.7
	rpm-4_1_1-release:1.1.1.7
	rpm-4_2-release:1.1.1.7
	rpm-4_2:1.1.1.7.0.2
	postmerge-db-4_1_24-release:1.1.1.7
	premerge-db-4_1_24-release:1.1.1.7
	db-4_1_24-release:1.1.1.7
	pre-db-4_1_24-release:1.1.1.6
	rpm-4_1-release:1.1.1.5
	postmerge-db-4_1_17:1.1.1.6
	premerge-db-4_1_17:1.1.1.6
	db-4_1_17:1.1.1.6
	pre-db-4_1_17:1.1.1.5
	rpm-4_1:1.1.1.5.0.2
	rpm-4_0_4-release:1.1.1.2.2.2
	jbj-before-beecrypt:1.1.1.2.2.2
	postmerge-db-4_0_14:1.1.1.5
	premerge-db-4_0_14:1.1.1.5
	db-4_0_14:1.1.1.5
	pre-db-4_0_14:1.1.1.4
	rpm-4_0_3-release:1.1.1.2.2.1
	postmerge-db-4_0_7:1.1.1.4
	premerge-db-4_0_7:1.1.1.4
	db-4_0_7:1.1.1.4
	pre-db-4_0_7:1.1.1.3
	jbj_b4_rollback:1.1.1.2.2.1
	postmerge-db-3_3_11-release:1.1.1.3
	premerge-db-3_3_11-release:1.1.1.3
	db-3_3_11-release:1.1.1.3
	pre-db-3_3_11-release:1.1.1.2
	rpm-4_0:1.1.1.2.0.2
	postmerge-db-3_3_4-release:1.1.1.2
	premerge-db-3_3_4-release:1.1.1.2
	db-3_3_4-release:1.1.1.2
	pre-db-3_3_4-release:1.1.1.1
	db-3_2_9-release:1.1.1.1
	db-3_2_9-vendor:1.1.1;
locks; strict;
comment	@# @;


1.16
date	2006.10.01.20.18.53;	author jbj;	state Exp;
branches;
next	1.15;

1.15
date	2006.02.13.16.32.25;	author jbj;	state Exp;
branches;
next	1.14;

1.14
date	2005.11.19.18.31.36;	author jbj;	state Exp;
branches;
next	1.13;

1.13
date	2005.10.28.17.13.17;	author jbj;	state Exp;
branches;
next	1.12;

1.12
date	2005.02.21.17.46.13;	author jbj;	state Exp;
branches;
next	1.11;

1.11
date	2005.02.21.15.53.57;	author jbj;	state Exp;
branches;
next	1.10;

1.10
date	2005.01.17.17.10.31;	author jbj;	state Exp;
branches;
next	1.9;

1.9
date	2005.01.02.17.51.58;	author jbj;	state Exp;
branches;
next	1.8;

1.8
date	2005.01.02.17.43.33;	author jbj;	state Exp;
branches;
next	1.7;

1.7
date	2004.11.11.16.57.42;	author jbj;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	2004.11.11.15.58.46;	author jbj;	state Exp;
branches;
next	1.5;

1.5
date	2004.10.20.09.20.43;	author jbj;	state Exp;
branches;
next	1.4;

1.4
date	2004.10.16.12.50.52;	author jbj;	state Exp;
branches;
next	1.3;

1.3
date	2004.10.16.01.31.54;	author jbj;	state Exp;
branches;
next	1.2;

1.2
date	2003.12.15.21.42.27;	author jbj;	state Exp;
branches;
next	1.1;

1.1
date	2001.03.21.18.33.37;	author jbj;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.03.21.18.33.37;	author jbj;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.05.13.19.58.27;	author jbj;	state Exp;
branches
	1.1.1.2.2.1;
next	1.1.1.3;

1.1.1.3
date	2001.07.23.20.09.04;	author jbj;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2001.10.15.03.47.22;	author jbj;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2001.12.06.00.07.18;	author jbj;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2002.08.14.16.31.53;	author jbj;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	2002.09.19.20.33.48;	author jbj;	state Exp;
branches;
next	;

1.1.1.2.2.1
date	2001.07.23.20.31.13;	author jbj;	state Exp;
branches;
next	1.1.1.2.2.2;

1.1.1.2.2.2
date	2002.01.08.04.07.15;	author jbj;	state Exp;
branches;
next	;

1.7.2.1
date	2005.01.02.19.01.06;	author jbj;	state Exp;
branches;
next	1.7.2.2;

1.7.2.2
date	2005.01.17.23.58.09;	author jbj;	state Exp;
branches;
next	1.7.2.3;

1.7.2.3
date	2005.10.20.22.34.34;	author jbj;	state Exp;
branches;
next	1.7.2.4;

1.7.2.4
date	2005.10.21.13.14.49;	author jbj;	state Exp;
branches;
next	1.7.2.5;

1.7.2.5
date	2005.10.28.18.44.32;	author jbj;	state Exp;
branches;
next	1.7.2.6;

1.7.2.6
date	2005.10.28.19.18.45;	author jbj;	state Exp;
branches;
next	1.7.2.7;

1.7.2.7
date	2005.10.28.19.42.57;	author jbj;	state Exp;
branches;
next	1.7.2.8;

1.7.2.8
date	2005.11.19.19.33.04;	author jbj;	state Exp;
branches;
next	1.7.2.9;

1.7.2.9
date	2005.11.19.19.55.26;	author jbj;	state Exp;
branches;
next	1.7.2.10;

1.7.2.10
date	2006.02.13.17.51.07;	author jbj;	state Exp;
branches;
next	1.7.2.11;

1.7.2.11
date	2006.10.01.22.29.19;	author jbj;	state Exp;
branches;
next	;


desc
@@


1.16
log
@Update to db-4.5.20.
@
text
@#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.60 for Berkeley DB 4.5.20.
#
# Report bugs to <Oracle Technology Network Berkeley DB forum>.
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
fi
BIN_SH=xpg4; export BIN_SH # for Tru64
DUALCASE=1; export DUALCASE # for MKS sh


# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi

# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
as_nl='
'
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

# Work around bugs in pre-3.0 UWIN ksh.
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi


# Name of the executable.
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# CDPATH.
$as_unset CDPATH


if test "x$CONFIG_SHELL" = x; then
  if (eval ":") 2>/dev/null; then
  as_have_required=yes
else
  as_have_required=no
fi

  if test $as_have_required = yes && 	 (eval ":
(as_func_return () {
  (exit \$1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test \$exitcode = 0) || { (exit 1); exit 1; }

(
  as_lineno_1=\$LINENO
  as_lineno_2=\$LINENO
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
") 2> /dev/null; then
  :
else
  as_candidate_shells=
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  case $as_dir in
	 /*)
	   for as_base in sh bash ksh sh5; do
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
	   done;;
       esac
done
IFS=$as_save_IFS


      for as_shell in $as_candidate_shells $SHELL; do
	 # Try only shells that exist, to save several forks.
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
fi
BIN_SH=xpg4; export BIN_SH # for Tru64
DUALCASE=1; export DUALCASE # for MKS sh

:
_ASEOF
}; then
  CONFIG_SHELL=$as_shell
	       as_have_required=yes
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
fi
BIN_SH=xpg4; export BIN_SH # for Tru64
DUALCASE=1; export DUALCASE # for MKS sh

:
(as_func_return () {
  (exit $1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = "$1" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test $exitcode = 0) || { (exit 1); exit 1; }

(
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }

_ASEOF
}; then
  break
fi

fi

      done

      if test "x$CONFIG_SHELL" != x; then
  for as_var in BASH_ENV ENV
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
        done
        export CONFIG_SHELL
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@@"}
fi


    if test $as_have_required = no; then
  echo This script requires a shell more modern than all the
      echo shells that I found on your system.  Please install a
      echo modern shell, or manually run the script under such a
      echo shell if you do have one.
      { (exit 1); exit 1; }
fi


fi

fi



(eval "as_func_return () {
  (exit \$1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test \$exitcode = 0") || {
  echo No shell found that supports shell functions.
  echo Please tell autoconf@@gnu.org about your system,
  echo including any error possibly output before this
  echo message
}



  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, and appends
  # trailing '-' during substitution so that $LINENO is not a special
  # case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}


if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
esac

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir
fi
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  as_ln_s='ln -s'
  # ... but there are two gotchas:
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  # In both cases, we have to default to `cp -p'.
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
# systems may use methods other than mode bits to determine executability.
cat >conf$$.file <<_ASEOF
#! /bin/sh
exit 0
_ASEOF
chmod +x conf$$.file
if test -x conf$$.file >/dev/null 2>&1; then
  as_executable_p="test -x"
else
  as_executable_p=:
fi
rm -f conf$$.file

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"




# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}

case X$ECHO in
X*--fallback-echo)
  # Remove one level of quotation (which was required for Make).
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  ;;
esac

echo=${ECHO-echo}
if test "X$1" = X--no-reexec; then
  # Discard the --no-reexec flag, and continue.
  shift
elif test "X$1" = X--fallback-echo; then
  # Avoid inline document here, it may be left over
  :
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  # Yippee, $echo works!
  :
else
  # Restart under the correct shell.
  exec $SHELL "$0" --no-reexec ${1+"$@@"}
fi

if test "X$1" = X--fallback-echo; then
  # used as fallback echo
  shift
  cat <<EOF
$*
EOF
  exit 0
fi

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test -z "$ECHO"; then
if test "X${echo_test_string+set}" != Xset; then
# find a string as large as possible, as long as the shell can cope with it
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
       echo_test_string=`eval $cmd` &&
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
    then
      break
    fi
  done
fi

if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   test "X$echo_testing_string" = "X$echo_test_string"; then
  :
else
  # The Solaris, AIX, and Digital Unix default echo programs unquote
  # backslashes.  This makes it impossible to quote backslashes using
  #   echo "$something" | sed 's/\\/\\\\/g'
  #
  # So, first we look for a working echo in the user's PATH.

  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for dir in $PATH /usr/ucb; do
    IFS="$lt_save_ifs"
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      echo="$dir/echo"
      break
    fi
  done
  IFS="$lt_save_ifs"

  if test "X$echo" = Xecho; then
    # We didn't find a better echo, so look for alternatives.
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      # This shell has a builtin print -r that does the trick.
      echo='print -r'
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
      # If we have ksh, try running configure again with it.
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
      export ORIGINAL_CONFIG_SHELL
      CONFIG_SHELL=/bin/ksh
      export CONFIG_SHELL
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@@"}
    else
      # Try using printf.
      echo='printf %s\n'
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
	 test "X$echo_testing_string" = "X$echo_test_string"; then
	# Cool, printf works
	:
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
	export CONFIG_SHELL
	SHELL="$CONFIG_SHELL"
	export SHELL
	echo="$CONFIG_SHELL $0 --fallback-echo"
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	echo="$CONFIG_SHELL $0 --fallback-echo"
      else
	# maybe with a smaller string...
	prev=:

	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
	  then
	    break
	  fi
	  prev="$cmd"
	done

	if test "$prev" != 'sed 50q "$0"'; then
	  echo_test_string=`eval $prev`
	  export echo_test_string
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@@"}
	else
	  # Oops.  We lost completely, so just stick with echo.
	  echo=echo
	fi
      fi
    fi
  fi
fi
fi

# Copy echo and quote the copy suitably for passing to libtool from
# the Makefile, instead of quoting the original, which is used later.
ECHO=$echo
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
fi




tagnames=${tagnames+${tagnames},}CXX

tagnames=${tagnames+${tagnames},}F77

exec 7<&0 </dev/null 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Identity of this package.
PACKAGE_NAME='Berkeley DB'
PACKAGE_TARNAME='db-4.5.20'
PACKAGE_VERSION='4.5.20'
PACKAGE_STRING='Berkeley DB 4.5.20'
PACKAGE_BUGREPORT='Oracle Technology Network Berkeley DB forum'

ac_unique_file="../db/db.c"
ac_default_prefix=/usr/local/BerkeleyDB.4.5
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#if HAVE_STDINT_H
# include <stdint.h>
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"

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
datarootdir
datadir
sysconfdir
sharedstatedir
localstatedir
includedir
oldincludedir
docdir
infodir
htmldir
dvidir
pdfdir
psdir
libdir
localedir
mandir
DEFS
ECHO_C
ECHO_N
ECHO_T
LIBS
build_alias
host_alias
target_alias
build
build_cpu
build_vendor
build_os
host
host_cpu
host_vendor
host_os
ADDITIONAL_INCS
ADDITIONAL_LANG
ADDITIONAL_OBJS
ADDITIONAL_PROGS
BUILD_TARGET
CFLAGS
CONFIGURATION_ARGS
CONFIGURATION_PATH
CPPFLAGS
CRYPTO_OBJS
CXX
CXXFLAGS
DB_PROTO1
DB_PROTO2
DEFAULT_LIB
DEFAULT_LIB_CXX
INSTALLER
INSTALL_LIBS
INSTALL_TARGET
JAR
JAVACFLAGS
LDFLAGS
LIBCSO_LIBS
LIBJSO_LIBS
LIBSO_LIBS
LIBTOOL
LIBTSO_LIBS
LIBTSO_MODSUFFIX
LIBTSO_MODULE
LIBXSO_LIBS
MAKEFILE_CC
MAKEFILE_CCLINK
MAKEFILE_CXX
MAKEFILE_CXXLINK
MAKEFILE_SOLINK
MAKEFILE_XSOLINK
OSDIR
POSTLINK
REPLACEMENT_OBJS
RPC_CLIENT_OBJS
RPC_SERVER_H
SOFLAGS
SWIGCFLAGS
TEST_LIBS
db_int_def
o
platform_header
platform_footer
DB_VERSION_MAJOR
DB_VERSION_MINOR
DB_VERSION_PATCH
DB_VERSION_STRING
DB_VERSION_UNIQUE_NAME
AR
CHMOD
CP
KILL
LN
MKDIR
RANLIB
RM
RPCGEN
db_cv_path_sh
STRIP
INSTALL_PROGRAM
INSTALL_SCRIPT
INSTALL_DATA
CC
ac_ct_CC
EXEEXT
OBJEXT
DB_CONST
CCC
ac_ct_CXX
CXXCPP
cxx_have_stdheaders
GREP
EGREP
LN_S
ECHO
CPP
F77
FFLAGS
ac_ct_F77
SOSUFFIX
MODSUFFIX
JMODSUFFIX
JAVAC
JAVA
uudecode
_ACJNI_JAVAC
inttypes_h_decl
stdint_h_decl
stddef_h_decl
unistd_h_decl
u_char_decl
u_short_decl
u_int_decl
u_long_decl
u_int8_decl
u_int16_decl
int16_decl
u_int32_decl
int32_decl
u_int64_decl
int64_decl
ssize_t_decl
pid_t_decl
uintmax_t_decl
uintptr_t_decl
thread_h_decl
db_threadid_t_decl
LIBOBJS
TCL_BIN_DIR
TCL_INCLUDE_SPEC
TCL_LIB_FILE
TCL_SRC_DIR
TCL_TCLSH
INT64_FMT
UINT64_FMT
db_seq_decl
LTLIBOBJS'
ac_subst_files=''
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
CPPFLAGS
CXX
CXXFLAGS
CCC
CXXCPP
CPP
F77
FFLAGS'


# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *)	ac_optarg=yes ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    eval enable_$ac_feature=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    eval enable_$ac_feature=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval with_$ac_package=\$ac_optarg ;;

  -without-* | --without-*)
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package | sed 's/-/_/g'`
    eval with_$ac_package=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; }
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  { echo "$as_me: error: missing argument to $ac_option" >&2
   { (exit 1); exit 1; }; }
fi

# Be sure to have absolute directory names.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
do
  eval ac_val=\$$ac_var
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; }
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  { echo "$as_me: error: Working directory cannot be determined" >&2
   { (exit 1); exit 1; }; }
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  { echo "$as_me: error: pwd does not report name of working directory" >&2
   { (exit 1); exit 1; }; }


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$0" ||
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$0" : 'X\(//\)[^/]' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$0" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   { (exit 1); exit 1; }; }
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   { (exit 1); exit 1; }; }
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures Berkeley DB 4.5.20 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
			  [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
			  [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR          info documentation [DATAROOTDIR/info]
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR           man documentation [DATAROOTDIR/man]
  --docdir=DIR           documentation root [DATAROOTDIR/doc/db-4.5.20]
  --htmldir=DIR          html documentation [DOCDIR]
  --dvidir=DIR           dvi documentation [DOCDIR]
  --pdfdir=DIR           pdf documentation [DOCDIR]
  --psdir=DIR            ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of Berkeley DB 4.5.20:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-bigfile       Obsolete; use --disable-largefile instead.
  --disable-cryptography  Do not build database cryptography support.
  --disable-hash          Do not build Hash access method.
  --disable-queue         Do not build Queue access method.
  --disable-replication   Do not build database replication support.
  --disable-statistics    Do not build statistics support.
  --disable-verify        Do not build database verification support.
  --enable-compat185      Build DB 1.85 compatibility API.
  --enable-cxx            Build C++ API.
  --enable-debug          Build a debugging version.
  --enable-debug_rop      Build a version that logs read operations.
  --enable-debug_wop      Build a version that logs write operations.
  --enable-diagnostic     Build a version with run-time diagnostics.
  --enable-dump185        Build db_dump185(1) to dump 1.85 databases.
  --enable-java           Build Java API.
  --enable-mingw          Build Berkeley DB for MinGW.
  --enable-o_direct       Enable the O_DIRECT flag for direct I/O.
  --enable-posixmutexes   Force use of POSIX standard mutexes.
  --enable-pthread_self   Obsolete; use --enable-pthread_api instead.
  --enable-pthread_api    Configure Berkeley DB for POSIX pthread API.
  --enable-rpc            Build RPC client/server.
  --enable-smallbuild     Build small footprint version of the library.
  --enable-tcl            Build Tcl API.
  --enable-test           Configure to run the test suite.
  --enable-uimutexes      Force use of Unix International mutexes.
  --enable-umrw           Mask harmless uninitialized memory read/writes.
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --disable-largefile     omit support for large files

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-mutex=MUTEX      Selection of non-standard mutexes.
  --with-mutexalign=ALIGNMENT
                          Obsolete; use DbEnv::mutex_set_align instead.
  --with-tcl=DIR          Directory location of tclConfig.sh.
  --with-uniquename=NAME  Build a uniquely named library.
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-tags[=TAGS]      include additional configurations [automatic]

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor
  CPP         C preprocessor
  F77         Fortran 77 compiler command
  FFLAGS      Fortran 77 compiler flags

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <Oracle Technology Network Berkeley DB forum>.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" || continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
Berkeley DB configure 4.5.20
generated by GNU Autoconf 2.60

Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Berkeley DB $as_me 4.5.20, which was
generated by GNU Autoconf 2.60.  Invocation command line was

  $ $0 $@@

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  echo "PATH: $as_dir"
done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
    2)
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      ac_configure_args="$ac_configure_args '$ac_arg'"
      ;;
    esac
  done
done
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      echo "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat <<\_ASBOX
## ------------------- ##
## File substitutions. ##
## ------------------- ##
_ASBOX
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	echo "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      echo "$as_me: caught signal $ac_signal"
    echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
if test -n "$CONFIG_SITE"; then
  set x "$CONFIG_SITE"
elif test "x$prefix" != xNONE; then
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
else
  set x "$ac_default_prefix/share/config.site" \
	"$ac_default_prefix/etc/config.site"
fi
shift
for ac_site_file
do
  if test -r "$ac_site_file"; then
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
echo "$as_me:   former value:  $ac_old_val" >&2;}
	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
echo "$as_me:   current value: $ac_new_val" >&2;}
	ac_cache_corrupted=:
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; }
fi

























ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



ac_config_headers="$ac_config_headers db_config.h:config.hin"


# Configure setup.
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
   { (exit 1); exit 1; }; }
fi

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.


# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   { (exit 1); exit 1; }; }

{ echo "$as_me:$LINENO: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
if test "${ac_cv_build+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   { (exit 1); exit 1; }; }
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
echo "$as_me: error: invalid value of canonical build" >&2;}
   { (exit 1); exit 1; }; };;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


{ echo "$as_me:$LINENO: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
if test "${ac_cv_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   { (exit 1); exit 1; }; }
fi

fi
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
echo "$as_me: error: invalid value of canonical host" >&2;}
   { (exit 1); exit 1; }; };;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac


test "$program_prefix" != NONE &&
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
# Double any \ or $.  echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm -f conftest.sed


# Don't build in the top-level or dist directories.
{ echo "$as_me:$LINENO: checking if building in the top-level or dist directories" >&5
echo $ECHO_N "checking if building in the top-level or dist directories... $ECHO_C" >&6; }
if  test -d db_archive -o -f configure.ac  ; then
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	{ { echo "$as_me:$LINENO: error: \
Berkeley DB should not be built in the top-level or \"dist\" directories. \
Change directory to the build_unix directory and run ../dist/configure \
from there." >&5
echo "$as_me: error: \
Berkeley DB should not be built in the top-level or \"dist\" directories. \
Change directory to the build_unix directory and run ../dist/configure \
from there." >&2;}
   { (exit 1); exit 1; }; }

fi
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }

# Substitution variables.

















































# The Windows public header has two extra symbols we need to remove.



# Set the default installation location.


# Configure the version information.

DB_VERSION_MAJOR="4"

DB_VERSION_MINOR="5"

DB_VERSION_PATCH="20"

DB_VERSION_STRING='"Berkeley DB 4.5.20: (September 20, 2006)"'


# Process all options before using them.


# --enable-bigfile was the configuration option that Berkeley DB used before
# autoconf 2.50 was released (which had --enable-largefile integrated in).
# Check whether --enable-bigfile was given.
if test "${enable_bigfile+set}" = set; then
  enableval=$enable_bigfile; { { echo "$as_me:$LINENO: error: --enable-bigfile no longer supported, use --enable-largefile" >&5
echo "$as_me: error: --enable-bigfile no longer supported, use --enable-largefile" >&2;}
   { (exit 1); exit 1; }; }
fi


{ echo "$as_me:$LINENO: checking if --disable-cryptography option specified" >&5
echo $ECHO_N "checking if --disable-cryptography option specified... $ECHO_C" >&6; }
# Check whether --enable-cryptography was given.
if test "${enable_cryptography+set}" = set; then
  enableval=$enable_cryptography;
else
  enableval="yes"
fi

db_cv_build_cryptography="$enableval"
case "$enableval" in
 no) { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; };;
yes) { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; };;
esac

{ echo "$as_me:$LINENO: checking if --disable-hash option specified" >&5
echo $ECHO_N "checking if --disable-hash option specified... $ECHO_C" >&6; }
# Check whether --enable-hash was given.
if test "${enable_hash+set}" = set; then
  enableval=$enable_hash;
else
  enableval="yes"
fi

db_cv_build_hash="$enableval"
case "$enableval" in
 no) { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; };;
yes) { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; };;
esac

{ echo "$as_me:$LINENO: checking if --disable-queue option specified" >&5
echo $ECHO_N "checking if --disable-queue option specified... $ECHO_C" >&6; }
# Check whether --enable-queue was given.
if test "${enable_queue+set}" = set; then
  enableval=$enable_queue;
else
  enableval="yes"
fi

db_cv_build_queue="$enableval"
case "$enableval" in
 no) { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; };;
yes) { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; };;
esac

{ echo "$as_me:$LINENO: checking if --disable-replication option specified" >&5
echo $ECHO_N "checking if --disable-replication option specified... $ECHO_C" >&6; }
# Check whether --enable-replication was given.
if test "${enable_replication+set}" = set; then
  enableval=$enable_replication;
else
  enableval="yes"
fi

db_cv_build_replication="$enableval"
case "$enableval" in
 no) { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; };;
yes) { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; };;
esac

{ echo "$as_me:$LINENO: checking if --disable-statistics option specified" >&5
echo $ECHO_N "checking if --disable-statistics option specified... $ECHO_C" >&6; }
# Check whether --enable-statistics was given.
if test "${enable_statistics+set}" = set; then
  enableval=$enable_statistics;
else
  enableval="yes"
fi

db_cv_build_statistics="$enableval"
case "$enableval" in
 no) { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; };;
yes) { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; };;
esac

{ echo "$as_me:$LINENO: checking if --disable-verify option specified" >&5
echo $ECHO_N "checking if --disable-verify option specified... $ECHO_C" >&6; }
# Check whether --enable-verify was given.
if test "${enable_verify+set}" = set; then
  enableval=$enable_verify;
else
  enableval="yes"
fi

db_cv_build_verify="$enableval"
case "$enableval" in
 no) { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; };;
yes) { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; };;
esac

{ echo "$as_me:$LINENO: checking if --enable-compat185 option specified" >&5
echo $ECHO_N "checking if --enable-compat185 option specified... $ECHO_C" >&6; }
# Check whether --enable-compat185 was given.
if test "${enable_compat185+set}" = set; then
  enableval=$enable_compat185; db_cv_compat185="$enable_compat185"
else
  db_cv_compat185="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_compat185" >&5
echo "${ECHO_T}$db_cv_compat185" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-cxx option specified" >&5
echo $ECHO_N "checking if --enable-cxx option specified... $ECHO_C" >&6; }
# Check whether --enable-cxx was given.
if test "${enable_cxx+set}" = set; then
  enableval=$enable_cxx; db_cv_cxx="$enable_cxx"
else
  db_cv_cxx="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_cxx" >&5
echo "${ECHO_T}$db_cv_cxx" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6; }
# Check whether --enable-debug was given.
if test "${enable_debug+set}" = set; then
  enableval=$enable_debug; db_cv_debug="$enable_debug"
else
  db_cv_debug="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_debug" >&5
echo "${ECHO_T}$db_cv_debug" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-debug_rop option specified" >&5
echo $ECHO_N "checking if --enable-debug_rop option specified... $ECHO_C" >&6; }
# Check whether --enable-debug_rop was given.
if test "${enable_debug_rop+set}" = set; then
  enableval=$enable_debug_rop; db_cv_debug_rop="$enable_debug_rop"
else
  db_cv_debug_rop="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_debug_rop" >&5
echo "${ECHO_T}$db_cv_debug_rop" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-debug_wop option specified" >&5
echo $ECHO_N "checking if --enable-debug_wop option specified... $ECHO_C" >&6; }
# Check whether --enable-debug_wop was given.
if test "${enable_debug_wop+set}" = set; then
  enableval=$enable_debug_wop; db_cv_debug_wop="$enable_debug_wop"
else
  db_cv_debug_wop="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_debug_wop" >&5
echo "${ECHO_T}$db_cv_debug_wop" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-diagnostic option specified" >&5
echo $ECHO_N "checking if --enable-diagnostic option specified... $ECHO_C" >&6; }
# Check whether --enable-diagnostic was given.
if test "${enable_diagnostic+set}" = set; then
  enableval=$enable_diagnostic; db_cv_diagnostic="$enable_diagnostic"
else
  db_cv_diagnostic="no"
fi

if test "$db_cv_diagnostic" = "yes"; then
	{ echo "$as_me:$LINENO: result: $db_cv_diagnostic" >&5
echo "${ECHO_T}$db_cv_diagnostic" >&6; }
fi
if test "$db_cv_diagnostic" = "no" -a "$db_cv_debug_rop" = "yes"; then
	db_cv_diagnostic="yes"
	{ echo "$as_me:$LINENO: result: by --enable-debug_rop" >&5
echo "${ECHO_T}by --enable-debug_rop" >&6; }
fi
if test "$db_cv_diagnostic" = "no" -a "$db_cv_debug_wop" = "yes"; then
	db_cv_diagnostic="yes"
	{ echo "$as_me:$LINENO: result: by --enable-debug_wop" >&5
echo "${ECHO_T}by --enable-debug_wop" >&6; }
fi
if test "$db_cv_diagnostic" = "no"; then
	{ echo "$as_me:$LINENO: result: $db_cv_diagnostic" >&5
echo "${ECHO_T}$db_cv_diagnostic" >&6; }
fi

{ echo "$as_me:$LINENO: checking if --enable-dump185 option specified" >&5
echo $ECHO_N "checking if --enable-dump185 option specified... $ECHO_C" >&6; }
# Check whether --enable-dump185 was given.
if test "${enable_dump185+set}" = set; then
  enableval=$enable_dump185; db_cv_dump185="$enable_dump185"
else
  db_cv_dump185="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_dump185" >&5
echo "${ECHO_T}$db_cv_dump185" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-java option specified" >&5
echo $ECHO_N "checking if --enable-java option specified... $ECHO_C" >&6; }
# Check whether --enable-java was given.
if test "${enable_java+set}" = set; then
  enableval=$enable_java; db_cv_java="$enable_java"
else
  db_cv_java="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_java" >&5
echo "${ECHO_T}$db_cv_java" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-mingw option specified" >&5
echo $ECHO_N "checking if --enable-mingw option specified... $ECHO_C" >&6; }
# Check whether --enable-mingw was given.
if test "${enable_mingw+set}" = set; then
  enableval=$enable_mingw; db_cv_mingw="$enable_mingw"
else
  db_cv_mingw="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_mingw" >&5
echo "${ECHO_T}$db_cv_mingw" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-o_direct option specified" >&5
echo $ECHO_N "checking if --enable-o_direct option specified... $ECHO_C" >&6; }
# Check whether --enable-o_direct was given.
if test "${enable_o_direct+set}" = set; then
  enableval=$enable_o_direct; db_cv_o_direct="$enable_o_direct"
else
  db_cv_o_direct="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_o_direct" >&5
echo "${ECHO_T}$db_cv_o_direct" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-posixmutexes option specified" >&5
echo $ECHO_N "checking if --enable-posixmutexes option specified... $ECHO_C" >&6; }
# Check whether --enable-posixmutexes was given.
if test "${enable_posixmutexes+set}" = set; then
  enableval=$enable_posixmutexes; db_cv_posixmutexes="$enable_posixmutexes"
else
  db_cv_posixmutexes="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_posixmutexes" >&5
echo "${ECHO_T}$db_cv_posixmutexes" >&6; }

# Check whether --enable-pthread_self was given.
if test "${enable_pthread_self+set}" = set; then
  enableval=$enable_pthread_self; { { echo "$as_me:$LINENO: error: --enable-pthread_self no longer supported, use --enable-pthread_api" >&5
echo "$as_me: error: --enable-pthread_self no longer supported, use --enable-pthread_api" >&2;}
   { (exit 1); exit 1; }; }
fi


{ echo "$as_me:$LINENO: checking if --enable-pthread_api option specified" >&5
echo $ECHO_N "checking if --enable-pthread_api option specified... $ECHO_C" >&6; }
# Check whether --enable-pthread_api was given.
if test "${enable_pthread_api+set}" = set; then
  enableval=$enable_pthread_api; db_cv_pthread_api="$enable_pthread_api"
else
  db_cv_pthread_api="no"
fi

# POSIX mutexes implies other POSIX APIs.
if test "$db_cv_posixmutexes" != "no"; then
	db_cv_pthread_api="yes"
fi
{ echo "$as_me:$LINENO: result: $db_cv_pthread_api" >&5
echo "${ECHO_T}$db_cv_pthread_api" >&6; }


if test "$db_cv_pthread_api" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_PTHREAD_API 1
_ACEOF

fi

{ echo "$as_me:$LINENO: checking if --enable-rpc option specified" >&5
echo $ECHO_N "checking if --enable-rpc option specified... $ECHO_C" >&6; }
# Check whether --enable-rpc was given.
if test "${enable_rpc+set}" = set; then
  enableval=$enable_rpc; db_cv_rpc="$enable_rpc"
else
  db_cv_rpc="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_rpc" >&5
echo "${ECHO_T}$db_cv_rpc" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-smallbuild option specified" >&5
echo $ECHO_N "checking if --enable-smallbuild option specified... $ECHO_C" >&6; }
# Check whether --enable-smallbuild was given.
if test "${enable_smallbuild+set}" = set; then
  enableval=$enable_smallbuild; db_cv_smallbuild="$enable_smallbuild"
else
  db_cv_smallbuild="no"
fi

if test "$db_cv_smallbuild" = "yes"; then
	db_cv_build_cryptography="no"
	db_cv_build_hash="no"
	db_cv_build_queue="no"
	db_cv_build_replication="no"
	db_cv_build_statistics="no"
	db_cv_build_verify="no"
fi
{ echo "$as_me:$LINENO: result: $db_cv_smallbuild" >&5
echo "${ECHO_T}$db_cv_smallbuild" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-tcl option specified" >&5
echo $ECHO_N "checking if --enable-tcl option specified... $ECHO_C" >&6; }
# Check whether --enable-tcl was given.
if test "${enable_tcl+set}" = set; then
  enableval=$enable_tcl; db_cv_tcl="$enable_tcl"
else
  db_cv_tcl="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_tcl" >&5
echo "${ECHO_T}$db_cv_tcl" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-test option specified" >&5
echo $ECHO_N "checking if --enable-test option specified... $ECHO_C" >&6; }
# Check whether --enable-test was given.
if test "${enable_test+set}" = set; then
  enableval=$enable_test; db_cv_test="$enable_test"
else
  db_cv_test="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_test" >&5
echo "${ECHO_T}$db_cv_test" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-uimutexes option specified" >&5
echo $ECHO_N "checking if --enable-uimutexes option specified... $ECHO_C" >&6; }
# Check whether --enable-uimutexes was given.
if test "${enable_uimutexes+set}" = set; then
  enableval=$enable_uimutexes; db_cv_uimutexes="$enable_uimutexes"
else
  db_cv_uimutexes="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_uimutexes" >&5
echo "${ECHO_T}$db_cv_uimutexes" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-umrw option specified" >&5
echo $ECHO_N "checking if --enable-umrw option specified... $ECHO_C" >&6; }
# Check whether --enable-umrw was given.
if test "${enable_umrw+set}" = set; then
  enableval=$enable_umrw; db_cv_umrw="$enable_umrw"
else
  db_cv_umrw="no"
fi

{ echo "$as_me:$LINENO: result: $db_cv_umrw" >&5
echo "${ECHO_T}$db_cv_umrw" >&6; }

{ echo "$as_me:$LINENO: checking if --with-mutex=MUTEX option specified" >&5
echo $ECHO_N "checking if --with-mutex=MUTEX option specified... $ECHO_C" >&6; }

# Check whether --with-mutex was given.
if test "${with_mutex+set}" = set; then
  withval=$with_mutex; with_mutex="$withval"
else
  with_mutex="no"
fi

if test "$with_mutex" = "yes"; then
	{ { echo "$as_me:$LINENO: error: --with-mutex requires a mutex name argument" >&5
echo "$as_me: error: --with-mutex requires a mutex name argument" >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$with_mutex" != "no"; then
	db_cv_mutex="$with_mutex"
fi
{ echo "$as_me:$LINENO: result: $with_mutex" >&5
echo "${ECHO_T}$with_mutex" >&6; }

# --with-mutexalign=ALIGNMENT was the configuration option that Berkeley DB
# used before the DbEnv::mutex_set_align method was added.

# Check whether --with-mutexalign was given.
if test "${with_mutexalign+set}" = set; then
  withval=$with_mutexalign; { { echo "$as_me:$LINENO: error: --with-mutexalign no longer supported, use DbEnv::mutex_set_align" >&5
echo "$as_me: error: --with-mutexalign no longer supported, use DbEnv::mutex_set_align" >&2;}
   { (exit 1); exit 1; }; }
fi


{ echo "$as_me:$LINENO: checking if --with-tcl=DIR option specified" >&5
echo $ECHO_N "checking if --with-tcl=DIR option specified... $ECHO_C" >&6; }

# Check whether --with-tcl was given.
if test "${with_tcl+set}" = set; then
  withval=$with_tcl; with_tclconfig="$withval"
else
  with_tclconfig="no"
fi

{ echo "$as_me:$LINENO: result: $with_tclconfig" >&5
echo "${ECHO_T}$with_tclconfig" >&6; }
if test "$with_tclconfig" != "no"; then
	db_cv_tcl="yes"
fi

{ echo "$as_me:$LINENO: checking if --with-uniquename=NAME option specified" >&5
echo $ECHO_N "checking if --with-uniquename=NAME option specified... $ECHO_C" >&6; }

# Check whether --with-uniquename was given.
if test "${with_uniquename+set}" = set; then
  withval=$with_uniquename; with_uniquename="$withval"
else
  with_uniquename="no"
fi

if test "$with_uniquename" = "no"; then
	db_cv_uniquename="no"
	DB_VERSION_UNIQUE_NAME=""
	{ echo "$as_me:$LINENO: result: $with_uniquename" >&5
echo "${ECHO_T}$with_uniquename" >&6; }
else
	db_cv_uniquename="yes"
	if test "$with_uniquename" = "yes"; then
		DB_VERSION_UNIQUE_NAME="_4005"
	else
		DB_VERSION_UNIQUE_NAME="$with_uniquename"
	fi
	{ echo "$as_me:$LINENO: result: $DB_VERSION_UNIQUE_NAME" >&5
echo "${ECHO_T}$DB_VERSION_UNIQUE_NAME" >&6; }
fi

# Test requires Tcl
if test "$db_cv_test" = "yes"; then
	if test "$db_cv_tcl" = "no"; then
		{ { echo "$as_me:$LINENO: error: --enable-test requires --enable-tcl" >&5
echo "$as_me: error: --enable-test requires --enable-tcl" >&2;}
   { (exit 1); exit 1; }; }
	fi
fi

# Set some #defines based on configuration options.
if test "$db_cv_diagnostic" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define DIAGNOSTIC 1
_ACEOF



fi
if test "$db_cv_debug_rop" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define DEBUG_ROP 1
_ACEOF



fi
if test "$db_cv_debug_wop" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define DEBUG_WOP 1
_ACEOF



fi
if test "$db_cv_umrw" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define UMRW 1
_ACEOF




fi
if test "$db_cv_test" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define CONFIG_TEST 1
_ACEOF



fi

# Check for programs used in building and installation.


if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="${ac_tool_prefix}ar"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { echo "$as_me:$LINENO: result: $AR" >&5
echo "${ECHO_T}$AR" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="ar"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_AR" = x; then
    AR="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
else
  AR="$ac_cv_prog_AR"
fi

test "$AR" = "none" && { { echo "$as_me:$LINENO: error: No ar utility found." >&5
echo "$as_me: error: No ar utility found." >&2;}
   { (exit 1); exit 1; }; }

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args.
set dummy ${ac_tool_prefix}chmod; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CHMOD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CHMOD"; then
  ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CHMOD="${ac_tool_prefix}chmod"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CHMOD=$ac_cv_prog_CHMOD
if test -n "$CHMOD"; then
  { echo "$as_me:$LINENO: result: $CHMOD" >&5
echo "${ECHO_T}$CHMOD" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CHMOD"; then
  ac_ct_CHMOD=$CHMOD
  # Extract the first word of "chmod", so it can be a program name with args.
set dummy chmod; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CHMOD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CHMOD"; then
  ac_cv_prog_ac_ct_CHMOD="$ac_ct_CHMOD" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CHMOD="chmod"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CHMOD=$ac_cv_prog_ac_ct_CHMOD
if test -n "$ac_ct_CHMOD"; then
  { echo "$as_me:$LINENO: result: $ac_ct_CHMOD" >&5
echo "${ECHO_T}$ac_ct_CHMOD" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_CHMOD" = x; then
    CHMOD="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CHMOD=$ac_ct_CHMOD
  fi
else
  CHMOD="$ac_cv_prog_CHMOD"
fi

test "$CHMOD" = "none" && { { echo "$as_me:$LINENO: error: No chmod utility found." >&5
echo "$as_me: error: No chmod utility found." >&2;}
   { (exit 1); exit 1; }; }

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cp", so it can be a program name with args.
set dummy ${ac_tool_prefix}cp; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CP"; then
  ac_cv_prog_CP="$CP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CP="${ac_tool_prefix}cp"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CP=$ac_cv_prog_CP
if test -n "$CP"; then
  { echo "$as_me:$LINENO: result: $CP" >&5
echo "${ECHO_T}$CP" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CP"; then
  ac_ct_CP=$CP
  # Extract the first word of "cp", so it can be a program name with args.
set dummy cp; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CP"; then
  ac_cv_prog_ac_ct_CP="$ac_ct_CP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CP="cp"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CP=$ac_cv_prog_ac_ct_CP
if test -n "$ac_ct_CP"; then
  { echo "$as_me:$LINENO: result: $ac_ct_CP" >&5
echo "${ECHO_T}$ac_ct_CP" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_CP" = x; then
    CP="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CP=$ac_ct_CP
  fi
else
  CP="$ac_cv_prog_CP"
fi

test "$CP" = "none" && { { echo "$as_me:$LINENO: error: No cp utility found." >&5
echo "$as_me: error: No cp utility found." >&2;}
   { (exit 1); exit 1; }; }

# The Tcl test suite requires a kill utility.
if test "$db_cv_test" = "yes"; then
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}kill", so it can be a program name with args.
set dummy ${ac_tool_prefix}kill; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_KILL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$KILL"; then
  ac_cv_prog_KILL="$KILL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_KILL="${ac_tool_prefix}kill"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
KILL=$ac_cv_prog_KILL
if test -n "$KILL"; then
  { echo "$as_me:$LINENO: result: $KILL" >&5
echo "${ECHO_T}$KILL" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_KILL"; then
  ac_ct_KILL=$KILL
  # Extract the first word of "kill", so it can be a program name with args.
set dummy kill; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_KILL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_KILL"; then
  ac_cv_prog_ac_ct_KILL="$ac_ct_KILL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_KILL="kill"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_KILL=$ac_cv_prog_ac_ct_KILL
if test -n "$ac_ct_KILL"; then
  { echo "$as_me:$LINENO: result: $ac_ct_KILL" >&5
echo "${ECHO_T}$ac_ct_KILL" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_KILL" = x; then
    KILL="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    KILL=$ac_ct_KILL
  fi
else
  KILL="$ac_cv_prog_KILL"
fi

	test "$KILL" = "none" && { { echo "$as_me:$LINENO: error: No kill utility found." >&5
echo "$as_me: error: No kill utility found." >&2;}
   { (exit 1); exit 1; }; }
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ln", so it can be a program name with args.
set dummy ${ac_tool_prefix}ln; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_LN+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$LN"; then
  ac_cv_prog_LN="$LN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LN="${ac_tool_prefix}ln"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
LN=$ac_cv_prog_LN
if test -n "$LN"; then
  { echo "$as_me:$LINENO: result: $LN" >&5
echo "${ECHO_T}$LN" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_LN"; then
  ac_ct_LN=$LN
  # Extract the first word of "ln", so it can be a program name with args.
set dummy ln; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_LN+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_LN"; then
  ac_cv_prog_ac_ct_LN="$ac_ct_LN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LN="ln"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_LN=$ac_cv_prog_ac_ct_LN
if test -n "$ac_ct_LN"; then
  { echo "$as_me:$LINENO: result: $ac_ct_LN" >&5
echo "${ECHO_T}$ac_ct_LN" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_LN" = x; then
    LN="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    LN=$ac_ct_LN
  fi
else
  LN="$ac_cv_prog_LN"
fi

test "$LN" = "none" && { { echo "$as_me:$LINENO: error: No ln utility found." >&5
echo "$as_me: error: No ln utility found." >&2;}
   { (exit 1); exit 1; }; }

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}mkdir", so it can be a program name with args.
set dummy ${ac_tool_prefix}mkdir; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_MKDIR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$MKDIR"; then
  ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_MKDIR="${ac_tool_prefix}mkdir"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
MKDIR=$ac_cv_prog_MKDIR
if test -n "$MKDIR"; then
  { echo "$as_me:$LINENO: result: $MKDIR" >&5
echo "${ECHO_T}$MKDIR" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_MKDIR"; then
  ac_ct_MKDIR=$MKDIR
  # Extract the first word of "mkdir", so it can be a program name with args.
set dummy mkdir; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_MKDIR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_MKDIR"; then
  ac_cv_prog_ac_ct_MKDIR="$ac_ct_MKDIR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_MKDIR="mkdir"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_MKDIR=$ac_cv_prog_ac_ct_MKDIR
if test -n "$ac_ct_MKDIR"; then
  { echo "$as_me:$LINENO: result: $ac_ct_MKDIR" >&5
echo "${ECHO_T}$ac_ct_MKDIR" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_MKDIR" = x; then
    MKDIR="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    MKDIR=$ac_ct_MKDIR
  fi
else
  MKDIR="$ac_cv_prog_MKDIR"
fi

test "$MKDIR" = "none" && { { echo "$as_me:$LINENO: error: No mkdir utility found." >&5
echo "$as_me: error: No mkdir utility found." >&2;}
   { (exit 1); exit 1; }; }

# Ranlib doesn't exist on some architectures because the ar utility
# packages the library itself.
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi


if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}rm", so it can be a program name with args.
set dummy ${ac_tool_prefix}rm; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_RM+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RM"; then
  ac_cv_prog_RM="$RM" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RM="${ac_tool_prefix}rm"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
RM=$ac_cv_prog_RM
if test -n "$RM"; then
  { echo "$as_me:$LINENO: result: $RM" >&5
echo "${ECHO_T}$RM" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RM"; then
  ac_ct_RM=$RM
  # Extract the first word of "rm", so it can be a program name with args.
set dummy rm; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_RM+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RM"; then
  ac_cv_prog_ac_ct_RM="$ac_ct_RM" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RM="rm"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_RM=$ac_cv_prog_ac_ct_RM
if test -n "$ac_ct_RM"; then
  { echo "$as_me:$LINENO: result: $ac_ct_RM" >&5
echo "${ECHO_T}$ac_ct_RM" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_RM" = x; then
    RM="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    RM=$ac_ct_RM
  fi
else
  RM="$ac_cv_prog_RM"
fi

test "$RM" = "none" && { { echo "$as_me:$LINENO: error: No rm utility found." >&5
echo "$as_me: error: No rm utility found." >&2;}
   { (exit 1); exit 1; }; }

if test "$db_cv_rpc" = "yes"; then
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}rpcgen", so it can be a program name with args.
set dummy ${ac_tool_prefix}rpcgen; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_RPCGEN+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RPCGEN"; then
  ac_cv_prog_RPCGEN="$RPCGEN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RPCGEN="${ac_tool_prefix}rpcgen"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
RPCGEN=$ac_cv_prog_RPCGEN
if test -n "$RPCGEN"; then
  { echo "$as_me:$LINENO: result: $RPCGEN" >&5
echo "${ECHO_T}$RPCGEN" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RPCGEN"; then
  ac_ct_RPCGEN=$RPCGEN
  # Extract the first word of "rpcgen", so it can be a program name with args.
set dummy rpcgen; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_RPCGEN+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RPCGEN"; then
  ac_cv_prog_ac_ct_RPCGEN="$ac_ct_RPCGEN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RPCGEN="rpcgen"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_RPCGEN=$ac_cv_prog_ac_ct_RPCGEN
if test -n "$ac_ct_RPCGEN"; then
  { echo "$as_me:$LINENO: result: $ac_ct_RPCGEN" >&5
echo "${ECHO_T}$ac_ct_RPCGEN" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_RPCGEN" = x; then
    RPCGEN="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    RPCGEN=$ac_ct_RPCGEN
  fi
else
  RPCGEN="$ac_cv_prog_RPCGEN"
fi

	test "$RPCGEN" = "none" && { { echo "$as_me:$LINENO: error: No rpcgen utility found." >&5
echo "$as_me: error: No rpcgen utility found." >&2;}
   { (exit 1); exit 1; }; }
fi

# We need a complete path for sh, because some make utility implementations get
# upset if SHELL is set to just the command name.  Don't use the SHELL variable
# here because the user likely has the SHELL variable set to something other
# than the Bourne shell, which is what Make wants.
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}sh", so it can be a program name with args.
set dummy ${ac_tool_prefix}sh; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_path_db_cv_path_sh+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $db_cv_path_sh in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_db_cv_path_sh="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
db_cv_path_sh=$ac_cv_path_db_cv_path_sh
if test -n "$db_cv_path_sh"; then
  { echo "$as_me:$LINENO: result: $db_cv_path_sh" >&5
echo "${ECHO_T}$db_cv_path_sh" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_path_db_cv_path_sh"; then
  ac_pt_db_cv_path_sh=$db_cv_path_sh
  # Extract the first word of "sh", so it can be a program name with args.
set dummy sh; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_path_ac_pt_db_cv_path_sh+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ac_pt_db_cv_path_sh in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_db_cv_path_sh="$ac_pt_db_cv_path_sh" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_db_cv_path_sh="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_db_cv_path_sh=$ac_cv_path_ac_pt_db_cv_path_sh
if test -n "$ac_pt_db_cv_path_sh"; then
  { echo "$as_me:$LINENO: result: $ac_pt_db_cv_path_sh" >&5
echo "${ECHO_T}$ac_pt_db_cv_path_sh" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_pt_db_cv_path_sh" = x; then
    db_cv_path_sh="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    db_cv_path_sh=$ac_pt_db_cv_path_sh
  fi
else
  db_cv_path_sh="$ac_cv_path_db_cv_path_sh"
fi

test "$db_cv_path_sh" = "none" && { { echo "$as_me:$LINENO: error: No sh utility found." >&5
echo "$as_me: error: No sh utility found." >&2;}
   { (exit 1); exit 1; }; }

# Don't strip the binaries if --enable-debug was specified.
if test "$db_cv_debug" = yes; then
	STRIP="none"
else
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

	test "$STRIP" = "none" && { echo "$as_me:$LINENO: WARNING: No strip utility found." >&5
echo "$as_me: WARNING: No strip utility found." >&2;}
fi
# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
  ./ | .// | /cC/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	    break 3
	  fi
	fi
      done
    done
    ;;
esac
done
IFS=$as_save_IFS


fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    INSTALL=$ac_install_sh
  fi
fi
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6; }

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'


BUILD_TARGET="library_build"
INSTALL_TARGET="library_install"

# This is where we handle stuff that autoconf can't handle: compiler,
# preprocessor and load flags, libraries that the standard tests don't
# look for.
#
# There are additional libraries we need for some compiler/architecture
# combinations.
#
# Some architectures require DB to be compiled with special flags and/or
# libraries for threaded applications
#
# The makefile CC may be different than the CC used in config testing,
# because the makefile CC may be set to use $(LIBTOOL).
#
# Don't override anything if it's already set from the environment.
optimize_debug="-O"
case "$host_os" in
aix4.3.*|aix5*)
	optimize_debug="-O2"
	CC=${CC-"xlc_r"}
	CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
	LDFLAGS="$LDFLAGS -Wl,-brtl";;
bsdi3*)	CC=${CC-"shlicc2"}
	LIBSO_LIBS="$LIBSO_LIBS -lipc";;
cygwin*)
	CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_REENTRANT";;
freebsd*)
	CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
	LDFLAGS="$LDFLAGS -pthread";;
gnu*|k*bsd*-gnu|linux*)
	CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_REENTRANT";;
hpux*)	CPPFLAGS="$CPPFLAGS -D_REENTRANT";;
irix*)	optimize_debug="-O2"
	CPPFLAGS="$CPPFLAGS -D_SGI_MP_SOURCE";;
mpeix*)	CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE -D_SOCKET_SOURCE"
	LIBSO_LIBS="$LIBSO_LIBS -lsocket -lsvipc";;
osf*)	CPPFLAGS="$CPPFLAGS -pthread";;
*qnx*)	cat >>confdefs.h <<\_ACEOF
#define HAVE_QNX 1
_ACEOF


;;
solaris*)
	CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS ";;
esac

# If the user wants a debugging environment, change any compiler optimization
# flags to -g.  We used to add -g to the -O compiler flags, but compilers are
# good enough at code re-organization that debugging with -O no longer works.
# If you want to compile with a different set of flags, specify CFLAGS in the
# environment before configuring.
if test "$db_cv_debug" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define DEBUG 1
_ACEOF




	optimize_debug="-g"
fi

# Set CFLAGS/CXXFLAGS.  We MUST set the flags before we call autoconf
# compiler configuration macros, because if we don't, they set CFLAGS
# to no optimization and -g, which isn't what we want.
CFLAGS=${CFLAGS-$optimize_debug}
CXXFLAGS=${CXXFLAGS-"$CFLAGS"}

# The default compiler is cc (NOT gcc), the default CFLAGS is as specified
# above, NOT what is set by AC_PROG_CC, as it won't set optimization flags
# for any compiler other than gcc.
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in cc gcc
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cc gcc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi


test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }

# Provide some information about the compiler.
echo "$as_me:$LINENO: checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
#
# List of possible output files, starting from the most likely.
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
# only as a last resort.  b.out is created by i960 compilers.
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
#
# The IRIX 6 linker writes into existing files which may not be
# executable, retaining their permissions.  Remove them first so a
# subsequent execution test works.
ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { (ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
See \`config.log' for more details." >&5
echo "$as_me: error: C compiler cannot create executables
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext
{ echo "$as_me:$LINENO: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6; }

# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
fi
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }

rm -f a.out a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6; }

{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest$ac_cv_exeext
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_compiler_gnu=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	CFLAGS=""
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_c89=$ac_arg
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6; } ;;
  xno)
    { echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
esac


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# We know what compiler we're going to use, now.  Set per-compiler flags.
if test "$GCC" = "yes"; then
	# Use -O3 if we're using gcc, unless we're doing a small build, in
	# which case we use -Os alone.  The code size for -O3 is quite a
	# bit larger than -O2: a compromise is "-Os -finline-functions",
	# it's smaller and explicitly inlining the functions helps Berkeley
	# DB.
	CFLAGS="$CFLAGS "
	if test "$db_cv_smallbuild" = "yes"; then
		CFLAGS=`echo "$CFLAGS" | sed 's/-O /-Os /g'`
	else
		CFLAGS=`echo "$CFLAGS" | sed 's/-O /-O3 /g'`
	fi
else
	case "$host_os" in
	hpux11.0*)	;;
	hpux11*)	CPPFLAGS="$CPPFLAGS -mt";;
	esac
fi

# Checks for compiler characteristics.
DB_PROTO1="#undef __P"

# AC_PROG_CC_STDC only sets ac_cv_prog_cc_stdc if the test fails, so
# check for "no", not "yes".
if test "$ac_cv_prog_cc_stdc" = "no"; then
	DB_PROTO2="#define	__P(protos)	()"
else
	DB_PROTO2="#define	__P(protos)	protos"
fi


{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !x[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_const=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_c_const=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

cat >>confdefs.h <<\_ACEOF
#define const
_ACEOF

fi


if test "$ac_cv_c_const" != "yes"; then
	DB_CONST="#define const"
fi

# Because of shared library building, the ${CC} used for config tests
# may be different than the ${CC} we want to put in the Makefile.
# The latter is known as ${MAKEFILE_CC} in this script.
MAKEFILE_CC="${CC}"
MAKEFILE_CCLINK="${CC}"
MAKEFILE_CXX="nocxx"
MAKEFILE_CXXLINK="nocxx"

# See if we need the C++ compiler at all.  If so, we'd like to find one that
# interoperates with the C compiler we chose.  Since we prefered cc over gcc,
# we'll also prefer the vendor's compiler over g++/gcc.  If we're wrong, the
# user can set CC and CXX in their environment before running configure.
#
# AC_PROG_CXX sets CXX, but it uses $CXX and $CCC (in that order) as its
# first choices.
if test "$db_cv_cxx" = "yes"; then
	if test "$GCC" != "yes"; then
		case "$host_os" in
		aix*)		if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}xlC_r", so it can be a program name with args.
set dummy ${ac_tool_prefix}xlC_r; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CCC="${ac_tool_prefix}xlC_r"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CCC=$ac_cv_prog_CCC
if test -n "$CCC"; then
  { echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CCC"; then
  ac_ct_CCC=$CCC
  # Extract the first word of "xlC_r", so it can be a program name with args.
set dummy xlC_r; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CCC"; then
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CCC="xlC_r"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
if test -n "$ac_ct_CCC"; then
  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_CCC" = x; then
    CCC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CCC=$ac_ct_CCC
  fi
else
  CCC="$ac_cv_prog_CCC"
fi

				LIBXSO_LIBS="-lC_r $LIBXSO_LIBS"
				LIBSO_LIBS="-lC_r $LIBSO_LIBS";;
		hpux*)		if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}aCC", so it can be a program name with args.
set dummy ${ac_tool_prefix}aCC; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CCC="${ac_tool_prefix}aCC"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CCC=$ac_cv_prog_CCC
if test -n "$CCC"; then
  { echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CCC"; then
  ac_ct_CCC=$CCC
  # Extract the first word of "aCC", so it can be a program name with args.
set dummy aCC; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CCC"; then
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CCC="aCC"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
if test -n "$ac_ct_CCC"; then
  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_CCC" = x; then
    CCC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CCC=$ac_ct_CCC
  fi
else
  CCC="$ac_cv_prog_CCC"
fi
;;
		irix*)		if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
set dummy ${ac_tool_prefix}CC; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CCC="${ac_tool_prefix}CC"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CCC=$ac_cv_prog_CCC
if test -n "$CCC"; then
  { echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CCC"; then
  ac_ct_CCC=$CCC
  # Extract the first word of "CC", so it can be a program name with args.
set dummy CC; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CCC"; then
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CCC="CC"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
if test -n "$ac_ct_CCC"; then
  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_CCC" = x; then
    CCC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CCC=$ac_ct_CCC
  fi
else
  CCC="$ac_cv_prog_CCC"
fi
;;
		osf*)		if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cxx", so it can be a program name with args.
set dummy ${ac_tool_prefix}cxx; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CCC="${ac_tool_prefix}cxx"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CCC=$ac_cv_prog_CCC
if test -n "$CCC"; then
  { echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CCC"; then
  ac_ct_CCC=$CCC
  # Extract the first word of "cxx", so it can be a program name with args.
set dummy cxx; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CCC"; then
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CCC="cxx"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
if test -n "$ac_ct_CCC"; then
  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_CCC" = x; then
    CCC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CCC=$ac_ct_CCC
  fi
else
  CCC="$ac_cv_prog_CCC"
fi
;;
		solaris*)	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
set dummy ${ac_tool_prefix}CC; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CCC="${ac_tool_prefix}CC"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CCC=$ac_cv_prog_CCC
if test -n "$CCC"; then
  { echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CCC"; then
  ac_ct_CCC=$CCC
  # Extract the first word of "CC", so it can be a program name with args.
set dummy CC; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CCC"; then
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CCC="CC"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
if test -n "$ac_ct_CCC"; then
  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_CCC" = x; then
    CCC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CCC=$ac_ct_CCC
  fi
else
  CCC="$ac_cv_prog_CCC"
fi
;;
		esac
	fi
	ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { echo "$as_me:$LINENO: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$ac_ct_CXX" && break
done

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_compiler_gnu=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
GXX=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
if test "${ac_cv_prog_cxx_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	CXXFLAGS=""
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

	###### WORKAROUND: SEE SR #7938
	ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

	###############################



{ echo "$as_me:$LINENO: checking whether C++ supports the ISO C++ standard includes" >&5
echo $ECHO_N "checking whether C++ supports the ISO C++ standard includes... $ECHO_C" >&6; }
if test "${db_cv_cxx_have_stdheaders+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

 ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <iostream>

int
main ()
{
std::ostream *o; return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_cxx_have_stdheaders=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	db_cv_cxx_have_stdheaders=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


fi
{ echo "$as_me:$LINENO: result: $db_cv_cxx_have_stdheaders" >&5
echo "${ECHO_T}$db_cv_cxx_have_stdheaders" >&6; }
if test "$db_cv_cxx_have_stdheaders" = yes; then
	cxx_have_stdheaders="#define	HAVE_CXX_STDHEADERS 1"
fi
	MAKEFILE_CXX="${CXX}"
	MAKEFILE_CXXLINK="${CXX}"
fi

# Do some gcc specific configuration.

{ echo "$as_me:$LINENO: checking whether we are using gcc version 2.96" >&5
echo $ECHO_N "checking whether we are using gcc version 2.96... $ECHO_C" >&6; }
if test "${db_cv_gcc_2_96+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

db_cv_gcc_2_96=no
if test "$GCC" = "yes"; then
	GCC_VERSION=`${MAKEFILE_CC} --version`
	case ${GCC_VERSION} in
	2.96*)
		db_cv_gcc_2_96=yes;;
	esac
fi
fi
{ echo "$as_me:$LINENO: result: $db_cv_gcc_2_96" >&5
echo "${ECHO_T}$db_cv_gcc_2_96" >&6; }
if test "$db_cv_gcc_2_96" = "yes"; then
	CFLAGS=`echo "$CFLAGS" | sed 's/-O2/-O/'`
	CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2/-O/'`
	{ echo "$as_me:$LINENO: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&5
echo "$as_me: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&2;}
	{ echo "$as_me:$LINENO: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&5
echo "$as_me: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&2;}
fi

{ echo "$as_me:$LINENO: checking whether g++ requires -fhandle-exceptions" >&5
echo $ECHO_N "checking whether g++ requires -fhandle-exceptions... $ECHO_C" >&6; }
if test "${db_cv_gxx_except+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

db_cv_gxx_except=no;
if test "$GXX" = "yes"; then
	GXX_VERSION=`${MAKEFILE_CXX} --version`
	case ${GXX_VERSION} in
	1.*|2.[01234567].*|*-1.*|*-2.[01234567].*)
		db_cv_gxx_except=yes;;
	esac
fi
fi
{ echo "$as_me:$LINENO: result: $db_cv_gxx_except" >&5
echo "${ECHO_T}$db_cv_gxx_except" >&6; }
if test "$db_cv_gxx_except" = "yes"; then
	CXXFLAGS="$CXXFLAGS -fhandle-exceptions"
fi

# We need the -Kthread/-pthread flag when compiling on SCO/Caldera's UnixWare
# and OpenUNIX releases.  We can't make the test until we know which compiler
# we're using.
case "$host_os" in
sysv5UnixWare*|sysv5OpenUNIX8*)
	if test "$GCC" == "yes"; then
		CPPFLAGS="$CPPFLAGS -pthread"
		LDFLAGS="$LDFLAGS -pthread"
	else
		CPPFLAGS="$CPPFLAGS -Kthread"
		LDFLAGS="$LDFLAGS -Kthread"
	fi;;
esac

# Export our compiler preferences for the libtool configuration.
export CC CCC
CCC=CXX

# Libtool configuration.
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=yes
fi


# Check whether --enable-static was given.
if test "${enable_static+set}" = set; then
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_static=yes
fi


# Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_fast_install=yes
fi


{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
if test "${lt_cv_path_SED+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # Loop through the user's path and test for sed and gsed.
# Then use that list of sed's as ones to test for truncation.
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for lt_ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
      fi
    done
  done
done
lt_ac_max=0
lt_ac_count=0
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
# along with /bin/sed that truncates output.
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  test ! -f $lt_ac_sed && continue
  cat /dev/null > conftest.in
  lt_ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  # Check for GNU sed and select it if it is found.
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
    lt_cv_path_SED=$lt_ac_sed
    break
  fi
  while true; do
    cat conftest.in conftest.in >conftest.tmp
    mv conftest.tmp conftest.in
    cp conftest.in conftest.nl
    echo >>conftest.nl
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
    cmp -s conftest.out conftest.nl || break
    # 10000 chars as input seems more than enough
    test $lt_ac_count -gt 10 && break
    lt_ac_count=`expr $lt_ac_count + 1`
    if test $lt_ac_count -gt $lt_ac_max; then
      lt_ac_max=$lt_ac_count
      lt_cv_path_SED=$lt_ac_sed
    fi
  done
done

fi

SED=$lt_cv_path_SED
{ echo "$as_me:$LINENO: result: $SED" >&5
echo "${ECHO_T}$SED" >&6; }

{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
if test "${ac_cv_path_GREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # Extract the first word of "grep ggrep" to use in msg output
if test -z "$GREP"; then
set dummy grep ggrep; ac_prog_name=$2
if test "${ac_cv_path_GREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_path_GREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in grep ggrep; do
  for ac_exec_ext in '' $ac_executable_extensions; do
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
    # Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac


    $ac_path_GREP_found && break 3
  done
done

done
IFS=$as_save_IFS


fi

GREP="$ac_cv_path_GREP"
if test -z "$GREP"; then
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
fi

else
  ac_cv_path_GREP=$GREP
fi


fi
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
if test "${ac_cv_path_EGREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     # Extract the first word of "egrep" to use in msg output
if test -z "$EGREP"; then
set dummy egrep; ac_prog_name=$2
if test "${ac_cv_path_EGREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in egrep; do
  for ac_exec_ext in '' $ac_executable_extensions; do
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
    # Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac


    $ac_path_EGREP_found && break 3
  done
done

done
IFS=$as_save_IFS


fi

EGREP="$ac_cv_path_EGREP"
if test -z "$EGREP"; then
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
fi

else
  ac_cv_path_EGREP=$EGREP
fi


   fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"



# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
else
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
fi
if test "${lt_cv_path_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { echo "$as_me:$LINENO: result: $LD" >&5
echo "${ECHO_T}$LD" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
if test "${lt_cv_prog_gnu_ld+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld


{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
if test "${lt_cv_ld_reload_flag+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac

{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
if test "${lt_cv_path_NM+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
fi
fi
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
NM="$lt_cv_path_NM"

{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
else
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6; }
fi

{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
if test "${lt_cv_deplibs_check_method+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix4* | aix5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | kfreebsd*-gnu | dragonfly*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    ;;
  *)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    ;;
  esac
  ;;

interix3*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux*)
  lt_cv_deplibs_check_method=pass_all
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;

newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;

nto-qnx*)
  lt_cv_deplibs_check_method=unknown
  ;;

openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;

osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac

fi
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown




# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC

# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval=$enable_libtool_lock;
fi

test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case `/usr/bin/file conftest.$ac_objext` in
    *ELF-32*)
      HPUX_IA64_MODE="32"
      ;;
    *ELF-64*)
      HPUX_IA64_MODE="64"
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 7033 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
   if test "$lt_cv_prog_gnu_ld" = yes; then
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -melf32bsmip"
      ;;
    *N32*)
      LD="${LD-ld} -melf32bmipn32"
      ;;
    *64-bit*)
      LD="${LD-ld} -melf64bmip"
      ;;
    esac
   else
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
      ;;
    esac
   fi
  fi
  rm -rf conftest*
  ;;

x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case `/usr/bin/file conftest.o` in
    *32-bit*)
      case $host in
        x86_64-*linux*)
          LD="${LD-ld} -m elf_i386"
          ;;
        ppc64-*linux*|powerpc64-*linux*)
          LD="${LD-ld} -m elf32ppclinux"
          ;;
        s390x-*linux*)
          LD="${LD-ld} -m elf_s390"
          ;;
        sparc64-*linux*)
          LD="${LD-ld} -m elf32_sparc"
          ;;
      esac
      ;;
    *64-bit*)
      case $host in
        x86_64-*linux*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        ppc*-*linux*|powerpc*-*linux*)
          LD="${LD-ld} -m elf64ppc"
          ;;
        s390*-*linux*)
          LD="${LD-ld} -m elf64_s390"
          ;;
        sparc*-*linux*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
if test "${lt_cv_cc_needs_belf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  lt_cv_cc_needs_belf=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	lt_cv_cc_needs_belf=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)    LD="${LD-ld} -64" ;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;


esac

need_locks="$enable_libtool_lock"


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ echo "$as_me:$LINENO: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_header_stdc=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.









for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in dlfcn.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ---------------------------------------------------------- ##
## Report this to Oracle Technology Network Berkeley DB forum ##
## ---------------------------------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

fi

ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$F77"; then
  ac_cv_prog_F77="$F77" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
F77=$ac_cv_prog_F77
if test -n "$F77"; then
  { echo "$as_me:$LINENO: result: $F77" >&5
echo "${ECHO_T}$F77" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


    test -n "$F77" && break
  done
fi
if test -z "$F77"; then
  ac_ct_F77=$F77
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_F77"; then
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_F77="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_F77=$ac_cv_prog_ac_ct_F77
if test -n "$ac_ct_F77"; then
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
echo "${ECHO_T}$ac_ct_F77" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$ac_ct_F77" && break
done

  if test "x$ac_ct_F77" = x; then
    F77=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    F77=$ac_ct_F77
  fi
fi


# Provide some information about the compiler.
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
rm -f a.out

# If we don't use `.F' as extension, the preprocessor is not run on the
# input file.  (Note that this only needs to work for GNU compilers.)
ac_save_ext=$ac_ext
ac_ext=F
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
      program main
#ifndef __GNUC__
       choke me
#endif

      end
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_compiler_gnu=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_f77_compiler_gnu=$ac_compiler_gnu

fi
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
ac_ext=$ac_save_ext
ac_test_FFLAGS=${FFLAGS+set}
ac_save_FFLAGS=$FFLAGS
FFLAGS=
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
if test "${ac_cv_prog_f77_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  FFLAGS=-g
cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_f77_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_prog_f77_g=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
if test "$ac_test_FFLAGS" = set; then
  FFLAGS=$ac_save_FFLAGS
elif test $ac_cv_prog_f77_g = yes; then
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    FFLAGS="-g -O2"
  else
    FFLAGS="-g"
  fi
else
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    FFLAGS="-O2"
  else
    FFLAGS=
  fi
fi

G77=`test $ac_compiler_gnu = yes && echo yes`
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!

# find the maximum length of command line arguments
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
    i=0
  teststring="ABCD"

  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;

  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;

  cygwin* | mingw*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;

  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;

  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;

  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;

  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    # If test is not a shell built-in, we'll probably end up computing a
    # maximum length that is only half of the actual maximum length, but
    # we can't tell.
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
	       = "XX$teststring") >/dev/null 2>&1 &&
	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
	    lt_cv_sys_max_cmd_len=$new_result &&
	    test $i != 17 # 1/2 MB should be enough
    do
      i=`expr $i + 1`
      teststring=$teststring$teststring
    done
    teststring=
    # Add a significant safety factor because C++ compilers can tack on massive
    # amounts of additional arguments before passing them to the linker.
    # It appears as though 1/2 is a usable value.
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    ;;
  esac

fi

if test -n $lt_cv_sys_max_cmd_len ; then
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
else
  { echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6; }
fi




# Check for command to grab the raw symbol name followed by C symbol from nm.
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Transform an extracted symbol line into a proper C declaration
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32*)
  symcode='[ABCDGISTW]'
  ;;
hpux*) # Its linker distinguishes data from code symbols
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  ;;
linux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDGIRSTW]'
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Try without a prefix undercore, then with it.
for ac_symprfx in "" "_"; do

  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

  # Write the raw and C identifiers.
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"

  # Check to see that the pipe works correctly.
  pipe_works=no

  rm -f conftest*
  cat > conftest.$ac_ext <<EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
EOF

  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
	if grep ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<EOF > conftest.$ac_ext
#ifdef __cplusplus
extern "C" {
#endif

EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'

	  cat <<EOF >> conftest.$ac_ext
#if defined (__STDC__) && __STDC__
# define lt_ptr_t void *
#else
# define lt_ptr_t char *
# define const
#endif

/* The mapping between symbol names and symbols. */
const struct {
  const char *name;
  lt_ptr_t address;
}
lt_preloaded_symbols[] =
{
EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
	  cat <<\EOF >> conftest.$ac_ext
  {0, (lt_ptr_t) 0}
};

#ifdef __cplusplus
}
#endif
EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_save_LIBS="$LIBS"
	  lt_save_CFLAGS="$CFLAGS"
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS="$lt_save_LIBS"
	  CFLAGS="$lt_save_CFLAGS"
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -f conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  { echo "$as_me:$LINENO: result: failed" >&5
echo "${ECHO_T}failed" >&6; }
else
  { echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6; }
fi

{ echo "$as_me:$LINENO: checking for objdir" >&5
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
if test "${lt_cv_objdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
echo "${ECHO_T}$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir





case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac

# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='sed -e 1s/^X//'
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

# Constants:
rm="rm -f"

# Global variables:
default_ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a
ltmain="$ac_aux_dir/ltmain.sh"
ofile="$default_ofile"
with_gnu_ld="$lt_cv_prog_gnu_ld"

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="${ac_tool_prefix}ar"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { echo "$as_me:$LINENO: result: $AR" >&5
echo "${ECHO_T}$AR" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="ar"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
else
  AR="$ac_cv_prog_AR"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi


old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru
test -z "$AS" && AS=as
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
test -z "$DLLTOOL" && DLLTOOL=dlltool
test -z "$LD" && LD=ld
test -z "$LN_S" && LN_S="ln -s"
test -z "$MAGIC_CMD" && MAGIC_CMD=file
test -z "$NM" && NM=nm
test -z "$SED" && SED=sed
test -z "$OBJDUMP" && OBJDUMP=objdump
test -z "$RANLIB" && RANLIB=:
test -z "$STRIP" && STRIP=:
test -z "$ac_objext" && ac_objext=o

# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    ;;
  *)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi

for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


# Only perform the check for file, if the check method requires it
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    { echo "$as_me:$LINENO: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

enable_dlopen=no
enable_win32_dll=no

# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval=$enable_libtool_lock;
fi

test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes


# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then
  withval=$with_pic; pic_mode="$withval"
else
  pic_mode=default
fi

test -z "$pic_mode" && pic_mode=default

# Use C for the default configuration in the libtool script
tagname=
lt_save_CC="$CC"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Source file extension for C test sources.
ac_ext=c

# Object file extension for compiled C test sources.
objext=o
objext=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;\n"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}\n'


# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


## CAVEAT EMPTOR:
## There is no encapsulation within the following macros, do not change
## the running order or otherwise move them around unless you know exactly
## what you are doing...

lt_prog_compiler_no_builtin_flag=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'


{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:9459: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:9463: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
else
    :
fi

fi

lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=

{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }

  if test "$GCC" = yes; then
    lt_prog_compiler_wl='-Wl,'
    lt_prog_compiler_static='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
      ;;

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      ;;

    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared=no
      enable_shared=no
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic=-Kconform_pic
      fi
      ;;

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
      ;;

    *)
      lt_prog_compiler_pic='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      else
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic='-qnocommon'
         lt_prog_compiler_wl='-Wl,'
         ;;
       esac
       ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static='-non_shared'
      ;;

    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    linux*)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static='-non_shared'
        ;;
      esac
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl='-Qoption ld ';;
      *)
	lt_prog_compiler_wl='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl='-Qoption ld '
      lt_prog_compiler_pic='-PIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic='-Kconform_pic'
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
      ;;

    uts4*)
      lt_prog_compiler_pic='-pic'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared=no
      ;;
    esac
  fi

{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic"; then

{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_pic_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:9727: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:9731: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works=yes
     fi
   fi
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }

if test x"$lt_prog_compiler_pic_works" = xyes; then
    case $lt_prog_compiler_pic in
     "" | " "*) ;;
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     esac
else
    lt_prog_compiler_pic=
     lt_prog_compiler_can_build_shared=no
fi

fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac

#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works=yes
       fi
     else
       lt_prog_compiler_static_works=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }

if test x"$lt_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:9831: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:9835: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }

  runpath_var=
  allow_undefined_flag=
  enable_shared_with_static_runtimes=no
  archive_cmds=
  archive_expsym_cmds=
  old_archive_From_new_cmds=
  old_archive_from_expsyms_cmds=
  export_dynamic_flag_spec=
  whole_archive_flag_spec=
  thread_safe_flag_spec=
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_direct=no
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  link_all_deplibs=unknown
  hardcode_automatic=no
  module_cmds=
  module_expsym_cmds=
  always_export_symbols=no
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs=no
	cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
      fi
      ;;

    amigaos*)
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes

      # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs=no
      ;;

    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec='-L$libdir'
      allow_undefined_flag=unsupported
      always_export_symbols=no
      enable_shared_with_static_runtimes=yes
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs=no
      fi
      ;;

    interix3*)
      hardcode_direct=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;
    esac

    if test "$ld_shlibs" = no; then
      runpath_var=
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag=unsupported
      always_export_symbols=yes
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct=unsupported
      fi
      ;;

    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds=''
      hardcode_direct=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct=yes
	  else
  	  # We have old collect2
  	  hardcode_direct=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L=yes
  	  hardcode_libdir_flag_spec='-L$libdir'
  	  hardcode_libdir_separator=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag="-z nodefs"
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec='$convenience'
	  archive_cmds_need_lc=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs=no
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec=-rdynamic
      ;;

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec=' '
      allow_undefined_flag=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes=yes
      ;;

    darwin* | rhapsody*)
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
      esac
      archive_cmds_need_lc=no
      hardcode_direct=no
      hardcode_automatic=yes
      hardcode_shlibpath_var=unsupported
      whole_archive_flag_spec=''
      link_all_deplibs=yes
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs=no
          ;;
      esac
    fi
      ;;

    dgux*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    freebsd1*)
      ld_shlibs=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu | dragonfly*)
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L=yes
      export_dynamic_flag_spec='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	hardcode_direct=yes
	export_dynamic_flag_spec='${wl}-E'

	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_libdir_flag_spec_ld='+b $libdir'
	  hardcode_direct=no
	  hardcode_shlibpath_var=no
	  ;;
	*)
	  hardcode_direct=yes
	  export_dynamic_flag_spec='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      link_all_deplibs=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    newsos6)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_shlibpath_var=no
      ;;

    openbsd*)
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	export_dynamic_flag_spec='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec='-R$libdir'
	   ;;
	 *)
	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec='-rpath $libdir'
      fi
      hardcode_libdir_separator=:
      ;;

    solaris*)
      no_undefined_flag=' -z text'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	wlarc=''
	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
      esac
      link_all_deplibs=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds='$CC -r -o $output$reload_objs'
	  hardcode_direct=no
        ;;
	motorola)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var=no
      ;;

    sysv4.3*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag='${wl}-z,text'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      export_dynamic_flag_spec='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    *)
      ld_shlibs=no
      ;;
    esac
  fi

{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
echo "${ECHO_T}$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl
	pic_flag=$lt_prog_compiler_pic
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag
        allow_undefined_flag=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc=no
        else
	  archive_cmds_need_lc=yes
        fi
        allow_undefined_flag=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
      ;;
    esac
  fi
  ;;
esac

{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" || \
   test -n "$runpath_var" || \
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
echo "${ECHO_T}$hardcode_action" >&6; }

if test "$hardcode_action" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

striplib=
old_striplib=
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
       else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
       ;;
   *)
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
    ;;
  esac
fi

if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
   ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
   ;;

  darwin*)
  # if libdl is installed we need to link against it
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dl_dlopen=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

   ;;

  *)
    { echo "$as_me:$LINENO: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
if test "${ac_cv_func_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define shl_load innocuous_shl_load

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef shl_load

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_shl_load || defined __stub___shl_load
choke me
#endif

int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_shl_load=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
if test $ac_cv_func_shl_load = yes; then
  lt_cv_dlopen="shl_load"
else
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dld_shl_load=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
if test $ac_cv_lib_dld_shl_load = yes; then
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
else
  { echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
if test "${ac_cv_func_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dlopen innocuous_dlopen

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dlopen

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_dlopen || defined __stub___dlopen
choke me
#endif

int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_dlopen=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
if test $ac_cv_func_dlopen = yes; then
  lt_cv_dlopen="dlopen"
else
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dl_dlopen=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_svld_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_svld_dlopen=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
if test $ac_cv_lib_svld_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_dld_link=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dld_dld_link=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
if test $ac_cv_lib_dld_dld_link = yes; then
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
if test "${lt_cv_dlopen_self+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 12283 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
if test "${lt_cv_dlopen_self_static+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 12383 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi


# Report which library types will actually be built
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6; }

{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
test "$can_build_shared" = "no" && enable_shared=no

# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case $host_os in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;

aix4* | aix5*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
  fi
    ;;
esac
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6; }

{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
{ echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6; }

# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler \
    CC \
    LD \
    lt_prog_compiler_wl \
    lt_prog_compiler_pic \
    lt_prog_compiler_static \
    lt_prog_compiler_no_builtin_flag \
    export_dynamic_flag_spec \
    thread_safe_flag_spec \
    whole_archive_flag_spec \
    enable_shared_with_static_runtimes \
    old_archive_cmds \
    old_archive_from_new_cmds \
    predep_objects \
    postdep_objects \
    predeps \
    postdeps \
    compiler_lib_search_path \
    archive_cmds \
    archive_expsym_cmds \
    postinstall_cmds \
    postuninstall_cmds \
    old_archive_from_expsyms_cmds \
    allow_undefined_flag \
    no_undefined_flag \
    export_symbols_cmds \
    hardcode_libdir_flag_spec \
    hardcode_libdir_flag_spec_ld \
    hardcode_libdir_separator \
    hardcode_automatic \
    module_cmds \
    module_expsym_cmds \
    lt_cv_prog_compiler_c_o \
    exclude_expsyms \
    include_expsyms; do

    case $var in
    old_archive_cmds | \
    old_archive_from_new_cmds | \
    archive_cmds | \
    archive_expsym_cmds | \
    module_cmds | \
    module_expsym_cmds | \
    old_archive_from_expsyms_cmds | \
    export_symbols_cmds | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="${ofile}T"
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  $rm -f "$cfgfile"
  { echo "$as_me:$LINENO: creating $ofile" >&5
echo "$as_me: creating $ofile" >&6;}

  cat <<__EOF__ >> "$cfgfile"
#! $SHELL

# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
#
# This file is part of GNU Libtool:
# Originally by Gordon Matzigkeit <gord@@gnu.ai.mit.edu>, 1996
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.

# A sed program that does not truncate output.
SED=$lt_SED

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="$SED -e 1s/^X//"

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

# The names of the tagged configurations supported by this script.
available_tags=

# ### BEGIN LIBTOOL CONFIG

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler

# Is the compiler the GNU C compiler?
with_gcc=$GCC

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# ### END LIBTOOL CONFIG

__EOF__


  case $host_os in
  aix3*)
    cat <<\EOF >> "$cfgfile"

# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
EOF
    ;;
  esac

  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)

  mv -f "$cfgfile" "$ofile" || \
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"

else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"


# Check whether --with-tags was given.
if test "${with_tags+set}" = set; then
  withval=$with_tags; tagnames="$withval"
fi


if test -f "$ltmain" && test -n "$tagnames"; then
  if test ! -f "${ofile}"; then
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  fi

  if test -z "$LTCC"; then
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
    if test -z "$LTCC"; then
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
    else
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
    fi
  fi
  if test -z "$LTCFLAGS"; then
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  fi

  # Extract list of available tagged configurations in $ofile.
  # Note that this assumes the entire list is on one line.
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`

  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  for tagname in $tagnames; do
    IFS="$lt_save_ifs"
    # Check whether tagname contains only valid characters
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
    "") ;;
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
echo "$as_me: error: invalid tag name: $tagname" >&2;}
   { (exit 1); exit 1; }; }
	;;
    esac

    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
    then
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Update the list of available tags.
    if test -n "$tagname"; then
      echo appending configuration tag \"$tagname\" to $ofile

      case $tagname in
      CXX)
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
	    (test "X$CXX" != "Xg++"))) ; then
	  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu




archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_shlibpath_var_CXX=unsupported
hardcode_automatic_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;\n"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC=$CC
lt_save_LD=$LD
lt_save_GCC=$GCC
GCC=$GXX
lt_save_with_gnu_ld=$with_gnu_ld
lt_save_path_LD=$lt_cv_path_LD
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
else
  $as_unset lt_cv_prog_gnu_ld
fi
if test -n "${lt_cv_path_LDCXX+set}"; then
  lt_cv_path_LD=$lt_cv_path_LDCXX
else
  $as_unset lt_cv_path_LD
fi
test -z "${LDCXX+set}" || LD=$LDCXX
CC=${CXX-"c++"}
compiler=$CC
compiler_CXX=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


# We don't want -fno-exception wen compiling C++ code, so set the
# no_builtin_flag separately
if test "$GXX" = yes; then
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
else
  lt_prog_compiler_no_builtin_flag_CXX=
fi

if test "$GXX" = yes; then
  # Set up default GNU C++ configuration


# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
else
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
fi
if test "${lt_cv_path_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { echo "$as_me:$LINENO: result: $LD" >&5
echo "${ECHO_T}$LD" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
if test "${lt_cv_prog_gnu_ld+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld



  # Check if GNU C++ uses GNU ld as the underlying linker, since the
  # archiving commands below assume that GNU ld is being used.
  if test "$with_gnu_ld" = yes; then
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

    # If archive_cmds runs LD, not CC, wlarc should be empty
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
    #     investigate it a little bit more. (MM)
    wlarc='${wl}'

    # ancient GNU ld didn't support --whole-archive et. al.
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
	grep 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec_CXX=
    fi
  else
    with_gnu_ld=no
    wlarc=

    # A generic and very simple default shared library creation
    # command for GNU C++ for the case where it uses the native
    # linker, instead of GNU ld.  If possible, this setting should
    # overridden to take advantage of the native linker features on
    # the platform it is being used on.
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  fi

  # Commands to make compiler produce verbose output that lists
  # what "hidden" libraries, object files and flags are used when
  # linking a shared library.
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'

else
  GXX=no
  with_gnu_ld=no
  wlarc=
fi

# PORTME: fill in a description of your system's C++ link characteristics
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
ld_shlibs_CXX=yes
case $host_os in
  aix3*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  aix4* | aix5*)
    if test "$host_cpu" = ia64; then
      # On IA64, the linker does run time linking by default, so we don't
      # have to do anything special.
      aix_use_runtimelinking=no
      exp_sym_flag='-Bexport'
      no_entry_flag=""
    else
      aix_use_runtimelinking=no

      # Test if we are trying to use run time linking or normal
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
      # need to do runtime linking.
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	for ld_flag in $LDFLAGS; do
	  case $ld_flag in
	  *-brtl*)
	    aix_use_runtimelinking=yes
	    break
	    ;;
	  esac
	done
	;;
      esac

      exp_sym_flag='-bexport'
      no_entry_flag='-bnoentry'
    fi

    # When large executables or shared objects are built, AIX ld can
    # have problems creating the table of contents.  If linking a library
    # or program results in "error TOC overflow" add -mminimal-toc to
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

    archive_cmds_CXX=''
    hardcode_direct_CXX=yes
    hardcode_libdir_separator_CXX=':'
    link_all_deplibs_CXX=yes

    if test "$GXX" = yes; then
      case $host_os in aix4.[012]|aix4.[012].*)
      # We only want to do this on AIX 4.2 and lower, the check
      # below for broken collect2 doesn't work under 4.3+
	collect2name=`${CC} -print-prog-name=collect2`
	if test -f "$collect2name" && \
	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	then
	  # We have reworked collect2
	  hardcode_direct_CXX=yes
	else
	  # We have old collect2
	  hardcode_direct_CXX=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L_CXX=yes
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
	  hardcode_libdir_separator_CXX=
	fi
	;;
      esac
      shared_flag='-shared'
      if test "$aix_use_runtimelinking" = yes; then
	shared_flag="$shared_flag "'${wl}-G'
      fi
    else
      # not using gcc
      if test "$host_cpu" = ia64; then
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
	shared_flag='-G'
      else
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag='${wl}-G'
	else
	  shared_flag='${wl}-bM:SRE'
	fi
      fi
    fi

    # It seems that -bexpall does not export symbols beginning with
    # underscore (_), so it is better to generate a list of symbols to export.
    always_export_symbols_CXX=yes
    if test "$aix_use_runtimelinking" = yes; then
      # Warning - without using the other runtime loading flags (-brtl),
      # -berok will link without error, but may produce a broken library.
      allow_undefined_flag_CXX='-berok'
      # Determine the default libpath from the value encoded in an empty executable.
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     else
      if test "$host_cpu" = ia64; then
	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	allow_undefined_flag_CXX="-z nodefs"
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
      else
	# Determine the default libpath from the value encoded in an empty executable.
	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	# Warning - without using the other run time loading flags,
	# -berok will link without error, but may produce a broken library.
	no_undefined_flag_CXX=' ${wl}-bernotok'
	allow_undefined_flag_CXX=' ${wl}-berok'
	# Exported symbols can be pulled into shared objects from archives
	whole_archive_flag_spec_CXX='$convenience'
	archive_cmds_need_lc_CXX=yes
	# This is similar to how AIX traditionally builds its shared libraries.
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
      fi
    fi
    ;;

  beos*)
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
      allow_undefined_flag_CXX=unsupported
      # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
      # support --undefined.  This deserves some investigation.  FIXME
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    else
      ld_shlibs_CXX=no
    fi
    ;;

  chorus*)
    case $cc_basename in
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;

  cygwin* | mingw* | pw32*)
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
    # as there is no search path for DLLs.
    hardcode_libdir_flag_spec_CXX='-L$libdir'
    allow_undefined_flag_CXX=unsupported
    always_export_symbols_CXX=no
    enable_shared_with_static_runtimes_CXX=yes

    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      # If the export-symbols file already is a .def file (1st line
      # is EXPORTS), use it as is; otherwise, prepend...
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	cp $export_symbols $output_objdir/$soname.def;
      else
	echo EXPORTS > $output_objdir/$soname.def;
	cat $export_symbols >> $output_objdir/$soname.def;
      fi~
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    else
      ld_shlibs_CXX=no
    fi
  ;;
      darwin* | rhapsody*)
        case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
        esac
      archive_cmds_need_lc_CXX=no
      hardcode_direct_CXX=no
      hardcode_automatic_CXX=yes
      hardcode_shlibpath_var_CXX=unsupported
      whole_archive_flag_spec_CXX=''
      link_all_deplibs_CXX=yes

    if test "$GXX" = yes ; then
      lt_int_apple_cc_single_mod=no
      output_verbose_link_cmd='echo'
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
       lt_int_apple_cc_single_mod=yes
      fi
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      else
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
        fi
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          else
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          fi
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_CXX=no
          ;;
      esac
      fi
        ;;

  dgux*)
    case $cc_basename in
      ec++*)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      ghcx*)
	# Green Hills C++ Compiler
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  freebsd[12]*)
    # C++ shared libraries reported to be fairly broken before switch to ELF
    ld_shlibs_CXX=no
    ;;
  freebsd-elf*)
    archive_cmds_need_lc_CXX=no
    ;;
  freebsd* | kfreebsd*-gnu | dragonfly*)
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
    # conventions
    ld_shlibs_CXX=yes
    ;;
  gnu*)
    ;;
  hpux9*)
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
    hardcode_libdir_separator_CXX=:
    export_dynamic_flag_spec_CXX='${wl}-E'
    hardcode_direct_CXX=yes
    hardcode_minus_L_CXX=yes # Not in the search PATH,
				# but as the default
				# location of the library.

    case $cc_basename in
    CC*)
      # FIXME: insert proper C++ library support
      ld_shlibs_CXX=no
      ;;
    aCC*)
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      #
      # There doesn't appear to be a way to prevent this compiler from
      # explicitly linking system object files so we need to strip them
      # from the output so that they don't get included in the library
      # dependencies.
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
      ;;
    *)
      if test "$GXX" = yes; then
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
      fi
      ;;
    esac
    ;;
  hpux10*|hpux11*)
    if test $with_gnu_ld = no; then
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_CXX=:

      case $host_cpu in
      hppa*64*|ia64*)
	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
        ;;
      *)
	export_dynamic_flag_spec_CXX='${wl}-E'
        ;;
      esac
    fi
    case $host_cpu in
    hppa*64*|ia64*)
      hardcode_direct_CXX=no
      hardcode_shlibpath_var_CXX=no
      ;;
    *)
      hardcode_direct_CXX=yes
      hardcode_minus_L_CXX=yes # Not in the search PATH,
					      # but as the default
					      # location of the library.
      ;;
    esac

    case $cc_basename in
      CC*)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      aCC*)
	case $host_cpu in
	hppa*64*)
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	  ;;
	*)
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	  ;;
	esac
	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
      *)
	if test "$GXX" = yes; then
	  if test $with_gnu_ld = no; then
	    case $host_cpu in
	    hppa*64*)
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      ;;
	    ia64*)
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      ;;
	    *)
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      ;;
	    esac
	  fi
	else
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	fi
	;;
    esac
    ;;
  interix3*)
    hardcode_direct_CXX=no
    hardcode_shlibpath_var_CXX=no
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    export_dynamic_flag_spec_CXX='${wl}-E'
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
    # Instead, shared libraries are loaded at an image base (0x10000000 by
    # default) and relocated if they conflict, which is a slow very memory
    # consuming and fragmenting process.  To avoid this, we pick a random,
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
    ;;
  irix5* | irix6*)
    case $cc_basename in
      CC*)
	# SGI C++
	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'

	# Archives containing C++ object files must be created using
	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	# necessary to make sure instantiated templates are included
	# in the archive.
	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	;;
      *)
	if test "$GXX" = yes; then
	  if test "$with_gnu_ld" = no; then
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	  else
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
	  fi
	fi
	link_all_deplibs_CXX=yes
	;;
    esac
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator_CXX=:
    ;;
  linux*)
    case $cc_basename in
      KCC*)
	# Kuck and Associates, Inc. (KAI) C++ Compiler

	# KCC will only create a shared library if the output file
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
	# to its proper name (with version) after linking.
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'

	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	# Archives containing C++ object files must be created using
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	;;
      icpc*)
	# Intel C++
	with_gnu_ld=yes
	# version 8.0 and above of icpc choke on multiply defined symbols
	# if we add $predep_objects and $postdep_objects, however 7.1 and
	# earlier do not add the objects themselves.
	case `$CC -V 2>&1` in
	*"Version 7."*)
  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  ;;
	*)  # Version 8.0 or newer
	  tmp_idyn=
	  case $host_cpu in
	    ia64*) tmp_idyn=' -i_dynamic';;
	  esac
  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  ;;
	esac
	archive_cmds_need_lc_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	;;
      pgCC*)
        # Portland Group C++ compiler
	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'

	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
        ;;
      cxx*)
	# Compaq C++
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	runpath_var=LD_RUN_PATH
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	hardcode_libdir_separator_CXX=:

	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
    esac
    ;;
  lynxos*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  m88k*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  mvs*)
    case $cc_basename in
      cxx*)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  netbsd*)
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
      wlarc=
      hardcode_libdir_flag_spec_CXX='-R$libdir'
      hardcode_direct_CXX=yes
      hardcode_shlibpath_var_CXX=no
    fi
    # Workaround some broken pre-1.5 toolchains
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
    ;;
  openbsd2*)
    # C++ shared libraries are fairly broken
    ld_shlibs_CXX=no
    ;;
  openbsd*)
    hardcode_direct_CXX=yes
    hardcode_shlibpath_var_CXX=no
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
      export_dynamic_flag_spec_CXX='${wl}-E'
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    fi
    output_verbose_link_cmd='echo'
    ;;
  osf3*)
    case $cc_basename in
      KCC*)
	# Kuck and Associates, Inc. (KAI) C++ Compiler

	# KCC will only create a shared library if the output file
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
	# to its proper name (with version) after linking.
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	hardcode_libdir_separator_CXX=:

	# Archives containing C++ object files must be created using
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'

	;;
      RCC*)
	# Rational C++ 2.4.1
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      cxx*)
	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'

	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	hardcode_libdir_separator_CXX=:

	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
      *)
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'

	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

	  # Commands to make compiler produce verbose output that lists
	  # what "hidden" libraries, object files and flags are used when
	  # linking a shared library.
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'

	else
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	fi
	;;
    esac
    ;;
  osf4* | osf5*)
    case $cc_basename in
      KCC*)
	# Kuck and Associates, Inc. (KAI) C++ Compiler

	# KCC will only create a shared library if the output file
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
	# to its proper name (with version) after linking.
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	hardcode_libdir_separator_CXX=:

	# Archives containing C++ object files must be created using
	# the KAI C++ compiler.
	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
	;;
      RCC*)
	# Rational C++ 2.4.1
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      cxx*)
	allow_undefined_flag_CXX=' -expect_unresolved \*'
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	  echo "-hidden">> $lib.exp~
	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
	  $rm $lib.exp'

	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	hardcode_libdir_separator_CXX=:

	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
      *)
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'

	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

	  # Commands to make compiler produce verbose output that lists
	  # what "hidden" libraries, object files and flags are used when
	  # linking a shared library.
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'

	else
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	fi
	;;
    esac
    ;;
  psos*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  sunos4*)
    case $cc_basename in
      CC*)
	# Sun C++ 4.x
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      lcc*)
	# Lucid
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  solaris*)
    case $cc_basename in
      CC*)
	# Sun C++ 4.2, 5.x and Centerline C++
        archive_cmds_need_lc_CXX=yes
	no_undefined_flag_CXX=' -zdefs'
	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'

	hardcode_libdir_flag_spec_CXX='-R$libdir'
	hardcode_shlibpath_var_CXX=no
	case $host_os in
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
	  *)
	    # The C++ compiler is used as linker so we must use $wl
	    # flag to pass the commands to the underlying system
	    # linker. We must also pass each convience library through
	    # to the system linker between allextract/defaultextract.
	    # The C++ compiler will combine linker options so we
	    # cannot just pass the convience library names through
	    # without $wl.
	    # Supported since Solaris 2.6 (maybe 2.5.1?)
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
	    ;;
	esac
	link_all_deplibs_CXX=yes

	output_verbose_link_cmd='echo'

	# Archives containing C++ object files must be created using
	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
	# necessary to make sure instantiated templates are included
	# in the archive.
	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	;;
      gcx*)
	# Green Hills C++ Compiler
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	# The C++ compiler must be used to create the archive.
	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	;;
      *)
	# GNU C++ compiler with Solaris linker
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	  if $CC --version | grep -v '^2\.7' > /dev/null; then
	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
	  else
	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
	    # platform.
	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
	  fi

	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	fi
	;;
    esac
    ;;
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
    no_undefined_flag_CXX='${wl}-z,text'
    archive_cmds_need_lc_CXX=no
    hardcode_shlibpath_var_CXX=no
    runpath_var='LD_RUN_PATH'

    case $cc_basename in
      CC*)
	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
      *)
	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
    esac
    ;;
  sysv5* | sco3.2v5* | sco5v6*)
    # Note: We can NOT use -z defs as we might desire, because we do not
    # link with -lc, and that would cause any symbols used from libc to
    # always be unresolved, which means just about no library would
    # ever link correctly.  If we're not using GNU ld we use -z text
    # though, which does catch some bad symbols but isn't as heavy-handed
    # as -z defs.
    # For security reasons, it is highly recommended that you always
    # use absolute paths for naming shared libraries, and exclude the
    # DT_RUNPATH tag from executables and libraries.  But doing so
    # requires that you compile everything twice, which is a pain.
    # So that behaviour is only enabled if SCOABSPATH is set to a
    # non-empty value in the environment.  Most likely only useful for
    # creating official distributions of packages.
    # This is a hack until libtool officially supports absolute path
    # names for shared libraries.
    no_undefined_flag_CXX='${wl}-z,text'
    allow_undefined_flag_CXX='${wl}-z,nodefs'
    archive_cmds_need_lc_CXX=no
    hardcode_shlibpath_var_CXX=no
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
    hardcode_libdir_separator_CXX=':'
    link_all_deplibs_CXX=yes
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
    runpath_var='LD_RUN_PATH'

    case $cc_basename in
      CC*)
	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
      *)
	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
    esac
    ;;
  tandem*)
    case $cc_basename in
      NCC*)
	# NonStop-UX NCC 3.20
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  vxworks*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  *)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
esac
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

GCC_CXX="$GXX"
LD_CXX="$LD"

## CAVEAT EMPTOR:
## There is no encapsulation within the following macros, do not change
## the running order or otherwise move them around unless you know exactly
## what you are doing...

cat > conftest.$ac_ext <<EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
EOF

if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  # The `*' in the case matches for architectures that use `case' in
  # $output_verbose_cmd can trigger glob expansion during the loop
  # eval without this substitution.
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`

  for p in `eval $output_verbose_link_cmd`; do
    case $p in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" \
	  || test $p = "-R"; then
	 prev=$p
	 continue
       else
	 prev=
       fi

       if test "$pre_test_object_deps_done" = no; then
	 case $p in
	 -L* | -R*)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       ;;

    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$rm -f confest.$objext

# PORTME: override above test on systems where it is broken
case $host_os in
interix3*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

solaris*)
  case $cc_basename in
  CC*)
    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    postdeps_CXX='-lCstd -lCrun'
    ;;
  esac
  ;;
esac


case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac

lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=

{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }

  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;
    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
      ;;
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | os2* | pw32*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix4* | aix5*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68*)
	  # Green Hills C++ Compiler
	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
       darwin*)
         # PIC is the default on this platform
         # Common symbols not allowed in MH_DYLIB files
         case $cc_basename in
           xlc*)
           lt_prog_compiler_pic_CXX='-qnocommon'
           lt_prog_compiler_wl_CXX='-Wl,'
           ;;
         esac
       ;;
      dgux*)
	case $cc_basename in
	  ec++*)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | kfreebsd*-gnu | dragonfly*)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux*)
	case $cc_basename in
	  KCC*)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  icpc* | ecpc*)
	    # Intel C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  pgCC*)
	    # Portland Group C++ compiler.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC*)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC*)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx*)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      solaris*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc*)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then

{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_CXX=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:14755: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:14759: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }

if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac

#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_prog_compiler_static_works_CXX=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:14859: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:14863: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  case $host_os in
  aix4* | aix5*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
  ;;
  cygwin* | mingw*)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  ;;
  esac

{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_CXX
	pic_flag=$lt_prog_compiler_pic_CXX
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
        allow_undefined_flag_CXX=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc_CXX=no
        else
	  archive_cmds_need_lc_CXX=yes
        fi
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
      ;;
    esac
  fi
  ;;
esac

{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" || \
   test -n "$runpath_var_CXX" || \
   test "X$hardcode_automatic_CXX" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
echo "${ECHO_T}$hardcode_action_CXX" >&6; }

if test "$hardcode_action_CXX" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi


# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_CXX \
    CC_CXX \
    LD_CXX \
    lt_prog_compiler_wl_CXX \
    lt_prog_compiler_pic_CXX \
    lt_prog_compiler_static_CXX \
    lt_prog_compiler_no_builtin_flag_CXX \
    export_dynamic_flag_spec_CXX \
    thread_safe_flag_spec_CXX \
    whole_archive_flag_spec_CXX \
    enable_shared_with_static_runtimes_CXX \
    old_archive_cmds_CXX \
    old_archive_from_new_cmds_CXX \
    predep_objects_CXX \
    postdep_objects_CXX \
    predeps_CXX \
    postdeps_CXX \
    compiler_lib_search_path_CXX \
    archive_cmds_CXX \
    archive_expsym_cmds_CXX \
    postinstall_cmds_CXX \
    postuninstall_cmds_CXX \
    old_archive_from_expsyms_cmds_CXX \
    allow_undefined_flag_CXX \
    no_undefined_flag_CXX \
    export_symbols_cmds_CXX \
    hardcode_libdir_flag_spec_CXX \
    hardcode_libdir_flag_spec_ld_CXX \
    hardcode_libdir_separator_CXX \
    hardcode_automatic_CXX \
    module_cmds_CXX \
    module_expsym_cmds_CXX \
    lt_cv_prog_compiler_c_o_CXX \
    exclude_expsyms_CXX \
    include_expsyms_CXX; do

    case $var in
    old_archive_cmds_CXX | \
    old_archive_from_new_cmds_CXX | \
    archive_cmds_CXX | \
    archive_expsym_cmds_CXX | \
    module_cmds_CXX | \
    module_expsym_cmds_CXX | \
    old_archive_from_expsyms_cmds_CXX | \
    export_symbols_cmds_CXX | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU C compiler?
with_gcc=$GCC_CXX

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_CXX

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_CXX
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_CXX

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_CXX

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_CXX

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_CXX

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_CXX"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC=$lt_save_CC
LDCXX=$LD
LD=$lt_save_LD
GCC=$lt_save_GCC
with_gnu_ldcxx=$with_gnu_ld
with_gnu_ld=$lt_save_with_gnu_ld
lt_cv_path_LDCXX=$lt_cv_path_LD
lt_cv_path_LD=$lt_save_path_LD
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld

	else
	  tagname=""
	fi
	;;

      F77)
	if test -n "$F77" && test "X$F77" != "Xno"; then

ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu


archive_cmds_need_lc_F77=no
allow_undefined_flag_F77=
always_export_symbols_F77=no
archive_expsym_cmds_F77=
export_dynamic_flag_spec_F77=
hardcode_direct_F77=no
hardcode_libdir_flag_spec_F77=
hardcode_libdir_flag_spec_ld_F77=
hardcode_libdir_separator_F77=
hardcode_minus_L_F77=no
hardcode_automatic_F77=no
module_cmds_F77=
module_expsym_cmds_F77=
link_all_deplibs_F77=unknown
old_archive_cmds_F77=$old_archive_cmds
no_undefined_flag_F77=
whole_archive_flag_spec_F77=
enable_shared_with_static_runtimes_F77=no

# Source file extension for f77 test sources.
ac_ext=f

# Object file extension for compiled f77 test sources.
objext=o
objext_F77=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"

# Code to be used in simple link tests
lt_simple_link_test_code="      program t\n      end\n"

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${F77-"f77"}
compiler=$CC
compiler_F77=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6; }

{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
test "$can_build_shared" = "no" && enable_shared=no

# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case $host_os in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;
aix4* | aix5*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
  fi
  ;;
esac
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6; }

{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
{ echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6; }

GCC_F77="$G77"
LD_F77="$LD"

lt_prog_compiler_wl_F77=
lt_prog_compiler_pic_F77=
lt_prog_compiler_static_F77=

{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }

  if test "$GCC" = yes; then
    lt_prog_compiler_wl_F77='-Wl,'
    lt_prog_compiler_static_F77='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_F77='-Bstatic'
      fi
      ;;

    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
      ;;

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_F77='-fno-common'
      ;;

    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_F77=no
      enable_shared=no
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_F77=-Kconform_pic
      fi
      ;;

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_F77='-fPIC'
	;;
      esac
      ;;

    *)
      lt_prog_compiler_pic_F77='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_F77='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_F77='-Bstatic'
      else
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic_F77='-qnocommon'
         lt_prog_compiler_wl_F77='-Wl,'
         ;;
       esac
       ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_F77='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_F77='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_F77='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_F77='-non_shared'
      ;;

    newsos6)
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    linux*)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-KPIC'
	lt_prog_compiler_static_F77='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-fpic'
	lt_prog_compiler_static_F77='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl_F77='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_F77='-non_shared'
        ;;
      esac
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_F77='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_F77='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_F77='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_F77='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl_F77='-Qoption ld '
      lt_prog_compiler_pic_F77='-PIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_F77='-Kconform_pic'
	lt_prog_compiler_static_F77='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_can_build_shared_F77=no
      ;;

    uts4*)
      lt_prog_compiler_pic_F77='-pic'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared_F77=no
      ;;
    esac
  fi

{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_F77"; then

{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_F77=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:16429: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:16433: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works_F77=yes
     fi
   fi
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }

if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
    case $lt_prog_compiler_pic_F77 in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
     esac
else
    lt_prog_compiler_pic_F77=
     lt_prog_compiler_can_build_shared_F77=no
fi

fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_F77=
    ;;
  *)
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
    ;;
esac

#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_F77=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_F77=yes
       fi
     else
       lt_prog_compiler_static_works_F77=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }

if test x"$lt_prog_compiler_static_works_F77" = xyes; then
    :
else
    lt_prog_compiler_static_F77=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_F77=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:16533: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:16537: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_F77=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }

  runpath_var=
  allow_undefined_flag_F77=
  enable_shared_with_static_runtimes_F77=no
  archive_cmds_F77=
  archive_expsym_cmds_F77=
  old_archive_From_new_cmds_F77=
  old_archive_from_expsyms_cmds_F77=
  export_dynamic_flag_spec_F77=
  whole_archive_flag_spec_F77=
  thread_safe_flag_spec_F77=
  hardcode_libdir_flag_spec_F77=
  hardcode_libdir_flag_spec_ld_F77=
  hardcode_libdir_separator_F77=
  hardcode_direct_F77=no
  hardcode_minus_L_F77=no
  hardcode_shlibpath_var_F77=unsupported
  link_all_deplibs_F77=unknown
  hardcode_automatic_F77=no
  module_cmds_F77=
  module_expsym_cmds_F77=
  always_export_symbols_F77=no
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_F77=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs_F77=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_F77=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs_F77=no
	cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
      fi
      ;;

    amigaos*)
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes

      # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs_F77=no
      ;;

    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag_F77=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;

    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec_F77='-L$libdir'
      allow_undefined_flag_F77=unsupported
      always_export_symbols_F77=no
      enable_shared_with_static_runtimes_F77=yes
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;

    interix3*)
      hardcode_direct_F77=no
      hardcode_shlibpath_var_F77=no
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
      export_dynamic_flag_spec_F77='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs_F77=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs_F77=no
	cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs_F77=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs_F77=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;
    esac

    if test "$ld_shlibs_F77" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_F77=
      export_dynamic_flag_spec_F77=
      whole_archive_flag_spec_F77=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag_F77=unsupported
      always_export_symbols_F77=yes
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L_F77=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct_F77=unsupported
      fi
      ;;

    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds_F77=''
      hardcode_direct_F77=yes
      hardcode_libdir_separator_F77=':'
      link_all_deplibs_F77=yes

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct_F77=yes
	  else
  	  # We have old collect2
  	  hardcode_direct_F77=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L_F77=yes
  	  hardcode_libdir_flag_spec_F77='-L$libdir'
  	  hardcode_libdir_separator_F77=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols_F77=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag_F77='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag_F77="-z nodefs"
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag_F77=' ${wl}-bernotok'
	  allow_undefined_flag_F77=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec_F77='$convenience'
	  archive_cmds_need_lc_F77=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs_F77=no
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec_F77=-rdynamic
      ;;

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec_F77=' '
      allow_undefined_flag_F77=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds_F77='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes_F77=yes
      ;;

    darwin* | rhapsody*)
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
      esac
      archive_cmds_need_lc_F77=no
      hardcode_direct_F77=no
      hardcode_automatic_F77=yes
      hardcode_shlibpath_var_F77=unsupported
      whole_archive_flag_spec_F77=''
      link_all_deplibs_F77=yes
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_F77=no
          ;;
      esac
    fi
      ;;

    dgux*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_shlibpath_var_F77=no
      ;;

    freebsd1*)
      ld_shlibs_F77=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu | dragonfly*)
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      hardcode_direct_F77=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L_F77=yes
      export_dynamic_flag_spec_F77='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_F77=:

	hardcode_direct_F77=yes
	export_dynamic_flag_spec_F77='${wl}-E'

	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L_F77=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_F77=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
	  hardcode_direct_F77=no
	  hardcode_shlibpath_var_F77=no
	  ;;
	*)
	  hardcode_direct_F77=yes
	  export_dynamic_flag_spec_F77='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_F77=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      link_all_deplibs_F77=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    newsos6)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      hardcode_shlibpath_var_F77=no
      ;;

    openbsd*)
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_F77='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec_F77='-R$libdir'
	   ;;
	 *)
	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes
      allow_undefined_flag_F77=unsupported
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag_F77=' -expect_unresolved \*'
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag_F77=' -expect_unresolved \*'
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
      fi
      hardcode_libdir_separator_F77=:
      ;;

    solaris*)
      no_undefined_flag_F77=' -z text'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	wlarc=''
	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_shlibpath_var_F77=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
      esac
      link_all_deplibs_F77=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_F77=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds_F77='$CC -r -o $output$reload_objs'
	  hardcode_direct_F77=no
        ;;
	motorola)
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_F77=no
      ;;

    sysv4.3*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_F77=no
      export_dynamic_flag_spec_F77='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var_F77=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs_F77=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag_F77='${wl}-z,text'
      archive_cmds_need_lc_F77=no
      hardcode_shlibpath_var_F77=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag_F77='${wl}-z,text'
      allow_undefined_flag_F77='${wl}-z,nodefs'
      archive_cmds_need_lc_F77=no
      hardcode_shlibpath_var_F77=no
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator_F77=':'
      link_all_deplibs_F77=yes
      export_dynamic_flag_spec_F77='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_shlibpath_var_F77=no
      ;;

    *)
      ld_shlibs_F77=no
      ;;
    esac
  fi

{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
test "$ld_shlibs_F77" = no && can_build_shared=no

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_F77" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_F77=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_F77 in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_F77
	pic_flag=$lt_prog_compiler_pic_F77
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
        allow_undefined_flag_F77=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc_F77=no
        else
	  archive_cmds_need_lc_F77=yes
        fi
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
      ;;
    esac
  fi
  ;;
esac

{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
hardcode_action_F77=
if test -n "$hardcode_libdir_flag_spec_F77" || \
   test -n "$runpath_var_F77" || \
   test "X$hardcode_automatic_F77" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_F77" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
     test "$hardcode_minus_L_F77" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_F77=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_F77=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_F77=unsupported
fi
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
echo "${ECHO_T}$hardcode_action_F77" >&6; }

if test "$hardcode_action_F77" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi


# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_F77 \
    CC_F77 \
    LD_F77 \
    lt_prog_compiler_wl_F77 \
    lt_prog_compiler_pic_F77 \
    lt_prog_compiler_static_F77 \
    lt_prog_compiler_no_builtin_flag_F77 \
    export_dynamic_flag_spec_F77 \
    thread_safe_flag_spec_F77 \
    whole_archive_flag_spec_F77 \
    enable_shared_with_static_runtimes_F77 \
    old_archive_cmds_F77 \
    old_archive_from_new_cmds_F77 \
    predep_objects_F77 \
    postdep_objects_F77 \
    predeps_F77 \
    postdeps_F77 \
    compiler_lib_search_path_F77 \
    archive_cmds_F77 \
    archive_expsym_cmds_F77 \
    postinstall_cmds_F77 \
    postuninstall_cmds_F77 \
    old_archive_from_expsyms_cmds_F77 \
    allow_undefined_flag_F77 \
    no_undefined_flag_F77 \
    export_symbols_cmds_F77 \
    hardcode_libdir_flag_spec_F77 \
    hardcode_libdir_flag_spec_ld_F77 \
    hardcode_libdir_separator_F77 \
    hardcode_automatic_F77 \
    module_cmds_F77 \
    module_expsym_cmds_F77 \
    lt_cv_prog_compiler_c_o_F77 \
    exclude_expsyms_F77 \
    include_expsyms_F77; do

    case $var in
    old_archive_cmds_F77 | \
    old_archive_from_new_cmds_F77 | \
    archive_cmds_F77 | \
    archive_expsym_cmds_F77 | \
    module_cmds_F77 | \
    module_expsym_cmds_F77 | \
    old_archive_from_expsyms_cmds_F77 | \
    export_symbols_cmds_F77 | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_F77

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler_F77

# Is the compiler the GNU C compiler?
with_gcc=$GCC_F77

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_F77

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_F77

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_F77
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_F77

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_F77
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_F77
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_F77
module_expsym_cmds=$lt_module_expsym_cmds_F77

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_F77

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_F77

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_F77

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_F77

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_F77

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_F77

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_F77

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_F77

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_F77

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_F77

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_F77

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_F77

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_F77"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_F77

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_F77

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_F77

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_F77

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

	else
	  tagname=""
	fi
	;;

      GCJ)
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then


# Source file extension for Java test sources.
ac_ext=java

# Object file extension for compiled Java test sources.
objext=o
objext_GCJ=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="class foo {}\n"

# Code to be used in simple link tests
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${GCJ-"gcj"}
compiler=$CC
compiler_GCJ=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


# GCJ did not exist at the time GCC didn't implicitly link libc in.
archive_cmds_need_lc_GCJ=no

old_archive_cmds_GCJ=$old_archive_cmds

## CAVEAT EMPTOR:
## There is no encapsulation within the following macros, do not change
## the running order or otherwise move them around unless you know exactly
## what you are doing...

lt_prog_compiler_no_builtin_flag_GCJ=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'


{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:18767: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:18771: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
else
    :
fi

fi

lt_prog_compiler_wl_GCJ=
lt_prog_compiler_pic_GCJ=
lt_prog_compiler_static_GCJ=

{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }

  if test "$GCC" = yes; then
    lt_prog_compiler_wl_GCJ='-Wl,'
    lt_prog_compiler_static_GCJ='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_GCJ='-Bstatic'
      fi
      ;;

    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
      ;;

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_GCJ='-fno-common'
      ;;

    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_GCJ=no
      enable_shared=no
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_GCJ=-Kconform_pic
      fi
      ;;

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_GCJ='-fPIC'
	;;
      esac
      ;;

    *)
      lt_prog_compiler_pic_GCJ='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_GCJ='-Bstatic'
      else
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic_GCJ='-qnocommon'
         lt_prog_compiler_wl_GCJ='-Wl,'
         ;;
       esac
       ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_GCJ='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_GCJ='-non_shared'
      ;;

    newsos6)
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    linux*)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-KPIC'
	lt_prog_compiler_static_GCJ='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-fpic'
	lt_prog_compiler_static_GCJ='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl_GCJ='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_GCJ='-non_shared'
        ;;
      esac
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_GCJ='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_GCJ='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl_GCJ='-Qoption ld '
      lt_prog_compiler_pic_GCJ='-PIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_GCJ='-Kconform_pic'
	lt_prog_compiler_static_GCJ='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_can_build_shared_GCJ=no
      ;;

    uts4*)
      lt_prog_compiler_pic_GCJ='-pic'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared_GCJ=no
      ;;
    esac
  fi

{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_GCJ"; then

{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_GCJ=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:19035: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:19039: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works_GCJ=yes
     fi
   fi
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }

if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
    case $lt_prog_compiler_pic_GCJ in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
     esac
else
    lt_prog_compiler_pic_GCJ=
     lt_prog_compiler_can_build_shared_GCJ=no
fi

fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_GCJ=
    ;;
  *)
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
    ;;
esac

#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_GCJ=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_GCJ=yes
       fi
     else
       lt_prog_compiler_static_works_GCJ=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }

if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
    :
else
    lt_prog_compiler_static_GCJ=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_GCJ=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:19139: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:19143: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_GCJ=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }

  runpath_var=
  allow_undefined_flag_GCJ=
  enable_shared_with_static_runtimes_GCJ=no
  archive_cmds_GCJ=
  archive_expsym_cmds_GCJ=
  old_archive_From_new_cmds_GCJ=
  old_archive_from_expsyms_cmds_GCJ=
  export_dynamic_flag_spec_GCJ=
  whole_archive_flag_spec_GCJ=
  thread_safe_flag_spec_GCJ=
  hardcode_libdir_flag_spec_GCJ=
  hardcode_libdir_flag_spec_ld_GCJ=
  hardcode_libdir_separator_GCJ=
  hardcode_direct_GCJ=no
  hardcode_minus_L_GCJ=no
  hardcode_shlibpath_var_GCJ=unsupported
  link_all_deplibs_GCJ=unknown
  hardcode_automatic_GCJ=no
  module_cmds_GCJ=
  module_expsym_cmds_GCJ=
  always_export_symbols_GCJ=no
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_GCJ=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs_GCJ=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_GCJ=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs_GCJ=no
	cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
      fi
      ;;

    amigaos*)
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes

      # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs_GCJ=no
      ;;

    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag_GCJ=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      allow_undefined_flag_GCJ=unsupported
      always_export_symbols_GCJ=no
      enable_shared_with_static_runtimes_GCJ=yes
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    interix3*)
      hardcode_direct_GCJ=no
      hardcode_shlibpath_var_GCJ=no
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
      export_dynamic_flag_spec_GCJ='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs_GCJ=no
	cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs_GCJ=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs_GCJ=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;
    esac

    if test "$ld_shlibs_GCJ" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_GCJ=
      export_dynamic_flag_spec_GCJ=
      whole_archive_flag_spec_GCJ=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag_GCJ=unsupported
      always_export_symbols_GCJ=yes
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L_GCJ=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct_GCJ=unsupported
      fi
      ;;

    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds_GCJ=''
      hardcode_direct_GCJ=yes
      hardcode_libdir_separator_GCJ=':'
      link_all_deplibs_GCJ=yes

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct_GCJ=yes
	  else
  	  # We have old collect2
  	  hardcode_direct_GCJ=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L_GCJ=yes
  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
  	  hardcode_libdir_separator_GCJ=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols_GCJ=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag_GCJ='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag_GCJ="-z nodefs"
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag_GCJ=' ${wl}-bernotok'
	  allow_undefined_flag_GCJ=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec_GCJ='$convenience'
	  archive_cmds_need_lc_GCJ=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs_GCJ=no
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec_GCJ=-rdynamic
      ;;

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec_GCJ=' '
      allow_undefined_flag_GCJ=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds_GCJ='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes_GCJ=yes
      ;;

    darwin* | rhapsody*)
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
      esac
      archive_cmds_need_lc_GCJ=no
      hardcode_direct_GCJ=no
      hardcode_automatic_GCJ=yes
      hardcode_shlibpath_var_GCJ=unsupported
      whole_archive_flag_spec_GCJ=''
      link_all_deplibs_GCJ=yes
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_GCJ=no
          ;;
      esac
    fi
      ;;

    dgux*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_shlibpath_var_GCJ=no
      ;;

    freebsd1*)
      ld_shlibs_GCJ=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_GCJ=yes
      hardcode_minus_L_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu | dragonfly*)
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      hardcode_direct_GCJ=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L_GCJ=yes
      export_dynamic_flag_spec_GCJ='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_GCJ=:

	hardcode_direct_GCJ=yes
	export_dynamic_flag_spec_GCJ='${wl}-E'

	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L_GCJ=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_GCJ=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
	  hardcode_direct_GCJ=no
	  hardcode_shlibpath_var_GCJ=no
	  ;;
	*)
	  hardcode_direct_GCJ=yes
	  export_dynamic_flag_spec_GCJ='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_GCJ=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      link_all_deplibs_GCJ=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    newsos6)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_GCJ=yes
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      hardcode_shlibpath_var_GCJ=no
      ;;

    openbsd*)
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_GCJ='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
	   ;;
	 *)
	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes
      allow_undefined_flag_GCJ=unsupported
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
      fi
      hardcode_libdir_separator_GCJ=:
      ;;

    solaris*)
      no_undefined_flag_GCJ=' -z text'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	wlarc=''
	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_shlibpath_var_GCJ=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
      esac
      link_all_deplibs_GCJ=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_direct_GCJ=yes
      hardcode_minus_L_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_GCJ=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
	  hardcode_direct_GCJ=no
        ;;
	motorola)
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_GCJ=no
      ;;

    sysv4.3*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_GCJ=no
      export_dynamic_flag_spec_GCJ='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var_GCJ=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs_GCJ=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag_GCJ='${wl}-z,text'
      archive_cmds_need_lc_GCJ=no
      hardcode_shlibpath_var_GCJ=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag_GCJ='${wl}-z,text'
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
      archive_cmds_need_lc_GCJ=no
      hardcode_shlibpath_var_GCJ=no
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator_GCJ=':'
      link_all_deplibs_GCJ=yes
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_shlibpath_var_GCJ=no
      ;;

    *)
      ld_shlibs_GCJ=no
      ;;
    esac
  fi

{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
test "$ld_shlibs_GCJ" = no && can_build_shared=no

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_GCJ" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_GCJ=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_GCJ in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_GCJ
	pic_flag=$lt_prog_compiler_pic_GCJ
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
        allow_undefined_flag_GCJ=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc_GCJ=no
        else
	  archive_cmds_need_lc_GCJ=yes
        fi
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
      ;;
    esac
  fi
  ;;
esac

{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
hardcode_action_GCJ=
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
   test -n "$runpath_var_GCJ" || \
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_GCJ" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
     test "$hardcode_minus_L_GCJ" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_GCJ=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_GCJ=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_GCJ=unsupported
fi
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }

if test "$hardcode_action_GCJ" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi


# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_GCJ \
    CC_GCJ \
    LD_GCJ \
    lt_prog_compiler_wl_GCJ \
    lt_prog_compiler_pic_GCJ \
    lt_prog_compiler_static_GCJ \
    lt_prog_compiler_no_builtin_flag_GCJ \
    export_dynamic_flag_spec_GCJ \
    thread_safe_flag_spec_GCJ \
    whole_archive_flag_spec_GCJ \
    enable_shared_with_static_runtimes_GCJ \
    old_archive_cmds_GCJ \
    old_archive_from_new_cmds_GCJ \
    predep_objects_GCJ \
    postdep_objects_GCJ \
    predeps_GCJ \
    postdeps_GCJ \
    compiler_lib_search_path_GCJ \
    archive_cmds_GCJ \
    archive_expsym_cmds_GCJ \
    postinstall_cmds_GCJ \
    postuninstall_cmds_GCJ \
    old_archive_from_expsyms_cmds_GCJ \
    allow_undefined_flag_GCJ \
    no_undefined_flag_GCJ \
    export_symbols_cmds_GCJ \
    hardcode_libdir_flag_spec_GCJ \
    hardcode_libdir_flag_spec_ld_GCJ \
    hardcode_libdir_separator_GCJ \
    hardcode_automatic_GCJ \
    module_cmds_GCJ \
    module_expsym_cmds_GCJ \
    lt_cv_prog_compiler_c_o_GCJ \
    exclude_expsyms_GCJ \
    include_expsyms_GCJ; do

    case $var in
    old_archive_cmds_GCJ | \
    old_archive_from_new_cmds_GCJ | \
    archive_cmds_GCJ | \
    archive_expsym_cmds_GCJ | \
    module_cmds_GCJ | \
    module_expsym_cmds_GCJ | \
    old_archive_from_expsyms_cmds_GCJ | \
    export_symbols_cmds_GCJ | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_GCJ

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler_GCJ

# Is the compiler the GNU C compiler?
with_gcc=$GCC_GCJ

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_GCJ

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_GCJ

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_GCJ
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_GCJ

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_GCJ
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_GCJ
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_GCJ
module_expsym_cmds=$lt_module_expsym_cmds_GCJ

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_GCJ

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_GCJ

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_GCJ

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_GCJ

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_GCJ

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_GCJ

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_GCJ

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_GCJ

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_GCJ

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_GCJ

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_GCJ

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_GCJ"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_GCJ

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_GCJ

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_GCJ

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_GCJ

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

	else
	  tagname=""
	fi
	;;

      RC)


# Source file extension for RC test sources.
ac_ext=rc

# Object file extension for compiled RC test sources.
objext=o
objext_RC=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'

# Code to be used in simple link tests
lt_simple_link_test_code="$lt_simple_compile_test_code"

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${RC-"windres"}
compiler=$CC
compiler_RC=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

lt_cv_prog_compiler_c_o_RC=yes

# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_RC \
    CC_RC \
    LD_RC \
    lt_prog_compiler_wl_RC \
    lt_prog_compiler_pic_RC \
    lt_prog_compiler_static_RC \
    lt_prog_compiler_no_builtin_flag_RC \
    export_dynamic_flag_spec_RC \
    thread_safe_flag_spec_RC \
    whole_archive_flag_spec_RC \
    enable_shared_with_static_runtimes_RC \
    old_archive_cmds_RC \
    old_archive_from_new_cmds_RC \
    predep_objects_RC \
    postdep_objects_RC \
    predeps_RC \
    postdeps_RC \
    compiler_lib_search_path_RC \
    archive_cmds_RC \
    archive_expsym_cmds_RC \
    postinstall_cmds_RC \
    postuninstall_cmds_RC \
    old_archive_from_expsyms_cmds_RC \
    allow_undefined_flag_RC \
    no_undefined_flag_RC \
    export_symbols_cmds_RC \
    hardcode_libdir_flag_spec_RC \
    hardcode_libdir_flag_spec_ld_RC \
    hardcode_libdir_separator_RC \
    hardcode_automatic_RC \
    module_cmds_RC \
    module_expsym_cmds_RC \
    lt_cv_prog_compiler_c_o_RC \
    exclude_expsyms_RC \
    include_expsyms_RC; do

    case $var in
    old_archive_cmds_RC | \
    old_archive_from_new_cmds_RC | \
    archive_cmds_RC | \
    archive_expsym_cmds_RC | \
    module_cmds_RC | \
    module_expsym_cmds_RC | \
    old_archive_from_expsyms_cmds_RC | \
    export_symbols_cmds_RC | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_RC

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler_RC

# Is the compiler the GNU C compiler?
with_gcc=$GCC_RC

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_RC

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_RC

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_RC
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_RC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_RC
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_RC
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_RC
module_expsym_cmds=$lt_module_expsym_cmds_RC

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_RC

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_RC

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_RC

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_RC

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_RC

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_RC

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_RC

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_RC

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_RC

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_RC

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_RC

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_RC

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_RC"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_RC

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_RC

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_RC

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_RC

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

	;;

      *)
	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
   { (exit 1); exit 1; }; }
	;;
      esac

      # Append the new tag name to the list of available tags.
      if test -n "$tagname" ; then
      available_tags="$available_tags $tagname"
    fi
    fi
  done
  IFS="$lt_save_ifs"

  # Now substitute the updated list of available tags.
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
    mv "${ofile}T" "$ofile"
    chmod +x "$ofile"
  else
    rm -f "${ofile}T"
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
   { (exit 1); exit 1; }; }
  fi
fi



# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'

# Prevent multiple expansion





















SOFLAGS="-rpath \$(libdir)"
LIBTOOL_PROG="${SHELL} ./libtool"

# Set SOSUFFIX and friends

	{ echo "$as_me:$LINENO: checking SOSUFFIX from libtool" >&5
echo $ECHO_N "checking SOSUFFIX from libtool... $ECHO_C" >&6; }
	module=no

	versuffix=""
	release=""
	libname=libfoo
	eval _SOSUFFIX=\"$shrext_cmds\"
	if test "$_SOSUFFIX" = "" ; then
		_SOSUFFIX=".so"
		if test `$LIBTOOL_PROG --config | grep build_libtool_libs | grep no` 2>/dev/null; then
			if test "$_SOSUFFIX_MESSAGE" = ""; then
				_SOSUFFIX_MESSAGE=yes
        			{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
               			{ echo "$as_me:$LINENO: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&5
echo "$as_me: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&2;}
			fi
        	fi
        fi

        SOSUFFIX=$_SOSUFFIX
	{ echo "$as_me:$LINENO: result: $SOSUFFIX" >&5
echo "${ECHO_T}$SOSUFFIX" >&6; }



	{ echo "$as_me:$LINENO: checking MODSUFFIX from libtool" >&5
echo $ECHO_N "checking MODSUFFIX from libtool... $ECHO_C" >&6; }
	module=yes

	versuffix=""
	release=""
	libname=libfoo
	eval _SOSUFFIX=\"$shrext_cmds\"
	if test "$_SOSUFFIX" = "" ; then
		_SOSUFFIX=".so"
		if test `$LIBTOOL_PROG --config | grep build_libtool_libs | grep no` 2>/dev/null; then
			if test "$_SOSUFFIX_MESSAGE" = ""; then
				_SOSUFFIX_MESSAGE=yes
        			{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
               			{ echo "$as_me:$LINENO: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&5
echo "$as_me: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&2;}
			fi
        	fi
        fi

        MODSUFFIX=$_SOSUFFIX
	{ echo "$as_me:$LINENO: result: $MODSUFFIX" >&5
echo "${ECHO_T}$MODSUFFIX" >&6; }



	{ echo "$as_me:$LINENO: checking JMODSUFFIX from libtool" >&5
echo $ECHO_N "checking JMODSUFFIX from libtool... $ECHO_C" >&6; }
	module=yes

	versuffix=""
	release=""
	libname=libfoo
	eval _SOSUFFIX=\"$shrext_cmds\"
	if test "$_SOSUFFIX" = "" ; then
		_SOSUFFIX=".so"
		if test `$LIBTOOL_PROG --config | grep build_libtool_libs | grep no` 2>/dev/null; then
			if test "$_SOSUFFIX_MESSAGE" = ""; then
				_SOSUFFIX_MESSAGE=yes
        			{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
               			{ echo "$as_me:$LINENO: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&5
echo "$as_me: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&2;}
			fi
        	fi
        fi

	if test `uname` = "Darwin"; then
	    JMODSUFFIX=".jnilib"
	else
            JMODSUFFIX=$_SOSUFFIX
	fi
	{ echo "$as_me:$LINENO: result: $JMODSUFFIX" >&5
echo "${ECHO_T}$JMODSUFFIX" >&6; }



INSTALLER="\$(LIBTOOL) --mode=install cp -p"

MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}"
MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version"
MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}"
MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}"
MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}"

LIBTOOL="\$(SHELL) ./libtool"

case "$host_os" in
cygwin* | mingw*)
	MAKEFILE_SOLINK="$MAKEFILE_SOLINK -no-undefined"
	MAKEFILE_XSOLINK="$MAKEFILE_XSOLINK -no-undefined";;
esac

# Configure for shared libraries, static libraries, or both.  If both are
# configured, build the utilities and example programs with shared versions.
#
# $o is set to ".o" or ".lo", and is the file suffix used in the Makefile
# instead of .o
if test `$LIBTOOL_PROG --config |
    grep build_libtool_libs | grep no` 2>/dev/null; then
	enable_shared="no"
else
	enable_shared="yes"
fi
if test `$LIBTOOL_PROG --config |
    grep build_old_libs | grep no` 2>/dev/null; then
	enable_static="no"
else
	enable_static="yes"
fi

case "$host_os" in
    darwin*)
        LIBTSO_MODULE=""
        LIBTSO_MODSUFFIX=".dylib"
    ;;
    *)
        LIBTSO_MODULE="-module"
        LIBTSO_MODSUFFIX=$MODSUFFIX
    ;;
esac

# C API.
if test "$enable_shared" = "no"; then
	DEFAULT_LIB="\$(libdb_version)"
	POSTLINK=": "
	o=".o"
else
	DEFAULT_LIB="\$(libso_target)"
	POSTLINK="\$(LIBTOOL) --mode=execute true"
	o=".lo"
fi
INSTALL_LIBS="$DEFAULT_LIB"
if test "$enable_static" = "yes"; then
	INSTALL_LIBS="$INSTALL_LIBS \$(libdb)"
fi

# Optional C++ API.
if test "$db_cv_cxx" = "yes"; then
	if test "$enable_shared" = "no"; then
		DEFAULT_LIB_CXX="\$(libcxx_version)"
	fi
	if test "$enable_shared" = "yes"; then
		DEFAULT_LIB_CXX="\$(libxso_target)"
	fi
	INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_CXX"
	if test "$enable_static" = "yes"; then
		INSTALL_LIBS="$INSTALL_LIBS \$(libcxx)"
	fi
fi

# Optional Java API.
if test "$db_cv_java" = "yes"; then
	# Java requires shared libraries.
	if test "$enable_shared" = "no"; then
		{ { echo "$as_me:$LINENO: error: Java requires shared libraries" >&5
echo "$as_me: error: Java requires shared libraries" >&2;}
   { (exit 1); exit 1; }; }
	fi

        # A classpath that includes . is needed to check for Java
	CLASSPATH=".:$CLASSPATH"
	export CLASSPATH

if test "x$JAVAPREFIX" = x; then
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_JAVAC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$JAVAC"; then
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_JAVAC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
JAVAC=$ac_cv_prog_JAVAC
if test -n "$JAVAC"; then
  { echo "$as_me:$LINENO: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$JAVAC" && break
done

else
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_JAVAC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$JAVAC"; then
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_JAVAC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
JAVAC=$ac_cv_prog_JAVAC
if test -n "$JAVAC"; then
  { echo "$as_me:$LINENO: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$JAVAC" && break
done
test -n "$JAVAC" || JAVAC="$JAVAPREFIX"

fi
test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }

{ echo "$as_me:$LINENO: checking if $JAVAC works" >&5
echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6; }
if test "${ac_cv_prog_javac_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

JAVA_TEST=Test.java
CLASS_TEST=Test.class
cat << \EOF > $JAVA_TEST
/* #line 22113 "configure" */
public class Test {
}
EOF
if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } >/dev/null 2>&1; then
  ac_cv_prog_javac_works=yes
else
  { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
   { (exit 1); exit 1; }; }
  echo "configure: failed program was:" >&5
  cat $JAVA_TEST >&5
fi
rm -f $JAVA_TEST $CLASS_TEST

fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
echo "${ECHO_T}$ac_cv_prog_javac_works" >&6; }



if test "x$JAVAPREFIX" = x; then
        test "x$JAR" = x && for ac_prog in jar$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_JAR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$JAR"; then
  ac_cv_prog_JAR="$JAR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_JAR="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
JAR=$ac_cv_prog_JAR
if test -n "$JAR"; then
  { echo "$as_me:$LINENO: result: $JAR" >&5
echo "${ECHO_T}$JAR" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$JAR" && break
done

else
        test "x$JAR" = x && for ac_prog in jar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_JAR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$JAR"; then
  ac_cv_prog_JAR="$JAR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_JAR="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
JAR=$ac_cv_prog_JAR
if test -n "$JAR"; then
  { echo "$as_me:$LINENO: result: $JAR" >&5
echo "${ECHO_T}$JAR" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$JAR" && break
done
test -n "$JAR" || JAR="$JAVAPREFIX"

fi
test "x$JAR" = x && { { echo "$as_me:$LINENO: error: no acceptable jar program found in \$PATH" >&5
echo "$as_me: error: no acceptable jar program found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }


if test x$JAVAPREFIX = x; then
        test x$JAVA = x && for ac_prog in java$EXEEXT kaffe$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_JAVA+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$JAVA"; then
  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_JAVA="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
JAVA=$ac_cv_prog_JAVA
if test -n "$JAVA"; then
  { echo "$as_me:$LINENO: result: $JAVA" >&5
echo "${ECHO_T}$JAVA" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$JAVA" && break
done

else
        test x$JAVA = x && for ac_prog in java$EXEEXT kaffe$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_JAVA+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$JAVA"; then
  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_JAVA="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
JAVA=$ac_cv_prog_JAVA
if test -n "$JAVA"; then
  { echo "$as_me:$LINENO: result: $JAVA" >&5
echo "${ECHO_T}$JAVA" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$JAVA" && break
done
test -n "$JAVA" || JAVA="$JAVAPREFIX"

fi
test x$JAVA = x && { { echo "$as_me:$LINENO: error: no acceptable Java virtual machine found in \$PATH" >&5
echo "$as_me: error: no acceptable Java virtual machine found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }

# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
set dummy uudecode$EXEEXT; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_uudecode+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$uudecode"; then
  ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_uudecode="yes"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
uudecode=$ac_cv_prog_uudecode
if test -n "$uudecode"; then
  { echo "$as_me:$LINENO: result: $uudecode" >&5
echo "${ECHO_T}$uudecode" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


if test x$uudecode = xyes; then
{ echo "$as_me:$LINENO: checking if uudecode can decode base 64 file" >&5
echo $ECHO_N "checking if uudecode can decode base 64 file... $ECHO_C" >&6; }
if test "${ac_cv_prog_uudecode_base64+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat << \EOF > Test.uue
begin-base64 644 Test.class
yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
====
EOF
if uudecode$EXEEXT Test.uue; then
        ac_cv_prog_uudecode_base64=yes
else
        echo "configure: 22382: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
        echo "configure: failed file was:" >&5
        cat Test.uue >&5
        ac_cv_prog_uudecode_base64=no
fi
rm -f Test.uue
fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_uudecode_base64" >&5
echo "${ECHO_T}$ac_cv_prog_uudecode_base64" >&6; }
fi
if test x$ac_cv_prog_uudecode_base64 != xyes; then
        rm -f Test.class
        { echo "$as_me:$LINENO: WARNING: I have to compile Test.class from scratch" >&5
echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
        if test x$ac_cv_prog_javac_works = xno; then
                { { echo "$as_me:$LINENO: error: Cannot compile java source. $JAVAC does not work properly" >&5
echo "$as_me: error: Cannot compile java source. $JAVAC does not work properly" >&2;}
   { (exit 1); exit 1; }; }
        fi
        if test x$ac_cv_prog_javac_works = x; then

if test "x$JAVAPREFIX" = x; then
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_JAVAC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$JAVAC"; then
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_JAVAC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
JAVAC=$ac_cv_prog_JAVAC
if test -n "$JAVAC"; then
  { echo "$as_me:$LINENO: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$JAVAC" && break
done

else
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_JAVAC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$JAVAC"; then
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_JAVAC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
JAVAC=$ac_cv_prog_JAVAC
if test -n "$JAVAC"; then
  { echo "$as_me:$LINENO: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$JAVAC" && break
done
test -n "$JAVAC" || JAVAC="$JAVAPREFIX"

fi
test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }

{ echo "$as_me:$LINENO: checking if $JAVAC works" >&5
echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6; }
if test "${ac_cv_prog_javac_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

JAVA_TEST=Test.java
CLASS_TEST=Test.class
cat << \EOF > $JAVA_TEST
/* #line 22504 "configure" */
public class Test {
}
EOF
if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } >/dev/null 2>&1; then
  ac_cv_prog_javac_works=yes
else
  { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
   { (exit 1); exit 1; }; }
  echo "configure: failed program was:" >&5
  cat $JAVA_TEST >&5
fi
rm -f $JAVA_TEST $CLASS_TEST

fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
echo "${ECHO_T}$ac_cv_prog_javac_works" >&6; }


        fi
fi
{ echo "$as_me:$LINENO: checking if $JAVA works" >&5
echo $ECHO_N "checking if $JAVA works... $ECHO_C" >&6; }
if test "${ac_cv_prog_java_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

JAVA_TEST=Test.java
CLASS_TEST=Test.class
TEST=Test
cat << \EOF > $JAVA_TEST
/* [#]line 22541 "configure" */
public class Test {
public static void main (String args[]) {
        System.exit (0);
} }
EOF
if test x$ac_cv_prog_uudecode_base64 != xyes; then
        if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } && test -s $CLASS_TEST; then
                :
        else
          echo "configure: failed program was:" >&5
          cat $JAVA_TEST >&5
          { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
   { (exit 1); exit 1; }; }
        fi
fi
if { ac_try='$JAVA $JAVAFLAGS $TEST'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } >/dev/null 2>&1; then
  ac_cv_prog_java_works=yes
else
  echo "configure: failed program was:" >&5
  cat $JAVA_TEST >&5
  { { echo "$as_me:$LINENO: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&5
echo "$as_me: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -fr $JAVA_TEST $CLASS_TEST Test.uue

fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_java_works" >&5
echo "${ECHO_T}$ac_cv_prog_java_works" >&6; }





JNI_INCLUDE_DIRS=""

test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: '$JAVAC' undefined" >&5
echo "$as_me: error: '$JAVAC' undefined" >&2;}
   { (exit 1); exit 1; }; }
# Extract the first word of "$JAVAC", so it can be a program name with args.
set dummy $JAVAC; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_path__ACJNI_JAVAC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $_ACJNI_JAVAC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="$JAVAC"
  ;;
esac
fi
_ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC
if test -n "$_ACJNI_JAVAC"; then
  { echo "$as_me:$LINENO: result: $_ACJNI_JAVAC" >&5
echo "${ECHO_T}$_ACJNI_JAVAC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


test ! -x "$_ACJNI_JAVAC" && { { echo "$as_me:$LINENO: error: $JAVAC could not be found in path" >&5
echo "$as_me: error: $JAVAC could not be found in path" >&2;}
   { (exit 1); exit 1; }; }
{ echo "$as_me:$LINENO: checking absolute path of $JAVAC" >&5
echo $ECHO_N "checking absolute path of $JAVAC... $ECHO_C" >&6; }
case "$_ACJNI_JAVAC" in
/*)	{ echo "$as_me:$LINENO: result: $_ACJNI_JAVAC" >&5
echo "${ECHO_T}$_ACJNI_JAVAC" >&6; };;
*)	{ { echo "$as_me:$LINENO: error: $_ACJNI_JAVAC is not an absolute path name" >&5
echo "$as_me: error: $_ACJNI_JAVAC is not an absolute path name" >&2;}
   { (exit 1); exit 1; }; };;
esac


# find the include directory relative to the javac executable
_cur=""$_ACJNI_JAVAC""
while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do
	{ echo "$as_me:$LINENO: checking symlink for $_cur" >&5
echo $ECHO_N "checking symlink for $_cur... $ECHO_C" >&6; }
	_slink=`ls -ld "$_cur" | sed 's/.* -> //'`
	case "$_slink" in
	/*) _cur="$_slink";;
	# 'X' avoids triggering unwanted echo options.
	*) _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";;
	esac
	{ echo "$as_me:$LINENO: result: $_cur" >&5
echo "${ECHO_T}$_cur" >&6; }
done
_ACJNI_FOLLOWED="$_cur"

_JTOPDIR=`echo "$_ACJNI_FOLLOWED" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
case "$host_os" in
	darwin*)	_JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
			_JINC="$_JTOPDIR/Headers";;
	*)		_JINC="$_JTOPDIR/include";;
esac

# If we find jni.h in /usr/include, then it's not a java-only tree, so
# don't add /usr/include or subdirectories to the list of includes.
# An extra -I/usr/include can foul things up with newer gcc's.
#
# If we don't find jni.h, just keep going.  Hopefully javac knows where
# to find its include files, even if we can't.
if test -r "$_JINC/jni.h"; then
	if test "$_JINC" != "/usr/include"; then
		JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JINC"
	fi
else
	_JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
	if test -r "$_JTOPDIR/include/jni.h"; then
		if test "$_JTOPDIR" != "/usr"; then
			JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include"
		fi
	fi
fi

# get the likely subdirectories for system specific java includes
if test "$_JTOPDIR" != "/usr"; then
	case "$host_os" in
	aix*)		_JNI_INC_SUBDIRS="aix";;
	bsdi*)		_JNI_INC_SUBDIRS="bsdos";;
	freebsd*)	_JNI_INC_SUBDIRS="freebsd";;
	hp*)		_JNI_INC_SUBDIRS="hp-ux";;
	linux*)		_JNI_INC_SUBDIRS="linux genunix";;
	osf*)		_JNI_INC_SUBDIRS="alpha";;
	solaris*)	_JNI_INC_SUBDIRS="solaris";;
	*)		_JNI_INC_SUBDIRS="genunix";;
	esac
fi

# add any subdirectories that are present
for _JINCSUBDIR in $_JNI_INC_SUBDIRS
do
	if test -d "$_JTOPDIR/include/$_JINCSUBDIR"; then
		JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include/$_JINCSUBDIR"
	fi
done


	{ echo "$as_me:$LINENO: checking java version" >&5
echo $ECHO_N "checking java version... $ECHO_C" >&6; }
        case "$JAVA" in
	*kaffe* )
		JAVA_VERSION=`$JAVA -version 2>&1 |
			sed -e '/Java Version:/!d' -e 's/.*Java Version: \([^ 	]*\)[ 	]*/\1/'` ;;
	* )	JAVA_VERSION=`$JAVA -version 2>&1 |
        	       	sed -e '/ version /!d' -e 's/.*"\(.*\)".*/\1/'` ;;
	esac
	{ echo "$as_me:$LINENO: result: $JAVA_VERSION" >&5
echo "${ECHO_T}$JAVA_VERSION" >&6; }
	case "$JAVA_VERSION" in
	1.[3456789]* | 1.[1-9][0-9]* | [23456789]* ) ;;
	* )
		{ { echo "$as_me:$LINENO: error: Java version 1.3 or higher required, got $JAVA_VERSION" >&5
echo "$as_me: error: Java version 1.3 or higher required, got $JAVA_VERSION" >&2;}
   { (exit 1); exit 1; }; } ;;
	esac

	# Because of the code that SWIG generates to cast between pointers and
	# integers, we need to add the flag "-fno-strict-aliasing" to the gcc
	# command line when compiling the JNI code.  This is documented in
	# [#14953] and at http://www.swig.org/Doc1.3/Java.html
	if test ${GCC} = "yes"; then
		SWIGCFLAGS="-fno-strict-aliasing"
	fi

	for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
	do
		CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR"
	done

	ADDITIONAL_LANG="$ADDITIONAL_LANG java"
	INSTALL_LIBS="$INSTALL_LIBS \$(libjso_target)"
else
	JAVAC=nojavac
fi

# MinGW support.
if test "$db_cv_mingw" = "yes"; then
	OSDIR=os_windows
	PATH_SEPARATOR="\\\\/:"

	cat >>confdefs.h <<\_ACEOF
#define DB_WIN32 1
_ACEOF

	cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF

else
	OSDIR=os
	PATH_SEPARATOR="/"
fi

# Checks for include files, structures, C types.
{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
if test "${ac_cv_header_stat_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/stat.h>

#if defined S_ISBLK && defined S_IFDIR
# if S_ISBLK (S_IFDIR)
You lose.
# endif
#endif

#if defined S_ISBLK && defined S_IFCHR
# if S_ISBLK (S_IFCHR)
You lose.
# endif
#endif

#if defined S_ISLNK && defined S_IFREG
# if S_ISLNK (S_IFREG)
You lose.
# endif
#endif

#if defined S_ISSOCK && defined S_IFREG
# if S_ISSOCK (S_IFREG)
You lose.
# endif
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "You lose" >/dev/null 2>&1; then
  ac_cv_header_stat_broken=yes
else
  ac_cv_header_stat_broken=no
fi
rm -f conftest*

fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
if test $ac_cv_header_stat_broken = yes; then

cat >>confdefs.h <<\_ACEOF
#define STAT_MACROS_BROKEN 1
_ACEOF

fi

{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_header_time=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_header_time=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\_ACEOF
#define TIME_WITH_SYS_TIME 1
_ACEOF

fi






ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
if test "${ac_cv_search_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dir; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_opendir=$ac_res
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext
  if test "${ac_cv_search_opendir+set}" = set; then
  break
fi
done
if test "${ac_cv_search_opendir+set}" = set; then
  :
else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

else
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
if test "${ac_cv_search_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' x; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_opendir=$ac_res
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext
  if test "${ac_cv_search_opendir+set}" = set; then
  break
fi
done
if test "${ac_cv_search_opendir+set}" = set; then
  :
else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi




for ac_header in sys/select.h sys/time.h sys/fcntl.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ---------------------------------------------------------- ##
## Report this to Oracle Technology Network Berkeley DB forum ##
## ---------------------------------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (ac_aggr.st_blksize)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_stat_st_blksize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (sizeof ac_aggr.st_blksize)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_stat_st_blksize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_member_struct_stat_st_blksize=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
if test $ac_cv_member_struct_stat_st_blksize = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
_ACEOF


fi



# db.h includes <sys/types.h> and <stdio.h>, not the other default includes
# autoconf usually includes.  For that reason, we specify a set of includes
# for all type checking tests. [#5060]
#
# C99 says types should be in <stdint.h>; include <stdint.h> if it exists.
#
# Some systems have types in <stddef.h>; include <stddef.h> if it exists.
#
# IBM's OS/390 and z/OS releases have types in <inttypes.h> not also found
# in <sys/types.h>; include <inttypes.h> if it exists.
db_includes="#include <sys/types.h>"

if test "${ac_cv_header_inttypes_h+set}" = set; then
  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
if test "${ac_cv_header_inttypes_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking inttypes.h usability" >&5
echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <inttypes.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking inttypes.h presence" >&5
echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <inttypes.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ---------------------------------------------------------- ##
## Report this to Oracle Technology Network Berkeley DB forum ##
## ---------------------------------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for inttypes.h" >&5
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
if test "${ac_cv_header_inttypes_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_inttypes_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }

fi
if test $ac_cv_header_inttypes_h = yes; then

	db_includes="$db_includes
#include <inttypes.h>"
	inttypes_h_decl="#include <inttypes.h>"
fi



if test "${ac_cv_header_stdint_h+set}" = set; then
  { echo "$as_me:$LINENO: checking for stdint.h" >&5
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
if test "${ac_cv_header_stdint_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking stdint.h usability" >&5
echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <stdint.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking stdint.h presence" >&5
echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdint.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ---------------------------------------------------------- ##
## Report this to Oracle Technology Network Berkeley DB forum ##
## ---------------------------------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for stdint.h" >&5
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
if test "${ac_cv_header_stdint_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_stdint_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }

fi
if test $ac_cv_header_stdint_h = yes; then

	db_includes="$db_includes
#include <stdint.h>"
	stdint_h_decl="#include <stdint.h>"
fi



if test "${ac_cv_header_stddef_h+set}" = set; then
  { echo "$as_me:$LINENO: checking for stddef.h" >&5
echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
if test "${ac_cv_header_stddef_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking stddef.h usability" >&5
echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <stddef.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking stddef.h presence" >&5
echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: stddef.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: stddef.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: stddef.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: stddef.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ---------------------------------------------------------- ##
## Report this to Oracle Technology Network Berkeley DB forum ##
## ---------------------------------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for stddef.h" >&5
echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
if test "${ac_cv_header_stddef_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_stddef_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }

fi
if test $ac_cv_header_stddef_h = yes; then

	db_includes="$db_includes
#include <stddef.h>"
	stddef_h_decl="#include <stddef.h>"
fi



if test "${ac_cv_header_unistd_h+set}" = set; then
  { echo "$as_me:$LINENO: checking for unistd.h" >&5
echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
if test "${ac_cv_header_unistd_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking unistd.h usability" >&5
echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <unistd.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking unistd.h presence" >&5
echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unistd.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: unistd.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ---------------------------------------------------------- ##
## Report this to Oracle Technology Network Berkeley DB forum ##
## ---------------------------------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for unistd.h" >&5
echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
if test "${ac_cv_header_unistd_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_unistd_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }

fi
if test $ac_cv_header_unistd_h = yes; then

	db_includes="$db_includes
#include <unistd.h>"
	unistd_h_decl="#include <unistd.h>"
fi


db_includes="$db_includes
#include <stdio.h>"

# We require off_t and size_t, and we don't try to substitute our own
# if we can't find them.
{ echo "$as_me:$LINENO: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
if test "${ac_cv_type_off_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef off_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_off_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_off_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
if test $ac_cv_type_off_t = yes; then
  :
else
  { { echo "$as_me:$LINENO: error: No off_t type." >&5
echo "$as_me: error: No off_t type." >&2;}
   { (exit 1); exit 1; }; }
fi

{ echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef size_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_size_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_size_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
if test $ac_cv_type_size_t = yes; then
  :
else
  { { echo "$as_me:$LINENO: error: No size_t type." >&5
echo "$as_me: error: No size_t type." >&2;}
   { (exit 1); exit 1; }; }
fi


# We need to know the sizes of various objects on this system.
{ echo "$as_me:$LINENO: checking for char" >&5
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
if test "${ac_cv_type_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef char ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_char=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_char=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
echo "${ECHO_T}$ac_cv_type_char" >&6; }

{ echo "$as_me:$LINENO: checking size of char" >&5
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
if test "${ac_cv_sizeof_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_char" = yes; then
  # The cast to long int works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_char=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; } ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef char ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_char=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
else
  ac_cv_sizeof_char=0
fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHAR $ac_cv_sizeof_char
_ACEOF


{ echo "$as_me:$LINENO: checking for unsigned char" >&5
echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
if test "${ac_cv_type_unsigned_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef unsigned char ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_unsigned_char=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_unsigned_char=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }

{ echo "$as_me:$LINENO: checking size of unsigned char" >&5
echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_unsigned_char" = yes; then
  # The cast to long int works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (unsigned char)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; } ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned char ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_unsigned_char=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (unsigned char)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
else
  ac_cv_sizeof_unsigned_char=0
fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
_ACEOF


{ echo "$as_me:$LINENO: checking for short" >&5
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
if test "${ac_cv_type_short+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef short ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_short=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_short=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
echo "${ECHO_T}$ac_cv_type_short" >&6; }

{ echo "$as_me:$LINENO: checking size of short" >&5
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
if test "${ac_cv_sizeof_short+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_short" = yes; then
  # The cast to long int works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_short=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (short)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; } ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef short ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_short=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (short)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
else
  ac_cv_sizeof_short=0
fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


{ echo "$as_me:$LINENO: checking for unsigned short" >&5
echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
if test "${ac_cv_type_unsigned_short+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef unsigned short ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_unsigned_short=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_unsigned_short=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }

{ echo "$as_me:$LINENO: checking size of unsigned short" >&5
echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_unsigned_short" = yes; then
  # The cast to long int works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (unsigned short)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; } ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned short ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_unsigned_short=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (unsigned short)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
else
  ac_cv_sizeof_unsigned_short=0
fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
_ACEOF


{ echo "$as_me:$LINENO: checking for int" >&5
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
if test "${ac_cv_type_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef int ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_int=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
echo "${ECHO_T}$ac_cv_type_int" >&6; }

{ echo "$as_me:$LINENO: checking size of int" >&5
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
if test "${ac_cv_sizeof_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_int" = yes; then
  # The cast to long int works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_int=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (int)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; } ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef int ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_int=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (int)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
else
  ac_cv_sizeof_int=0
fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


{ echo "$as_me:$LINENO: checking for unsigned int" >&5
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
if test "${ac_cv_type_unsigned_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef unsigned int ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_unsigned_int=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_unsigned_int=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }

{ echo "$as_me:$LINENO: checking size of unsigned int" >&5
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_unsigned_int" = yes; then
  # The cast to long int works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (unsigned int)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; } ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned int ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_unsigned_int=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (unsigned int)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
else
  ac_cv_sizeof_unsigned_int=0
fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
_ACEOF


{ echo "$as_me:$LINENO: checking for long" >&5
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
if test "${ac_cv_type_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef long ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_long=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_long=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
echo "${ECHO_T}$ac_cv_type_long" >&6; }

{ echo "$as_me:$LINENO: checking size of long" >&5
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
if test "${ac_cv_sizeof_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_long" = yes; then
  # The cast to long int works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; } ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef long ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_long=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
else
  ac_cv_sizeof_long=0
fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


{ echo "$as_me:$LINENO: checking for unsigned long" >&5
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
if test "${ac_cv_type_unsigned_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef unsigned long ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_unsigned_long=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_unsigned_long=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }

{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_unsigned_long" = yes; then
  # The cast to long int works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (unsigned long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; } ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned long ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (unsigned long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
else
  ac_cv_sizeof_unsigned_long=0
fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
_ACEOF


{ echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
if test "${ac_cv_type_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef long long ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_long_long=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_long_long=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }

{ echo "$as_me:$LINENO: checking size of long long" >&5
echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
if test "${ac_cv_sizeof_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_long_long" = yes; then
  # The cast to long int works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_long_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; } ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef long long ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_long_long=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
else
  ac_cv_sizeof_long_long=0
fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF


{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef unsigned long long ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_unsigned_long_long=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_unsigned_long_long=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }

{ echo "$as_me:$LINENO: checking size of unsigned long long" >&5
echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_unsigned_long_long" = yes; then
  # The cast to long int works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (unsigned long long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; } ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef unsigned long long ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (unsigned long long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
else
  ac_cv_sizeof_unsigned_long_long=0
fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
_ACEOF


{ echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef size_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_size_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_size_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }

{ echo "$as_me:$LINENO: checking size of size_t" >&5
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
if test "${ac_cv_sizeof_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_size_t" = yes; then
  # The cast to long int works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef size_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef size_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef size_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef size_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef size_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_size_t=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (size_t)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; } ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef size_t ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_size_t=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (size_t)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
else
  ac_cv_sizeof_size_t=0
fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
_ACEOF


{ echo "$as_me:$LINENO: checking for char *" >&5
echo $ECHO_N "checking for char *... $ECHO_C" >&6; }
if test "${ac_cv_type_char_p+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef char * ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_char_p=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_char_p=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
echo "${ECHO_T}$ac_cv_type_char_p" >&6; }

{ echo "$as_me:$LINENO: checking size of char *" >&5
echo $ECHO_N "checking size of char *... $ECHO_C" >&6; }
if test "${ac_cv_sizeof_char_p+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_char_p" = yes; then
  # The cast to long int works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef char * ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef char * ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef char * ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef char * ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef char * ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_char_p=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char *)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; } ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

		   typedef char * ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_char_p=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char *)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
else
  ac_cv_sizeof_char_p=0
fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
_ACEOF



# We look for u_char, u_short, u_int, u_long -- if we can't find them,
# we create our own.

{ echo "$as_me:$LINENO: checking for u_char" >&5
echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
if test "${ac_cv_type_u_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef u_char ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_char=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_char=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
echo "${ECHO_T}$ac_cv_type_u_char" >&6; }
if test $ac_cv_type_u_char = yes; then
  :
else
  u_char_decl="typedef unsigned char u_char;"
fi



{ echo "$as_me:$LINENO: checking for u_short" >&5
echo $ECHO_N "checking for u_short... $ECHO_C" >&6; }
if test "${ac_cv_type_u_short+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef u_short ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_short=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_short=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
echo "${ECHO_T}$ac_cv_type_u_short" >&6; }
if test $ac_cv_type_u_short = yes; then
  :
else
  u_short_decl="typedef unsigned short u_short;"
fi



{ echo "$as_me:$LINENO: checking for u_int" >&5
echo $ECHO_N "checking for u_int... $ECHO_C" >&6; }
if test "${ac_cv_type_u_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef u_int ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_int=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_int=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
echo "${ECHO_T}$ac_cv_type_u_int" >&6; }
if test $ac_cv_type_u_int = yes; then
  :
else
  u_int_decl="typedef unsigned int u_int;"
fi



{ echo "$as_me:$LINENO: checking for u_long" >&5
echo $ECHO_N "checking for u_long... $ECHO_C" >&6; }
if test "${ac_cv_type_u_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef u_long ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_long=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_long=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
echo "${ECHO_T}$ac_cv_type_u_long" >&6; }
if test $ac_cv_type_u_long = yes; then
  :
else
  u_long_decl="typedef unsigned long u_long;"
fi


# We look for fixed-size variants of u_char, u_short, u_int, u_long as well.

{ echo "$as_me:$LINENO: checking for u_int8_t" >&5
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
if test "${ac_cv_type_u_int8_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef u_int8_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_int8_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_int8_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
if test $ac_cv_type_u_int8_t = yes; then
  :
else

	case "1" in
	"$ac_cv_sizeof_unsigned_int")
		u_int8_decl="typedef unsigned int u_int8_t;";;
	"$ac_cv_sizeof_unsigned_char")
		u_int8_decl="typedef unsigned char u_int8_t;";;
	"$ac_cv_sizeof_unsigned_short")
		u_int8_decl="typedef unsigned short u_int8_t;";;
	"$ac_cv_sizeof_unsigned_long")
		u_int8_decl="typedef unsigned long u_int8_t;";;
	"$ac_cv_sizeof_unsigned_long_long")
		u_int8_decl="typedef unsigned long long u_int8_t;";;
	*)
		if test "" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No unsigned 1-byte integral type" >&5
echo "$as_me: error: No unsigned 1-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
fi



{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
if test "${ac_cv_type_u_int16_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef u_int16_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_int16_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_int16_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
if test $ac_cv_type_u_int16_t = yes; then
  :
else

	case "2" in
	"$ac_cv_sizeof_unsigned_int")
		u_int16_decl="typedef unsigned int u_int16_t;";;
	"$ac_cv_sizeof_unsigned_char")
		u_int16_decl="typedef unsigned char u_int16_t;";;
	"$ac_cv_sizeof_unsigned_short")
		u_int16_decl="typedef unsigned short u_int16_t;";;
	"$ac_cv_sizeof_unsigned_long")
		u_int16_decl="typedef unsigned long u_int16_t;";;
	"$ac_cv_sizeof_unsigned_long_long")
		u_int16_decl="typedef unsigned long long u_int16_t;";;
	*)
		if test "" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No unsigned 2-byte integral type" >&5
echo "$as_me: error: No unsigned 2-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
fi



{ echo "$as_me:$LINENO: checking for int16_t" >&5
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
if test "${ac_cv_type_int16_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef int16_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int16_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_int16_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
if test $ac_cv_type_int16_t = yes; then
  :
else

	case "2" in
	"$ac_cv_sizeof_int")
		int16_decl="typedef int int16_t;";;
	"$ac_cv_sizeof_char")
		int16_decl="typedef char int16_t;";;
	"$ac_cv_sizeof_short")
		int16_decl="typedef short int16_t;";;
	"$ac_cv_sizeof_long")
		int16_decl="typedef long int16_t;";;
	"$ac_cv_sizeof_long_long")
		int16_decl="typedef long long int16_t;";;
	*)
		if test "" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No signed 2-byte integral type" >&5
echo "$as_me: error: No signed 2-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
fi



{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
if test "${ac_cv_type_u_int32_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef u_int32_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_int32_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_int32_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
if test $ac_cv_type_u_int32_t = yes; then
  :
else

	case "4" in
	"$ac_cv_sizeof_unsigned_int")
		u_int32_decl="typedef unsigned int u_int32_t;";;
	"$ac_cv_sizeof_unsigned_char")
		u_int32_decl="typedef unsigned char u_int32_t;";;
	"$ac_cv_sizeof_unsigned_short")
		u_int32_decl="typedef unsigned short u_int32_t;";;
	"$ac_cv_sizeof_unsigned_long")
		u_int32_decl="typedef unsigned long u_int32_t;";;
	"$ac_cv_sizeof_unsigned_long_long")
		u_int32_decl="typedef unsigned long long u_int32_t;";;
	*)
		if test "" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No unsigned 4-byte integral type" >&5
echo "$as_me: error: No unsigned 4-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
fi



{ echo "$as_me:$LINENO: checking for int32_t" >&5
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
if test "${ac_cv_type_int32_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef int32_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int32_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_int32_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
if test $ac_cv_type_int32_t = yes; then
  :
else

	case "4" in
	"$ac_cv_sizeof_int")
		int32_decl="typedef int int32_t;";;
	"$ac_cv_sizeof_char")
		int32_decl="typedef char int32_t;";;
	"$ac_cv_sizeof_short")
		int32_decl="typedef short int32_t;";;
	"$ac_cv_sizeof_long")
		int32_decl="typedef long int32_t;";;
	"$ac_cv_sizeof_long_long")
		int32_decl="typedef long long int32_t;";;
	*)
		if test "" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No signed 4-byte integral type" >&5
echo "$as_me: error: No signed 4-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
fi



{ echo "$as_me:$LINENO: checking for u_int64_t" >&5
echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
if test "${ac_cv_type_u_int64_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef u_int64_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_int64_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_int64_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
if test $ac_cv_type_u_int64_t = yes; then
  :
else

	case "8" in
	"$ac_cv_sizeof_unsigned_int")
		u_int64_decl="typedef unsigned int u_int64_t;";;
	"$ac_cv_sizeof_unsigned_char")
		u_int64_decl="typedef unsigned char u_int64_t;";;
	"$ac_cv_sizeof_unsigned_short")
		u_int64_decl="typedef unsigned short u_int64_t;";;
	"$ac_cv_sizeof_unsigned_long")
		u_int64_decl="typedef unsigned long u_int64_t;";;
	"$ac_cv_sizeof_unsigned_long_long")
		u_int64_decl="typedef unsigned long long u_int64_t;";;
	*)
		if test "notfatal" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No unsigned 8-byte integral type" >&5
echo "$as_me: error: No unsigned 8-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
fi



{ echo "$as_me:$LINENO: checking for int64_t" >&5
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
if test "${ac_cv_type_int64_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef int64_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int64_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_int64_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
if test $ac_cv_type_int64_t = yes; then
  :
else

	case "8" in
	"$ac_cv_sizeof_int")
		int64_decl="typedef int int64_t;";;
	"$ac_cv_sizeof_char")
		int64_decl="typedef char int64_t;";;
	"$ac_cv_sizeof_short")
		int64_decl="typedef short int64_t;";;
	"$ac_cv_sizeof_long")
		int64_decl="typedef long int64_t;";;
	"$ac_cv_sizeof_long_long")
		int64_decl="typedef long long int64_t;";;
	*)
		if test "notfatal" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No signed 8-byte integral type" >&5
echo "$as_me: error: No signed 8-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
fi


# Check for ssize_t -- if none exists, find a signed integral type that's
# the same size as a size_t.

{ echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
if test "${ac_cv_type_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef ssize_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_ssize_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_ssize_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
if test $ac_cv_type_ssize_t = yes; then
  :
else

	case "$ac_cv_sizeof_size_t" in
	"$ac_cv_sizeof_int")
		ssize_t_decl="typedef int ssize_t;";;
	"$ac_cv_sizeof_char")
		ssize_t_decl="typedef char ssize_t;";;
	"$ac_cv_sizeof_short")
		ssize_t_decl="typedef short ssize_t;";;
	"$ac_cv_sizeof_long")
		ssize_t_decl="typedef long ssize_t;";;
	"$ac_cv_sizeof_long_long")
		ssize_t_decl="typedef long long ssize_t;";;
	*)
		if test "" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&5
echo "$as_me: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
fi


# So far, no autoconf'd systems lack pid_t.


# Check for uintmax_t -- if none exists, first the largest unsigned integral
# type available.

{ echo "$as_me:$LINENO: checking for uintmax_t" >&5
echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
if test "${ac_cv_type_uintmax_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef uintmax_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_uintmax_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_uintmax_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
if test $ac_cv_type_uintmax_t = yes; then
  :
else
  { echo "$as_me:$LINENO: checking for unsigned long long" >&5
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

typedef unsigned long long ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_unsigned_long_long=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_unsigned_long_long=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
if test $ac_cv_type_unsigned_long_long = yes; then
  uintmax_t_decl="typedef unsigned long long uintmax_t;"
else
  uintmax_t_decl="typedef unsigned long uintmax_t;"
fi

fi


# Check for uintptr_t -- if none exists, find an integral type which is
# the same size as a pointer.

{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
if test "${ac_cv_type_uintptr_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef uintptr_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_uintptr_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_uintptr_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
if test $ac_cv_type_uintptr_t = yes; then
  :
else

	case "$ac_cv_sizeof_char_p" in
	"$ac_cv_sizeof_unsigned_int")
		uintptr_t_decl="typedef unsigned int uintptr_t;";;
	"$ac_cv_sizeof_unsigned_char")
		uintptr_t_decl="typedef unsigned char uintptr_t;";;
	"$ac_cv_sizeof_unsigned_short")
		uintptr_t_decl="typedef unsigned short uintptr_t;";;
	"$ac_cv_sizeof_unsigned_long")
		uintptr_t_decl="typedef unsigned long uintptr_t;";;
	"$ac_cv_sizeof_unsigned_long_long")
		uintptr_t_decl="typedef unsigned long long uintptr_t;";;
	*)
		if test "" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&5
echo "$as_me: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
fi



{ echo "$as_me:$LINENO: checking for ANSI C exit success/failure values" >&5
echo $ECHO_N "checking for ANSI C exit success/failure values... $ECHO_C" >&6; }
if test "${db_cv_exit_defines+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
int
main ()
{
return (EXIT_SUCCESS);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_exit_defines=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	db_cv_exit_defines=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $db_cv_exit_defines" >&5
echo "${ECHO_T}$db_cv_exit_defines" >&6; }
if test "$db_cv_exit_defines" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_EXIT_SUCCESS 1
_ACEOF



fi

# Check for mutexes.
# We do this first because it changes $LIBSO_LIBS.


# Mutexes we don't test for, but want the #defines to exist for
# other ports.





{ echo "$as_me:$LINENO: checking for mutexes" >&5
echo $ECHO_N "checking for mutexes... $ECHO_C" >&6; }
if test "${db_cv_mutex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

db_cv_mutex=no

orig_libs=$LIBS

# User-specified POSIX or UI mutexes.
#
# There are two different reasons to specify mutexes: First, the application
# is already using one type of mutex and doesn't want to mix-and-match (for
# example, on Solaris, which has POSIX, UI and LWP mutexes).  Second, the
# applications POSIX pthreads mutexes don't support inter-process locking,
# but the application wants to use them anyway (for example, some Linux and
# *BSD systems).
#
# Test for LWP threads before testing for UI/POSIX threads, we prefer them
# on Solaris, for two reasons: a bug in SunOS 5.7 causes applications to
# get pwrite, not pwrite64, if they load the C library before the appropriate
# threads library, e.g., tclsh using dlopen to load the DB library.  Second,
# LWP mutexes are faster than POSIX pthread mutexes by some amount.
#
# Otherwise, test for POSIX threads before UI threads.  There are Linux systems
# that support a UI compatibility mode, and applications are more likely to be
# written for POSIX threads than UI threads.
if test "$db_cv_posixmutexes" = yes; then
	db_cv_mutex="posix_only";
fi
if test "$db_cv_uimutexes" = yes; then
	db_cv_mutex="ui_only";
fi

# User-specified Win32 mutexes (MinGW build)
if test "$db_cv_mingw" = "yes"; then
	db_cv_mutex=win32/gcc
fi

# LWP threads: _lwp_XXX
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <synch.h>
int
main ()
{

	static lwp_mutex_t mi = SHAREDMUTEX;
	static lwp_cond_t ci = SHAREDCV;
	lwp_mutex_t mutex = mi;
	lwp_cond_t cond = ci;
	exit (
	_lwp_mutex_lock(&mutex) ||
	_lwp_mutex_unlock(&mutex));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="Solaris/lwp"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi

# POSIX.1 pthreads: pthread_XXX
#
# If the user specified we use POSIX pthreads mutexes, and we fail to find the
# full interface, try and configure for just intra-process support.
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
	LIBS="$LIBS -lpthread"

if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <pthread.h>
int
main ()
{

	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex=""POSIX/pthreads/library""
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex=""POSIX/pthreads/library""
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


	LIBS="$orig_libs"
fi
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then

if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <pthread.h>
int
main ()
{

	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex=""POSIX/pthreads""
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex=""POSIX/pthreads""
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
if test "$db_cv_mutex" = "posix_only"; then

if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <pthread.h>
int
main ()
{

	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex=""POSIX/pthreads/private""
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex=""POSIX/pthreads/private""
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
if test "$db_cv_mutex" = "posix_only"; then
	LIBS="$LIBS -lpthread"

if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <pthread.h>
int
main ()
{

	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex=""POSIX/pthreads/library/private""
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex=""POSIX/pthreads/library/private""
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


	LIBS="$orig_libs"
fi
if test "$db_cv_mutex" = "posix_only"; then
	{ { echo "$as_me:$LINENO: error: unable to find POSIX 1003.1 mutex interfaces" >&5
echo "$as_me: error: unable to find POSIX 1003.1 mutex interfaces" >&2;}
   { (exit 1); exit 1; }; }
fi

# UI threads: thr_XXX
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
LIBS="$LIBS -lthread"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <thread.h>
#include <synch.h>
int
main ()
{

	mutex_t mutex;
	cond_t cond;
	int type = USYNC_PROCESS;
	exit (
	mutex_init(&mutex, type, NULL) ||
	cond_init(&cond, type, NULL) ||
	mutex_lock(&mutex) ||
	mutex_unlock(&mutex));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="UI/threads/library"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS="$orig_libs"
fi
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <thread.h>
#include <synch.h>
int
main ()
{

	mutex_t mutex;
	cond_t cond;
	int type = USYNC_PROCESS;
	exit (
	mutex_init(&mutex, type, NULL) ||
	cond_init(&cond, type, NULL) ||
	mutex_lock(&mutex) ||
	mutex_unlock(&mutex));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="UI/threads"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
if test "$db_cv_mutex" = "ui_only"; then
	{ { echo "$as_me:$LINENO: error: unable to find UI mutex interfaces" >&5
echo "$as_me: error: unable to find UI mutex interfaces" >&2;}
   { (exit 1); exit 1; }; }
fi

# msemaphore: HPPA only
# Try HPPA before general msem test, it needs special alignment.
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/mman.h>
int
main ()
{

#if defined(__hppa)
	typedef msemaphore tsl_t;
	msemaphore x;
	msem_init(&x, 0);
	msem_lock(&x, 0);
	msem_unlock(&x, 0);
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="HP/msem_init"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi

# msemaphore: AIX, OSF/1
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#include <sys/mman.h>
int
main ()
{

	typedef msemaphore tsl_t;
	msemaphore x;
	msem_init(&x, 0);
	msem_lock(&x, 0);
	msem_unlock(&x, 0);
	exit(0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="UNIX/msem_init"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi

# ReliantUNIX
if test "$db_cv_mutex" = no; then
LIBS="$LIBS -lmproc"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <ulocks.h>
int
main ()
{

	typedef spinlock_t tsl_t;
	spinlock_t x;
	initspin(&x, 1);
	cspinlock(&x);
	spinunlock(&x);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="ReliantUNIX/initspin"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS="$orig_libs"
fi

# SCO: UnixWare has threads in libthread, but OpenServer doesn't.
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if defined(__USLC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="SCO/x86/cc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# abilock_t: SGI
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <abi_mutex.h>
int
main ()
{

	typedef abilock_t tsl_t;
	abilock_t x;
	init_lock(&x);
	acquire_lock(&x);
	release_lock(&x);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="SGI/init_lock"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi

# sema_t: Solaris
# The sema_XXX calls do not work on Solaris 5.5.  I see no reason to ever
# turn this test on, unless we find some other platform that uses the old
# POSIX.1 interfaces.  (I plan to move directly to pthreads on Solaris.)
if test "$db_cv_mutex" = DOESNT_WORK; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <synch.h>
int
main ()
{

	typedef sema_t tsl_t;
	sema_t x;
	sema_init(&x, 1, USYNC_PROCESS, NULL);
	sema_wait(&x);
	sema_post(&x);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="UNIX/sema_init"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi

# _lock_try/_lock_clear: Solaris
# On Solaris systems without Pthread or UI mutex interfaces, DB uses the
# undocumented _lock_try _lock_clear function calls instead of either the
# sema_trywait(3T) or sema_wait(3T) function calls.  This is because of
# problems in those interfaces in some releases of the Solaris C library.
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/machlock.h>
int
main ()
{

	typedef lock_t tsl_t;
	lock_t x;
	_lock_try(&x);
	_lock_clear(&x);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="Solaris/_lock_try"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi

# _check_lock/_clear_lock: AIX
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/atomic_op.h>
int
main ()
{

	int x;
	_check_lock(&x,0,1);
	_clear_lock(&x,0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="AIX/_check_lock"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi

# _spin_lock_try/_spin_unlock: Apple/Darwin
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

	int x;
	_spin_lock_try(&x);
	_spin_unlock(&x);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="Darwin/_spin_lock_try"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi

# Tru64/cc
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if defined(__alpha) && defined(__DECC)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="Tru64/cc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# Alpha/gcc
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if defined(__alpha) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="ALPHA/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# ARM/gcc: Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if defined(__arm__) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="ARM/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# MIPS/gcc: Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if (defined(__mips) || defined(__mips__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="MIPS/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# MIPS/gcc: Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if (defined(__mips) || defined(__mips__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="MIPS/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# PaRisc/gcc: HP/UX
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if (defined(__hppa) || defined(__hppa__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="HPPA/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# PPC/gcc:
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if (defined(__powerpc__) || defined(__ppc__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="PPC/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# Sparc/gcc: SunOS, Solaris
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if defined(__sparc__) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="Sparc/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# 68K/gcc: SunOS
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if (defined(mc68020) || defined(sun3)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="68K/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# x86/gcc: FreeBSD, NetBSD, BSD/OS, Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if (defined(i386) || defined(__i386__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="x86/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# x86_64/gcc: FreeBSD, NetBSD, BSD/OS, Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if (defined(x86_64) || defined(__x86_64__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="x86_64/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# S390/cc: IBM OS/390 Unix
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if defined(__MVS__) && defined(__IBMC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="S390/cc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# S390/gcc: Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if defined(__s390__) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="S390/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# ia64/gcc: Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if defined(__ia64) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="ia64/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# uts/cc: UTS
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if defined(_UTS)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="UTS/cc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# default to UNIX fcntl system call mutexes.
if test "$db_cv_mutex" = no; then
	db_cv_mutex="UNIX/fcntl"
fi

fi
{ echo "$as_me:$LINENO: result: $db_cv_mutex" >&5
echo "${ECHO_T}$db_cv_mutex" >&6; }



db_threadid_t_decl=notset

case "$db_cv_mutex" in
68K/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_68K_GCC_ASSEMBLY 1
_ACEOF


;;
AIX/_check_lock)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_AIX_CHECK_LOCK 1
_ACEOF


;;
Darwin/_spin_lock_try)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_DARWIN_SPIN_LOCK_TRY 1
_ACEOF


;;
ALPHA/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1
_ACEOF


;;
ARM/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_ARM_GCC_ASSEMBLY 1
_ACEOF


;;
HP/msem_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_HPPA_MSEM_INIT 1
_ACEOF


;;
HPPA/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1
_ACEOF


;;
ia64/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1
_ACEOF


;;
POSIX/pthreads)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF


;;
POSIX/pthreads/private)	ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF



			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_THREAD_ONLY 1
_ACEOF


;;
POSIX/pthreads/library)	ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF


;;
POSIX/pthreads/library/private)
			ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF



			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_THREAD_ONLY 1
_ACEOF


;;
PPC/gcc-assembly)
			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PPC_GCC_ASSEMBLY 1
_ACEOF


;;
ReliantUNIX/initspin)	LIBSO_LIBS="$LIBSO_LIBS -lmproc"
			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1
_ACEOF


;;
S390/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_S390_CC_ASSEMBLY 1
_ACEOF


;;
S390/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_S390_GCC_ASSEMBLY 1
_ACEOF


;;
SCO/x86/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1
_ACEOF


;;
SGI/init_lock)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SGI_INIT_LOCK 1
_ACEOF


;;
Solaris/_lock_try)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1
_ACEOF


;;
Solaris/lwp)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SOLARIS_LWP 1
_ACEOF


;;
Sparc/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1
_ACEOF


;;
Tru64/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_TRU64_CC_ASSEMBLY 1
_ACEOF


;;
UI/threads)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UI_THREADS 1
_ACEOF


;;
UI/threads/library)	ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UI_THREADS 1
_ACEOF


;;
UNIX/msem_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_MSEM_INIT 1
_ACEOF


;;
UNIX/sema_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SEMA_INIT 1
_ACEOF


;;
UTS/cc-assembly)	ADDITIONAL_OBJS="uts4.cc${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UTS_CC_ASSEMBLY 1
_ACEOF


;;
win32)			ADDITIONAL_OBJS="mut_win32${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_WIN32 1
_ACEOF


;;
win32/gcc)		ADDITIONAL_OBJS="mut_win32${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_WIN32_GCC 1
_ACEOF


;;
MIPS/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_MIPS_GCC_ASSEMBLY 1
_ACEOF


;;
x86/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_X86_GCC_ASSEMBLY 1
_ACEOF


;;
x86_64/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_X86_64_GCC_ASSEMBLY 1
_ACEOF


;;
UNIX/fcntl)		{ echo "$as_me:$LINENO: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&5
echo "$as_me: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&2;}
			ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_FCNTL 1
_ACEOF


;;
*)			{ { echo "$as_me:$LINENO: error: Unknown mutex interface: $db_cv_mutex" >&5
echo "$as_me: error: Unknown mutex interface: $db_cv_mutex" >&2;}
   { (exit 1); exit 1; }; };;
esac

# The mutex selection may require specific declarations -- we fill in most of
# them above, but here are the common ones.
#
# The mutex selection may tell us what kind of thread package we're using,
# which we use to figure out the thread type.
#
# If we're configured for the POSIX pthread API, then force the thread ID type
# and include function, regardless of the mutex selection.  Ditto for the
# (default) Solaris lwp mutexes, because they don't have a way to return the
# thread ID.
#
# Try and link with a threads library if possible.  The problem is the Solaris
# C library has UI/POSIX interface stubs, but they're broken, configuring them
# for inter-process mutexes doesn't return an error, but it doesn't work either.
# For that reason always add -lpthread if we're using pthread calls or mutexes
# and there's a pthread library.
#
# We can't depend on any specific call existing (pthread_create, for example),
# as it may be #defined in an include file -- OSF/1 (Tru64) has this problem.
case "$db_cv_mutex" in
POSIX/pthread*|Solaris/lwp)
	thread_h_decl="#include <pthread.h>"
	db_threadid_t_decl="typedef pthread_t db_threadid_t;"
	{ echo "$as_me:$LINENO: checking for main in -lpthread" >&5
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
if test "${ac_cv_lib_pthread_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_pthread_main=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_pthread_main=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
if test $ac_cv_lib_pthread_main = yes; then
  LIBSO_LIBS="$LIBSO_LIBS -lpthread"
fi
ac_cv_lib_pthread=ac_cv_lib_pthread_main
;;
UI/threads*)
	thread_h_decl="#include <thread.h>"
	db_threadid_t_decl="typedef thread_t db_threadid_t;"
	{ echo "$as_me:$LINENO: checking for main in -lthread" >&5
echo $ECHO_N "checking for main in -lthread... $ECHO_C" >&6; }
if test "${ac_cv_lib_thread_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lthread  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_thread_main=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_thread_main=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_thread_main" >&5
echo "${ECHO_T}$ac_cv_lib_thread_main" >&6; }
if test $ac_cv_lib_thread_main = yes; then
  LIBSO_LIBS="$LIBSO_LIBS -lthread"
fi
ac_cv_lib_thread=ac_cv_lib_thread_main
;;
*)
	if test "$db_cv_pthread_api" = "yes"; then
		thread_h_decl="#include <pthread.h>"
		db_threadid_t_decl="typedef pthread_t db_threadid_t;"
		{ echo "$as_me:$LINENO: checking for main in -lpthread" >&5
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
if test "${ac_cv_lib_pthread_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_pthread_main=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_pthread_main=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
if test $ac_cv_lib_pthread_main = yes; then
  LIBSO_LIBS="$LIBSO_LIBS -lpthread"
fi
ac_cv_lib_pthread=ac_cv_lib_pthread_main

	fi;;
esac

# We need to know if the thread ID type will fit into an integral type and we
# can compare it for equality and generally treat it like an int, or if it's a
# non-integral type and we have to treat it like a structure or other untyped
# block of bytes.  For example, MVS typedef's pthread_t to a structure.


if test "$db_threadid_t_decl" = "notset"; then
	db_threadid_t_decl="typedef uintmax_t db_threadid_t;"
	cat >>confdefs.h <<\_ACEOF
#define HAVE_SIMPLE_THREAD_TYPE 1
_ACEOF

else
	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
	$thread_h_decl
int
main ()
{

	$db_threadid_t_decl
	db_threadid_t a;
	a = 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_SIMPLE_THREAD_TYPE 1
_ACEOF

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# If we're building replication and configured with POSIX pthreads or were
# told to build using the POSIX API, build the replication manager framework.
db_cv_build_replication_mgr="no"
if test "$db_cv_build_replication" = "yes"; then


	case "$db_cv_mutex" in
	POSIX/pthread*|Solaris/lwp)
		db_cv_build_replication_mgr="yes";;
	esac
	if test "$db_cv_pthread_api" = "yes"; then
		db_cv_build_replication_mgr="yes"
	fi

	if test "$db_cv_build_replication_mgr" = "yes"; then
		cat >>confdefs.h <<\_ACEOF
#define HAVE_REPLICATION_THREADS 1
_ACEOF


		# Solaris requires the socket and nsl libraries to build the
		# replication manager.  Don't add nsl regardless of the OS,
		# it causes RPC to fail on AIX 4.3.3.
		case "$host_os" in
		solaris*)
			{ echo "$as_me:$LINENO: checking for main in -lnsl" >&5
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
if test "${ac_cv_lib_nsl_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_nsl_main=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_nsl_main=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
if test $ac_cv_lib_nsl_main = yes; then
  LIBSO_LIBS="$LIBSO_LIBS -lnsl"
fi
ac_cv_lib_nsl=ac_cv_lib_nsl_main

			{ echo "$as_me:$LINENO: checking for main in -lsocket" >&5
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
if test "${ac_cv_lib_socket_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_socket_main=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_socket_main=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
if test $ac_cv_lib_socket_main = yes; then
  LIBSO_LIBS="$LIBSO_LIBS -lsocket"
fi
ac_cv_lib_socket=ac_cv_lib_socket_main
;;
		esac
	fi
fi

# There are 3 classes of mutexes:
#
# 1: Mutexes requiring no cleanup, for example, test-and-set mutexes.
# 2: Mutexes that must be destroyed, but which don't hold permanent system
#    resources, for example, pthread mutexes on MVS aka OS/390 aka z/OS.
# 3: Mutexes that must be destroyed, even after the process is gone, for
#    example, pthread mutexes on QNX and binary semaphores on VxWorks.
#
# DB cannot currently distinguish between #2 and #3 because DB does not know
# if the application is running environment recovery as part of startup and
# does not need to do cleanup, or if the environment is being removed and/or
# recovered in a loop in the application, and so does need to clean up.  If
# we get it wrong, we're going to call the mutex destroy routine on a random
# piece of memory, which usually works, but just might drop core.  For now,
# we group #2 and #3 into the HAVE_MUTEX_SYSTEM_RESOURCES define, until we
# have a better solution or reason to solve this in a general way -- so far,
# the places we've needed to handle this are few.



case "$host_os$db_cv_mutex" in
*qnx*POSIX/pthread*|openedition*POSIX/pthread*)
	cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SYSTEM_RESOURCES 1
_ACEOF
;;
esac

# Test for various functions/libraries -- do tests that change library values
# first.
#
# The yield function on Solaris is almost certainly pthread_yield (LWP threads
# or POSIX pthreads), or thr_yield (UI threads).  There's an outside chance it
# is sched_yield() though, only available in -lrt on Solaris.
#
# The Berkeley DB library calls fdatasync, only available in -lrt on Solaris.
# See if we can find either without additional libraries or in -lrt.  If found
# in -lrt and we haven't yet added -lrt,  add it to the shared library list.
{ echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
if test "${ac_cv_search_fdatasync+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fdatasync ();
int
main ()
{
return fdatasync ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_fdatasync=$ac_res
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext
  if test "${ac_cv_search_fdatasync+set}" = set; then
  break
fi
done
if test "${ac_cv_search_fdatasync+set}" = set; then
  :
else
  ac_cv_search_fdatasync=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
ac_res=$ac_cv_search_fdatasync
if test "$ac_res" != no; then
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
      if test "$ac_cv_search_fdatasync" != "none required" ; then
	LIBSO_LIBS="$LIBSO_LIBS -lrt";
    fi
else
      { echo "$as_me:$LINENO: checking for library containing sched_yield" >&5
echo $ECHO_N "checking for library containing sched_yield... $ECHO_C" >&6; }
if test "${ac_cv_search_sched_yield+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_yield ();
int
main ()
{
return sched_yield ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_sched_yield=$ac_res
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext
  if test "${ac_cv_search_sched_yield+set}" = set; then
  break
fi
done
if test "${ac_cv_search_sched_yield+set}" = set; then
  :
else
  ac_cv_search_sched_yield=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_search_sched_yield" >&5
echo "${ECHO_T}$ac_cv_search_sched_yield" >&6; }
ac_res=$ac_cv_search_sched_yield
if test "$ac_res" != no; then
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
      if test "$ac_cv_search_sched_yield" != "none required" ; then
	LIBSO_LIBS="$LIBSO_LIBS -lrt";
    fi
fi

fi


# !!!
# We could be more exact about whether these libraries are needed, but don't
# bother -- if they exist, we load them, it's only the test programs anyway.
{ echo "$as_me:$LINENO: checking for main in -lm" >&5
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
if test "${ac_cv_lib_m_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_m_main=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_m_main=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
if test $ac_cv_lib_m_main = yes; then
  TEST_LIBS="$TEST_LIBS -lm"
fi
ac_cv_lib_m=ac_cv_lib_m_main

{ echo "$as_me:$LINENO: checking for main in -lnsl" >&5
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
if test "${ac_cv_lib_nsl_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_nsl_main=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_nsl_main=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
if test $ac_cv_lib_nsl_main = yes; then
  TEST_LIBS="$TEST_LIBS -lnsl"
fi
ac_cv_lib_nsl=ac_cv_lib_nsl_main

{ echo "$as_me:$LINENO: checking for main in -lpthread" >&5
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
if test "${ac_cv_lib_pthread_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_pthread_main=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_pthread_main=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
if test $ac_cv_lib_pthread_main = yes; then
  TEST_LIBS="$TEST_LIBS -lpthread"
fi
ac_cv_lib_pthread=ac_cv_lib_pthread_main

{ echo "$as_me:$LINENO: checking for main in -lsocket" >&5
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
if test "${ac_cv_lib_socket_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_socket_main=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_socket_main=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
if test $ac_cv_lib_socket_main = yes; then
  TEST_LIBS="$TEST_LIBS -lsocket"
fi
ac_cv_lib_socket=ac_cv_lib_socket_main


# Update LIBS so that the rest of our tests are run with the libraries we'll
# load against.
LIBS="$LIBSO_LIBS"

# Checks for system functions for which we have replacements.
#
# The only portable getcwd call is getcwd(char *, size_t), where the
# buffer is non-NULL -- Solaris can't handle a NULL buffer, and they
# deleted getwd().



























for ac_func in \
	abort atoi atol getcwd getenv getopt isalpha isdigit isprint isspace\
	memcmp memcpy memmove printf raise rand strcasecmp strcat strchr\
	strdup strerror strncat strncmp strrchr strsep strtol strtoul
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  case " $LIBOBJS " in
  *" $ac_func.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 ;;
esac

fi
done



# Check for system functions we optionally use.






















for ac_func in \
   _fstati64 clock_gettime directio fchmod fcntl fdatasync getaddrinfo\
   getrusage gettimeofday getuid mprotect pstat_getdynamic pthread_yield\
   sched_yield select sigaction snprintf stat strftime sysconf vsnprintf\
   yield
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


# Replication can't run correctly if ftruncate isn't available.

for ac_func in ftruncate
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test \
    "$db_cv_build_replication" = "yes" -a "$ac_cv_func_ftruncate" = "no"; then
	db_cv_build_replication=no
	{ echo "$as_me:$LINENO: WARNING: replication requires ftruncate, replication disabled." >&5
echo "$as_me: WARNING: replication requires ftruncate, replication disabled." >&2;}
fi

# ctime_r --
#
# There are two versions of ctime_r, one of which takes a buffer length as a
# third argument, and one which only takes two arguments.  (There is also a
# difference in return values, but we handle that in the code itself.)

for ac_func in ctime_r
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "$ac_cv_func_ctime_r" = "yes"; then
{ echo "$as_me:$LINENO: checking for 2 or 3 argument version of ctime_r" >&5
echo $ECHO_N "checking for 2 or 3 argument version of ctime_r... $ECHO_C" >&6; }
if test "${db_cv_ctime_r_3arg+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <time.h>
int
main ()
{

	ctime_r(NULL, NULL, 100);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_ctime_r_3arg="3-argument"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	db_cv_ctime_r_3arg="2-argument"
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $db_cv_ctime_r_3arg" >&5
echo "${ECHO_T}$db_cv_ctime_r_3arg" >&6; }
fi
if test "$db_cv_ctime_r_3arg" = "3-argument"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_CTIME_R_3ARG 1
_ACEOF



fi

# Pread/pwrite.
# HP-UX has pread/pwrite, but it doesn't work with largefile support.
# NCR's version of System V R 4.3 has pread/pwrite symbols, but no support.
case "$host_os-$host_vendor" in
hpux*|sysv4.3*-ncr)
	{ echo "$as_me:$LINENO: WARNING: pread/pwrite interfaces ignored on $host_os-$host_vendor." >&5
echo "$as_me: WARNING: pread/pwrite interfaces ignored on $host_os-$host_vendor." >&2;};;
*)


for ac_func in pread pwrite
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done
;;
esac

# Check for fcntl(2) to deny child process access to file descriptors.
{ echo "$as_me:$LINENO: checking for fcntl/F_SETFD" >&5
echo $ECHO_N "checking for fcntl/F_SETFD... $ECHO_C" >&6; }
if test "${db_cv_fcntl_f_setfd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#include <fcntl.h>
int
main ()
{

	fcntl(1, F_SETFD, 1);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_fcntl_f_setfd=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	db_cv_fcntl_f_setfd=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $db_cv_fcntl_f_setfd" >&5
echo "${ECHO_T}$db_cv_fcntl_f_setfd" >&6; }
if test "$db_cv_fcntl_f_setfd" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_FCNTL_F_SETFD 1
_ACEOF



fi

# A/UX has a broken getopt(3).
case "$host_os" in
aux*)	case " $LIBOBJS " in
  *" getopt.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
 ;;
esac
;;
esac

# Linux has a broken O_DIRECT flag, but you can't detect it at configure time.
# Linux and SGI require buffer alignment we may not match, otherwise writes
# will fail.  Default to not using the O_DIRECT flag.
if test "$db_cv_o_direct" = "yes"; then
	{ echo "$as_me:$LINENO: checking for open/O_DIRECT" >&5
echo $ECHO_N "checking for open/O_DIRECT... $ECHO_C" >&6; }
if test "${db_cv_open_o_direct+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <sys/types.h>
	#include <fcntl.h>
int
main ()
{

		open("a", O_RDONLY | O_DIRECT, 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_open_o_direct=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	db_cv_open_o_direct=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $db_cv_open_o_direct" >&5
echo "${ECHO_T}$db_cv_open_o_direct" >&6; }
	if test \
	    "$db_cv_o_direct" = "yes" -a "$db_cv_open_o_direct" = "yes"; then
		cat >>confdefs.h <<\_ACEOF
#define HAVE_O_DIRECT 1
_ACEOF



	fi
fi

# Check for largefile support.
# Check whether --enable-largefile was given.
if test "${enable_largefile+set}" = set; then
  enableval=$enable_largefile;
fi

if test "$enable_largefile" != no; then

  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
if test "${ac_cv_sys_largefile_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
	 # IRIX 6.2 and later do not support large files by default,
	 # so use the C compiler's -n32 option if that helps.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
	 rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext
	 CC="$CC -n32"
	 rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_largefile_CC=' -n32'; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext
	 break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi

  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_file_offset_bits=no
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_file_offset_bits=64; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  break
done
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
if test "$ac_cv_sys_file_offset_bits" != no; then

cat >>confdefs.h <<_ACEOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
_ACEOF

fi
rm -f conftest*
  { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
if test "${ac_cv_sys_large_files+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_large_files=no
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_large_files=1; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  break
done
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
if test "$ac_cv_sys_large_files" != no; then

cat >>confdefs.h <<_ACEOF
#define _LARGE_FILES $ac_cv_sys_large_files
_ACEOF

fi
rm -f conftest*
fi


# Figure out how to create shared regions.
#
# First, we look for mmap.
#
# BSD/OS has mlock(2), but it doesn't work until the 4.1 release.
#
# Nextstep (version 3.3) apparently supports mmap(2) (the mmap symbol
# is defined in the C library) but does not support munmap(2).  Don't
# try to use mmap if we can't find munmap.
#
# Ultrix has mmap(2), but it doesn't work.
mmap_ok=no
case "$host_os" in
bsdi3*|bsdi4.0)
	{ echo "$as_me:$LINENO: WARNING: mlock(2) interface ignored on $host_os-$host_vendor." >&5
echo "$as_me: WARNING: mlock(2) interface ignored on $host_os-$host_vendor." >&2;}
	mmap_ok=yes


for ac_func in mmap munmap
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  mmap_ok=no
fi
done
;;
ultrix*)
	{ echo "$as_me:$LINENO: WARNING: mmap(2) interface ignored on $host_os-$host_vendor." >&5
echo "$as_me: WARNING: mmap(2) interface ignored on $host_os-$host_vendor." >&2;};;
*)
	mmap_ok=yes


for ac_func in mlock munlock
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done



for ac_func in mmap munmap
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  mmap_ok=no
fi
done
;;
esac

# Second, we look for shmget.
#
# SunOS has the shmget(2) interfaces, but there appears to be a missing
# #include <debug/debug.h> file, so we ignore them.
shmget_ok=no
case "$host_os" in
sunos*)
	{ echo "$as_me:$LINENO: WARNING: shmget(2) interface ignored on $host_os-$host_vendor." >&5
echo "$as_me: WARNING: shmget(2) interface ignored on $host_os-$host_vendor." >&2;};;
*)
	shmget_ok=yes

for ac_func in shmget
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  shmget_ok=no
fi
done
;;
esac

# We require either mmap/munmap(2) or shmget(2).
if test "$mmap_ok" = "no" -a "$shmget_ok" = "no"; then
	{ echo "$as_me:$LINENO: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
echo "$as_me: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&2;}
fi

# Optional RPC client/server.
if test "$db_cv_rpc" = "yes"; then

	cat >>confdefs.h <<\_ACEOF
#define HAVE_RPC 1
_ACEOF




	# We use the target's rpcgen utility because it may be architecture
	# specific, for example, 32- or 64-bit specific.
	XDR_FILE=$srcdir/../rpc_server/db_server.x

	# Prefer the -C option to rpcgen which generates ANSI C-conformant
	# code.
	RPCGEN="rpcgen -C"
	{ echo "$as_me:$LINENO: checking \"$RPCGEN\" build of db_server.h" >&5
echo $ECHO_N "checking \"$RPCGEN\" build of db_server.h... $ECHO_C" >&6; }
	$RPCGEN -h $XDR_FILE > db_server.h 2>/dev/null
	if test $? -ne 0; then
		{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }

		# Try rpcgen without the -C option.
		RPCGEN="rpcgen"
		{ echo "$as_me:$LINENO: checking \"$RPCGEN\" build of db_server.h" >&5
echo $ECHO_N "checking \"$RPCGEN\" build of db_server.h... $ECHO_C" >&6; }
		$RPCGEN -h $XDR_FILE > db_server.h 2>/dev/null
		if test $? -ne 0; then
			{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
			{ { echo "$as_me:$LINENO: error: Unable to build RPC support: $RPCGEN failed." >&5
echo "$as_me: error: Unable to build RPC support: $RPCGEN failed." >&2;}
   { (exit 1); exit 1; }; }
		fi
	fi

	# Some rpcgen programs generate a set of client stubs called something
	# like __db_env_create_4003 and functions on the server to handle the
	# request called something like __db_env_create_4003_svc.  Others
	# expect client and server stubs to both be called __db_env_create_4003.
	#
	# We have to generate code in whichever format rpcgen expects, and the
	# only reliable way to do that is to check what is in the db_server.h
	# file we just created.
	if grep "env_create_[0-9]*_svc" db_server.h >/dev/null 2>&1 ; then
		sed 's/__SVCSUFFIX__/_svc/' \
		    < $srcdir/../rpc_server/c/gen_db_server.c > gen_db_server.c
	else
		sed 's/__SVCSUFFIX__//' \
		    < $srcdir/../rpc_server/c/gen_db_server.c > gen_db_server.c
	fi

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }

	$RPCGEN -l $XDR_FILE |
	sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \
	    -e '1,/^#include/s/^#include/#include "db_config.h"\
&/' > db_server_clnt.c

	$RPCGEN -s tcp $XDR_FILE |
	sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \
	    -e 's/^main *()/__dbsrv_main()/' \
	    -e 's/^main *(.*argc.*argv.*)/__dbsrv_main(int argc, char *argv)/' \
	    -e '/^db_rpc_serverprog/,/^}/{' \
	    -e 's/return;//' \
	    -e 's/^}/__dbsrv_timeout(0);}/' \
	    -e '}' \
	    -e '1,/^#include/s/^#include/#include "db_config.h"\
&/' > db_server_svc.c

	$RPCGEN -c $XDR_FILE |
	sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \
	    -e '1,/^#include/s/^#include/#include "db_config.h"\
&/' > db_server_xdr.c

	RPC_SERVER_H=db_server.h
	RPC_CLIENT_OBJS="\$(RPC_CLIENT_OBJS)"
	ADDITIONAL_PROGS="berkeley_db_svc $ADDITIONAL_PROGS"

	# Solaris and HPUX need the nsl library to build RPC.
	{ echo "$as_me:$LINENO: checking for svc_run" >&5
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6; }
if test "${ac_cv_func_svc_run+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define svc_run to an innocuous variant, in case <limits.h> declares svc_run.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define svc_run innocuous_svc_run

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char svc_run (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef svc_run

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char svc_run ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_svc_run || defined __stub___svc_run
choke me
#endif

int
main ()
{
return svc_run ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_svc_run=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_svc_run=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_svc_run" >&5
echo "${ECHO_T}$ac_cv_func_svc_run" >&6; }
if test $ac_cv_func_svc_run = yes; then
  :
else
  { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
if test "${ac_cv_lib_nsl_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_nsl_main=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_nsl_main=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
if test $ac_cv_lib_nsl_main = yes; then
  LIBSO_LIBS="$LIBSO_LIBS -lnsl"
fi
ac_cv_lib_nsl=ac_cv_lib_nsl_main

fi


fi

# Optional Tcl support.
if test "$db_cv_tcl" = "yes"; then

	if test `$LIBTOOL_PROG --config | grep build_libtool_libs | grep no` 2>/dev/null; then
		{ { echo "$as_me:$LINENO: error: Tcl requires shared libraries" >&5
echo "$as_me: error: Tcl requires shared libraries" >&2;}
   { (exit 1); exit 1; }; }
	fi


	if test "${ac_cv_c_tclconfig+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else


	    # First check to see if --with-tclconfig was specified.
	    if test "${with_tclconfig}" != no; then
		if test -f "${with_tclconfig}/tclConfig.sh" ; then
		    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
		else
		    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
   { (exit 1); exit 1; }; }
		fi
	    fi

	    # check in a few common install locations
	    if test x"${ac_cv_c_tclconfig}" = x ; then
		for i in `ls -d /usr/local/lib 2>/dev/null` ; do
		    if test -f "$i/tclConfig.sh" ; then
			ac_cv_c_tclconfig=`(cd $i; pwd)`
			break
		    fi
		done
	    fi


fi


	if test x"${ac_cv_c_tclconfig}" = x ; then
	    TCL_BIN_DIR="# no Tcl configs found"
	    { { echo "$as_me:$LINENO: error: can't find Tcl configuration definitions" >&5
echo "$as_me: error: can't find Tcl configuration definitions" >&2;}
   { (exit 1); exit 1; }; }
	else
	    TCL_BIN_DIR=${ac_cv_c_tclconfig}
	fi


	{ echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6; }

	if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
		{ echo "$as_me:$LINENO: result: loading" >&5
echo "${ECHO_T}loading" >&6; }
		. $TCL_BIN_DIR/tclConfig.sh
	else
		{ echo "$as_me:$LINENO: result: file not found" >&5
echo "${ECHO_T}file not found" >&6; }
	fi

	# DB requires at least version 8.4.
	if test ${TCL_MAJOR_VERSION} -lt 8 \
	    -o ${TCL_MAJOR_VERSION} -eq 8 -a ${TCL_MINOR_VERSION} -lt 4; then
		{ { echo "$as_me:$LINENO: error: Berkeley DB requires Tcl version 8.4 or better." >&5
echo "$as_me: error: Berkeley DB requires Tcl version 8.4 or better." >&2;}
   { (exit 1); exit 1; }; }
	fi

	# The eval is required to do substitution (for example, the TCL_DBGX
	# substitution in the TCL_LIB_FILE variable.
	eval "TCL_INCLUDE_SPEC=\"${TCL_INCLUDE_SPEC}\""
	eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
	eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
	eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""

	#
	# If the DB Tcl library isn't loaded with the Tcl spec and library
	# flags on AIX, the resulting libdb_tcl-X.Y.so.0 will drop core at
	# load time. [#4843]  Furthermore, with Tcl 8.3, the link flags
	# given by the Tcl spec are insufficient for our use.  [#5779]
	#
	case "$host_os" in
	aix4.[2-9].*)
		LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG"
		LIBTSO_LIBS="$LIBTSO_LIBS -L$TCL_EXEC_PREFIX/lib -ltcl$TCL_VERSION";;
	aix*)
		LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG";;
	esac






	TCL_TCLSH="${TCL_PREFIX}/bin/tclsh${TCL_VERSION}"


	INSTALL_LIBS="${INSTALL_LIBS} \$(libtso_target)"

fi

# Optional sequence code.

	{ echo "$as_me:$LINENO: checking for 64-bit integral type support for sequences" >&5
echo $ECHO_N "checking for 64-bit integral type support for sequences... $ECHO_C" >&6; }

	db_cv_build_sequence="yes"

	# Have to have found 64-bit types to support sequences.  If we don't
	# find the native types, we try and create our own.
	if test "$ac_cv_type_int64_t" = "no" -a -z "$int64_decl"; then
		db_cv_build_sequence="no"
	fi
	if test "$ac_cv_type_uint64_t" = "no" -a -z "$u_int64_decl"; then
		db_cv_build_sequence="no"
	fi

	# Figure out what type is the right size, and set the format.


	db_cv_seq_type="no"
	if test "$db_cv_build_sequence" = "yes" -a\
	    "$ac_cv_sizeof_long" -eq "8"; then
		db_cv_seq_type="long"
		db_cv_seq_fmt='"%ld"'
		db_cv_seq_ufmt='"%lu"'
		INT64_FMT='#define	INT64_FMT	"%ld"'
		UINT64_FMT='#define	UINT64_FMT	"%lu"'
	else if test "$db_cv_build_sequence" = "yes" -a\
	    "$ac_cv_sizeof_long_long" -eq "8"; then
		db_cv_seq_type="long long"
		db_cv_seq_fmt='"%lld"'
		db_cv_seq_ufmt='"%llu"'
		INT64_FMT='#define	INT64_FMT	"%lld"'
		UINT64_FMT='#define	UINT64_FMT	"%llu"'
	else
		db_cv_build_sequence="no"
	fi
	fi

	# Test to see if we can declare variables of the appropriate size
	# and format them.  If we're cross-compiling, all we get is a link
	# test, which won't test for the appropriate printf format strings.
	if test "$db_cv_build_sequence" = "yes"; then
		if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

			$db_cv_seq_type l;
			unsigned $db_cv_seq_type u;
			char buf[100];

			buf[0] = 'a';
			l = 9223372036854775807LL;
			(void)snprintf(buf, sizeof(buf), $db_cv_seq_fmt, l);
			if (strcmp(buf, "9223372036854775807"))
				return (1);
			u = 18446744073709551615ULL;
			(void)snprintf(buf, sizeof(buf), $db_cv_seq_ufmt, u);
			if (strcmp(buf, "18446744073709551615"))
				return (1);
			return (0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	db_cv_build_sequence="no"
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

		main() {
			$db_cv_seq_type l;
			unsigned $db_cv_seq_type u;
			char buf[100];

			buf[0] = 'a';
			l = 9223372036854775807LL;
			(void)snprintf(buf, sizeof(buf), $db_cv_seq_fmt, l);
			if (strcmp(buf, "9223372036854775807"))
				return (1);
			u = 18446744073709551615ULL;
			(void)snprintf(buf, sizeof(buf), $db_cv_seq_ufmt, u);
			if (strcmp(buf, "18446744073709551615"))
				return (1);
			return (0);
		}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
db_cv_build_sequence="no"
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


	fi
	if test "$db_cv_build_sequence" = "yes"; then

		db_seq_decl="typedef int64_t db_seq_t;";

		cat >>confdefs.h <<\_ACEOF
#define HAVE_64BIT_TYPES 1
_ACEOF



	else
		# It still has to compile, but it won't run.
		db_seq_decl="typedef int db_seq_t;";
	fi
	{ echo "$as_me:$LINENO: result: $db_cv_build_sequence" >&5
echo "${ECHO_T}$db_cv_build_sequence" >&6; }


# Optional DB 1.85 compatibility API.
if test "$db_cv_compat185" = "yes"; then
	ADDITIONAL_INCS="db_185.h $ADDITIONAL_INCS"

	ADDITIONAL_OBJS="db185${o} $ADDITIONAL_OBJS"
fi

# Optional utilities.
if test "$db_cv_dump185" = "yes"; then
	ADDITIONAL_PROGS="db_dump185 $ADDITIONAL_PROGS"
fi

# You can disable pieces of functionality to save space.
#
# Btree is always configured: it is the standard method, and Hash off-page
# duplicates require it.
ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(BTREE_OBJS)"

# Hash can be disabled.
if test "$db_cv_build_hash" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_HASH 1
_ACEOF



	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(HASH_OBJS)"
	if test "$db_cv_build_verify" = "yes"; then
		ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(HASH_VRFY_OBJS)"
	fi
else
	ADDITIONAL_OBJS="$ADDITIONAL_OBJS hash_stub${o}"
fi

# Queue can be disabled.
if test "$db_cv_build_queue" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_QUEUE 1
_ACEOF



	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(QUEUE_OBJS)"
	if test "$db_cv_build_verify" = "yes"; then
		ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(QUEUE_VRFY_OBJS)"
	fi
else
	ADDITIONAL_OBJS="$ADDITIONAL_OBJS qam_stub${o}"
fi

# Replication can be disabled.
if test "$db_cv_build_replication" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_REPLICATION 1
_ACEOF



	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(REP_OBJS)"

	if test "$db_cv_build_replication_mgr" = "yes"; then
		ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(REPMGR_OBJS)"
	fi
else
	ADDITIONAL_OBJS="$ADDITIONAL_OBJS rep_stub${o}"
fi

# The statistics code can be disabled.
if test "$db_cv_build_statistics" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_STATISTICS 1
_ACEOF



fi

# The verification code can be disabled.
if test "$db_cv_build_verify" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_VERIFY 1
_ACEOF



	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(BTREE_VRFY_OBJS)"
else
	ADDITIONAL_OBJS="$ADDITIONAL_OBJS db_vrfy_stub${o}"
fi

# The crypto code can be disabled.
if test -d "$srcdir/../crypto" -a "$db_cv_build_cryptography" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_CRYPTO 1
_ACEOF




	CRYPTO_OBJS="\$(CRYPTO_OBJS)"
else
	CRYPTO_OBJS="crypto_stub${o}"
fi

# If DIAGNOSTIC is defined, include the log print routines in the library
# itself, various diagnostic modes use them.
if test "$db_cv_diagnostic" = "yes"; then
	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(PRINT_OBJS)"
fi

# We need to add the additional object files into the Makefile with the correct
# suffix.  We can't use $LTLIBOBJS itself, because that variable has $U encoded
# in it for automake, and that's not what we want.  See SR #7227 for additional
# information.
#
# XXX: I'm not sure this is correct.
REPLACEMENT_OBJS=`echo "$LIBOBJS" |
		 sed "s,\.[^.]* ,$o ,g;s,\.[^.]*$,$o,"`

# This is necessary so that .o files in LIBOBJS are also built via
# the ANSI2KNR-filtering rules.
LIBOBJS=`echo "$LIBOBJS" |
	     sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
LTLIBOBJS=`echo "$LIBOBJS" |
	   sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`


# Initial output file list.
CREATE_LIST="Makefile
    db_cxx.h:$srcdir/../dbinc/db_cxx.in
    db_int.h:$srcdir/../dbinc/db_int.in
    clib_port.h:$srcdir/../dist/clib_port.h
    include.tcl:$srcdir/../test/include.tcl"

# MinGW needs win_db.h.
if test "$db_cv_mingw" = "yes"; then
CREATE_LIST="$CREATE_LIST
    win_db.h:$srcdir/win_db.in"
fi

# Create the db.h file from a source file, a list of global function
# prototypes, and, if configured for unique names, a list of #defines
# to do DB_VERSION_UNIQUE_NAME substitution.
if test "$db_cv_uniquename" = "yes"; then
	CREATE_LIST="$CREATE_LIST
	db.h:$srcdir/../dbinc/db.in:$srcdir/../dbinc_auto/ext_def.in:$srcdir/../dbinc_auto/ext_prot.in"
else
	CREATE_LIST="$CREATE_LIST
	db.h:$srcdir/../dbinc/db.in:$srcdir/../dbinc_auto/ext_prot.in"
fi

# If configured for unique names, create the db_int_uext.h file (which
# does the DB_VERSION_UNIQUE_NAME substitution), which is included by
# the db_int.h file.
if test "$db_cv_uniquename" = "yes"; then
	CREATE_LIST="$CREATE_LIST
	db_int_def.h:$srcdir/../dbinc_auto/int_def.in"
	db_int_def='#include "db_int_def.h"'
fi

# Create the db_185.h and db185_int.h files from source files, a list of
# global function prototypes, and, if configured for unique names, a list
# of #defines to do DB_VERSION_UNIQUE_NAME substitution.
if test "$db_cv_compat185" = "yes"; then
	if test "$db_cv_uniquename" = "yes"; then
		CREATE_LIST="$CREATE_LIST
		db_185.h:$srcdir/../dbinc/db_185.in:$srcdir/../dbinc_auto/ext_185_def.in:$srcdir/../dbinc_auto/ext_185_prot.in
		db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../dbinc_auto/ext_185_def.in:$srcdir/../dbinc_auto/ext_185_prot.in"
	else
		CREATE_LIST="$CREATE_LIST
		db_185.h:$srcdir/../dbinc/db_185.in:$srcdir/../dbinc_auto/ext_185_prot.in
		db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../dbinc_auto/ext_185_prot.in"
	fi
fi

ac_config_files="$ac_config_files $CREATE_LIST"

cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs



: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
fi
BIN_SH=xpg4; export BIN_SH # for Tru64
DUALCASE=1; export DUALCASE # for MKS sh


# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi

# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
as_nl='
'
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

# Work around bugs in pre-3.0 UWIN ksh.
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi


# Name of the executable.
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# CDPATH.
$as_unset CDPATH



  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, and appends
  # trailing '-' during substitution so that $LINENO is not a special
  # case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}


if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
esac

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir
fi
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  as_ln_s='ln -s'
  # ... but there are two gotchas:
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  # In both cases, we have to default to `cp -p'.
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
# systems may use methods other than mode bits to determine executability.
cat >conf$$.file <<_ASEOF
#! /bin/sh
exit 0
_ASEOF
chmod +x conf$$.file
if test -x conf$$.file >/dev/null 2>&1; then
  as_executable_p="test -x"
else
  as_executable_p=:
fi
rm -f conf$$.file

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1

# Save the log message, to keep $[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by Berkeley DB $as_me 4.5.20, which was
generated by GNU Autoconf 2.60.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number, then exit
  -q, --quiet      do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
		   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
		   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Report bugs to <bug-autoconf@@gnu.org>."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
Berkeley DB config.status 4.5.20
configured by $0, generated by GNU Autoconf 2.60,
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"

Copyright (C) 2006 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    echo "$ac_cs_version"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    { echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) { echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; } ;;

  *) ac_config_targets="$ac_config_targets $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
if \$ac_cs_recheck; then
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  CONFIG_SHELL=$SHELL
  export CONFIG_SHELL
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "db_config.h") CONFIG_HEADERS="$CONFIG_HEADERS db_config.h:config.hin" ;;
    "$CREATE_LIST") CONFIG_FILES="$CONFIG_FILES $CREATE_LIST" ;;

  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp=
  trap 'exit_status=$?
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
  trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} ||
{
   echo "$me: cannot create a temporary directory in ." >&2
   { (exit 1); exit 1; }
}

#
# Set up the sed scripts for CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "$CONFIG_FILES"; then

_ACEOF



ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
SHELL!$SHELL$ac_delim
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
exec_prefix!$exec_prefix$ac_delim
prefix!$prefix$ac_delim
program_transform_name!$program_transform_name$ac_delim
bindir!$bindir$ac_delim
sbindir!$sbindir$ac_delim
libexecdir!$libexecdir$ac_delim
datarootdir!$datarootdir$ac_delim
datadir!$datadir$ac_delim
sysconfdir!$sysconfdir$ac_delim
sharedstatedir!$sharedstatedir$ac_delim
localstatedir!$localstatedir$ac_delim
includedir!$includedir$ac_delim
oldincludedir!$oldincludedir$ac_delim
docdir!$docdir$ac_delim
infodir!$infodir$ac_delim
htmldir!$htmldir$ac_delim
dvidir!$dvidir$ac_delim
pdfdir!$pdfdir$ac_delim
psdir!$psdir$ac_delim
libdir!$libdir$ac_delim
localedir!$localedir$ac_delim
mandir!$mandir$ac_delim
DEFS!$DEFS$ac_delim
ECHO_C!$ECHO_C$ac_delim
ECHO_N!$ECHO_N$ac_delim
ECHO_T!$ECHO_T$ac_delim
LIBS!$LIBS$ac_delim
build_alias!$build_alias$ac_delim
host_alias!$host_alias$ac_delim
target_alias!$target_alias$ac_delim
build!$build$ac_delim
build_cpu!$build_cpu$ac_delim
build_vendor!$build_vendor$ac_delim
build_os!$build_os$ac_delim
host!$host$ac_delim
host_cpu!$host_cpu$ac_delim
host_vendor!$host_vendor$ac_delim
host_os!$host_os$ac_delim
ADDITIONAL_INCS!$ADDITIONAL_INCS$ac_delim
ADDITIONAL_LANG!$ADDITIONAL_LANG$ac_delim
ADDITIONAL_OBJS!$ADDITIONAL_OBJS$ac_delim
ADDITIONAL_PROGS!$ADDITIONAL_PROGS$ac_delim
BUILD_TARGET!$BUILD_TARGET$ac_delim
CFLAGS!$CFLAGS$ac_delim
CONFIGURATION_ARGS!$CONFIGURATION_ARGS$ac_delim
CONFIGURATION_PATH!$CONFIGURATION_PATH$ac_delim
CPPFLAGS!$CPPFLAGS$ac_delim
CRYPTO_OBJS!$CRYPTO_OBJS$ac_delim
CXX!$CXX$ac_delim
CXXFLAGS!$CXXFLAGS$ac_delim
DB_PROTO1!$DB_PROTO1$ac_delim
DB_PROTO2!$DB_PROTO2$ac_delim
DEFAULT_LIB!$DEFAULT_LIB$ac_delim
DEFAULT_LIB_CXX!$DEFAULT_LIB_CXX$ac_delim
INSTALLER!$INSTALLER$ac_delim
INSTALL_LIBS!$INSTALL_LIBS$ac_delim
INSTALL_TARGET!$INSTALL_TARGET$ac_delim
JAR!$JAR$ac_delim
JAVACFLAGS!$JAVACFLAGS$ac_delim
LDFLAGS!$LDFLAGS$ac_delim
LIBCSO_LIBS!$LIBCSO_LIBS$ac_delim
LIBJSO_LIBS!$LIBJSO_LIBS$ac_delim
LIBSO_LIBS!$LIBSO_LIBS$ac_delim
LIBTOOL!$LIBTOOL$ac_delim
LIBTSO_LIBS!$LIBTSO_LIBS$ac_delim
LIBTSO_MODSUFFIX!$LIBTSO_MODSUFFIX$ac_delim
LIBTSO_MODULE!$LIBTSO_MODULE$ac_delim
LIBXSO_LIBS!$LIBXSO_LIBS$ac_delim
MAKEFILE_CC!$MAKEFILE_CC$ac_delim
MAKEFILE_CCLINK!$MAKEFILE_CCLINK$ac_delim
MAKEFILE_CXX!$MAKEFILE_CXX$ac_delim
MAKEFILE_CXXLINK!$MAKEFILE_CXXLINK$ac_delim
MAKEFILE_SOLINK!$MAKEFILE_SOLINK$ac_delim
MAKEFILE_XSOLINK!$MAKEFILE_XSOLINK$ac_delim
OSDIR!$OSDIR$ac_delim
POSTLINK!$POSTLINK$ac_delim
REPLACEMENT_OBJS!$REPLACEMENT_OBJS$ac_delim
RPC_CLIENT_OBJS!$RPC_CLIENT_OBJS$ac_delim
RPC_SERVER_H!$RPC_SERVER_H$ac_delim
SOFLAGS!$SOFLAGS$ac_delim
SWIGCFLAGS!$SWIGCFLAGS$ac_delim
TEST_LIBS!$TEST_LIBS$ac_delim
db_int_def!$db_int_def$ac_delim
o!$o$ac_delim
platform_header!$platform_header$ac_delim
platform_footer!$platform_footer$ac_delim
DB_VERSION_MAJOR!$DB_VERSION_MAJOR$ac_delim
DB_VERSION_MINOR!$DB_VERSION_MINOR$ac_delim
DB_VERSION_PATCH!$DB_VERSION_PATCH$ac_delim
DB_VERSION_STRING!$DB_VERSION_STRING$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g
s/^/s,@@/; s/!/@@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF


ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
DB_VERSION_UNIQUE_NAME!$DB_VERSION_UNIQUE_NAME$ac_delim
AR!$AR$ac_delim
CHMOD!$CHMOD$ac_delim
CP!$CP$ac_delim
KILL!$KILL$ac_delim
LN!$LN$ac_delim
MKDIR!$MKDIR$ac_delim
RANLIB!$RANLIB$ac_delim
RM!$RM$ac_delim
RPCGEN!$RPCGEN$ac_delim
db_cv_path_sh!$db_cv_path_sh$ac_delim
STRIP!$STRIP$ac_delim
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
INSTALL_DATA!$INSTALL_DATA$ac_delim
CC!$CC$ac_delim
ac_ct_CC!$ac_ct_CC$ac_delim
EXEEXT!$EXEEXT$ac_delim
OBJEXT!$OBJEXT$ac_delim
DB_CONST!$DB_CONST$ac_delim
CCC!$CCC$ac_delim
ac_ct_CXX!$ac_ct_CXX$ac_delim
CXXCPP!$CXXCPP$ac_delim
cxx_have_stdheaders!$cxx_have_stdheaders$ac_delim
GREP!$GREP$ac_delim
EGREP!$EGREP$ac_delim
LN_S!$LN_S$ac_delim
ECHO!$ECHO$ac_delim
CPP!$CPP$ac_delim
F77!$F77$ac_delim
FFLAGS!$FFLAGS$ac_delim
ac_ct_F77!$ac_ct_F77$ac_delim
SOSUFFIX!$SOSUFFIX$ac_delim
MODSUFFIX!$MODSUFFIX$ac_delim
JMODSUFFIX!$JMODSUFFIX$ac_delim
JAVAC!$JAVAC$ac_delim
JAVA!$JAVA$ac_delim
uudecode!$uudecode$ac_delim
_ACJNI_JAVAC!$_ACJNI_JAVAC$ac_delim
inttypes_h_decl!$inttypes_h_decl$ac_delim
stdint_h_decl!$stdint_h_decl$ac_delim
stddef_h_decl!$stddef_h_decl$ac_delim
unistd_h_decl!$unistd_h_decl$ac_delim
u_char_decl!$u_char_decl$ac_delim
u_short_decl!$u_short_decl$ac_delim
u_int_decl!$u_int_decl$ac_delim
u_long_decl!$u_long_decl$ac_delim
u_int8_decl!$u_int8_decl$ac_delim
u_int16_decl!$u_int16_decl$ac_delim
int16_decl!$int16_decl$ac_delim
u_int32_decl!$u_int32_decl$ac_delim
int32_decl!$int32_decl$ac_delim
u_int64_decl!$u_int64_decl$ac_delim
int64_decl!$int64_decl$ac_delim
ssize_t_decl!$ssize_t_decl$ac_delim
pid_t_decl!$pid_t_decl$ac_delim
uintmax_t_decl!$uintmax_t_decl$ac_delim
uintptr_t_decl!$uintptr_t_decl$ac_delim
thread_h_decl!$thread_h_decl$ac_delim
db_threadid_t_decl!$db_threadid_t_decl$ac_delim
LIBOBJS!$LIBOBJS$ac_delim
TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
TCL_TCLSH!$TCL_TCLSH$ac_delim
INT64_FMT!$INT64_FMT$ac_delim
UINT64_FMT!$UINT64_FMT$ac_delim
db_seq_decl!$db_seq_decl$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 70; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b end
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g
s/^/s,@@/; s/!/@@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
:end
s/|#_!!_#|//g
CEOF$ac_eof
_ACEOF


# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@@srcdir@@:*/:/
s/^\([^=]*=[	 ]*\):*/\1/
s/:*$//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF
fi # test -n "$CONFIG_FILES"


for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   { (exit 1); exit 1; }; };;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   { (exit 1); exit 1; }; };;
      esac
      ac_file_inputs="$ac_file_inputs $ac_f"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input="Generated from "`IFS=:
	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    fi

    case $ac_tag in
    *:-:* | *:-) cat >"$tmp/stdin";;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  { as_dir="$ac_dir"
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&2;}
   { (exit 1); exit 1; }; }; }
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=

case `sed -n '/datarootdir/ {
  p
  q
}
/@@datadir@@/p
/@@docdir@@/p
/@@infodir@@/p
/@@localedir@@/p
/@@mandir@@/p
' $ac_file_inputs` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@@datadir@@*|*@@docdir@@*|*@@infodir@@*|*@@localedir@@*|*@@mandir@@*)
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
  ac_datarootdir_hack='
  s&@@datadir@@&$datadir&g
  s&@@docdir@@&$docdir&g
  s&@@infodir@@&$infodir&g
  s&@@localedir@@&$localedir&g
  s&@@mandir@@&$mandir&g
    s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF
  sed "$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s&@@configure_input@@&$configure_input&;t t
s&@@top_builddir@@&$ac_top_builddir_sub&;t t
s&@@srcdir@@&$ac_srcdir&;t t
s&@@abs_srcdir@@&$ac_abs_srcdir&;t t
s&@@top_srcdir@@&$ac_top_srcdir&;t t
s&@@abs_top_srcdir@@&$ac_abs_top_srcdir&;t t
s&@@builddir@@&$ac_builddir&;t t
s&@@abs_builddir@@&$ac_abs_builddir&;t t
s&@@abs_top_builddir@@&$ac_abs_top_builddir&;t t
s&@@INSTALL@@&$ac_INSTALL&;t t
$ac_datarootdir_hack
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&5
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&2;}

  rm -f "$tmp/stdin"
  case $ac_file in
  -) cat "$tmp/out"; rm -f "$tmp/out";;
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  esac
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
_ACEOF

# Transform confdefs.h into a sed script `conftest.defines', that
# substitutes the proper values into config.h.in to produce config.h.
rm -f conftest.defines conftest.tail
# First, append a space to every undef/define line, to ease matching.
echo 's/$/ /' >conftest.defines
# Then, protect against being on the right side of a sed subst, or in
# an unquoted here document, in config.status.  If some macros were
# called several times there might be several #defines for the same
# symbol, which is useless.  But do not sort them, since the last
# AC_DEFINE must be honored.
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
# NAME is the cpp macro being defined, VALUE is the value it is being given.
# PARAMS is the parameter list in the macro definition--in most cases, it's
# just an empty string.
ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
ac_dB='\\)[	 (].*,\\1define\\2'
ac_dC=' '
ac_dD=' ,'

uniq confdefs.h |
  sed -n '
	t rset
	:rset
	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
	t ok
	d
	:ok
	s/[\\&,]/\\&/g
	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  ' >>conftest.defines

# Remove the space that was appended to ease matching.
# Then replace #undef with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
# (The regexp can be short, since the line contains either #define or #undef.)
echo 's/ $//
s,^[	 #]*u.*,/* & */,' >>conftest.defines

# Break up conftest.defines:
ac_max_sed_lines=50

# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
# et cetera.
ac_in='$ac_file_inputs'
ac_out='"$tmp/out1"'
ac_nxt='"$tmp/out2"'

while :
do
  # Write a here document:
    cat >>$CONFIG_STATUS <<_ACEOF
    # First, check the format of the line:
    cat >"\$tmp/defines.sed" <<\\CEOF
/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
b
:def
_ACEOF
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  echo 'CEOF
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  grep . conftest.tail >/dev/null || break
  rm -f conftest.defines
  mv conftest.tail conftest.defines
done
rm -f conftest.defines conftest.tail

echo "ac_result=$ac_in" >>$CONFIG_STATUS
cat >>$CONFIG_STATUS <<\_ACEOF
  if test x"$ac_file" != x-; then
    echo "/* $configure_input  */" >"$tmp/config.h"
    cat "$ac_result" >>"$tmp/config.h"
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f $ac_file
      mv "$tmp/config.h" $ac_file
    fi
  else
    echo "/* $configure_input  */"
    cat "$ac_result"
  fi
  rm -f "$tmp/out12"
 ;;


  esac

done # for ac_tag


{ (exit 0); exit 0; }
_ACEOF
chmod +x $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi

@


1.15
log
@Upgrade to db-4.4.20 - replace files and remove old cruft.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.59 for Berkeley DB 4.4.20.
d5 1
a5 1
# Report bugs to <support@@sleepycat.com>.
d7 2
a8 1
# Copyright (C) 2003 Free Software Foundation, Inc.
d22 3
a24 2
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
d26 1
d29 22
d59 33
d93 3
a95 1
$as_unset ENV MAIL MAILPATH
d109 1
a109 1
    $as_unset $as_var
d114 2
a115 1
if expr a : '\(a\)' >/dev/null 2>&1; then
d121 1
a121 1
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
d129 1
a129 1
as_me=`$as_basename "$0" ||
d132 1
a132 2
	 X"$0" : 'X\(/\)$' \| \
	 .     : '\(.\)' 2>/dev/null ||
d134 49
a182 4
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  	  /^X\/\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d184 4
d189 6
a194 7
# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
d196 3
a198 11
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
d201 6
d208 1
a208 16
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  # Find who we are.  Look in the path if we contain no path at all
  # relative or not.
  case $0 in
    *[\\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
d210 9
a218 13
       ;;
  esac
  # We did not find ourselves, most probably we were run as `sh COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
d220 1
a220 1
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
d224 1
a224 2
  for as_base in sh bash ksh sh5; do
	 case $as_dir in
d226 193
a418 1
	   if ("$as_dir/$as_base" -c '
a420 1
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
d422 1
a422 12
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
	     CONFIG_SHELL=$as_dir/$as_base
	     export CONFIG_SHELL
	     exec "$CONFIG_SHELL" "$0" ${1+"$@@"}
	   fi;;
	 esac
       done
done
;;
  esac
d426 5
a430 4
  # line-number line before each line; the second 'sed' does the real
  # work.  The second script uses 'N' to pair each line-number line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special case at line end.
d432 6
a437 2
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  sed '=' <$as_myself |
d439 4
d444 2
a445 3
      s,$,-,
      : loop
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
d447 1
a447 2
      s,-$,,
      s,^['$as_cr_digits']*\n,,
d449 1
a449 1
  chmod +x $as_me.lineno ||
d455 2
a456 2
  # original and so on.  Autoconf is especially sensible to this).
  . ./$as_me.lineno
d462 15
a476 5
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
d479 2
a480 1
if expr a : '\(a\)' >/dev/null 2>&1; then
d487 6
d495 6
a500 4
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
a501 3
  else
    as_ln_s='ln -s'
  fi
d507 2
a508 1
rm -f conf$$ conf$$.exe conf$$.file
d517 13
a529 1
as_executable_p="test -f"
a537 9
# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH

d693 2
a699 2
exec 6>&1

d704 1
d706 1
a712 5
# Maximum number of lines to put in a shell here document.
# This variable seems obsolete.  It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}

d715 4
a718 4
PACKAGE_TARNAME='db-4.4.20'
PACKAGE_VERSION='4.4.20'
PACKAGE_STRING='Berkeley DB 4.4.20'
PACKAGE_BUGREPORT='support@@sleepycat.com'
d721 1
a721 1
ac_default_prefix=/usr/local/BerkeleyDB.4.4
d750 3
a752 4
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
d758 167
a924 1
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os ADDITIONAL_INCS ADDITIONAL_LANG ADDITIONAL_OBJS ADDITIONAL_PROGS BUILD_TARGET CFLAGS CONFIGURATION_ARGS CONFIGURATION_PATH CPPFLAGS CRYPTO_OBJS CXX CXXFLAGS DB_PROTO1 DB_PROTO2 DEFAULT_LIB DEFAULT_LIB_CXX INSTALLER INSTALL_LIBS INSTALL_TARGET JAR JAVACFLAGS LDFLAGS LIBCSO_LIBS LIBJSO_LIBS LIBSO_LIBS LIBTOOL LIBTSO_LIBS LIBTSO_MODSUFFIX LIBTSO_MODULE LIBXSO_LIBS MAKEFILE_CC MAKEFILE_CCLINK MAKEFILE_CXX MAKEFILE_CXXLINK MAKEFILE_SOLINK MAKEFILE_XSOLINK OSDIR POSTLINK REPLACEMENT_OBJS RPC_CLIENT_OBJS RPC_SERVER_H SOFLAGS TEST_LIBS db_cv_build_type db_int_def o DB_VERSION_MAJOR DB_VERSION_MINOR DB_VERSION_PATCH DB_VERSION_STRING DB_VERSION_UNIQUE_NAME db_cv_path_ar ac_ct_db_cv_path_ar db_cv_path_chmod ac_ct_db_cv_path_chmod db_cv_path_cp ac_ct_db_cv_path_cp db_cv_path_ln ac_ct_db_cv_path_ln db_cv_path_mkdir ac_ct_db_cv_path_mkdir path_ranlib ac_ct_path_ranlib db_cv_path_ranlib db_cv_path_rm ac_ct_db_cv_path_rm db_cv_path_rpcgen ac_ct_db_cv_path_rpcgen path_sh ac_ct_path_sh db_cv_path_sh db_cv_path_true ac_ct_db_cv_path_true path_strip ac_ct_path_strip db_cv_path_strip db_cv_path_kill ac_ct_db_cv_path_kill INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC ac_ct_CC EXEEXT OBJEXT DB_CONST CCC ac_ct_CCC ac_ct_CXX CXXCPP cxx_have_stdheaders EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP F77 FFLAGS ac_ct_F77 SOSUFFIX MODSUFFIX JMODSUFFIX JAVAC JAVA uudecode _ACJNI_JAVAC inttypes_h_decl stdint_h_decl stddef_h_decl unistd_h_decl u_char_decl u_short_decl u_int_decl u_long_decl u_int8_decl u_int16_decl int16_decl u_int32_decl int32_decl u_int64_decl int64_decl ssize_t_decl pid_t_decl uintmax_t_decl uintptr_t_decl thread_h_decl db_threadid_t_decl LIBOBJS TCL_BIN_DIR TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_SRC_DIR TCL_TCLSH INT64_FMT UINT64_FMT db_seq_decl LTLIBOBJS'
d926 15
d967 1
d971 2
a972 1
datadir='${prefix}/share'
a975 1
libdir='${exec_prefix}/lib'
d978 9
a986 2
infodir='${prefix}/info'
mandir='${prefix}/man'
d989 1
d994 1
a994 1
    eval "$ac_prev=\$ac_option"
d999 4
a1002 1
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
d1006 3
a1008 1
  case $ac_option in
d1030 1
a1030 1
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
d1032 1
a1032 2
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
d1035 7
d1049 11
a1059 1
    eval "enable_$ac_feature=no" ;;
d1068 1
a1068 5
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) ac_optarg=yes ;;
    esac
    eval "enable_$ac_feature='$ac_optarg'" ;;
d1095 6
d1125 5
d1131 1
a1131 2
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
d1134 1
a1134 2
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
d1199 10
d1265 1
a1265 5
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) ac_optarg=yes ;;
    esac
    eval "with_$ac_package='$ac_optarg'" ;;
d1274 1
a1274 1
    eval "with_$ac_package=no" ;;
d1305 1
a1305 2
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    eval "$ac_envvar='$ac_optarg'"
d1325 5
a1329 2
# Be sure to have absolute paths.
for ac_var in exec_prefix prefix
d1331 1
a1331 1
  eval ac_val=$`echo $ac_var`
d1333 2
a1334 15
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
	      localstatedir libdir includedir oldincludedir infodir mandir
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* ) ;;
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
d1336 2
d1364 10
d1377 2
a1378 2
  # Try the directory containing this script, then its parent.
  ac_confdir=`(dirname "$0") 2>/dev/null ||
d1382 1
a1382 2
	 X"$0" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
d1384 17
a1400 5
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d1402 1
a1402 1
  if test ! -r $srcdir/$ac_unique_file; then
d1408 26
a1433 65
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
   { (exit 1); exit 1; }; }
  else
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   { (exit 1); exit 1; }; }
  fi
fi
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
   { (exit 1); exit 1; }; }
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
ac_env_CC_set=${CC+set}
ac_env_CC_value=$CC
ac_cv_env_CC_set=${CC+set}
ac_cv_env_CC_value=$CC
ac_env_CFLAGS_set=${CFLAGS+set}
ac_env_CFLAGS_value=$CFLAGS
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_value=$CFLAGS
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_LDFLAGS_value=$LDFLAGS
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_value=$LDFLAGS
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPPFLAGS_value=$CPPFLAGS
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
ac_env_CXX_set=${CXX+set}
ac_env_CXX_value=$CXX
ac_cv_env_CXX_set=${CXX+set}
ac_cv_env_CXX_value=$CXX
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_env_CXXFLAGS_value=$CXXFLAGS
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
ac_env_CXXCPP_set=${CXXCPP+set}
ac_env_CXXCPP_value=$CXXCPP
ac_cv_env_CXXCPP_set=${CXXCPP+set}
ac_cv_env_CXXCPP_value=$CXXCPP
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
ac_env_F77_set=${F77+set}
ac_env_F77_value=$F77
ac_cv_env_F77_set=${F77+set}
ac_cv_env_F77_value=$F77
ac_env_FFLAGS_set=${FFLAGS+set}
ac_env_FFLAGS_value=$FFLAGS
ac_cv_env_FFLAGS_set=${FFLAGS+set}
ac_cv_env_FFLAGS_value=$FFLAGS
d1442 1
a1442 1
\`configure' configures Berkeley DB 4.4.20 to adapt to many kinds of systems.
a1461 3
_ACEOF

  cat <<_ACEOF
a1478 1
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
d1485 10
a1494 2
  --infodir=DIR          info documentation [PREFIX/info]
  --mandir=DIR           man documentation [PREFIX/man]
d1512 1
a1512 1
     short | recursive ) echo "Configuration of Berkeley DB 4.4.20:";;
d1537 2
a1538 1
  --enable-pthread_self   Force use of pthread_self to identify threads.
d1545 2
a1546 4
  --enable-shared[=PKGS]
                          build shared libraries [default=yes]
  --enable-static[=PKGS]
                          build static libraries [default=yes]
d1563 1
a1563 2
  --with-tags[=TAGS]
                          include additional configurations [automatic]
d1570 2
a1571 2
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
d1582 1
a1582 1
Report bugs to <support@@sleepycat.com>.
d1584 1
a1588 1
  ac_popdir=`pwd`
d1590 1
a1590 1
    test -d $ac_dir || continue
d1593 3
a1595 1
if test "$ac_dir" != .; then
d1597 11
a1607 5
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi
d1610 1
a1610 1
  .)  # No --srcdir option.  We are building in place.
d1612 3
a1614 6
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
d1616 17
a1632 57
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac

# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
case `pwd` in
.) ac_abs_builddir="$ac_dir";;
*)
  case "$ac_dir" in
  .) ac_abs_builddir=`pwd`;;
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
  case ${ac_top_builddir}. in
  .) ac_abs_top_builddir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
  case $ac_srcdir in
  .) ac_abs_srcdir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
  case $ac_top_srcdir in
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  esac;;
esac

    cd $ac_dir
    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f $ac_srcdir/configure.gnu; then
      echo
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_srcdir/configure; then
      echo
      $SHELL $ac_srcdir/configure  --help=recursive
    elif test -f $ac_srcdir/configure.ac ||
	   test -f $ac_srcdir/configure.in; then
      echo
      $ac_configure --help
d1635 2
a1636 2
    fi
    cd $ac_popdir
d1640 1
a1640 1
test -n "$ac_init_help" && exit 0
d1643 2
a1644 2
Berkeley DB configure 4.4.20
generated by GNU Autoconf 2.59
d1646 2
a1647 1
Copyright (C) 2003 Free Software Foundation, Inc.
d1651 1
a1651 1
  exit 0
d1653 1
a1653 2
exec 5>config.log
cat >&5 <<_ACEOF
d1657 2
a1658 2
It was created by Berkeley DB $as_me 4.4.20, which was
generated by GNU Autoconf 2.59.  Invocation command line was
d1663 1
d1682 1
a1682 1
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
d1696 1
a1717 1
ac_sep=
d1728 1
a1728 1
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
d1750 1
a1750 3
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
      # Get rid of the leading space.
      ac_sep=" "
d1761 2
a1762 2
# WARNING: Be sure not to use single quotes in there, as some shells,
# such as our DU 5.0 friend, will then `close' the trap.
d1775 15
a1789 1
{
d1791 2
a1792 2
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
d1794 3
a1796 3
	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
d1798 1
a1798 2
      sed -n \
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
d1800 3
a1802 2
    esac;
}
d1813 5
a1817 2
      eval ac_val=$`echo $ac_var`
      echo "$ac_var='"'"'$ac_val'"'"'"
d1823 3
a1825 3
## ------------- ##
## Output files. ##
## ------------- ##
d1830 5
a1834 2
	eval ac_val=$`echo $ac_var`
	echo "$ac_var='"'"'$ac_val'"'"'"
d1846 1
a1846 1
      sed "/^$/d" confdefs.h | sort
d1853 2
a1854 2
  rm -f core *.core &&
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
d1856 1
a1856 1
     ' 0
d1863 1
a1863 3
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h
d1894 7
a1900 6
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
d1902 3
a1904 1
for ac_site_file in $CONFIG_SITE; do
d1920 2
a1921 2
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
d1933 1
a1933 2
for ac_var in `(set) 2>&1 |
	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
d1936 2
a1937 2
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  eval ac_new_val="\$ac_env_${ac_var}_value"
d1962 1
a1962 2
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a1978 6
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

d2003 5
d2011 1
a2011 1
          ac_config_headers="$ac_config_headers db_config.h:config.hin"
d2016 2
a2017 2
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
d2021 1
a2021 1
  elif test -f $ac_dir/install.sh; then
d2025 1
a2025 1
  elif test -f $ac_dir/shtool; then
d2032 2
a2033 2
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
d2036 9
a2044 3
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
d2047 3
a2049 3
$ac_config_sub sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
d2052 2
a2053 2
echo "$as_me:$LINENO: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
d2057 4
a2060 4
  ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
  ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
d2064 3
a2066 3
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
d2070 8
a2077 2
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
d2079 11
a2089 3
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
d2092 2
a2093 2
echo "$as_me:$LINENO: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
d2097 6
a2102 6
  ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
  ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
d2104 1
d2107 8
a2114 2
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
d2116 11
a2126 3
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
d2130 1
a2130 1
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
d2133 1
a2133 1
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
d2140 1
a2140 1
rm conftest.sed
d2144 2
a2145 2
echo "$as_me:$LINENO: checking if building in the top-level or dist directories" >&5
echo $ECHO_N "checking if building in the top-level or dist directories... $ECHO_C" >&6
d2147 10
a2156 4
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	{ { echo "$as_me:$LINENO: error: Berkeley DB should not be built in the top-level or dist directories." >&5
echo "$as_me: error: Berkeley DB should not be built in the top-level or dist directories." >&2;}
d2158 1
d2160 2
a2161 2
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d2213 4
d2224 1
a2224 1
DB_VERSION_MINOR="4"
d2228 1
a2228 1
DB_VERSION_STRING='"Sleepycat Software: Berkeley DB 4.4.20: (January 10, 2006)"'
d2236 1
a2236 1
# Check whether --enable-bigfile or --disable-bigfile was given.
d2238 1
a2238 2
  enableval="$enable_bigfile"
  { { echo "$as_me:$LINENO: error: --enable-bigfile no longer supported, use --enable-largefile" >&5
d2241 2
a2242 1
fi;
d2244 3
a2246 3
echo "$as_me:$LINENO: checking if --disable-cryptography option specified" >&5
echo $ECHO_N "checking if --disable-cryptography option specified... $ECHO_C" >&6
# Check whether --enable-cryptography or --disable-cryptography was given.
d2248 1
a2248 2
  enableval="$enable_cryptography"

d2251 2
a2252 1
fi;
d2255 4
a2258 4
 no) echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6;;
yes) echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6;;
d2261 3
a2263 3
echo "$as_me:$LINENO: checking if --disable-hash option specified" >&5
echo $ECHO_N "checking if --disable-hash option specified... $ECHO_C" >&6
# Check whether --enable-hash or --disable-hash was given.
d2265 1
a2265 2
  enableval="$enable_hash"

d2268 2
a2269 1
fi;
d2272 4
a2275 4
 no) echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6;;
yes) echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6;;
d2278 3
a2280 3
echo "$as_me:$LINENO: checking if --disable-queue option specified" >&5
echo $ECHO_N "checking if --disable-queue option specified... $ECHO_C" >&6
# Check whether --enable-queue or --disable-queue was given.
d2282 1
a2282 2
  enableval="$enable_queue"

d2285 2
a2286 1
fi;
d2289 4
a2292 4
 no) echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6;;
yes) echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6;;
d2295 3
a2297 3
echo "$as_me:$LINENO: checking if --disable-replication option specified" >&5
echo $ECHO_N "checking if --disable-replication option specified... $ECHO_C" >&6
# Check whether --enable-replication or --disable-replication was given.
d2299 1
a2299 2
  enableval="$enable_replication"

d2302 2
a2303 1
fi;
d2306 4
a2309 4
 no) echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6;;
yes) echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6;;
d2312 3
a2314 3
echo "$as_me:$LINENO: checking if --disable-statistics option specified" >&5
echo $ECHO_N "checking if --disable-statistics option specified... $ECHO_C" >&6
# Check whether --enable-statistics or --disable-statistics was given.
d2316 1
a2316 2
  enableval="$enable_statistics"

d2319 2
a2320 1
fi;
d2323 4
a2326 4
 no) echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6;;
yes) echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6;;
d2329 3
a2331 3
echo "$as_me:$LINENO: checking if --disable-verify option specified" >&5
echo $ECHO_N "checking if --disable-verify option specified... $ECHO_C" >&6
# Check whether --enable-verify or --disable-verify was given.
d2333 1
a2333 2
  enableval="$enable_verify"

d2336 2
a2337 1
fi;
d2340 4
a2343 4
 no) echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6;;
yes) echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6;;
d2346 3
a2348 3
echo "$as_me:$LINENO: checking if --enable-compat185 option specified" >&5
echo $ECHO_N "checking if --enable-compat185 option specified... $ECHO_C" >&6
# Check whether --enable-compat185 or --disable-compat185 was given.
d2350 1
a2350 2
  enableval="$enable_compat185"
  db_cv_compat185="$enable_compat185"
d2353 8
a2360 7
fi;
echo "$as_me:$LINENO: result: $db_cv_compat185" >&5
echo "${ECHO_T}$db_cv_compat185" >&6

echo "$as_me:$LINENO: checking if --enable-cxx option specified" >&5
echo $ECHO_N "checking if --enable-cxx option specified... $ECHO_C" >&6
# Check whether --enable-cxx or --disable-cxx was given.
d2362 1
a2362 2
  enableval="$enable_cxx"
  db_cv_cxx="$enable_cxx"
d2365 8
a2372 7
fi;
echo "$as_me:$LINENO: result: $db_cv_cxx" >&5
echo "${ECHO_T}$db_cv_cxx" >&6

echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
# Check whether --enable-debug or --disable-debug was given.
d2374 1
a2374 2
  enableval="$enable_debug"
  db_cv_debug="$enable_debug"
d2377 8
a2384 7
fi;
echo "$as_me:$LINENO: result: $db_cv_debug" >&5
echo "${ECHO_T}$db_cv_debug" >&6

echo "$as_me:$LINENO: checking if --enable-debug_rop option specified" >&5
echo $ECHO_N "checking if --enable-debug_rop option specified... $ECHO_C" >&6
# Check whether --enable-debug_rop or --disable-debug_rop was given.
d2386 1
a2386 2
  enableval="$enable_debug_rop"
  db_cv_debug_rop="$enable_debug_rop"
d2389 8
a2396 7
fi;
echo "$as_me:$LINENO: result: $db_cv_debug_rop" >&5
echo "${ECHO_T}$db_cv_debug_rop" >&6

echo "$as_me:$LINENO: checking if --enable-debug_wop option specified" >&5
echo $ECHO_N "checking if --enable-debug_wop option specified... $ECHO_C" >&6
# Check whether --enable-debug_wop or --disable-debug_wop was given.
d2398 1
a2398 2
  enableval="$enable_debug_wop"
  db_cv_debug_wop="$enable_debug_wop"
d2401 8
a2408 7
fi;
echo "$as_me:$LINENO: result: $db_cv_debug_wop" >&5
echo "${ECHO_T}$db_cv_debug_wop" >&6

echo "$as_me:$LINENO: checking if --enable-diagnostic option specified" >&5
echo $ECHO_N "checking if --enable-diagnostic option specified... $ECHO_C" >&6
# Check whether --enable-diagnostic or --disable-diagnostic was given.
d2410 1
a2410 2
  enableval="$enable_diagnostic"
  db_cv_diagnostic="$enable_diagnostic"
d2413 2
a2414 1
fi;
d2416 2
a2417 2
	echo "$as_me:$LINENO: result: $db_cv_diagnostic" >&5
echo "${ECHO_T}$db_cv_diagnostic" >&6
d2421 2
a2422 2
	echo "$as_me:$LINENO: result: by --enable-debug_rop" >&5
echo "${ECHO_T}by --enable-debug_rop" >&6
d2426 2
a2427 2
	echo "$as_me:$LINENO: result: by --enable-debug_wop" >&5
echo "${ECHO_T}by --enable-debug_wop" >&6
d2430 2
a2431 2
	echo "$as_me:$LINENO: result: $db_cv_diagnostic" >&5
echo "${ECHO_T}$db_cv_diagnostic" >&6
d2434 3
a2436 3
echo "$as_me:$LINENO: checking if --enable-dump185 option specified" >&5
echo $ECHO_N "checking if --enable-dump185 option specified... $ECHO_C" >&6
# Check whether --enable-dump185 or --disable-dump185 was given.
d2438 1
a2438 2
  enableval="$enable_dump185"
  db_cv_dump185="$enable_dump185"
d2441 8
a2448 7
fi;
echo "$as_me:$LINENO: result: $db_cv_dump185" >&5
echo "${ECHO_T}$db_cv_dump185" >&6

echo "$as_me:$LINENO: checking if --enable-java option specified" >&5
echo $ECHO_N "checking if --enable-java option specified... $ECHO_C" >&6
# Check whether --enable-java or --disable-java was given.
d2450 1
a2450 2
  enableval="$enable_java"
  db_cv_java="$enable_java"
d2453 8
a2460 7
fi;
echo "$as_me:$LINENO: result: $db_cv_java" >&5
echo "${ECHO_T}$db_cv_java" >&6

echo "$as_me:$LINENO: checking if --enable-mingw option specified" >&5
echo $ECHO_N "checking if --enable-mingw option specified... $ECHO_C" >&6
# Check whether --enable-mingw or --disable-mingw was given.
d2462 1
a2462 2
  enableval="$enable_mingw"
  db_cv_mingw="$enable_mingw"
d2465 8
a2472 7
fi;
echo "$as_me:$LINENO: result: $db_cv_mingw" >&5
echo "${ECHO_T}$db_cv_mingw" >&6

echo "$as_me:$LINENO: checking if --enable-o_direct option specified" >&5
echo $ECHO_N "checking if --enable-o_direct option specified... $ECHO_C" >&6
# Check whether --enable-o_direct or --disable-o_direct was given.
d2474 1
a2474 2
  enableval="$enable_o_direct"
  db_cv_o_direct="$enable_o_direct"
d2477 8
a2484 7
fi;
echo "$as_me:$LINENO: result: $db_cv_o_direct" >&5
echo "${ECHO_T}$db_cv_o_direct" >&6

echo "$as_me:$LINENO: checking if --enable-posixmutexes option specified" >&5
echo $ECHO_N "checking if --enable-posixmutexes option specified... $ECHO_C" >&6
# Check whether --enable-posixmutexes or --disable-posixmutexes was given.
d2486 1
a2486 2
  enableval="$enable_posixmutexes"
  db_cv_posixmutexes="$enable_posixmutexes"
d2489 6
a2494 7
fi;
echo "$as_me:$LINENO: result: $db_cv_posixmutexes" >&5
echo "${ECHO_T}$db_cv_posixmutexes" >&6

echo "$as_me:$LINENO: checking if --enable-pthread_self option specified" >&5
echo $ECHO_N "checking if --enable-pthread_self option specified... $ECHO_C" >&6
# Check whether --enable-pthread_self or --disable-pthread_self was given.
d2496 11
a2506 2
  enableval="$enable_pthread_self"
  db_cv_pthread_self="$enable_pthread_self"
d2508 21
a2528 8
  db_cv_pthread_self="no"
fi;
echo "$as_me:$LINENO: result: $db_cv_pthread_self" >&5
echo "${ECHO_T}$db_cv_pthread_self" >&6

echo "$as_me:$LINENO: checking if --enable-rpc option specified" >&5
echo $ECHO_N "checking if --enable-rpc option specified... $ECHO_C" >&6
# Check whether --enable-rpc or --disable-rpc was given.
d2530 1
a2530 2
  enableval="$enable_rpc"
  db_cv_rpc="$enable_rpc"
d2533 8
a2540 7
fi;
echo "$as_me:$LINENO: result: $db_cv_rpc" >&5
echo "${ECHO_T}$db_cv_rpc" >&6

echo "$as_me:$LINENO: checking if --enable-smallbuild option specified" >&5
echo $ECHO_N "checking if --enable-smallbuild option specified... $ECHO_C" >&6
# Check whether --enable-smallbuild or --disable-smallbuild was given.
d2542 1
a2542 2
  enableval="$enable_smallbuild"
  db_cv_smallbuild="$enable_smallbuild"
d2545 2
a2546 1
fi;
d2555 2
a2556 2
echo "$as_me:$LINENO: result: $db_cv_smallbuild" >&5
echo "${ECHO_T}$db_cv_smallbuild" >&6
d2558 3
a2560 3
echo "$as_me:$LINENO: checking if --enable-tcl option specified" >&5
echo $ECHO_N "checking if --enable-tcl option specified... $ECHO_C" >&6
# Check whether --enable-tcl or --disable-tcl was given.
d2562 1
a2562 2
  enableval="$enable_tcl"
  db_cv_tcl="$enable_tcl"
d2565 8
a2572 7
fi;
echo "$as_me:$LINENO: result: $db_cv_tcl" >&5
echo "${ECHO_T}$db_cv_tcl" >&6

echo "$as_me:$LINENO: checking if --enable-test option specified" >&5
echo $ECHO_N "checking if --enable-test option specified... $ECHO_C" >&6
# Check whether --enable-test or --disable-test was given.
d2574 1
a2574 2
  enableval="$enable_test"
  db_cv_test="$enable_test"
d2577 8
a2584 7
fi;
echo "$as_me:$LINENO: result: $db_cv_test" >&5
echo "${ECHO_T}$db_cv_test" >&6

echo "$as_me:$LINENO: checking if --enable-uimutexes option specified" >&5
echo $ECHO_N "checking if --enable-uimutexes option specified... $ECHO_C" >&6
# Check whether --enable-uimutexes or --disable-uimutexes was given.
d2586 1
a2586 2
  enableval="$enable_uimutexes"
  db_cv_uimutexes="$enable_uimutexes"
d2589 8
a2596 7
fi;
echo "$as_me:$LINENO: result: $db_cv_uimutexes" >&5
echo "${ECHO_T}$db_cv_uimutexes" >&6

echo "$as_me:$LINENO: checking if --enable-umrw option specified" >&5
echo $ECHO_N "checking if --enable-umrw option specified... $ECHO_C" >&6
# Check whether --enable-umrw or --disable-umrw was given.
d2598 1
a2598 2
  enableval="$enable_umrw"
  db_cv_umrw="$enable_umrw"
d2601 4
a2604 3
fi;
echo "$as_me:$LINENO: result: $db_cv_umrw" >&5
echo "${ECHO_T}$db_cv_umrw" >&6
d2606 2
a2607 2
echo "$as_me:$LINENO: checking if --with-mutex=MUTEX option specified" >&5
echo $ECHO_N "checking if --with-mutex=MUTEX option specified... $ECHO_C" >&6
d2609 1
a2609 1
# Check whether --with-mutex or --without-mutex was given.
d2611 1
a2611 2
  withval="$with_mutex"
  with_mutex="$withval"
d2614 2
a2615 1
fi;
d2624 2
a2625 2
echo "$as_me:$LINENO: result: $with_mutex" >&5
echo "${ECHO_T}$with_mutex" >&6
d2630 1
a2630 1
# Check whether --with-mutexalign or --without-mutexalign was given.
d2632 1
a2632 2
  withval="$with_mutexalign"
  { { echo "$as_me:$LINENO: error: --with-mutexalign no longer supported, use DbEnv::mutex_set_align" >&5
d2635 2
a2636 1
fi;
d2638 2
a2639 2
echo "$as_me:$LINENO: checking if --with-tcl=DIR option specified" >&5
echo $ECHO_N "checking if --with-tcl=DIR option specified... $ECHO_C" >&6
d2641 1
a2641 1
# Check whether --with-tcl or --without-tcl was given.
d2643 1
a2643 2
  withval="$with_tcl"
  with_tclconfig="$withval"
d2646 4
a2649 3
fi;
echo "$as_me:$LINENO: result: $with_tclconfig" >&5
echo "${ECHO_T}$with_tclconfig" >&6
d2654 2
a2655 2
echo "$as_me:$LINENO: checking if --with-uniquename=NAME option specified" >&5
echo $ECHO_N "checking if --with-uniquename=NAME option specified... $ECHO_C" >&6
d2657 1
a2657 1
# Check whether --with-uniquename or --without-uniquename was given.
d2659 1
a2659 2
  withval="$with_uniquename"
  with_uniquename="$withval"
d2662 2
a2663 1
fi;
d2667 2
a2668 2
	echo "$as_me:$LINENO: result: $with_uniquename" >&5
echo "${ECHO_T}$with_uniquename" >&6
d2672 1
a2672 1
		DB_VERSION_UNIQUE_NAME="_4004"
d2676 2
a2677 2
	echo "$as_me:$LINENO: result: $DB_VERSION_UNIQUE_NAME" >&5
echo "${ECHO_T}$DB_VERSION_UNIQUE_NAME" >&6
a2688 19
# Uniquename excludes C++, Java, RPC.
if test "$db_cv_uniquename" = "yes"; then
	if test "$db_cv_rpc" = "yes"; then
		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-rpc" >&5
echo "$as_me: error: --with-uniquename is not compatible with --enable-rpc" >&2;}
   { (exit 1); exit 1; }; }
	fi
	if test "$db_cv_cxx" = "yes"; then
		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-cxx" >&5
echo "$as_me: error: --with-uniquename is not compatible with --enable-cxx" >&2;}
   { (exit 1); exit 1; }; }
	fi
	if test "$db_cv_java" = "yes"; then
		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-java" >&5
echo "$as_me: error: --with-uniquename is not compatible with --enable-java" >&2;}
   { (exit 1); exit 1; }; }
	fi
fi

d2738 3
a2740 3
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_ar+set}" = set; then
d2743 2
a2744 2
  if test -n "$db_cv_path_ar"; then
  ac_cv_prog_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test.
d2752 2
a2753 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_ar="${ac_tool_prefix}ar"
d2759 1
d2763 4
a2766 4
db_cv_path_ar=$ac_cv_prog_db_cv_path_ar
if test -n "$db_cv_path_ar"; then
  echo "$as_me:$LINENO: result: $db_cv_path_ar" >&5
echo "${ECHO_T}$db_cv_path_ar" >&6
d2768 2
a2769 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d2772 1
d2774 2
a2775 2
if test -z "$ac_cv_prog_db_cv_path_ar"; then
  ac_ct_db_cv_path_ar=$db_cv_path_ar
d2778 3
a2780 3
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_ar+set}" = set; then
d2783 2
a2784 2
  if test -n "$ac_ct_db_cv_path_ar"; then
  ac_cv_prog_ac_ct_db_cv_path_ar="$ac_ct_db_cv_path_ar" # Let the user override the test.
d2792 2
a2793 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_ar="ar"
d2799 1
a2800 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_ar" && ac_cv_prog_ac_ct_db_cv_path_ar="missing_ar"
d2803 4
a2806 4
ac_ct_db_cv_path_ar=$ac_cv_prog_ac_ct_db_cv_path_ar
if test -n "$ac_ct_db_cv_path_ar"; then
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_ar" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_ar" >&6
d2808 2
a2809 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d2812 15
a2826 1
  db_cv_path_ar=$ac_ct_db_cv_path_ar
d2828 1
a2828 1
  db_cv_path_ar="$ac_cv_prog_db_cv_path_ar"
d2831 1
a2831 2
if test "$db_cv_path_ar" = missing_ar; then
	{ { echo "$as_me:$LINENO: error: No ar utility found." >&5
a2833 1
fi
d2838 3
a2840 3
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_chmod+set}" = set; then
d2843 2
a2844 2
  if test -n "$db_cv_path_chmod"; then
  ac_cv_prog_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test.
d2852 2
a2853 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_chmod="${ac_tool_prefix}chmod"
d2859 1
d2863 4
a2866 4
db_cv_path_chmod=$ac_cv_prog_db_cv_path_chmod
if test -n "$db_cv_path_chmod"; then
  echo "$as_me:$LINENO: result: $db_cv_path_chmod" >&5
echo "${ECHO_T}$db_cv_path_chmod" >&6
d2868 2
a2869 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d2872 1
d2874 2
a2875 2
if test -z "$ac_cv_prog_db_cv_path_chmod"; then
  ac_ct_db_cv_path_chmod=$db_cv_path_chmod
d2878 3
a2880 3
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_chmod+set}" = set; then
d2883 2
a2884 2
  if test -n "$ac_ct_db_cv_path_chmod"; then
  ac_cv_prog_ac_ct_db_cv_path_chmod="$ac_ct_db_cv_path_chmod" # Let the user override the test.
d2892 2
a2893 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_chmod="chmod"
d2899 1
a2900 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_chmod" && ac_cv_prog_ac_ct_db_cv_path_chmod="missing_chmod"
d2903 4
a2906 4
ac_ct_db_cv_path_chmod=$ac_cv_prog_ac_ct_db_cv_path_chmod
if test -n "$ac_ct_db_cv_path_chmod"; then
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_chmod" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_chmod" >&6
d2908 2
a2909 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d2912 15
a2926 1
  db_cv_path_chmod=$ac_ct_db_cv_path_chmod
d2928 1
a2928 1
  db_cv_path_chmod="$ac_cv_prog_db_cv_path_chmod"
d2931 1
a2931 2
if test "$db_cv_path_chmod" = missing_chmod; then
	{ { echo "$as_me:$LINENO: error: No chmod utility found." >&5
a2933 1
fi
d2938 3
a2940 3
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_cp+set}" = set; then
d2943 2
a2944 2
  if test -n "$db_cv_path_cp"; then
  ac_cv_prog_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test.
d2952 2
a2953 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_cp="${ac_tool_prefix}cp"
d2959 1
d2963 4
a2966 4
db_cv_path_cp=$ac_cv_prog_db_cv_path_cp
if test -n "$db_cv_path_cp"; then
  echo "$as_me:$LINENO: result: $db_cv_path_cp" >&5
echo "${ECHO_T}$db_cv_path_cp" >&6
d2968 2
a2969 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d2972 1
d2974 2
a2975 2
if test -z "$ac_cv_prog_db_cv_path_cp"; then
  ac_ct_db_cv_path_cp=$db_cv_path_cp
d2978 3
a2980 3
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_cp+set}" = set; then
d2983 2
a2984 2
  if test -n "$ac_ct_db_cv_path_cp"; then
  ac_cv_prog_ac_ct_db_cv_path_cp="$ac_ct_db_cv_path_cp" # Let the user override the test.
d2992 2
a2993 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_cp="cp"
d2999 1
a3000 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_cp" && ac_cv_prog_ac_ct_db_cv_path_cp="missing_cp"
d3003 4
a3006 4
ac_ct_db_cv_path_cp=$ac_cv_prog_ac_ct_db_cv_path_cp
if test -n "$ac_ct_db_cv_path_cp"; then
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_cp" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_cp" >&6
d3008 2
a3009 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3012 15
a3026 1
  db_cv_path_cp=$ac_ct_db_cv_path_cp
d3028 1
a3028 1
  db_cv_path_cp="$ac_cv_prog_db_cv_path_cp"
d3031 1
a3031 2
if test "$db_cv_path_cp" = missing_cp; then
	{ { echo "$as_me:$LINENO: error: No cp utility found." >&5
a3033 1
fi
d3035 8
a3042 6
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ln", so it can be a program name with args.
set dummy ${ac_tool_prefix}ln; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_ln+set}" = set; then
d3045 2
a3046 2
  if test -n "$db_cv_path_ln"; then
  ac_cv_prog_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test.
d3054 2
a3055 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_ln="${ac_tool_prefix}ln"
d3061 1
d3065 4
a3068 4
db_cv_path_ln=$ac_cv_prog_db_cv_path_ln
if test -n "$db_cv_path_ln"; then
  echo "$as_me:$LINENO: result: $db_cv_path_ln" >&5
echo "${ECHO_T}$db_cv_path_ln" >&6
d3070 2
a3071 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3074 1
d3076 7
a3082 7
if test -z "$ac_cv_prog_db_cv_path_ln"; then
  ac_ct_db_cv_path_ln=$db_cv_path_ln
  # Extract the first word of "ln", so it can be a program name with args.
set dummy ln; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_ln+set}" = set; then
d3085 2
a3086 2
  if test -n "$ac_ct_db_cv_path_ln"; then
  ac_cv_prog_ac_ct_db_cv_path_ln="$ac_ct_db_cv_path_ln" # Let the user override the test.
d3094 2
a3095 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_ln="ln"
d3101 1
a3102 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_ln" && ac_cv_prog_ac_ct_db_cv_path_ln="missing_ln"
d3105 4
a3108 4
ac_ct_db_cv_path_ln=$ac_cv_prog_ac_ct_db_cv_path_ln
if test -n "$ac_ct_db_cv_path_ln"; then
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_ln" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_ln" >&6
d3110 2
a3111 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3114 15
a3128 1
  db_cv_path_ln=$ac_ct_db_cv_path_ln
d3130 1
a3130 1
  db_cv_path_ln="$ac_cv_prog_db_cv_path_ln"
d3133 2
a3134 3
if test "$db_cv_path_ln" = missing_ln; then
	{ { echo "$as_me:$LINENO: error: No ln utility found." >&5
echo "$as_me: error: No ln utility found." >&2;}
d3139 5
a3143 5
  # Extract the first word of "${ac_tool_prefix}mkdir", so it can be a program name with args.
set dummy ${ac_tool_prefix}mkdir; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_mkdir+set}" = set; then
d3146 2
a3147 2
  if test -n "$db_cv_path_mkdir"; then
  ac_cv_prog_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test.
d3155 2
a3156 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_mkdir="${ac_tool_prefix}mkdir"
d3162 1
d3166 4
a3169 4
db_cv_path_mkdir=$ac_cv_prog_db_cv_path_mkdir
if test -n "$db_cv_path_mkdir"; then
  echo "$as_me:$LINENO: result: $db_cv_path_mkdir" >&5
echo "${ECHO_T}$db_cv_path_mkdir" >&6
d3171 2
a3172 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3175 1
d3177 7
a3183 7
if test -z "$ac_cv_prog_db_cv_path_mkdir"; then
  ac_ct_db_cv_path_mkdir=$db_cv_path_mkdir
  # Extract the first word of "mkdir", so it can be a program name with args.
set dummy mkdir; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_mkdir+set}" = set; then
d3186 2
a3187 2
  if test -n "$ac_ct_db_cv_path_mkdir"; then
  ac_cv_prog_ac_ct_db_cv_path_mkdir="$ac_ct_db_cv_path_mkdir" # Let the user override the test.
d3195 2
a3196 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_mkdir="mkdir"
d3202 1
a3203 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_mkdir" && ac_cv_prog_ac_ct_db_cv_path_mkdir="missing_mkdir"
d3206 4
a3209 4
ac_ct_db_cv_path_mkdir=$ac_cv_prog_ac_ct_db_cv_path_mkdir
if test -n "$ac_ct_db_cv_path_mkdir"; then
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_mkdir" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_mkdir" >&6
d3211 2
a3212 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3215 15
a3229 1
  db_cv_path_mkdir=$ac_ct_db_cv_path_mkdir
d3231 1
a3231 1
  db_cv_path_mkdir="$ac_cv_prog_db_cv_path_mkdir"
d3234 2
a3235 3
if test "$db_cv_path_mkdir" = missing_mkdir; then
	{ { echo "$as_me:$LINENO: error: No mkdir utility found." >&5
echo "$as_me: error: No mkdir utility found." >&2;}
a3236 1
fi
a3237 2
# We need a complete path for ranlib, because it doesn't exist on some
# architectures because the ar utility packages the library itself.
d3239 5
a3243 5
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_path_ranlib+set}" = set; then
d3246 2
a3247 2
  if test -n "$path_ranlib"; then
  ac_cv_prog_path_ranlib="$path_ranlib" # Let the user override the test.
d3255 2
a3256 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_path_ranlib="${ac_tool_prefix}ranlib"
d3262 1
d3266 4
a3269 4
path_ranlib=$ac_cv_prog_path_ranlib
if test -n "$path_ranlib"; then
  echo "$as_me:$LINENO: result: $path_ranlib" >&5
echo "${ECHO_T}$path_ranlib" >&6
d3271 2
a3272 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3275 1
d3277 7
a3283 7
if test -z "$ac_cv_prog_path_ranlib"; then
  ac_ct_path_ranlib=$path_ranlib
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_path_ranlib+set}" = set; then
d3286 2
a3287 2
  if test -n "$ac_ct_path_ranlib"; then
  ac_cv_prog_ac_ct_path_ranlib="$ac_ct_path_ranlib" # Let the user override the test.
d3295 2
a3296 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_path_ranlib="ranlib"
d3302 1
a3303 1
  test -z "$ac_cv_prog_ac_ct_path_ranlib" && ac_cv_prog_ac_ct_path_ranlib="missing_ranlib"
d3306 4
a3309 4
ac_ct_path_ranlib=$ac_cv_prog_ac_ct_path_ranlib
if test -n "$ac_ct_path_ranlib"; then
  echo "$as_me:$LINENO: result: $ac_ct_path_ranlib" >&5
echo "${ECHO_T}$ac_ct_path_ranlib" >&6
d3311 2
a3312 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3315 15
a3329 1
  path_ranlib=$ac_ct_path_ranlib
d3331 1
a3331 1
  path_ranlib="$ac_cv_prog_path_ranlib"
d3334 12
a3345 5
# Extract the first word of "$path_ranlib", so it can be a program name with args.
set dummy $path_ranlib; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_db_cv_path_ranlib+set}" = set; then
d3348 4
a3351 6
  case $db_cv_path_ranlib in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_db_cv_path_ranlib="$db_cv_path_ranlib" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d3357 2
a3358 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_db_cv_path_ranlib="$as_dir/$ac_word$ac_exec_ext"
d3364 1
a3365 3
  test -z "$ac_cv_path_db_cv_path_ranlib" && ac_cv_path_db_cv_path_ranlib="missing_ranlib"
  ;;
esac
d3367 5
a3371 5
db_cv_path_ranlib=$ac_cv_path_db_cv_path_ranlib

if test -n "$db_cv_path_ranlib"; then
  echo "$as_me:$LINENO: result: $db_cv_path_ranlib" >&5
echo "${ECHO_T}$db_cv_path_ranlib" >&6
d3373 2
a3374 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3378 8
a3385 6
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}rm", so it can be a program name with args.
set dummy ${ac_tool_prefix}rm; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_rm+set}" = set; then
d3388 2
a3389 2
  if test -n "$db_cv_path_rm"; then
  ac_cv_prog_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test.
d3397 2
a3398 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_rm="${ac_tool_prefix}rm"
d3404 1
d3408 4
a3411 4
db_cv_path_rm=$ac_cv_prog_db_cv_path_rm
if test -n "$db_cv_path_rm"; then
  echo "$as_me:$LINENO: result: $db_cv_path_rm" >&5
echo "${ECHO_T}$db_cv_path_rm" >&6
d3413 2
a3414 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3417 14
a3430 23
fi
if test -z "$ac_cv_prog_db_cv_path_rm"; then
  ac_ct_db_cv_path_rm=$db_cv_path_rm
  # Extract the first word of "rm", so it can be a program name with args.
set dummy rm; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_rm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_rm"; then
  ac_cv_prog_ac_ct_db_cv_path_rm="$ac_ct_db_cv_path_rm" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_rm="rm"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
a3431 10
done
done

  test -z "$ac_cv_prog_ac_ct_db_cv_path_rm" && ac_cv_prog_ac_ct_db_cv_path_rm="missing_rm"
fi
fi
ac_ct_db_cv_path_rm=$ac_cv_prog_ac_ct_db_cv_path_rm
if test -n "$ac_ct_db_cv_path_rm"; then
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_rm" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_rm" >&6
d3433 1
a3433 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
a3435 4
  db_cv_path_rm=$ac_ct_db_cv_path_rm
else
  db_cv_path_rm="$ac_cv_prog_db_cv_path_rm"
fi
d3437 6
a3442 13
if test "$db_cv_path_rm" = missing_rm; then
	{ { echo "$as_me:$LINENO: error: No rm utility found." >&5
echo "$as_me: error: No rm utility found." >&2;}
   { (exit 1); exit 1; }; }
fi

if test "$db_cv_rpc" = "yes"; then
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}rpcgen", so it can be a program name with args.
set dummy ${ac_tool_prefix}rpcgen; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_rpcgen+set}" = set; then
d3445 2
a3446 2
  if test -n "$db_cv_path_rpcgen"; then
  ac_cv_prog_db_cv_path_rpcgen="$db_cv_path_rpcgen" # Let the user override the test.
d3454 2
a3455 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_rpcgen="${ac_tool_prefix}rpcgen"
d3461 1
d3465 4
a3468 4
db_cv_path_rpcgen=$ac_cv_prog_db_cv_path_rpcgen
if test -n "$db_cv_path_rpcgen"; then
  echo "$as_me:$LINENO: result: $db_cv_path_rpcgen" >&5
echo "${ECHO_T}$db_cv_path_rpcgen" >&6
d3470 2
a3471 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3474 1
d3476 7
a3482 7
if test -z "$ac_cv_prog_db_cv_path_rpcgen"; then
  ac_ct_db_cv_path_rpcgen=$db_cv_path_rpcgen
  # Extract the first word of "rpcgen", so it can be a program name with args.
set dummy rpcgen; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_rpcgen+set}" = set; then
d3485 2
a3486 2
  if test -n "$ac_ct_db_cv_path_rpcgen"; then
  ac_cv_prog_ac_ct_db_cv_path_rpcgen="$ac_ct_db_cv_path_rpcgen" # Let the user override the test.
d3494 2
a3495 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_rpcgen="rpcgen"
d3501 1
a3502 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_rpcgen" && ac_cv_prog_ac_ct_db_cv_path_rpcgen="missing_rpcgen"
d3505 4
a3508 4
ac_ct_db_cv_path_rpcgen=$ac_cv_prog_ac_ct_db_cv_path_rpcgen
if test -n "$ac_ct_db_cv_path_rpcgen"; then
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_rpcgen" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_rpcgen" >&6
d3510 2
a3511 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3514 15
a3528 1
  db_cv_path_rpcgen=$ac_ct_db_cv_path_rpcgen
d3530 1
a3530 1
  db_cv_path_rpcgen="$ac_cv_prog_db_cv_path_rpcgen"
d3533 2
a3534 3
	if test "$db_cv_path_rpcgen" = missing_rpcgen; then
		{ { echo "$as_me:$LINENO: error: No rpcgen utility found." >&5
echo "$as_me: error: No rpcgen utility found." >&2;}
a3535 2
	fi
fi
d3537 7
a3543 8
# We need a complete path for sh, because some implementations of make
# get upset if SHELL is set to just the command name.
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}sh", so it can be a program name with args.
set dummy ${ac_tool_prefix}sh; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_path_sh+set}" = set; then
d3546 2
a3547 2
  if test -n "$path_sh"; then
  ac_cv_prog_path_sh="$path_sh" # Let the user override the test.
d3555 2
a3556 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_path_sh="${ac_tool_prefix}sh"
d3562 1
d3566 4
a3569 4
path_sh=$ac_cv_prog_path_sh
if test -n "$path_sh"; then
  echo "$as_me:$LINENO: result: $path_sh" >&5
echo "${ECHO_T}$path_sh" >&6
d3571 2
a3572 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3575 1
d3577 7
a3583 7
if test -z "$ac_cv_prog_path_sh"; then
  ac_ct_path_sh=$path_sh
  # Extract the first word of "sh", so it can be a program name with args.
set dummy sh; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_path_sh+set}" = set; then
d3586 2
a3587 2
  if test -n "$ac_ct_path_sh"; then
  ac_cv_prog_ac_ct_path_sh="$ac_ct_path_sh" # Let the user override the test.
d3595 2
a3596 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_path_sh="sh"
d3602 1
a3603 1
  test -z "$ac_cv_prog_ac_ct_path_sh" && ac_cv_prog_ac_ct_path_sh="missing_sh"
d3606 4
a3609 4
ac_ct_path_sh=$ac_cv_prog_ac_ct_path_sh
if test -n "$ac_ct_path_sh"; then
  echo "$as_me:$LINENO: result: $ac_ct_path_sh" >&5
echo "${ECHO_T}$ac_ct_path_sh" >&6
d3611 2
a3612 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3615 15
a3629 1
  path_sh=$ac_ct_path_sh
d3631 6
a3636 1
  path_sh="$ac_cv_prog_path_sh"
d3639 9
a3647 4
# Extract the first word of "$path_sh", so it can be a program name with args.
set dummy $path_sh; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d3662 1
a3662 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3669 1
a3670 1
  test -z "$ac_cv_path_db_cv_path_sh" && ac_cv_path_db_cv_path_sh="missing_sh"
a3674 1

d3676 2
a3677 2
  echo "$as_me:$LINENO: result: $db_cv_path_sh" >&5
echo "${ECHO_T}$db_cv_path_sh" >&6
d3679 2
a3680 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3683 1
a3683 4
if test "$db_cv_path_sh" = missing_sh; then
	{ { echo "$as_me:$LINENO: error: No sh utility found." >&5
echo "$as_me: error: No sh utility found." >&2;}
   { (exit 1); exit 1; }; }
d3685 7
a3691 7

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}true", so it can be a program name with args.
set dummy ${ac_tool_prefix}true; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_true+set}" = set; then
d3694 6
a3699 4
  if test -n "$db_cv_path_true"; then
  ac_cv_prog_db_cv_path_true="$db_cv_path_true" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d3705 2
a3706 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_true="${ac_tool_prefix}true"
d3712 1
d3714 2
d3717 4
a3720 5
fi
db_cv_path_true=$ac_cv_prog_db_cv_path_true
if test -n "$db_cv_path_true"; then
  echo "$as_me:$LINENO: result: $db_cv_path_true" >&5
echo "${ECHO_T}$db_cv_path_true" >&6
d3722 2
a3723 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3726 14
a3739 23
fi
if test -z "$ac_cv_prog_db_cv_path_true"; then
  ac_ct_db_cv_path_true=$db_cv_path_true
  # Extract the first word of "true", so it can be a program name with args.
set dummy true; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_true+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_true"; then
  ac_cv_prog_ac_ct_db_cv_path_true="$ac_ct_db_cv_path_true" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_true="true"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
a3740 10
done
done

  test -z "$ac_cv_prog_ac_ct_db_cv_path_true" && ac_cv_prog_ac_ct_db_cv_path_true="missing_true"
fi
fi
ac_ct_db_cv_path_true=$ac_cv_prog_ac_ct_db_cv_path_true
if test -n "$ac_ct_db_cv_path_true"; then
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_true" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_true" >&6
d3742 1
a3742 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3745 2
a3746 8
  db_cv_path_true=$ac_ct_db_cv_path_true
else
  db_cv_path_true="$ac_cv_prog_db_cv_path_true"
fi

if test "$db_cv_path_true" = missing_true; then
	{ { echo "$as_me:$LINENO: error: No true utility found." >&5
echo "$as_me: error: No true utility found." >&2;}
a3747 1
fi
d3751 1
a3751 1
	db_cv_path_strip=debug_build_no_strip
d3756 3
a3758 3
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_path_strip+set}" = set; then
d3761 2
a3762 2
  if test -n "$path_strip"; then
  ac_cv_prog_path_strip="$path_strip" # Let the user override the test.
d3770 2
a3771 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_path_strip="${ac_tool_prefix}strip"
d3777 1
d3781 4
a3784 4
path_strip=$ac_cv_prog_path_strip
if test -n "$path_strip"; then
  echo "$as_me:$LINENO: result: $path_strip" >&5
echo "${ECHO_T}$path_strip" >&6
d3786 2
a3787 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d3790 1
d3792 2
a3793 2
if test -z "$ac_cv_prog_path_strip"; then
  ac_ct_path_strip=$path_strip
d3796 3
a3798 3
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_path_strip+set}" = set; then
d3801 2
a3802 2
  if test -n "$ac_ct_path_strip"; then
  ac_cv_prog_ac_ct_path_strip="$ac_ct_path_strip" # Let the user override the test.
d3810 2
a3811 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_path_strip="strip"
d3817 1
a3818 1
  test -z "$ac_cv_prog_ac_ct_path_strip" && ac_cv_prog_ac_ct_path_strip="missing_strip"
d3821 4
a3824 10
ac_ct_path_strip=$ac_cv_prog_ac_ct_path_strip
if test -n "$ac_ct_path_strip"; then
  echo "$as_me:$LINENO: result: $ac_ct_path_strip" >&5
echo "${ECHO_T}$ac_ct_path_strip" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  path_strip=$ac_ct_path_strip
d3826 2
a3827 1
  path_strip="$ac_cv_prog_path_strip"
d3830 12
a3841 28
	# Extract the first word of "$path_strip", so it can be a program name with args.
set dummy $path_strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_db_cv_path_strip+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $db_cv_path_strip in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_db_cv_path_strip="$db_cv_path_strip" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_db_cv_path_strip="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_db_cv_path_strip" && ac_cv_path_db_cv_path_strip="missing_strip"
  ;;
d3843 1
a3843 35
fi
db_cv_path_strip=$ac_cv_path_db_cv_path_strip

if test -n "$db_cv_path_strip"; then
  echo "$as_me:$LINENO: result: $db_cv_path_strip" >&5
echo "${ECHO_T}$db_cv_path_strip" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi

if test "$db_cv_test" = "yes"; then
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}kill", so it can be a program name with args.
set dummy ${ac_tool_prefix}kill; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_kill+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_kill"; then
  ac_cv_prog_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_kill="${ac_tool_prefix}kill"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
a3844 9
done
done

fi
fi
db_cv_path_kill=$ac_cv_prog_db_cv_path_kill
if test -n "$db_cv_path_kill"; then
  echo "$as_me:$LINENO: result: $db_cv_path_kill" >&5
echo "${ECHO_T}$db_cv_path_kill" >&6
d3846 1
a3846 46
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_db_cv_path_kill"; then
  ac_ct_db_cv_path_kill=$db_cv_path_kill
  # Extract the first word of "kill", so it can be a program name with args.
set dummy kill; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_kill+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_kill"; then
  ac_cv_prog_ac_ct_db_cv_path_kill="$ac_ct_db_cv_path_kill" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_kill="kill"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_prog_ac_ct_db_cv_path_kill" && ac_cv_prog_ac_ct_db_cv_path_kill="missing_kill"
fi
fi
ac_ct_db_cv_path_kill=$ac_cv_prog_ac_ct_db_cv_path_kill
if test -n "$ac_ct_db_cv_path_kill"; then
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_kill" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_kill" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  db_cv_path_kill=$ac_ct_db_cv_path_kill
else
  db_cv_path_kill="$ac_cv_prog_db_cv_path_kill"
d3849 2
a3850 5
	if test "$db_cv_path_kill" = missing_kill; then
		{ { echo "$as_me:$LINENO: error: No kill utility found." >&5
echo "$as_me: error: No kill utility found." >&2;}
   { (exit 1); exit 1; }; }
	fi
a3851 2


d3865 2
a3866 2
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
d3888 1
a3888 1
	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d3907 1
d3914 2
a3915 2
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
d3917 1
a3917 1
    # removed, or if the path is relative.
d3921 2
a3922 2
echo "$as_me:$LINENO: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6
d3958 1
a3958 1
	LIBS="$LIBS -lipc";;
d3970 1
a3970 1
	LIBS="$LIBS -lsocket -lsvipc";;
d3979 1
a3979 1
	CPPFLAGS="$CPPFLAGS -D_REENTRANT";;
d4017 2
a4018 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d4031 1
a4031 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4038 1
d4044 2
a4045 2
  echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d4047 2
a4048 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d4051 1
d4061 2
a4062 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d4075 1
a4075 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4082 1
d4088 2
a4089 2
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
d4091 2
a4092 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d4095 1
d4099 15
a4113 1
  CC=$ac_ct_CC
d4124 1
a4124 2
echo "$as_me:$LINENO:" \
     "checking for C compiler version" >&5
d4126 7
a4132 2
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
d4136 7
a4142 2
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
d4146 7
a4152 2
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
d4177 2
a4178 2
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
d4180 26
a4205 2
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
d4209 6
a4214 9
  # Find the output, starting from the most likely.  This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.

# Be careful to initialize this variable, since it used to be cached.
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
ac_cv_exeext=
# b.out is created by i960 compilers.
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
d4218 1
a4218 4
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
	;;
    conftest.$ac_ext )
	# This is the source file.
d4225 9
a4233 5
	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	# FIXME: I believe we export ac_cv_exeext for Libtool,
	# but it would be cool to find out if it's true.  Does anybody
	# maintain Libtool? --akim.
	export ac_cv_exeext
d4239 2
d4253 2
a4254 2
echo "$as_me:$LINENO: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6
d4256 1
a4256 1
# Check the compiler produces executables we can run.  If not, either
d4258 2
a4259 2
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
d4264 6
a4269 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4288 2
a4289 2
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
d4293 1
a4293 1
# Check the compiler produces executables we can run.  If not, either
d4295 14
a4308 9
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6

echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d4319 1
a4319 1
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
a4320 1
	  export ac_cv_exeext
d4334 2
a4335 2
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6
d4340 2
a4341 2
echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
d4361 7
a4367 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d4371 2
a4372 1
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
d4374 1
a4374 1
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
d4392 2
a4393 2
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
d4396 2
a4397 2
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
d4420 7
a4426 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d4433 7
a4439 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4444 6
a4449 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4458 1
a4458 1
ac_compiler_gnu=no
d4460 2
a4461 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d4465 2
a4466 2
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
d4470 2
a4471 3
CFLAGS="-g"
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
d4475 5
a4479 1
  cat >conftest.$ac_ext <<_ACEOF
d4495 118
a4612 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d4619 7
a4625 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4630 6
a4635 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4644 4
a4647 1
ac_cv_prog_cc_g=no
d4649 6
a4654 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d4656 2
a4657 2
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
d4673 3
a4675 3
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
d4678 1
a4678 1
  ac_cv_prog_cc_stdc=no
d4712 1
a4712 1
   as 'x'.  The following induces an error, until -std1 is added to get
d4715 1
a4715 1
   that's true only with -std1.  */
d4718 5
d4737 2
a4738 8
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX 10.20 and later	-Ae
# HP-UX older versions	-Aa -D_HPUX_SOURCE
# SVR4			-Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d4742 7
a4748 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d4755 7
a4761 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4766 6
a4771 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4775 1
a4775 2
  ac_cv_prog_cc_stdc=$ac_arg
break
d4780 1
d4782 3
a4784 1
rm -f conftest.err conftest.$ac_objext
d4786 1
a4786 1
rm -f conftest.$ac_ext conftest.$ac_objext
d4790 8
a4797 5

case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
d4799 3
a4801 3
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    CC="$CC $ac_cv_prog_cc_stdc" ;;
a4803 140
# Some people use a C++ compiler to compile C.  Since we use `exit',
# in C++ we need to declare it.  In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
  choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  for ac_declaration in \
   '' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_declaration
#include <stdlib.h>
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

continue
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a4804 2
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d4814 5
a4818 1
	# We want -O2 if we're using gcc.
d4820 5
a4824 1
	CFLAGS=`echo "$CFLAGS" | sed 's/-O /-O2 /g'`
d4844 2
a4845 2
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
d4885 1
d4904 1
d4906 1
d4914 7
a4920 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d4927 7
a4933 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4938 6
a4943 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4952 1
a4952 1
ac_cv_c_const=no
d4954 2
a4955 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d4957 2
a4958 2
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
d4993 2
a4994 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d5007 1
a5007 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5014 1
d5020 2
a5021 2
  echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6
d5023 2
a5024 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d5027 1
d5033 2
a5034 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d5047 1
a5047 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5054 1
d5060 2
a5061 2
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6
d5063 2
a5064 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d5067 15
a5081 1
  CCC=$ac_ct_CCC
d5087 1
a5087 1
				LIBS="-lC_r $LIBS";;
d5091 2
a5092 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d5105 1
a5105 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5112 1
d5118 2
a5119 2
  echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6
d5121 2
a5122 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d5125 1
d5131 2
a5132 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d5145 1
a5145 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5152 1
d5158 2
a5159 2
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6
d5161 2
a5162 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d5165 15
a5179 1
  CCC=$ac_ct_CCC
d5187 2
a5188 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d5201 1
a5201 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5208 1
d5214 2
a5215 2
  echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6
d5217 2
a5218 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d5221 1
d5227 2
a5228 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d5241 1
a5241 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5248 1
d5254 2
a5255 2
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6
d5257 2
a5258 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d5261 15
a5275 1
  CCC=$ac_ct_CCC
d5283 2
a5284 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d5297 1
a5297 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5304 1
d5310 2
a5311 2
  echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6
d5313 2
a5314 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d5317 1
d5323 2
a5324 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d5337 1
a5337 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5344 1
d5350 2
a5351 2
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6
d5353 2
a5354 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d5357 15
a5371 1
  CCC=$ac_ct_CCC
d5379 2
a5380 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d5393 1
a5393 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5400 1
d5406 2
a5407 2
  echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6
d5409 2
a5410 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d5413 1
d5419 2
a5420 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d5433 1
a5433 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5440 1
d5446 2
a5447 2
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6
d5449 2
a5450 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d5453 15
a5467 1
  CCC=$ac_ct_CCC
d5474 1
a5474 1
	ac_ext=cc
d5479 6
a5484 2
if test -n "$ac_tool_prefix"; then
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
d5488 2
a5489 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d5502 1
a5502 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5509 1
d5515 2
a5516 2
  echo "$as_me:$LINENO: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
d5518 2
a5519 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d5522 1
d5528 1
a5528 1
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
d5532 2
a5533 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d5546 1
a5546 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5553 1
d5559 2
a5560 2
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6
d5562 2
a5563 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d5566 1
a5568 1
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
d5570 15
a5584 1
  CXX=$ac_ct_CXX
d5587 2
a5588 1

d5590 1
a5590 2
echo "$as_me:$LINENO:" \
     "checking for C++ compiler version" >&5
d5592 7
a5598 2
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
d5602 7
a5608 2
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
d5612 7
a5618 2
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
d5623 2
a5624 2
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
d5647 7
a5653 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d5660 8
a5667 5
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
d5671 6
a5676 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d5685 1
a5685 1
ac_compiler_gnu=no
d5687 2
a5688 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d5692 2
a5693 2
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
d5697 2
a5698 3
CXXFLAGS="-g"
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
d5702 5
a5706 1
  cat >conftest.$ac_ext <<_ACEOF
d5722 7
a5728 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d5735 7
a5741 4
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d5746 6
a5751 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d5760 2
a5761 30
ac_cv_prog_cxx_g=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
for ac_declaration in \
   '' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
d5767 1
a5767 2
$ac_declaration
#include <stdlib.h>
d5771 1
a5771 1
exit (42);
d5777 7
a5783 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d5790 7
a5796 4
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d5801 6
a5806 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d5815 3
a5817 4
continue
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
d5823 1
a5823 1
$ac_declaration
d5827 1
a5827 1
exit (42);
d5833 7
a5839 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d5846 7
a5852 4
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d5857 6
a5862 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d5866 1
a5866 1
  break
d5871 1
d5873 5
a5877 7
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
d5880 20
d5907 1
a5907 1
	ac_ext=cc
d5912 2
a5913 2
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
d5943 7
a5949 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d5974 1
d5977 1
a5977 1
  # OK, works on sane cases.  Now check whether non-existent headers
d5987 7
a5993 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d6020 1
d6038 2
a6039 2
echo "$as_me:$LINENO: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6
d6062 7
a6068 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d6093 1
d6096 1
a6096 1
  # OK, works on sane cases.  Now check whether non-existent headers
d6106 7
a6112 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d6139 1
d6165 2
a6166 2
echo "$as_me:$LINENO: checking whether C++ supports the ISO C++ standard includes" >&5
echo $ECHO_N "checking whether C++ supports the ISO C++ standard includes... $ECHO_C" >&6
d6171 1
a6171 2

 ac_ext=cc
d6194 7
a6200 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d6207 7
a6213 4
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d6218 6
a6223 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d6232 1
a6232 1
db_cv_cxx_have_stdheaders=no
d6234 2
a6235 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d6244 2
a6245 2
echo "$as_me:$LINENO: result: $db_cv_cxx_have_stdheaders" >&5
echo "${ECHO_T}$db_cv_cxx_have_stdheaders" >&6
d6255 2
a6256 2
echo "$as_me:$LINENO: checking whether we are using gcc version 2.96" >&5
echo $ECHO_N "checking whether we are using gcc version 2.96... $ECHO_C" >&6
d6270 2
a6271 2
echo "$as_me:$LINENO: result: $db_cv_gcc_2_96" >&5
echo "${ECHO_T}$db_cv_gcc_2_96" >&6
d6281 2
a6282 2
echo "$as_me:$LINENO: checking whether g++ requires -fhandle-exceptions" >&5
echo $ECHO_N "checking whether g++ requires -fhandle-exceptions... $ECHO_C" >&6
d6296 2
a6297 2
echo "$as_me:$LINENO: result: $db_cv_gxx_except" >&5
echo "${ECHO_T}$db_cv_gxx_except" >&6
d6321 1
a6321 1
# Check whether --enable-shared or --disable-shared was given.
d6323 1
a6323 2
  enableval="$enable_shared"
  p=${PACKAGE-default}
d6342 1
a6342 1
fi;
d6344 2
a6345 1
# Check whether --enable-static or --disable-static was given.
d6347 1
a6347 2
  enableval="$enable_static"
  p=${PACKAGE-default}
d6366 1
a6366 1
fi;
d6368 2
a6369 1
# Check whether --enable-fast-install or --disable-fast-install was given.
d6371 1
a6371 2
  enableval="$enable_fast_install"
  p=${PACKAGE-default}
d6390 1
a6390 1
fi;
d6392 3
a6394 2
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
d6447 57
a6503 2
echo "$as_me:$LINENO: result: $SED" >&5
echo "${ECHO_T}$SED" >&6
d6505 36
a6540 3
echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
d6543 32
a6574 3
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    then ac_cv_prog_egrep='grep -E'
    else ac_cv_prog_egrep='egrep'
d6576 30
d6607 3
a6609 3
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep
d6613 1
a6613 1
# Check whether --with-gnu-ld or --without-gnu-ld was given.
d6615 1
a6615 2
  withval="$with_gnu_ld"
  test "$withval" = no || with_gnu_ld=yes
d6618 2
a6619 1
fi;
d6623 2
a6624 2
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
d6653 2
a6654 2
  echo "$as_me:$LINENO: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
d6656 2
a6657 2
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
d6690 2
a6691 2
  echo "$as_me:$LINENO: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
d6693 2
a6694 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d6699 2
a6700 2
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
d6714 2
a6715 2
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
d6719 2
a6720 2
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
d6726 2
a6727 2
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
d6737 1
a6737 1
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
d6744 2
a6745 2
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
d6753 18
a6770 19
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
      # Check to see if the nm accepts a BSD-compat flag.
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
      #   nm: unknown option "B" ignored
      # Tru64's nm complains that /dev/null is an invalid object file
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
      */dev/null* | *'Invalid file or object type'*)
	lt_cv_path_NM="$tmp_nm -B"
	break
        ;;
      *)
	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	*/dev/null*)
	  lt_cv_path_NM="$tmp_nm -p"
d6774 10
a6783 2
	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	  continue # so that we can try to find one that supports BSD flags
d6786 3
a6788 2
      esac
    fi
a6789 1
  IFS="$lt_save_ifs"
d6793 2
a6794 2
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
echo "${ECHO_T}$lt_cv_path_NM" >&6
d6797 2
a6798 2
echo "$as_me:$LINENO: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
d6801 2
a6802 2
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
d6804 2
a6805 2
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6
d6808 2
a6809 2
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
d6897 5
a6946 4
sco3.2v5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

d6951 1
a6951 1
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
d6972 3
d6978 1
a6978 1
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
d6984 2
a6985 2
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
d6996 3
d7002 1
a7002 1
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
d7004 2
a7005 1
  enableval="$enable_libtool_lock"
a7006 1
fi;
d7033 1
a7033 1
  echo '#line 6082 "configure"' > conftest.$ac_ext
d7118 2
a7119 2
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
d7145 7
a7151 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d7158 7
a7164 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7169 6
a7174 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7183 1
a7183 1
lt_cv_cc_needs_belf=no
d7185 2
a7186 1
rm -f conftest.err conftest.$ac_objext \
d7195 2
a7196 2
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
d7202 20
d7233 2
a7234 2
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
d7268 7
a7274 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d7299 1
d7302 1
a7302 1
  # OK, works on sane cases.  Now check whether non-existent headers
d7312 7
a7318 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d7345 1
d7363 2
a7364 2
echo "$as_me:$LINENO: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
d7387 7
a7393 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d7418 1
d7421 1
a7421 1
  # OK, works on sane cases.  Now check whether non-existent headers
d7431 7
a7437 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d7464 1
d7487 2
a7488 2
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
d7512 7
a7518 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d7525 7
a7531 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7536 6
a7541 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7550 1
a7550 1
ac_cv_header_stdc=no
d7552 2
a7553 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7609 1
d7629 2
a7630 2
      exit(2);
  exit (0);
d7634 7
a7640 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d7644 6
a7649 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7662 1
a7662 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7664 2
d7668 2
a7669 2
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
d7692 3
a7694 3
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d7708 7
a7714 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d7721 7
a7727 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7732 6
a7737 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7746 1
a7746 1
eval "$as_ac_Header=no"
d7748 2
a7749 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7751 3
a7753 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d7768 4
a7771 4
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d7774 3
a7776 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d7779 2
a7780 2
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
d7791 7
a7797 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d7804 7
a7810 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7815 6
a7820 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7829 1
a7829 1
ac_header_compiler=no
d7831 4
a7834 3
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
d7837 2
a7838 2
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
d7847 7
a7853 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d7877 1
d7879 2
a7880 2
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
d7904 4
a7907 5
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to support@@sleepycat.com ##
## ------------------------------------ ##
d7909 1
a7909 2
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
d7912 3
a7914 3
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d7919 3
a7921 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d7938 1
a7938 1
  ac_ext=cc
d7943 2
a7944 2
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
d7974 7
a7980 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d8005 1
d8008 1
a8008 1
  # OK, works on sane cases.  Now check whether non-existent headers
d8018 7
a8024 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d8051 1
d8069 2
a8070 2
echo "$as_me:$LINENO: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6
d8093 7
a8099 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d8124 1
d8127 1
a8127 1
  # OK, works on sane cases.  Now check whether non-existent headers
d8137 7
a8143 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d8170 1
d8186 1
a8186 1
ac_ext=cc
d8199 1
a8199 1
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
d8203 2
a8204 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d8217 1
a8217 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8224 1
d8230 2
a8231 2
  echo "$as_me:$LINENO: result: $F77" >&5
echo "${ECHO_T}$F77" >&6
d8233 2
a8234 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d8237 1
d8243 1
a8243 1
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
d8247 2
a8248 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d8261 1
a8261 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8268 1
d8274 2
a8275 2
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
echo "${ECHO_T}$ac_ct_F77" >&6
d8277 2
a8278 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d8281 1
d8285 15
a8299 1
  F77=$ac_ct_F77
d8304 1
a8304 2
echo "$as_me:7196:" \
     "checking for Fortran 77 compiler version" >&5
d8306 7
a8312 2
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
d8316 7
a8322 2
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
d8326 7
a8332 2
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
d8342 2
a8343 2
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
d8356 7
a8362 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d8369 7
a8375 4
	 { ac_try='test -z "$ac_f77_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8380 6
a8385 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8394 1
a8394 1
ac_compiler_gnu=no
d8396 2
a8397 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d8401 2
a8402 2
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
d8407 2
a8408 2
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
d8419 7
a8425 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d8432 7
a8438 4
	 { ac_try='test -z "$ac_f77_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8443 6
a8448 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8457 1
a8457 1
ac_cv_prog_f77_g=no
d8459 2
a8460 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d8463 2
a8464 2
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
d8493 2
a8494 2
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
d8547 6
d8566 11
d8602 2
a8603 2
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
d8605 2
a8606 2
  echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6
d8613 2
a8614 2
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
d8662 1
a8662 1
solaris* | sysv5*)
d8665 9
d8818 2
a8819 2
  echo "$as_me:$LINENO: result: failed" >&5
echo "${ECHO_T}failed" >&6
d8821 2
a8822 2
  echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
d8825 2
a8826 2
echo "$as_me:$LINENO: checking for objdir" >&5
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
d8840 2
a8841 2
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
echo "${ECHO_T}$lt_cv_objdir" >&6
d8892 2
a8893 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d8906 1
a8906 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8913 1
d8919 2
a8920 2
  echo "$as_me:$LINENO: result: $AR" >&5
echo "${ECHO_T}$AR" >&6
d8922 2
a8923 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d8926 1
d8932 2
a8933 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d8946 1
a8946 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8953 1
a8954 1
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
d8959 2
a8960 2
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6
d8962 2
a8963 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d8966 15
a8980 1
  AR=$ac_ct_AR
d8988 2
a8989 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d9002 1
a9002 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9009 1
d9015 2
a9016 2
  echo "$as_me:$LINENO: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
d9018 2
a9019 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d9022 1
d9028 2
a9029 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d9042 1
a9042 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9049 1
a9050 1
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
d9055 2
a9056 2
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
d9058 2
a9059 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d9062 15
a9076 1
  RANLIB=$ac_ct_RANLIB
d9084 2
a9085 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d9098 1
a9098 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9105 1
d9111 2
a9112 2
  echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
d9114 2
a9115 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d9118 1
d9124 2
a9125 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d9138 1
a9138 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9145 1
a9146 1
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
d9151 2
a9152 2
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6
d9154 2
a9155 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d9158 15
a9172 1
  STRIP=$ac_ct_STRIP
d9187 1
d9207 1
a9207 1
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
d9210 1
a9210 1
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
d9231 2
a9232 2
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
d9284 2
a9285 2
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
d9287 2
a9288 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d9293 2
a9294 2
    echo "$as_me:$LINENO: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6
d9346 2
a9347 2
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
d9349 2
a9350 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d9365 1
a9365 1
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
d9367 2
a9368 1
  enableval="$enable_libtool_lock"
a9369 1
fi;
d9373 1
a9373 1
# Check whether --with-pic or --without-pic was given.
d9375 1
a9375 2
  withval="$with_pic"
  pic_mode="$withval"
d9378 2
a9379 1
fi;
d9409 3
d9419 1
a9419 1
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
d9425 1
a9425 1
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
a9429 65
#
# Check for any special shared library compilation flags.
#
lt_prog_cc_shlib=
if test "$GCC" = no; then
  case $host_os in
  sco3.2v5*)
    lt_prog_cc_shlib='-belf'
    ;;
  esac
fi
if test -n "$lt_prog_cc_shlib"; then
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
  else
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
    lt_cv_prog_cc_can_build_shared=no
  fi
fi


#
# Check to make sure the static flag actually works.
#
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
if test "${lt_prog_compiler_static_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
       $SED '/^$/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works=yes
       fi
     else
       lt_prog_compiler_static_works=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6

if test x"$lt_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi



d9441 2
a9442 2
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
d9459 1
a9459 1
   (eval echo "\"\$as_me:8298: $lt_compile\"" >&5)
d9463 1
a9463 1
   echo "$as_me:8302: \$? = $ac_status" >&5
d9467 3
a9469 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
d9476 2
a9477 2
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
d9491 2
a9492 2
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
d9530 5
a9648 5
    sco3.2v5*)
      lt_prog_compiler_pic='-Kpic'
      lt_prog_compiler_static='-dn'
      ;;

d9666 1
a9666 1
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
d9679 6
d9701 2
a9702 2
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d9709 2
a9710 2
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
d9727 1
a9727 1
   (eval echo "\"\$as_me:8560: $lt_compile\"" >&5)
d9731 1
a9731 1
   echo "$as_me:8564: \$? = $ac_status" >&5
d9735 3
a9737 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
d9744 2
a9745 2
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
d9768 44
a9811 2
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
d9831 1
a9831 1
   (eval echo "\"\$as_me:8622: $lt_compile\"" >&5)
d9835 1
a9835 1
   echo "$as_me:8626: \$? = $ac_status" >&5
d9840 3
a9842 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
     $SED '/^$/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
d9857 2
a9858 2
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d9864 2
a9865 2
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
d9872 2
a9873 2
  echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
d9883 2
a9884 2
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d9942 4
d10030 1
a10030 1
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
d10039 1
a10039 1
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
d10045 15
d10101 1
a10101 1
    solaris* | sysv5*)
d10122 27
d10182 1
a10182 1
      if test "$GCC" = yes && test -z "$link_static_flag"; then
d10216 1
d10254 1
d10267 1
a10267 1
  	if test "$aix_use_runtimelinking" = yes; then
d10271 1
a10271 1
  	fi
d10299 7
a10305 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d10312 7
a10318 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10323 6
a10328 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10342 1
d10344 2
a10345 1
rm -f conftest.err conftest.$ac_objext \
d10350 1
a10350 1
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d10355 1
a10355 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
d10374 7
a10380 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d10387 7
a10393 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10398 6
a10403 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10417 1
d10419 2
a10420 1
rm -f conftest.err conftest.$ac_objext \
a10428 2
	  # -bexpall does not export symbols beginning with underscore (_)
	  always_export_symbols=yes
d10430 1
a10430 1
	  whole_archive_flag_spec=' '
d10433 1
a10433 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
d10574 20
a10593 1
    hpux10* | hpux11*)
d10596 1
a10596 1
	hppa*64*|ia64*)
d10599 3
d10608 5
a10612 2
	hppa*64*|ia64*)
	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
d10615 1
a10615 1
	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
d10620 3
d10624 1
a10624 2
	hppa*64*)
	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
a10625 1
	  hardcode_libdir_separator=:
a10628 9
	ia64*)
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_direct=no
	  hardcode_shlibpath_var=no

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L=yes
	  ;;
a10629 2
	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator=:
a10730 8
    sco3.2v5*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='${wl}-Bexport'
      runpath_var=LD_RUN_PATH
      hardcode_runpath_var=yes
      ;;

d10816 3
a10818 4
    sysv4.2uw2*)
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=no
d10820 1
a10820 3
      hardcode_runpath_var=yes
      runpath_var=LD_RUN_PATH
      ;;
a10821 2
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
      no_undefined_flag='${wl}-z ${wl}text'
d10823 2
a10824 1
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d10826 2
a10827 1
	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
a10828 2
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var=no
d10831 15
a10845 9
    sysv5*)
      no_undefined_flag=' -z text'
      # $CC -shared without GNU ld will not create a library from C++
      # object files and a static libstdc++, better avoid it by now
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      hardcode_libdir_flag_spec=
      hardcode_shlibpath_var=no
d10847 8
d10869 2
a10870 2
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
echo "${ECHO_T}$ld_shlibs" >&6
a10872 5
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

d10890 2
a10891 2
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
d10905 1
d10928 2
a10929 2
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
echo "${ECHO_T}$archive_cmds_need_lc" >&6
d10936 2
a10937 2
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
d11187 2
a11188 1
  *) # from 3.2 on
d11192 4
d11255 12
d11388 1
a11431 7
sco3.2v5*)
  version_type=osf
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

d11457 1
a11457 1
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
d11490 23
d11524 2
a11525 2
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
d11528 7
a11534 2
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
d11558 2
a11559 2
echo "$as_me:$LINENO: result: $hardcode_action" >&5
echo "${ECHO_T}$hardcode_action" >&6
d11572 2
a11573 2
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
d11577 2
a11578 2
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
d11585 2
a11586 2
         echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
d11588 2
a11589 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d11593 2
a11594 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d11626 2
a11627 2
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
d11640 3
a11642 1
/* Override any gcc2 internal prototype to avoid an error.  */
a11645 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d11650 1
a11650 1
dlopen ();
d11656 7
a11662 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d11669 7
a11675 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11680 6
a11685 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11694 1
a11694 1
ac_cv_lib_dl_dlopen=no
d11696 2
a11697 1
rm -f conftest.err conftest.$ac_objext \
d11701 2
a11702 2
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
d11716 2
a11717 2
    echo "$as_me:$LINENO: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
d11744 3
a11746 1
/* Override any gcc2 internal prototype to avoid an error.  */
a11748 1
{
a11749 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d11754 1
a11754 1
#if defined (__stub_shl_load) || defined (__stub___shl_load)
a11755 5
#else
char (*f) () = shl_load;
#endif
#ifdef __cplusplus
}
d11761 1
a11761 1
return f != shl_load;
d11767 7
a11773 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d11780 7
a11786 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11791 6
a11796 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11805 1
a11805 1
ac_cv_func_shl_load=no
d11807 2
a11808 1
rm -f conftest.err conftest.$ac_objext \
d11811 2
a11812 2
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
d11816 2
a11817 2
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
d11830 3
a11832 1
/* Override any gcc2 internal prototype to avoid an error.  */
a11835 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d11840 1
a11840 1
shl_load ();
d11846 7
a11852 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d11859 7
a11865 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11870 6
a11875 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11884 1
a11884 1
ac_cv_lib_dld_shl_load=no
d11886 2
a11887 1
rm -f conftest.err conftest.$ac_objext \
d11891 2
a11892 2
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
d11896 2
a11897 2
  echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
d11924 3
a11926 1
/* Override any gcc2 internal prototype to avoid an error.  */
a11928 1
{
a11929 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d11934 1
a11934 1
#if defined (__stub_dlopen) || defined (__stub___dlopen)
a11935 5
#else
char (*f) () = dlopen;
#endif
#ifdef __cplusplus
}
d11941 1
a11941 1
return f != dlopen;
d11947 7
a11953 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d11960 7
a11966 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11971 6
a11976 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11985 1
a11985 1
ac_cv_func_dlopen=no
d11987 2
a11988 1
rm -f conftest.err conftest.$ac_objext \
d11991 2
a11992 2
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
d11996 2
a11997 2
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
d12010 3
a12012 1
/* Override any gcc2 internal prototype to avoid an error.  */
a12015 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d12020 1
a12020 1
dlopen ();
d12026 7
a12032 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d12039 7
a12045 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12050 6
a12055 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12064 1
a12064 1
ac_cv_lib_dl_dlopen=no
d12066 2
a12067 1
rm -f conftest.err conftest.$ac_objext \
d12071 2
a12072 2
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
d12076 2
a12077 2
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
d12090 3
a12092 1
/* Override any gcc2 internal prototype to avoid an error.  */
a12095 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d12100 1
a12100 1
dlopen ();
d12106 7
a12112 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d12119 7
a12125 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12130 6
a12135 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12144 1
a12144 1
ac_cv_lib_svld_dlopen=no
d12146 2
a12147 1
rm -f conftest.err conftest.$ac_objext \
d12151 2
a12152 2
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
d12156 2
a12157 2
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
d12170 3
a12172 1
/* Override any gcc2 internal prototype to avoid an error.  */
a12175 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d12180 1
a12180 1
dld_link ();
d12186 7
a12192 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d12199 7
a12205 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12210 6
a12215 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12224 1
a12224 1
ac_cv_lib_dld_dld_link=no
d12226 2
a12227 1
rm -f conftest.err conftest.$ac_objext \
d12231 2
a12232 2
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
d12267 1
a12267 1
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d12272 2
a12273 2
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
d12283 1
a12283 1
#line 10870 "configure"
d12340 2
d12356 1
a12356 1
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
d12367 2
a12368 2
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
d12371 3
a12373 3
      LDFLAGS="$LDFLAGS $link_static_flag"
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
d12383 1
a12383 1
#line 10968 "configure"
d12440 2
d12456 1
a12456 1
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
d12467 2
a12468 2
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
d12489 5
a12493 5
# Report which librarie types wil actually be built
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6
d12495 2
a12496 2
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
d12516 2
a12517 2
echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6
d12519 2
a12520 2
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
d12523 2
a12524 2
echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6
d12539 1
a12539 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
d12705 3
d13016 1
a13016 1
# Check whether --with-tags or --without-tags was given.
d13018 3
a13020 3
  withval="$with_tags"
  tagnames="$withval"
fi;
d13038 3
d13074 1
a13074 1
	  ac_ext=cc
d13093 1
d13121 1
a13121 1
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
d13128 3
d13138 1
a13138 1
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
d13144 1
a13144 1
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
d13159 1
a13159 1
  unset lt_cv_prog_gnu_ld
d13164 1
a13164 1
  unset lt_cv_path_LD
d13193 1
a13193 1
# Check whether --with-gnu-ld or --without-gnu-ld was given.
d13195 1
a13195 2
  withval="$with_gnu_ld"
  test "$withval" = no || with_gnu_ld=yes
d13198 2
a13199 1
fi;
d13203 2
a13204 2
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
d13233 2
a13234 2
  echo "$as_me:$LINENO: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
d13236 2
a13237 2
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
d13270 2
a13271 2
  echo "$as_me:$LINENO: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
d13273 2
a13274 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d13279 2
a13280 2
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
d13294 2
a13295 2
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
d13345 2
a13346 2
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d13375 1
d13413 1
d13458 7
a13464 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d13471 7
a13477 4
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13482 6
a13487 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13501 1
d13503 2
a13504 1
rm -f conftest.err conftest.$ac_objext \
d13510 1
a13510 1
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d13515 1
a13515 1
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
d13534 7
a13540 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d13547 7
a13553 4
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13558 6
a13563 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13577 1
d13579 2
a13580 1
rm -f conftest.err conftest.$ac_objext \
a13588 2
	# -bexpall does not export symbols beginning with underscore (_)
	always_export_symbols_CXX=yes
d13590 1
a13590 1
	whole_archive_flag_spec_CXX=' '
d13593 1
a13593 1
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
d13597 12
a13617 1

d13627 1
a13627 1
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
d13636 1
a13636 1
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
d13773 3
d13777 1
a13777 2
      hppa*64*)
	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
a13778 4
	hardcode_libdir_separator_CXX=:
        ;;
      ia64*)
	hardcode_libdir_flag_spec_CXX='-L$libdir'
a13780 2
	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_CXX=:
d13786 1
a13786 5
    hppa*64*)
      hardcode_direct_CXX=no
      hardcode_shlibpath_var_CXX=no
      ;;
    ia64*)
a13788 3
      hardcode_minus_L_CXX=yes # Not in the search PATH,
					      # but as the default
					      # location of the library.
d13805 5
a13809 2
	hppa*64*|ia64*)
	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
d13829 5
a13833 2
	    ia64*|hppa*64*)
	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
d13847 14
a14142 13
  sco*)
    archive_cmds_need_lc_CXX=no
    case $cc_basename in
      CC*)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
d14235 35
a14269 1
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
d14271 17
d14311 2
a14312 2
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
echo "${ECHO_T}$ld_shlibs_CXX" >&6
d14426 8
d14443 1
d14455 2
a14456 2
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
d14494 4
d14567 1
a14567 1
	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
d14574 1
a14574 1
	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
d14588 4
a14670 9
      sco*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
d14712 8
a14719 1
      unixware*)
d14729 2
a14730 2
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
d14737 2
a14738 2
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
d14755 1
a14755 1
   (eval echo "\"\$as_me:13227: $lt_compile\"" >&5)
d14759 1
a14759 1
   echo "$as_me:13231: \$? = $ac_status" >&5
d14763 3
a14765 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
d14772 2
a14773 2
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
d14796 45
a14840 3
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
d14859 1
a14859 1
   (eval echo "\"\$as_me:13289: $lt_compile\"" >&5)
d14863 1
a14863 1
   echo "$as_me:13293: \$? = $ac_status" >&5
d14868 3
a14870 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
     $SED '/^$/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
d14885 2
a14886 2
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
d14892 2
a14893 2
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
d14900 2
a14901 2
  echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
d14911 2
a14912 2
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d14936 2
a14937 2
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
echo "${ECHO_T}$ld_shlibs_CXX" >&6
a14939 5
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

d14957 2
a14958 2
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
d14972 1
d14995 2
a14996 2
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
d15003 2
a15004 2
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
d15254 2
a15255 1
  *) # from 3.2 on
d15259 4
d15322 12
d15455 1
a15498 7
sco3.2v5*)
  version_type=osf
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

d15524 1
a15524 1
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
d15557 23
d15591 2
a15592 2
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
d15595 7
a15601 2
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
d15625 2
a15626 2
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
echo "${ECHO_T}$hardcode_action_CXX" >&6
a15636 28
striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
       else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
       ;;
   *)
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    ;;
  esac
fi
d15638 79
a15716 7
if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=
d15718 3
a15720 5
  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
d15722 1
d15724 1
a15724 4
  mingw* | pw32*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
   ;;
d15726 2
a15727 4
  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
   ;;
d15729 1
a15729 15
  darwin*)
  # if libdl is installed we need to link against it
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d15731 2
a15732 41
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d15734 2
a15735 11
ac_cv_lib_dl_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
d15737 2
a15738 3
    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
d15740 2
a15741 1
fi
d15743 2
a15744 1
   ;;
d15746 19
a15764 15
  *)
    echo "$as_me:$LINENO: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
if test "${ac_cv_func_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define shl_load innocuous_shl_load
d15766 2
a15767 4
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
d15769 2
a15770 5
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
d15772 2
a15773 1
#undef shl_load
d15775 2
a15776 19
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shl_load) || defined (__stub___shl_load)
choke me
#else
char (*f) () = shl_load;
#endif
#ifdef __cplusplus
}
#endif
d15778 2
a15779 34
int
main ()
{
return f != shl_load;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d15781 2
a15782 23
ac_cv_func_shl_load=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
if test $ac_cv_func_shl_load = yes; then
  lt_cv_dlopen="shl_load"
else
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d15784 2
a15785 41
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
int
main ()
{
shl_load ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d15787 2
a15788 25
ac_cv_lib_dld_shl_load=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
if test $ac_cv_lib_dld_shl_load = yes; then
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
else
  echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_func_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dlopen innocuous_dlopen
d15790 2
a15791 4
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
d15793 2
a15794 5
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
d15796 2
a15797 1
#undef dlopen
d15799 2
a15800 19
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlopen) || defined (__stub___dlopen)
choke me
#else
char (*f) () = dlopen;
#endif
#ifdef __cplusplus
}
#endif
d15802 2
a15803 34
int
main ()
{
return f != dlopen;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d15805 2
a15806 23
ac_cv_func_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
if test $ac_cv_func_dlopen = yes; then
  lt_cv_dlopen="dlopen"
else
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d15808 15
a15822 41
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d15824 2
a15825 24
ac_cv_lib_dl_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d15827 3
a15829 41
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_svld_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d15831 2
a15832 24
ac_cv_lib_svld_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
if test $ac_cv_lib_svld_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d15834 2
a15835 41
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dld_link ();
int
main ()
{
dld_link ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_dld_link=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d15837 2
a15838 11
ac_cv_lib_dld_dld_link=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
if test $ac_cv_lib_dld_dld_link = yes; then
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
fi
d15840 2
d15843 2
a15844 1
fi
d15846 2
d15849 2
a15850 1
fi
d15852 2
d15855 2
a15856 1
fi
d15858 2
d15861 2
a15862 1
fi
d15864 2
d15867 2
a15868 1
fi
d15870 2
a15871 2
    ;;
  esac
d15873 2
a15874 5
  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi
d15876 3
a15878 4
  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d15880 2
a15881 2
    save_LDFLAGS="$LDFLAGS"
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d15883 5
a15887 2
    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"
d15889 2
a15890 13
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 14666 "configure"
#include "confdefs.h"
d15892 2
a15893 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d15895 5
a15899 1
#include <stdio.h>
d15901 3
a15903 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d15905 56
a15960 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d15962 2
a15963 3
#ifdef __cplusplus
extern "C" void exit (int);
#endif
d15965 2
a15966 5
void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
d15968 2
a15969 6
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
d15971 3
a15973 21
    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*
d15975 4
d15980 2
a15981 3
fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
d15983 3
a15985 15
    if test "x$lt_cv_dlopen_self" = xyes; then
      LDFLAGS="$LDFLAGS $link_static_flag"
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self_static+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 14764 "configure"
#include "confdefs.h"
d15987 3
a15989 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d15991 3
a15993 1
#include <stdio.h>
d15995 3
a15997 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d15999 3
a16001 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d16003 2
a16004 3
#ifdef __cplusplus
extern "C" void exit (int);
#endif
d16006 2
a16007 5
void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
d16009 2
a16010 6
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
d16012 2
a16013 21
    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*
d16015 2
d16018 2
a16019 4
fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
    fi
d16021 2
a16022 5
    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac
d16024 2
a16025 4
  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac
d16027 2
a16028 5
  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi
d16030 1
d16032 10
a16041 9
# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
d16043 1
a16043 47
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_CXX \
    CC_CXX \
    LD_CXX \
    lt_prog_compiler_wl_CXX \
    lt_prog_compiler_pic_CXX \
    lt_prog_compiler_static_CXX \
    lt_prog_compiler_no_builtin_flag_CXX \
    export_dynamic_flag_spec_CXX \
    thread_safe_flag_spec_CXX \
    whole_archive_flag_spec_CXX \
    enable_shared_with_static_runtimes_CXX \
    old_archive_cmds_CXX \
    old_archive_from_new_cmds_CXX \
    predep_objects_CXX \
    postdep_objects_CXX \
    predeps_CXX \
    postdeps_CXX \
    compiler_lib_search_path_CXX \
    archive_cmds_CXX \
    archive_expsym_cmds_CXX \
    postinstall_cmds_CXX \
    postuninstall_cmds_CXX \
    old_archive_from_expsyms_cmds_CXX \
    allow_undefined_flag_CXX \
    no_undefined_flag_CXX \
    export_symbols_cmds_CXX \
    hardcode_libdir_flag_spec_CXX \
    hardcode_libdir_flag_spec_ld_CXX \
    hardcode_libdir_separator_CXX \
    hardcode_automatic_CXX \
    module_cmds_CXX \
    module_expsym_cmds_CXX \
    lt_cv_prog_compiler_c_o_CXX \
    exclude_expsyms_CXX \
    include_expsyms_CXX; do
a16044 21
    case $var in
    old_archive_cmds_CXX | \
    old_archive_from_new_cmds_CXX | \
    archive_cmds_CXX | \
    archive_expsym_cmds_CXX | \
    module_cmds_CXX | \
    module_expsym_cmds_CXX | \
    old_archive_from_expsyms_cmds_CXX | \
    export_symbols_cmds_CXX | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done
d16046 5
a16050 5
  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac
d16052 10
a16061 1
cfgfile="$ofile"
d16063 4
a16066 2
  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
d16068 2
a16069 1
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
d16071 4
a16074 2
# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL
a16075 2
# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared
d16077 18
a16094 2
# Whether or not to build static libraries.
build_old_libs=$enable_static
d16096 2
a16097 2
# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX
d16099 3
a16101 2
# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
d16103 2
a16104 2
# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install
d16106 2
a16107 4
# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os
d16109 1
a16109 4
# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
d16111 2
a16112 2
# An echo program that does not interpret backslashes.
echo=$lt_echo
d16114 2
a16115 3
# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS
d16117 2
a16118 2
# A C compiler.
LTCC=$lt_LTCC
a16119 2
# A language-specific compiler.
CC=$lt_compiler_CXX
d16121 6
a16126 2
# Is the compiler the GNU C compiler?
with_gcc=$GCC_CXX
d16128 5
a16132 2
# An ERE matcher.
EGREP=$lt_EGREP
a16133 2
# The linker used to build libraries.
LD=$lt_LD_CXX
d16135 14
a16148 2
# Whether we need hard or soft links.
LN_S=$lt_LN_S
a16149 2
# A BSD-compatible nm program.
NM=$lt_NM
d16151 4
a16154 2
# A symbol stripping program
STRIP=$lt_STRIP
d16156 3
a16158 2
# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD
d16160 18
a16177 2
# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"
d16179 6
a16184 2
# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"
d16186 2
a16187 2
# Used on cygwin: assembler.
AS="$AS"
d16189 3
a16191 2
# The name of the directory that contains temporary libtool files.
objdir=$objdir
d16193 2
a16194 3
# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds
d16196 3
a16198 2
# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX
d16200 8
a16207 2
# Object file suffix (normally "o").
objext="$ac_objext"
d16209 6
a16214 2
# Old archive suffix (normally "a").
libext="$libext"
d16216 3
a16218 2
# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'
d16220 5
a16224 2
# Executable file suffix (normally "").
exeext="$exeext"
d16226 5
a16230 3
# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX
pic_mode=$pic_mode
d16232 4
a16235 2
# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len
d16237 6
a16242 2
# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
d16244 5
a16248 2
# Must we lock files when doing compilation?
need_locks=$lt_need_locks
d16250 12
a16261 2
# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix
d16263 26
a16288 2
# Do we need a version for libraries?
need_version=$need_version
d16290 5
a16294 2
# Whether dlopen is supported.
dlopen_support=$enable_dlopen
d16296 15
a16310 2
# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self
d16312 5
a16316 2
# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static
d16318 4
a16321 2
# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX
d16323 21
a16343 2
# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
d16345 5
a16349 2
# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
d16351 10
a16360 2
# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
d16362 5
a16366 2
# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
d16368 5
a16372 2
# Library versioning type.
version_type=$version_type
d16374 6
a16379 2
# Format of library name prefix.
libname_spec=$lt_libname_spec
d16381 5
a16385 3
# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec
d16387 4
a16390 2
# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec
d16392 4
a16395 5
# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_CXX
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds
d16397 5
a16401 2
# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
d16403 2
a16404 2
# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
d16406 4
a16409 5
# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds
d16411 33
a16443 3
# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX
d16445 3
a16447 3
# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib
d16449 9
a16457 3
# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_CXX
d16459 10
a16468 3
# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_CXX
d16470 30
a16499 3
# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_CXX
d16501 3
a16503 3
# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_CXX
d16505 5
a16509 3
# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
a16510 2
# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method
d16512 11
a16522 2
# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd
d16524 33
a16556 2
# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX
d16558 3
a16560 2
# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX
a16561 2
# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds
d16563 21
a16583 2
# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval
d16585 2
a16586 2
# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d16588 46
a16633 2
# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d16635 17
a16651 2
# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d16653 4
a16656 2
# This is the shared library runtime path variable.
runpath_var=$runpath_var
d16658 20
a16677 2
# This is the shared library path variable.
shlibpath_var=$shlibpath_var
d16679 7
a16685 2
# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d16687 5
a16691 2
# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX
d16693 3
a16695 2
# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs
d16697 4
a16700 3
# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
d16702 8
a16709 4
# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
d16711 10
a16720 2
# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
d16722 8
a16729 3
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_CXX
d16731 15
a16745 3
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX
d16747 14
a16760 3
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
d16762 19
a16780 3
# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_CXX
d16782 10
a16791 3
# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"
d16793 9
a16801 2
# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX
d16803 4
a16806 2
# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d16808 6
a16813 2
# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d16815 8
a16822 2
# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_CXX"
d16824 5
a16828 2
# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX
d16830 6
a16835 2
# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX
d16837 13
a16849 2
# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds
d16851 6
a16856 2
# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX
d16858 9
a16866 2
# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX
d16868 22
a16889 1
# ### END LIBTOOL TAG CONFIG: $tagname
d16891 16
a16906 1
__EOF__
d16908 12
d16921 3
a16923 9
else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi
d16925 5
d16931 4
a16934 16
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC=$lt_save_CC
LDCXX=$LD
LD=$lt_save_LD
GCC=$lt_save_GCC
with_gnu_ldcxx=$with_gnu_ld
with_gnu_ld=$lt_save_with_gnu_ld
lt_cv_path_LDCXX=$lt_cv_path_LD
lt_cv_path_LD=$lt_save_path_LD
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
d16936 32
d16969 5
a16973 1
	  tagname=""
d16975 1
a16975 1
	;;
d16977 10
a16986 2
      F77)
	if test -n "$F77" && test "X$F77" != "Xno"; then
d16988 36
a17023 4
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
d17025 8
a17033 18
archive_cmds_need_lc_F77=no
allow_undefined_flag_F77=
always_export_symbols_F77=no
archive_expsym_cmds_F77=
export_dynamic_flag_spec_F77=
hardcode_direct_F77=no
hardcode_libdir_flag_spec_F77=
hardcode_libdir_flag_spec_ld_F77=
hardcode_libdir_separator_F77=
hardcode_minus_L_F77=no
hardcode_automatic_F77=no
module_cmds_F77=
module_expsym_cmds_F77=
link_all_deplibs_F77=unknown
old_archive_cmds_F77=$old_archive_cmds
no_undefined_flag_F77=
whole_archive_flag_spec_F77=
enable_shared_with_static_runtimes_F77=no
d17035 1
a17035 2
# Source file extension for f77 test sources.
ac_ext=f
d17037 3
a17039 3
# Object file extension for compiled f77 test sources.
objext=o
objext_F77=$objext
d17041 11
a17051 2
# Code to be used in simple compile tests
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
d17053 30
a17082 66
# Code to be used in simple link tests
lt_simple_link_test_code="      program t\n      end\n"

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${F77-"f77"}
compiler=$CC
compiler_F77=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6

echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
test "$can_build_shared" = "no" && enable_shared=no

# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case $host_os in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;
aix4* | aix5*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
  fi
  ;;
d17084 5
a17088 2
echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6
d17090 8
a17097 6
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6
a17098 1
test "$ld_shlibs_F77" = no && can_build_shared=no
d17100 1
a17100 2
GCC_F77="$G77"
LD_F77="$LD"
d17102 3
a17104 3
lt_prog_compiler_wl_F77=
lt_prog_compiler_pic_F77=
lt_prog_compiler_static_F77=
d17106 11
a17116 13
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6

  if test "$GCC" = yes; then
    lt_prog_compiler_wl_F77='-Wl,'
    lt_prog_compiler_static_F77='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_F77='-Bstatic'
d17121 5
a17125 4
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
d17128 2
a17129 2
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
d17132 19
a17150 4
    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
d17154 53
a17206 3
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_F77='-fno-common'
d17209 2
a17210 5
    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_F77=no
      enable_shared=no
d17213 9
a17221 4
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_F77=-Kconform_pic
      fi
d17224 6
a17229 11
    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_F77='-fPIC'
	;;
      esac
d17232 6
a17237 2
    *)
      lt_prog_compiler_pic_F77='-fPIC'
d17239 4
a17242 9
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_F77='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_F77='-Bstatic'
d17244 1
a17244 1
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
d17246 8
a17254 10
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic_F77='-qnocommon'
         lt_prog_compiler_wl_F77='-Wl,'
         ;;
       esac
       ;;
d17256 17
a17272 4
    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
d17275 46
a17320 14
    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_F77='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_F77='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
d17324 20
a17343 3
      lt_prog_compiler_wl_F77='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_F77='-non_shared'
d17347 5
a17351 2
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
d17354 28
a17381 20
    linux*)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-KPIC'
	lt_prog_compiler_static_F77='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-fpic'
	lt_prog_compiler_static_F77='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl_F77='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_F77='-non_shared'
        ;;
      esac
d17384 10
a17393 4
    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_F77='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_F77='-non_shared'
d17396 15
a17410 3
    sco3.2v5*)
      lt_prog_compiler_pic_F77='-Kpic'
      lt_prog_compiler_static_F77='-dn'
d17414 16
a17429 5
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_F77='-Qoption ld ';;
d17431 11
a17441 1
	lt_prog_compiler_wl_F77='-Wl,';;
d17443 1
d17447 33
a17479 3
      lt_prog_compiler_wl_F77='-Qoption ld '
      lt_prog_compiler_pic_F77='-PIC'
      lt_prog_compiler_static_F77='-Bstatic'
d17482 4
a17485 4
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
d17489 21
a17509 3
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_F77='-Kconform_pic'
	lt_prog_compiler_static_F77='-Bstatic'
d17513 24
a17536 3
    unicos*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_can_build_shared_F77=no
d17540 3
a17542 2
      lt_prog_compiler_pic_F77='-pic'
      lt_prog_compiler_static_F77='-Bstatic'
d17546 1
a17546 1
      lt_prog_compiler_can_build_shared_F77=no
d17551 3
a17553 2
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
d17556 1
a17556 1
# Check to make sure the PIC flag actually works.
d17558 4
a17561 1
if test -n "$lt_prog_compiler_pic_F77"; then
d17563 13
a17575 33
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_F77=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:15649: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:15653: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works_F77=yes
     fi
   fi
   $rm conftest*
d17577 40
a17616 3
fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
d17618 26
a17643 5
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
    case $lt_prog_compiler_pic_F77 in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
     esac
d17645 1
a17645 2
    lt_prog_compiler_pic_F77=
     lt_prog_compiler_can_build_shared_F77=no
d17647 6
a17653 1
fi
d17655 4
a17658 8
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_F77=
    ;;
  *)
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
    ;;
esac
d17660 3
a17662 11
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_F77=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
d17664 43
a17706 33
   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:15711: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:15715: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
     $SED '/^$/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_F77=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*
d17708 5
a17712 3
fi
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
d17714 5
d17720 13
a17732 21
hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi
d17734 5
a17738 2
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d17740 14
a17753 46
  runpath_var=
  allow_undefined_flag_F77=
  enable_shared_with_static_runtimes_F77=no
  archive_cmds_F77=
  archive_expsym_cmds_F77=
  old_archive_From_new_cmds_F77=
  old_archive_from_expsyms_cmds_F77=
  export_dynamic_flag_spec_F77=
  whole_archive_flag_spec_F77=
  thread_safe_flag_spec_F77=
  hardcode_libdir_flag_spec_F77=
  hardcode_libdir_flag_spec_ld_F77=
  hardcode_libdir_separator_F77=
  hardcode_direct_F77=no
  hardcode_minus_L_F77=no
  hardcode_shlibpath_var_F77=unsupported
  link_all_deplibs_F77=unknown
  hardcode_automatic_F77=no
  module_cmds_F77=
  module_expsym_cmds_F77=
  always_export_symbols_F77=no
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_F77=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d17755 27
a17781 8
  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
d17783 3
a17785 2
  openbsd*)
    with_gnu_ld=no
d17788 4
d17793 18
a17810 4
  ld_shlibs_F77=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'
d17812 8
a17819 20
    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_F77=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac
d17821 3
a17823 7
    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs_F77=no
	cat <<EOF 1>&2
d17825 11
a17835 5
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.
d17837 21
a17857 2
EOF
      fi
d17859 21
d17881 9
a17889 4
    amigaos*)
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes
d17891 45
a17935 8
      # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs_F77=no
      ;;
d17937 11
a17947 10
    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag_F77=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;
d17949 36
a17984 8
    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec_F77='-L$libdir'
      allow_undefined_flag_F77=unsupported
      always_export_symbols_F77=no
      enable_shared_with_static_runtimes_F77=yes
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
d17986 4
a17989 15
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
      else
	ld_shlibs_F77=no
      fi
      ;;
d17991 14
a18004 19
    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d18006 5
a18010 10
	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs_F77=no
      fi
      ;;
d18012 8
a18019 9
    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;
d18021 11
a18031 4
    solaris* | sysv5*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs_F77=no
	cat <<EOF 1>&2
d18033 17
a18049 6
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.
d18051 6
a18056 8
EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;
d18058 9
a18066 6
    sunos4*)
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;
d18068 21
a18088 16
    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;
    esac

    if test "$ld_shlibs_F77" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_F77=
      export_dynamic_flag_spec_F77=
      whole_archive_flag_spec_F77=
    fi
d18090 3
a18092 15
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag_F77=unsupported
      always_export_symbols_F77=yes
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L_F77=yes
      if test "$GCC" = yes && test -z "$link_static_flag"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct_F77=unsupported
      fi
      ;;
d18094 8
a18101 16
    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no
d18103 10
a18112 11
	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	esac
d18114 12
a18125 3
	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi
d18127 11
a18137 5
      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d18139 23
a18161 4
      archive_cmds_F77=''
      hardcode_direct_F77=yes
      hardcode_libdir_separator_F77=':'
      link_all_deplibs_F77=yes
d18163 8
a18170 39
      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct_F77=yes
	  else
  	  # We have old collect2
  	  hardcode_direct_F77=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L_F77=yes
  	  hardcode_libdir_flag_spec_F77='-L$libdir'
  	  hardcode_libdir_separator_F77=
	  fi
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
  	if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
  	fi
	fi
      fi
d18172 22
a18193 10
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols_F77=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag_F77='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       cat >conftest.$ac_ext <<_ACEOF
      program main
d18195 6
a18200 24
      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_f77_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18202 7
a18208 8
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d18210 3
a18213 3
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d18215 6
a18220 11
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag_F77="-z nodefs"
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 cat >conftest.$ac_ext <<_ACEOF
      program main
d18222 13
a18234 30
      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_f77_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
d18236 6
a18241 2
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d18243 7
a18250 3
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a18251 15
	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag_F77=' ${wl}-bernotok'
	  allow_undefined_flag_F77=' ${wl}-berok'
	  # -bexpall does not export symbols beginning with underscore (_)
	  always_export_symbols_F77=yes
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec_F77=' '
	  archive_cmds_need_lc_F77=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;
d18253 57
a18309 7
    amigaos*)
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs_F77=no
      ;;
d18311 15
a18325 2
    bsdi[45]*)
      export_dynamic_flag_spec_F77=-rdynamic
d18327 2
a18328 20

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec_F77=' '
      allow_undefined_flag_F77=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds_F77='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes_F77=yes
d18330 2
d18333 5
a18337 49
    darwin* | rhapsody*)
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
      esac
      archive_cmds_need_lc_F77=no
      hardcode_direct_F77=no
      hardcode_automatic_F77=yes
      hardcode_shlibpath_var_F77=unsupported
      whole_archive_flag_spec_F77=''
      link_all_deplibs_F77=yes
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_F77=no
          ;;
      esac
    fi
      ;;
d18339 1
a18339 5
    dgux*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_shlibpath_var_F77=no
      ;;
d18341 2
a18342 3
    freebsd1*)
      ld_shlibs_F77=no
      ;;
d18344 1
a18344 10
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;
d18346 2
a18347 7
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;
d18349 2
a18350 7
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu | dragonfly*)
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;
d18352 2
a18353 9
    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      hardcode_direct_F77=yes
d18355 2
a18356 5
      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L_F77=yes
      export_dynamic_flag_spec_F77='${wl}-E'
      ;;
d18358 2
a18359 33
    hpux10* | hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*|ia64*)
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*|ia64*)
	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
	  ;;
	*)
	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
	  hardcode_libdir_separator_F77=:
	  hardcode_direct_F77=no
	  hardcode_shlibpath_var_F77=no
	  ;;
	ia64*)
	  hardcode_libdir_flag_spec_F77='-L$libdir'
	  hardcode_direct_F77=no
	  hardcode_shlibpath_var_F77=no
d18361 2
a18362 9
	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_F77=yes
	  ;;
	*)
	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_F77=:
	  hardcode_direct_F77=yes
	  export_dynamic_flag_spec_F77='${wl}-E'
d18364 4
a18367 7
	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_F77=yes
	  ;;
	esac
      fi
      ;;
d18369 4
a18372 11
    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      link_all_deplibs_F77=yes
      ;;
d18374 2
a18375 10
    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;
d18377 3
a18379 7
    newsos6)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      hardcode_shlibpath_var_F77=no
      ;;
d18381 2
a18382 21
    openbsd*)
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_F77='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec_F77='-R$libdir'
	   ;;
	 *)
	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;
d18384 2
a18385 7
    os2*)
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes
      allow_undefined_flag_F77=unsupported
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;
d18387 2
a18388 11
    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag_F77=' -expect_unresolved \*'
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      ;;
d18390 2
a18391 10
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag_F77=' -expect_unresolved \*'
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
d18393 2
a18394 5
	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
      fi
      hardcode_libdir_separator_F77=:
      ;;
d18396 2
a18397 7
    sco3.2v5*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_F77=no
      export_dynamic_flag_spec_F77='${wl}-Bexport'
      runpath_var=LD_RUN_PATH
      hardcode_runpath_var=yes
      ;;
d18399 2
a18400 32
    solaris*)
      no_undefined_flag_F77=' -z text'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	wlarc=''
	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_shlibpath_var_F77=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
      esac
      link_all_deplibs_F77=yes
      ;;
d18402 2
a18403 13
    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;
d18405 2
a18406 21
    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_F77=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds_F77='$CC -r -o $output$reload_objs'
	  hardcode_direct_F77=no
        ;;
	motorola)
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_F77=no
      ;;
d18408 2
a18409 5
    sysv4.3*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_F77=no
      export_dynamic_flag_spec_F77='-Bexport'
      ;;
d18411 2
a18412 9
    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var_F77=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs_F77=yes
      fi
      ;;
d18414 2
a18415 8
    sysv4.2uw2*)
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=no
      hardcode_shlibpath_var_F77=no
      hardcode_runpath_var=yes
      runpath_var=LD_RUN_PATH
      ;;
d18417 2
a18418 10
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
      no_undefined_flag_F77='${wl}-z ${wl}text'
      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_F77=no
      ;;
d18420 2
a18421 11
    sysv5*)
      no_undefined_flag_F77=' -z text'
      # $CC -shared without GNU ld will not create a library from C++
      # object files and a static libstdc++, better avoid it by now
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      hardcode_libdir_flag_spec_F77=
      hardcode_shlibpath_var_F77=no
      runpath_var='LD_RUN_PATH'
      ;;
d18423 3
a18425 5
    uts4*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_shlibpath_var_F77=no
      ;;
d18427 2
a18428 5
    *)
      ld_shlibs_F77=no
      ;;
    esac
  fi
d18430 2
a18431 3
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
echo "${ECHO_T}$ld_shlibs_F77" >&6
test "$ld_shlibs_F77" = no && can_build_shared=no
d18433 5
a18437 4
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi
d18439 2
a18440 7
#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_F77" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_F77=yes
d18442 3
a18444 13
  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_F77 in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
d18446 2
a18447 39
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_F77
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
        allow_undefined_flag_F77=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc_F77=no
        else
	  archive_cmds_need_lc_F77=yes
        fi
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
      ;;
    esac
  fi
  ;;
esac
d18449 2
a18450 31
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no
d18452 2
a18453 3
# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown
d18455 2
a18456 5
case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH
d18458 2
a18459 3
  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;
d18461 2
a18462 43
aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;
d18464 2
a18465 5
amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;
d18467 2
a18468 5
beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;
d18470 2
a18471 13
bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;
d18473 2
a18474 5
cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no
d18476 2
a18477 14
  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes
d18479 2
a18480 28
    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;
d18482 2
a18483 8
  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;
d18485 9
a18493 18
darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;
d18495 2
a18496 8
dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;
d18498 5
a18502 3
freebsd1*)
  dynamic_linker=no
  ;;
d18504 2
a18505 11
kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;
d18507 2
a18508 38
freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  *) # from 3.2 on
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  esac
  ;;
d18510 5
a18514 9
gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;
d18516 3
a18518 45
hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;
d18520 3
a18522 36
irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;
d18524 3
a18526 4
# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;
d18528 3
a18530 14
# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes
d18532 3
a18534 5
  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi
d18536 3
a18538 8
  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;
d18540 3
a18542 11
knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;
d18544 20
a18563 17
netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;
d18565 2
a18566 6
newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;
d18568 2
a18569 9
nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;
d18571 2
a18572 24
openbsd*)
  version_type=sunos
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;
d18574 2
a18575 8
os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;
d18577 2
a18578 10
osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;
d18580 2
a18581 6
sco3.2v5*)
  version_type=osf
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  ;;
d18583 2
a18584 12
solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;
d18586 3
a18588 11
sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;
d18590 4
a18593 23
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;
d18595 2
a18596 8
sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;
d18598 3
a18600 6
uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;
d18602 3
a18604 7
*)
  dynamic_linker=no
  ;;
esac
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
test "$dynamic_linker" = no && can_build_shared=no
d18606 3
a18608 6
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action_F77=
if test -n "$hardcode_libdir_flag_spec_F77" || \
   test -n "$runpath_var_F77" || \
   test "X$hardcode_automatic_F77" = "Xyes" ; then
d18610 3
a18612 20
  # We can hardcode non-existant directories.
  if test "$hardcode_direct_F77" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
     test "$hardcode_minus_L_F77" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_F77=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_F77=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_F77=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
echo "${ECHO_T}$hardcode_action_F77" >&6
d18614 3
a18616 8
if test "$hardcode_action_F77" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi
d18618 2
a18619 28
striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
       else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
       ;;
   *)
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    ;;
  esac
fi
d18621 2
d18624 2
d18627 2
a18628 57
# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_F77 \
    CC_F77 \
    LD_F77 \
    lt_prog_compiler_wl_F77 \
    lt_prog_compiler_pic_F77 \
    lt_prog_compiler_static_F77 \
    lt_prog_compiler_no_builtin_flag_F77 \
    export_dynamic_flag_spec_F77 \
    thread_safe_flag_spec_F77 \
    whole_archive_flag_spec_F77 \
    enable_shared_with_static_runtimes_F77 \
    old_archive_cmds_F77 \
    old_archive_from_new_cmds_F77 \
    predep_objects_F77 \
    postdep_objects_F77 \
    predeps_F77 \
    postdeps_F77 \
    compiler_lib_search_path_F77 \
    archive_cmds_F77 \
    archive_expsym_cmds_F77 \
    postinstall_cmds_F77 \
    postuninstall_cmds_F77 \
    old_archive_from_expsyms_cmds_F77 \
    allow_undefined_flag_F77 \
    no_undefined_flag_F77 \
    export_symbols_cmds_F77 \
    hardcode_libdir_flag_spec_F77 \
    hardcode_libdir_flag_spec_ld_F77 \
    hardcode_libdir_separator_F77 \
    hardcode_automatic_F77 \
    module_cmds_F77 \
    module_expsym_cmds_F77 \
    lt_cv_prog_compiler_c_o_F77 \
    exclude_expsyms_F77 \
    include_expsyms_F77; do
d18630 2
a18631 21
    case $var in
    old_archive_cmds_F77 | \
    old_archive_from_new_cmds_F77 | \
    archive_cmds_F77 | \
    archive_expsym_cmds_F77 | \
    module_cmds_F77 | \
    module_expsym_cmds_F77 | \
    old_archive_from_expsyms_cmds_F77 | \
    export_symbols_cmds_F77 | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done
d18633 2
a18634 5
  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac
d18636 2
a18637 1
cfgfile="$ofile"
d18639 2
a18640 2
  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
d18642 2
a18643 1
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
d18645 1
a18645 2
# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL
d18647 1
a18647 2
# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared
a18648 2
# Whether or not to build static libraries.
build_old_libs=$enable_static
d18650 9
a18658 2
# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_F77
a18659 2
# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
d18661 5
a18665 2
# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install
d18667 1
a18667 4
# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os
d18669 4
a18672 4
# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
d18674 2
a18675 2
# An echo program that does not interpret backslashes.
echo=$lt_echo
a18676 3
# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS
d18678 2
a18679 2
# A C compiler.
LTCC=$lt_LTCC
d18681 3
a18683 2
# A language-specific compiler.
CC=$lt_compiler_F77
d18685 2
a18686 2
# Is the compiler the GNU C compiler?
with_gcc=$GCC_F77
d18688 2
a18689 2
# An ERE matcher.
EGREP=$lt_EGREP
d18691 1
a18691 2
# The linker used to build libraries.
LD=$lt_LD_F77
d18693 2
a18694 2
# Whether we need hard or soft links.
LN_S=$lt_LN_S
d18696 2
a18697 2
# A BSD-compatible nm program.
NM=$lt_NM
d18699 2
a18700 2
# A symbol stripping program
STRIP=$lt_STRIP
a18701 2
# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD
d18703 6
a18708 2
# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"
d18710 5
a18714 2
# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"
a18715 2
# Used on cygwin: assembler.
AS="$AS"
d18717 14
a18730 2
# The name of the directory that contains temporary libtool files.
objdir=$objdir
a18731 3
# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds
d18733 2
a18734 2
# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_F77
d18736 1
a18736 2
# Object file suffix (normally "o").
objext="$ac_objext"
d18738 4
a18741 2
# Old archive suffix (normally "a").
libext="$libext"
d18743 1
a18743 2
# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'
d18745 2
a18746 2
# Executable file suffix (normally "").
exeext="$exeext"
a18747 3
# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_F77
pic_mode=$pic_mode
d18749 33
a18781 2
# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len
d18783 3
a18785 2
# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
d18787 5
a18791 2
# Must we lock files when doing compilation?
need_locks=$lt_need_locks
d18793 1
a18793 2
# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix
d18795 3
a18797 2
# Do we need a version for libraries?
need_version=$need_version
d18799 2
a18800 2
# Whether dlopen is supported.
dlopen_support=$enable_dlopen
d18802 3
a18804 2
# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self
d18806 8
a18813 2
# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static
d18815 6
a18820 2
# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_F77
d18822 3
a18824 2
# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
d18826 5
a18830 2
# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
d18832 5
a18836 2
# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
d18838 4
a18841 2
# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
d18843 6
a18848 2
# Library versioning type.
version_type=$version_type
d18850 5
a18854 2
# Format of library name prefix.
libname_spec=$lt_libname_spec
d18856 12
a18867 3
# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec
d18869 26
a18894 2
# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec
d18896 5
a18900 5
# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_F77
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds
d18902 15
a18916 2
# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
d18918 5
a18922 2
# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
d18924 4
a18927 5
# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_F77
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds
d18929 21
a18949 3
# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_F77
module_expsym_cmds=$lt_module_expsym_cmds_F77
d18951 5
a18955 3
# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib
d18957 10
a18966 3
# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_F77
d18968 5
a18972 3
# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_F77
d18974 5
a18978 3
# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_F77
d18980 6
a18985 3
# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_F77
d18987 5
a18991 3
# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d18993 4
a18996 2
# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method
d18998 4
a19001 2
# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd
d19003 4
a19006 107
# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_F77

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_F77

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_F77

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_F77

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_F77

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_F77

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_F77

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_F77"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_F77

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_F77

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_F77

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_F77

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
a19007 1
fi
d19009 2
d19012 4
a19015 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d19017 3
a19019 83
CC="$lt_save_CC"

	else
	  tagname=""
	fi
	;;

      GCJ)
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then



# Source file extension for Java test sources.
ac_ext=java

# Object file extension for compiled Java test sources.
objext=o
objext_GCJ=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="class foo {}\n"

# Code to be used in simple link tests
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${GCJ-"gcj"}
compiler=$CC
compiler_GCJ=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


# GCJ did not exist at the time GCC didn't implicitly link libc in.
archive_cmds_need_lc_GCJ=no

old_archive_cmds_GCJ=$old_archive_cmds

## CAVEAT EMPTOR:
## There is no encapsulation within the following macros, do not change
## the running order or otherwise move them around unless you know exactly
## what you are doing...

lt_prog_compiler_no_builtin_flag_GCJ=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'


echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
d19022 1
a19022 1
  lt_cv_prog_compiler_rtti_exceptions=no
d19025 1
a19025 1
   lt_compiler_flag="-fno-rtti -fno-exceptions"
d19035 1
a19035 1
   (eval echo "\"\$as_me:17845: $lt_compile\"" >&5)
d19039 1
a19039 1
   echo "$as_me:17849: \$? = $ac_status" >&5
d19043 4
a19046 4
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
d19052 2
a19053 2
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
d19055 5
a19059 2
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
d19061 2
a19062 1
    :
d19066 9
d19076 30
a19105 3
lt_prog_compiler_wl_GCJ=
lt_prog_compiler_pic_GCJ=
lt_prog_compiler_static_GCJ=
d19107 3
a19109 2
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
d19111 4
a19114 255
  if test "$GCC" = yes; then
    lt_prog_compiler_wl_GCJ='-Wl,'
    lt_prog_compiler_static_GCJ='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_GCJ='-Bstatic'
      fi
      ;;

    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
      ;;

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_GCJ='-fno-common'
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_GCJ=no
      enable_shared=no
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_GCJ=-Kconform_pic
      fi
      ;;

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_GCJ='-fPIC'
	;;
      esac
      ;;

    *)
      lt_prog_compiler_pic_GCJ='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_GCJ='-Bstatic'
      else
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic_GCJ='-qnocommon'
         lt_prog_compiler_wl_GCJ='-Wl,'
         ;;
       esac
       ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_GCJ='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_GCJ='-non_shared'
      ;;

    newsos6)
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    linux*)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-KPIC'
	lt_prog_compiler_static_GCJ='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-fpic'
	lt_prog_compiler_static_GCJ='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl_GCJ='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_GCJ='-non_shared'
        ;;
      esac
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_GCJ='-non_shared'
      ;;

    sco3.2v5*)
      lt_prog_compiler_pic_GCJ='-Kpic'
      lt_prog_compiler_static_GCJ='-dn'
      ;;

    solaris*)
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_GCJ='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl_GCJ='-Qoption ld '
      lt_prog_compiler_pic_GCJ='-PIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_GCJ='-Kconform_pic'
	lt_prog_compiler_static_GCJ='-Bstatic'
      fi
      ;;

    unicos*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_can_build_shared_GCJ=no
      ;;

    uts4*)
      lt_prog_compiler_pic_GCJ='-pic'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared_GCJ=no
      ;;
    esac
  fi

echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_GCJ"; then

echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_GCJ=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:18107: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:18111: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works_GCJ=yes
     fi
   fi
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6

if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
    case $lt_prog_compiler_pic_GCJ in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
     esac
else
    lt_prog_compiler_pic_GCJ=
     lt_prog_compiler_can_build_shared_GCJ=no
a19116 10
fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_GCJ=
    ;;
  *)
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
    ;;
esac
d19118 2
a19119 2
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
d19139 1
a19139 1
   (eval echo "\"\$as_me:18169: $lt_compile\"" >&5)
d19143 1
a19143 1
   echo "$as_me:18173: \$? = $ac_status" >&5
d19148 3
a19150 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
     $SED '/^$/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
d19165 2
a19166 2
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
d19172 2
a19173 2
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
d19180 2
a19181 2
  echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
d19191 2
a19192 2
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d19250 4
d19338 1
a19338 1
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
d19347 1
a19347 1
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
d19353 15
d19409 1
a19409 1
    solaris* | sysv5*)
d19430 27
d19490 1
a19490 1
      if test "$GCC" = yes && test -z "$link_static_flag"; then
d19524 1
d19562 1
d19575 1
a19575 1
  	if test "$aix_use_runtimelinking" = yes; then
d19579 1
a19579 1
  	fi
d19607 7
a19613 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d19620 7
a19626 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19631 6
a19636 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19650 1
d19652 2
a19653 1
rm -f conftest.err conftest.$ac_objext \
d19658 1
a19658 1
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d19663 1
a19663 1
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
d19682 7
a19688 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d19695 7
a19701 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19706 6
a19711 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19725 1
d19727 2
a19728 1
rm -f conftest.err conftest.$ac_objext \
a19736 2
	  # -bexpall does not export symbols beginning with underscore (_)
	  always_export_symbols_GCJ=yes
d19738 1
a19738 1
	  whole_archive_flag_spec_GCJ=' '
d19741 1
a19741 1
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
d19882 20
a19901 1
    hpux10* | hpux11*)
d19904 1
a19904 1
	hppa*64*|ia64*)
d19907 3
d19916 5
a19920 2
	hppa*64*|ia64*)
	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
d19923 1
a19923 1
	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
d19928 3
d19932 1
a19932 2
	hppa*64*)
	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
a19933 6
	  hardcode_libdir_separator_GCJ=:
	  hardcode_direct_GCJ=no
	  hardcode_shlibpath_var_GCJ=no
	  ;;
	ia64*)
	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
a19935 4

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_GCJ=yes
a19937 2
	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_GCJ=:
a20038 8
    sco3.2v5*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_GCJ=no
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
      runpath_var=LD_RUN_PATH
      hardcode_runpath_var=yes
      ;;

d20124 3
a20126 4
    sysv4.2uw2*)
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_GCJ=yes
      hardcode_minus_L_GCJ=no
d20128 1
a20128 3
      hardcode_runpath_var=yes
      runpath_var=LD_RUN_PATH
      ;;
a20129 2
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
d20131 2
a20132 1
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d20134 2
a20135 1
	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
a20136 2
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_GCJ=no
d20139 10
a20148 8
    sysv5*)
      no_undefined_flag_GCJ=' -z text'
      # $CC -shared without GNU ld will not create a library from C++
      # object files and a static libstdc++, better avoid it by now
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      hardcode_libdir_flag_spec_GCJ=
d20150 4
d20155 8
d20177 2
a20178 2
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
a20180 5
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

d20198 2
a20199 2
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
d20213 1
d20236 2
a20237 2
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
d20244 2
a20245 2
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
d20463 43
a20505 973
freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  *) # from 3.2 on
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

sco3.2v5*)
  version_type=osf
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
test "$dynamic_linker" = no && can_build_shared=no

echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action_GCJ=
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
   test -n "$runpath_var_GCJ" || \
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_GCJ" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
     test "$hardcode_minus_L_GCJ" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_GCJ=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_GCJ=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_GCJ=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
echo "${ECHO_T}$hardcode_action_GCJ" >&6

if test "$hardcode_action_GCJ" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
       else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
       ;;
   *)
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    ;;
  esac
fi

if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
   ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
   ;;

  darwin*)
  # if libdl is installed we need to link against it
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dl_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

   ;;

  *)
    echo "$as_me:$LINENO: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
if test "${ac_cv_func_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define shl_load innocuous_shl_load

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef shl_load

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shl_load) || defined (__stub___shl_load)
choke me
#else
char (*f) () = shl_load;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != shl_load;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_shl_load=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
if test $ac_cv_func_shl_load = yes; then
  lt_cv_dlopen="shl_load"
else
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
int
main ()
{
shl_load ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dld_shl_load=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
if test $ac_cv_lib_dld_shl_load = yes; then
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
else
  echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_func_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dlopen innocuous_dlopen

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dlopen

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlopen) || defined (__stub___dlopen)
choke me
#else
char (*f) () = dlopen;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != dlopen;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
if test $ac_cv_func_dlopen = yes; then
  lt_cv_dlopen="dlopen"
else
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dl_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_svld_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_svld_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
if test $ac_cv_lib_svld_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dld_link ();
int
main ()
{
dld_link ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_dld_link=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dld_dld_link=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
if test $ac_cv_lib_dld_dld_link = yes; then
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
fi


fi


fi


fi

d20507 9
a20515 1
fi
d20517 45
d20563 11
a20573 1
fi
d20575 28
d20605 6
d20612 4
a20615 5
  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi
d20617 14
a20630 4
  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d20632 5
a20636 2
    save_LDFLAGS="$LDFLAGS"
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d20638 8
a20645 2
    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"
d20647 11
a20657 13
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 20417 "configure"
#include "confdefs.h"
d20659 17
a20675 37
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d20677 6
a20682 3
#ifdef __cplusplus
extern "C" void exit (int);
#endif
d20684 9
a20692 5
void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
d20694 25
a20718 6
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
d20720 8
a20727 21
    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*
d20729 10
d20740 12
a20751 3
fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
d20753 11
a20763 15
    if test "x$lt_cv_dlopen_self" = xyes; then
      LDFLAGS="$LDFLAGS $link_static_flag"
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self_static+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 20515 "configure"
#include "confdefs.h"
d20765 23
a20787 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d20789 8
a20796 1
#include <stdio.h>
d20798 22
a20819 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d20821 6
a20826 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d20828 7
a20834 3
#ifdef __cplusplus
extern "C" void exit (int);
#endif
d20836 4
a20839 5
void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
d20841 6
a20846 6
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
d20848 12
a20859 18
    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
d20861 4
d20866 2
a20867 7
rm -fr conftest*


fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
    fi
d20869 7
a20875 15
    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
d20892 1
a20892 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
d21010 3
a21302 1

d21321 3
d21331 1
a21331 1
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
d21337 1
a21337 1
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
d21372 1
a21372 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
d21490 3
d21834 344
a22177 2
SOFLAGS="-rpath \$(libdir)"
LIBTOOL_PROG="${SHELL} ./libtool"
d22179 2
a22180 1
# Set SOSUFFIX and friends
d22182 27
a22208 3
	echo "$as_me:$LINENO: checking SOSUFFIX from libtool" >&5
echo $ECHO_N "checking SOSUFFIX from libtool... $ECHO_C" >&6
	module=no
d22210 10
a22219 16
	versuffix=""
	release=""
	libname=libfoo
	eval _SOSUFFIX=\"$shrext_cmds\"
	if test "$_SOSUFFIX" = "" ; then
		_SOSUFFIX=".so"
		if test `$LIBTOOL_PROG --config | grep build_libtool_libs | grep no` 2>/dev/null; then
			if test "$_SOSUFFIX_MESSAGE" = ""; then
				_SOSUFFIX_MESSAGE=yes
        			{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
               			{ echo "$as_me:$LINENO: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&5
echo "$as_me: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&2;}
			fi
        	fi
        fi
a22220 3
        SOSUFFIX=$_SOSUFFIX
	echo "$as_me:$LINENO: result: $SOSUFFIX" >&5
echo "${ECHO_T}$SOSUFFIX" >&6
d22222 3
d22226 4
a22230 3
	echo "$as_me:$LINENO: checking MODSUFFIX from libtool" >&5
echo $ECHO_N "checking MODSUFFIX from libtool... $ECHO_C" >&6
	module=yes
d22232 27
a22258 16
	versuffix=""
	release=""
	libname=libfoo
	eval _SOSUFFIX=\"$shrext_cmds\"
	if test "$_SOSUFFIX" = "" ; then
		_SOSUFFIX=".so"
		if test `$LIBTOOL_PROG --config | grep build_libtool_libs | grep no` 2>/dev/null; then
			if test "$_SOSUFFIX_MESSAGE" = ""; then
				_SOSUFFIX_MESSAGE=yes
        			{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
               			{ echo "$as_me:$LINENO: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&5
echo "$as_me: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&2;}
			fi
        	fi
        fi
d22260 10
a22269 3
        MODSUFFIX=$_SOSUFFIX
	echo "$as_me:$LINENO: result: $MODSUFFIX" >&5
echo "${ECHO_T}$MODSUFFIX" >&6
d22272 2
d22275 27
a22301 3
	echo "$as_me:$LINENO: checking JMODSUFFIX from libtool" >&5
echo $ECHO_N "checking JMODSUFFIX from libtool... $ECHO_C" >&6
	module=yes
d22303 10
a22312 28
	versuffix=""
	release=""
	libname=libfoo
	eval _SOSUFFIX=\"$shrext_cmds\"
	if test "$_SOSUFFIX" = "" ; then
		_SOSUFFIX=".so"
		if test `$LIBTOOL_PROG --config | grep build_libtool_libs | grep no` 2>/dev/null; then
			if test "$_SOSUFFIX_MESSAGE" = ""; then
				_SOSUFFIX_MESSAGE=yes
        			{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
               			{ echo "$as_me:$LINENO: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&5
echo "$as_me: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&2;}
			fi
        	fi
        fi

	if test `uname` = "Darwin"; then
	    JMODSUFFIX=".jnilib"
	else
            JMODSUFFIX=$_SOSUFFIX
	fi
	echo "$as_me:$LINENO: result: $JMODSUFFIX" >&5
echo "${ECHO_T}$JMODSUFFIX" >&6



INSTALLER="\$(LIBTOOL) --mode=install cp -p"
a22313 6
MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}"
MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version"
MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}"
MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}"
MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}"
d22315 3
a22317 1
LIBTOOL="\$(SHELL) ./libtool"
d22319 4
a22322 5
case "$host_os" in
cygwin* | mingw*)
	MAKEFILE_SOLINK="$MAKEFILE_SOLINK -no-undefined"
	MAKEFILE_XSOLINK="$MAKEFILE_XSOLINK -no-undefined";;
esac
d22324 9
a22332 8
# Configure for shared libraries, static libraries, or both.  If both are
# configured, build the utilities and example programs with shared versions.
#
# $o is set to ".o" or ".lo", and is the file suffix used in the Makefile
# instead of .o
if test `$LIBTOOL_PROG --config |
    grep build_libtool_libs | grep no` 2>/dev/null; then
	enable_shared="no"
d22334 16
a22349 1
	enable_shared="yes"
d22351 4
a22354 3
if test `$LIBTOOL_PROG --config |
    grep build_old_libs | grep no` 2>/dev/null; then
	enable_static="no"
d22356 2
a22357 1
	enable_static="yes"
a22359 10
case "$host_os" in
    darwin*)
        LIBTSO_MODULE=""
        LIBTSO_MODSUFFIX=".dylib"
    ;;
    *)
        LIBTSO_MODULE="-module"
        LIBTSO_MODSUFFIX=@@MODSUFFIX@@
    ;;
esac
d22361 20
a22380 5
# C API.
if test "$enable_shared" = "no"; then
	DEFAULT_LIB="\$(libdb_version)"
	POSTLINK=": "
	o=".o"
d22382 4
a22385 3
	DEFAULT_LIB="\$(libso_target)"
	POSTLINK="\$(LIBTOOL) --mode=execute true"
	o=".lo"
d22387 1
a22387 3
INSTALL_LIBS="$DEFAULT_LIB"
if test "$enable_static" = "yes"; then
	INSTALL_LIBS="$INSTALL_LIBS \$(libdb)"
d22389 2
a22390 13

# Optional C++ API.
if test "$db_cv_cxx" = "yes"; then
	if test "$enable_shared" = "no"; then
		DEFAULT_LIB_CXX="\$(libcxx_version)"
	fi
	if test "$enable_shared" = "yes"; then
		DEFAULT_LIB_CXX="\$(libxso_target)"
	fi
	INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_CXX"
	if test "$enable_static" = "yes"; then
		INSTALL_LIBS="$INSTALL_LIBS \$(libcxx)"
	fi
d22392 7
a22398 15

# We split DbConstants.java into debug and release versions so Windows
# developers don't need to do anything special to use the Debug DLL.
if test "$db_cv_debug" = "yes"; then
	db_cv_build_type=debug
else
	db_cv_build_type=release
fi

# Optional Java API.
if test "$db_cv_java" = "yes"; then
	# Java requires shared libraries.
	if test "$enable_shared" = "no"; then
		{ { echo "$as_me:$LINENO: error: Java requires shared libraries" >&5
echo "$as_me: error: Java requires shared libraries" >&2;}
d22400 2
a22401 5
	fi

        # A classpath that includes . is needed to check for Java
	CLASSPATH=".:$CLASSPATH"
	export CLASSPATH
d22408 2
a22409 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d22422 1
a22422 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d22429 1
d22435 2
a22436 2
  echo "$as_me:$LINENO: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6
d22438 2
a22439 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d22442 1
d22451 2
a22452 2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d22465 1
a22465 1
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d22472 1
d22478 2
a22479 2
  echo "$as_me:$LINENO: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6
d22481 2
a22482 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d22485 1
d22495 2
a22496 2
echo "$as_me:$LINENO: checking if $JAVAC works" >&5
echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
d22504 1
a22504 1
/* #line 21849 "configure" */
d22525 2
a22526 2
echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
d22529 5
a22533 9

if test "x$JAVAPREFIX" = x; then
        test "x$JAR" = x && for ac_prog in jar$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_JAR+set}" = set; then
a22535 16
  if test -n "$JAR"; then
  ac_cv_prog_JAR="$JAR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_JAR="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
d22537 25
d22563 7
a22569 5
fi
JAR=$ac_cv_prog_JAR
if test -n "$JAR"; then
  echo "$as_me:$LINENO: result: $JAR" >&5
echo "${ECHO_T}$JAR" >&6
d22571 5
a22575 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d22577 1
d22579 3
a22581 2
  test -n "$JAR" && break
done
a22582 26
else
        test "x$JAR" = x && for ac_prog in jar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_JAR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$JAR"; then
  ac_cv_prog_JAR="$JAR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_JAR="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
a22583 10
fi
fi
JAR=$ac_cv_prog_JAR
if test -n "$JAR"; then
  echo "$as_me:$LINENO: result: $JAR" >&5
echo "${ECHO_T}$JAR" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
a22584 3
  test -n "$JAR" && break
done
test -n "$JAR" || JAR="$JAVAPREFIX"
a22585 4
fi
test "x$JAR" = x && { { echo "$as_me:$LINENO: error: no acceptable jar program found in \$PATH" >&5
echo "$as_me: error: no acceptable jar program found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
d22587 1
d22589 8
a22596 8
if test x$JAVAPREFIX = x; then
        test x$JAVA = x && for ac_prog in java$EXEEXT kaffe$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_JAVA+set}" = set; then
d22599 6
a22604 4
  if test -n "$JAVA"; then
  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d22610 2
a22611 2
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_JAVA="$ac_prog"
d22617 1
d22619 3
d22623 4
a22626 5
fi
JAVA=$ac_cv_prog_JAVA
if test -n "$JAVA"; then
  echo "$as_me:$LINENO: result: $JAVA" >&5
echo "${ECHO_T}$JAVA" >&6
d22628 2
a22629 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d22632 28
a22659 1
  test -n "$JAVA" && break
d22661 1
d22663 17
d22681 24
a22704 1
        test x$JAVA = x && for ac_prog in java$EXEEXT kaffe$EXEEXT
d22706 3
a22708 22
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_JAVA+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$JAVA"; then
  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_JAVA="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d22711 37
d22749 17
d22767 44
a22810 4
JAVA=$ac_cv_prog_JAVA
if test -n "$JAVA"; then
  echo "$as_me:$LINENO: result: $JAVA" >&5
echo "${ECHO_T}$JAVA" >&6
d22812 1
a22812 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d22814 6
d22821 3
a22823 3
  test -n "$JAVA" && break
done
test -n "$JAVA" || JAVA="$JAVAPREFIX"
a22825 3
test x$JAVA = x && { { echo "$as_me:$LINENO: error: no acceptable Java virtual machine found in \$PATH" >&5
echo "$as_me: error: no acceptable Java virtual machine found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
d22827 3
a22829 5
# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
set dummy uudecode$EXEEXT; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_uudecode+set}" = set; then
d22832 54
a22885 2
  if test -n "$uudecode"; then
  ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
d22887 2
a22888 13
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_uudecode="yes"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
d22890 1
d22892 2
d22895 8
a22902 7
uudecode=$ac_cv_prog_uudecode
if test -n "$uudecode"; then
  echo "$as_me:$LINENO: result: $uudecode" >&5
echo "${ECHO_T}$uudecode" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
a22904 6
if test x$uudecode = xyes; then
echo "$as_me:$LINENO: checking if uudecode can decode base 64 file" >&5
echo $ECHO_N "checking if uudecode can decode base 64 file... $ECHO_C" >&6
if test "${ac_cv_prog_uudecode_base64+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
a22905 34
cat << \EOF > Test.uue
begin-base64 644 Test.class
yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
====
EOF
if uudecode$EXEEXT Test.uue; then
        ac_cv_prog_uudecode_base64=yes
else
        echo "configure: 22108: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
        echo "configure: failed file was:" >&5
        cat Test.uue >&5
        ac_cv_prog_uudecode_base64=no
fi
rm -f Test.uue
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_uudecode_base64" >&5
echo "${ECHO_T}$ac_cv_prog_uudecode_base64" >&6
fi
if test x$ac_cv_prog_uudecode_base64 != xyes; then
        rm -f Test.class
        { echo "$as_me:$LINENO: WARNING: I have to compile Test.class from scratch" >&5
echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
        if test x$ac_cv_prog_javac_works = xno; then
                { { echo "$as_me:$LINENO: error: Cannot compile java source. $JAVAC does not work properly" >&5
echo "$as_me: error: Cannot compile java source. $JAVAC does not work properly" >&2;}
   { (exit 1); exit 1; }; }
        fi
        if test x$ac_cv_prog_javac_works = x; then
d22907 9
a22915 8
if test "x$JAVAPREFIX" = x; then
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_JAVAC+set}" = set; then
d22918 53
a22970 2
  if test -n "$JAVAC"; then
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
d22972 2
a22973 13
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_JAVAC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
d22975 1
d22977 2
d22980 9
a22988 7
JAVAC=$ac_cv_prog_JAVAC
if test -n "$JAVAC"; then
  echo "$as_me:$LINENO: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
a22990 1
  test -n "$JAVAC" && break
d22992 5
a22996 9

else
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_JAVAC+set}" = set; then
d22999 65
a23063 2
  if test -n "$JAVAC"; then
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
d23065 3
a23067 13
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_JAVAC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
d23070 5
d23076 3
a23078 4
JAVAC=$ac_cv_prog_JAVAC
if test -n "$JAVAC"; then
  echo "$as_me:$LINENO: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6
d23080 4
a23083 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d23085 5
a23089 4

  test -n "$JAVAC" && break
done
test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
a23091 3
test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
d23093 4
a23096 3
echo "$as_me:$LINENO: checking if $JAVAC works" >&5
echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
if test "${ac_cv_prog_javac_works+set}" = set; then
d23099 7
d23107 13
a23119 5
JAVA_TEST=Test.java
CLASS_TEST=Test.class
cat << \EOF > $JAVA_TEST
/* #line 22226 "configure" */
public class Test {
d23121 39
a23159 4
EOF
if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d23162 2
a23163 2
  (exit $ac_status); }; } >/dev/null 2>&1; then
  ac_cv_prog_javac_works=yes
d23165 3
a23167 7
  { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
   { (exit 1); exit 1; }; }
  echo "configure: failed program was:" >&5
  cat $JAVA_TEST >&5
fi
rm -f $JAVA_TEST $CLASS_TEST
a23169 2
echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
d23171 4
a23174 2

        fi
d23176 3
a23178 4
echo "$as_me:$LINENO: checking if $JAVA works" >&5
echo $ECHO_N "checking if $JAVA works... $ECHO_C" >&6
if test "${ac_cv_prog_java_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d23180 1
a23180 26

JAVA_TEST=Test.java
CLASS_TEST=Test.class
TEST=Test
cat << \EOF > $JAVA_TEST
/* [#]line 22263 "configure" */
public class Test {
public static void main (String args[]) {
        System.exit (0);
} }
EOF
if test x$ac_cv_prog_uudecode_base64 != xyes; then
        if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } && test -s $CLASS_TEST; then
                :
        else
          echo "configure: failed program was:" >&5
          cat $JAVA_TEST >&5
          { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
   { (exit 1); exit 1; }; }
        fi
d23182 2
a23183 13
if { ac_try='$JAVA $JAVAFLAGS $TEST'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } >/dev/null 2>&1; then
  ac_cv_prog_java_works=yes
else
  echo "configure: failed program was:" >&5
  cat $JAVA_TEST >&5
  { { echo "$as_me:$LINENO: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&5
echo "$as_me: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&2;}
   { (exit 1); exit 1; }; }
d23185 5
a23189 1
rm -fr $JAVA_TEST $CLASS_TEST Test.uue
a23191 2
echo "$as_me:$LINENO: result: $ac_cv_prog_java_works" >&5
echo "${ECHO_T}$ac_cv_prog_java_works" >&6
d23193 1
d23198 7
a23204 10
JNI_INCLUDE_DIRS=""

test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: '$JAVAC' undefined" >&5
echo "$as_me: error: '$JAVAC' undefined" >&2;}
   { (exit 1); exit 1; }; }
# Extract the first word of "$JAVAC", so it can be a program name with args.
set dummy $JAVAC; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path__ACJNI_JAVAC+set}" = set; then
d23206 4
d23211 40
a23250 21
  case $_ACJNI_JAVAC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="$JAVAC"
  ;;
d23252 9
a23260 2
fi
_ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC
d23262 1
a23262 6
if test -n "$_ACJNI_JAVAC"; then
  echo "$as_me:$LINENO: result: $_ACJNI_JAVAC" >&5
echo "${ECHO_T}$_ACJNI_JAVAC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d23265 3
a23267 13
test ! -x "$_ACJNI_JAVAC" && { { echo "$as_me:$LINENO: error: $JAVAC could not be found in path" >&5
echo "$as_me: error: $JAVAC could not be found in path" >&2;}
   { (exit 1); exit 1; }; }
echo "$as_me:$LINENO: checking absolute path of $JAVAC" >&5
echo $ECHO_N "checking absolute path of $JAVAC... $ECHO_C" >&6
case "$_ACJNI_JAVAC" in
/*)	echo "$as_me:$LINENO: result: $_ACJNI_JAVAC" >&5
echo "${ECHO_T}$_ACJNI_JAVAC" >&6;;
*)	{ { echo "$as_me:$LINENO: error: $_ACJNI_JAVAC is not an absolute path name" >&5
echo "$as_me: error: $_ACJNI_JAVAC is not an absolute path name" >&2;}
   { (exit 1); exit 1; }; };;
esac

d23269 15
a23283 21
# find the include directory relative to the javac executable
_cur=""$_ACJNI_JAVAC""
while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do
	echo "$as_me:$LINENO: checking symlink for $_cur" >&5
echo $ECHO_N "checking symlink for $_cur... $ECHO_C" >&6
	_slink=`ls -ld "$_cur" | sed 's/.* -> //'`
	case "$_slink" in
	/*) _cur="$_slink";;
	# 'X' avoids triggering unwanted echo options.
	*) _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";;
	esac
	echo "$as_me:$LINENO: result: $_cur" >&5
echo "${ECHO_T}$_cur" >&6
done
_ACJNI_FOLLOWED="$_cur"

_JTOPDIR=`echo "$_ACJNI_FOLLOWED" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
case "$host_os" in
	darwin*)	_JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
			_JINC="$_JTOPDIR/Headers";;
	*)		_JINC="$_JTOPDIR/include";;
d23285 14
a23298 11

# If we find jni.h in /usr/include, then it's not a java-only tree, so
# don't add /usr/include or subdirectories to the list of includes.
# An extra -I/usr/include can foul things up with newer gcc's.
#
# If we don't find jni.h, just keep going.  Hopefully javac knows where
# to find its include files, even if we can't.
if test -r "$_JINC/jni.h"; then
	if test "$_JINC" != "/usr/include"; then
		JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JINC"
	fi
d23300 1
a23300 6
	_JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
	if test -r "$_JTOPDIR/include/jni.h"; then
		if test "$_JTOPDIR" != "/usr"; then
			JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include"
		fi
	fi
d23302 5
d23308 1
a23308 12
# get the likely subdirectories for system specific java includes
if test "$_JTOPDIR" != "/usr"; then
	case "$host_os" in
	aix*)		_JNI_INC_SUBDIRS="aix";;
	bsdi*)		_JNI_INC_SUBDIRS="bsdos";;
	freebsd*)	_JNI_INC_SUBDIRS="freebsd";;
	hp*)		_JNI_INC_SUBDIRS="hp-ux";;
	linux*)		_JNI_INC_SUBDIRS="linux genunix";;
	osf*)		_JNI_INC_SUBDIRS="alpha";;
	solaris*)	_JNI_INC_SUBDIRS="solaris";;
	*)		_JNI_INC_SUBDIRS="genunix";;
	esac
d23311 3
a23313 7
# add any subdirectories that are present
for _JINCSUBDIR in $_JNI_INC_SUBDIRS
do
	if test -d "$_JTOPDIR/include/$_JINCSUBDIR"; then
		JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include/$_JINCSUBDIR"
	fi
done
d23315 34
a23348 27

	echo "$as_me:$LINENO: checking java version" >&5
echo $ECHO_N "checking java version... $ECHO_C" >&6
        case "$JAVA" in
	*kaffe* )
		JAVA_VERSION=`$JAVA -version 2>&1 |
			sed -e '/Java Version:/!d' -e 's/.*Java Version: \([^ 	]*\)[ 	]*/\1/'` ;;
	* )	JAVA_VERSION=`$JAVA -version 2>&1 |
        	       	sed -e '/ version /!d' -e 's/.*"\(.*\)".*/\1/'` ;;
	esac
	echo "$as_me:$LINENO: result: $JAVA_VERSION" >&5
echo "${ECHO_T}$JAVA_VERSION" >&6
	case "$JAVA_VERSION" in
	1.[3456789]* | 1.[1-9][0-9]* | [23456789]* ) ;;
	* )
		{ { echo "$as_me:$LINENO: error: Java version 1.3 or higher required, got $JAVA_VERSION" >&5
echo "$as_me: error: Java version 1.3 or higher required, got $JAVA_VERSION" >&2;}
   { (exit 1); exit 1; }; } ;;
	esac

	for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
	do
		CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR"
	done

	ADDITIONAL_LANG="$ADDITIONAL_LANG java"
	INSTALL_LIBS="$INSTALL_LIBS \$(libjso_target)"
d23350 1
a23350 1
	JAVAC=nojavac
d23352 3
d23356 4
a23359 7
# MinGW support.
if test "$db_cv_mingw" = "yes"; then
	OSDIR=os_win32
	PATH_SEPARATOR="\\\\/:"

	cat >>confdefs.h <<\_ACEOF
#define DB_WIN32 1
d23362 1
a23362 3
	cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF
d23364 1
a23364 4
else
	OSDIR=os
	PATH_SEPARATOR="/"
fi
d23366 3
a23368 4
# Checks for include files, structures, C types.
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
if test "${ac_cv_header_stat_broken+set}" = set; then
d23377 10
a23386 27
#include <sys/types.h>
#include <sys/stat.h>

#if defined(S_ISBLK) && defined(S_IFDIR)
# if S_ISBLK (S_IFDIR)
You lose.
# endif
#endif

#if defined(S_ISBLK) && defined(S_IFCHR)
# if S_ISBLK (S_IFCHR)
You lose.
# endif
#endif

#if defined(S_ISLNK) && defined(S_IFREG)
# if S_ISLNK (S_IFREG)
You lose.
# endif
#endif

#if defined(S_ISSOCK) && defined(S_IFREG)
# if S_ISSOCK (S_IFREG)
You lose.
# endif
#endif

d23388 35
a23422 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "You lose" >/dev/null 2>&1; then
  ac_cv_header_stat_broken=yes
d23424 2
a23425 3
  ac_cv_header_stat_broken=no
fi
rm -f conftest*
d23427 1
a23427 17
fi
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
if test $ac_cv_header_stat_broken = yes; then

cat >>confdefs.h <<\_ACEOF
#define STAT_MACROS_BROKEN 1
_ACEOF

fi

echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
d23433 1
a23433 4
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

d23437 2
a23438 1
if ((struct tm *) 0)
d23445 7
a23451 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d23458 7
a23464 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d23469 6
a23474 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d23478 1
a23478 1
  ac_cv_header_time=yes
d23483 1
a23483 1
ac_cv_header_time=no
d23485 5
a23489 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d23491 3
a23493 3
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then
d23495 2
a23496 2
cat >>confdefs.h <<\_ACEOF
#define TIME_WITH_SYS_TIME 1
d23499 1
d23504 11
d23516 4
a23519 8


ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d23521 3
d23525 4
a23528 1
  cat >conftest.$ac_ext <<_ACEOF
d23534 2
a23535 11
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
d23538 7
a23544 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d23551 7
a23557 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d23562 6
a23567 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d23571 47
a23617 1
  eval "$as_ac_Header=yes"
d23622 47
a23668 1
eval "$as_ac_Header=no"
d23670 5
a23674 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a23675 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF
a23676 2
ac_header_dirent=$ac_hdr; break
fi
d23678 5
a23682 6
done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
if test "${ac_cv_search_opendir+set}" = set; then
d23684 3
d23688 3
a23690 2
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_opendir=no
d23697 2
a23698 15

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
d23700 8
a23707 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d23714 7
a23720 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d23724 7
a23730 3
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d23734 1
a23734 1
  ac_cv_search_opendir="none required"
d23739 1
d23741 9
a23749 6
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_opendir" = no; then
  for ac_lib in dir; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
d23755 1
a23755 15

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
d23757 7
a23763 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d23769 12
a23780 16
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_opendir="-l$ac_lib"
break
d23785 1
d23787 41
a23827 3
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
  done
d23829 3
a23831 1
LIBS=$ac_func_search_save_LIBS
d23833 1
a23833 4
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
echo "${ECHO_T}$ac_cv_search_opendir" >&6
if test "$ac_cv_search_opendir" != no; then
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d23835 3
d23840 6
a23845 4
else
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
if test "${ac_cv_search_opendir+set}" = set; then
d23847 3
d23851 3
a23853 2
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_opendir=no
d23860 2
a23861 15

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
d23863 8
a23870 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d23877 7
a23883 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d23887 7
a23893 3
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d23897 1
a23897 1
  ac_cv_search_opendir="none required"
d23902 1
d23904 9
a23912 6
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_opendir" = no; then
  for ac_lib in x; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
d23918 1
a23918 15

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
d23920 7
a23926 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d23932 12
a23943 16
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_opendir="-l$ac_lib"
break
d23948 1
d23950 41
a23990 5
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
  done
fi
LIBS=$ac_func_search_save_LIBS
d23992 2
a23993 4
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
echo "${ECHO_T}$ac_cv_search_opendir" >&6
if test "$ac_cv_search_opendir" != no; then
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d23996 1
d23998 3
d24005 4
a24008 8

for ac_header in sys/select.h sys/time.h sys/fcntl.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d24011 2
a24012 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d24015 2
a24016 2
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
d24024 1
a24024 1
#include <$ac_header>
d24027 7
a24033 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d24040 7
a24046 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24051 6
a24056 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24065 1
a24065 1
ac_header_compiler=no
d24067 4
a24070 3
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
d24073 2
a24074 2
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
d24081 1
a24081 1
#include <$ac_header>
d24083 7
a24089 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d24113 1
d24115 2
a24116 2
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
d24121 4
a24124 4
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d24128 16
a24143 17
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to support@@sleepycat.com ##
## ------------------------------------ ##
d24145 1
a24145 2
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
d24148 3
a24150 3
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d24153 1
a24153 1
  eval "$as_ac_Header=\$ac_header_preproc"
d24155 2
a24156 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d24159 1
a24159 4
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d24161 3
a24165 1
done
d24167 8
a24174 3
echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
d24183 3
a24185 1
$ac_includes_default
d24189 3
a24191 4
static struct stat ac_aggr;
if (ac_aggr.st_blksize)
return 0;
  ;
a24192 42
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_stat_st_blksize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (sizeof ac_aggr.st_blksize)
return 0;
d24198 7
a24204 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d24211 7
a24217 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24222 6
a24227 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24231 1
a24231 1
  ac_cv_member_struct_stat_st_blksize=yes
d24236 1
a24236 1
ac_cv_member_struct_stat_st_blksize=no
d24238 2
a24239 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d24241 8
a24248 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a24249 3
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
if test $ac_cv_member_struct_stat_st_blksize = yes; then
d24251 3
a24253 25
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
_ACEOF


fi



# db.h includes <sys/types.h> and <stdio.h>, not the other default includes
# autoconf usually includes.  For that reason, we specify a set of includes
# for all type checking tests. [#5060]
#
# C99 says types should be in <stdint.h>; include <stdint.h> if it exists.
#
# Some systems have types in <stddef.h>; include <stddef.h> if it exists.
#
# IBM's OS/390 and z/OS releases have types in <inttypes.h> not also found
# in <sys/types.h>; include <inttypes.h> if it exists.
db_includes="#include <sys/types.h>"

if test "${ac_cv_header_inttypes_h+set}" = set; then
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
if test "${ac_cv_header_inttypes_h+set}" = set; then
a24254 3
fi
echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
d24256 1
a24256 4
  # Is the header compilable?
echo "$as_me:$LINENO: checking inttypes.h usability" >&5
echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
d24262 13
a24274 2
$ac_includes_default
#include <inttypes.h>
d24277 7
a24283 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d24290 7
a24296 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24301 6
a24306 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24310 1
a24310 1
  ac_header_compiler=yes
d24315 1
a24315 33
ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking inttypes.h presence" >&5
echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <inttypes.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
a24316 5
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d24318 1
a24318 1
  ac_header_preproc=no
d24320 4
a24323 40
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to support@@sleepycat.com ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for inttypes.h" >&5
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
if test "${ac_cv_header_inttypes_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d24325 3
a24327 11
  ac_cv_header_inttypes_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6

fi
if test $ac_cv_header_inttypes_h = yes; then

	db_includes="$db_includes
#include <inttypes.h>"
	inttypes_h_decl="#include <inttypes.h>"
d24331 4
a24334 5

if test "${ac_cv_header_stdint_h+set}" = set; then
  echo "$as_me:$LINENO: checking for stdint.h" >&5
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
if test "${ac_cv_header_stdint_h+set}" = set; then
a24335 3
fi
echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
d24337 1
a24337 4
  # Is the header compilable?
echo "$as_me:$LINENO: checking stdint.h usability" >&5
echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
d24343 13
a24355 2
$ac_includes_default
#include <stdint.h>
d24358 7
a24364 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d24371 7
a24377 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24382 6
a24387 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24391 1
a24391 1
  ac_header_compiler=yes
d24396 4
a24399 1
ac_header_compiler=no
d24401 2
a24402 3
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
d24404 12
a24415 3
# Is the header present?
echo "$as_me:$LINENO: checking stdint.h presence" >&5
echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
d24422 12
a24433 1
#include <stdint.h>
d24435 8
a24442 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d24448 15
a24462 53
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to support@@sleepycat.com ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
d24464 8
a24471 33
echo "$as_me:$LINENO: checking for stdint.h" >&5
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
if test "${ac_cv_header_stdint_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_stdint_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
echo "${ECHO_T}$ac_cv_header_stdint_h" >&6

fi
if test $ac_cv_header_stdint_h = yes; then

	db_includes="$db_includes
#include <stdint.h>"
	stdint_h_decl="#include <stdint.h>"
fi



if test "${ac_cv_header_stddef_h+set}" = set; then
  echo "$as_me:$LINENO: checking for stddef.h" >&5
echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
if test "${ac_cv_header_stddef_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking stddef.h usability" >&5
echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
d24477 12
a24488 2
$ac_includes_default
#include <stddef.h>
d24491 7
a24497 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d24504 7
a24510 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24515 6
a24520 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24524 1
a24524 1
  ac_header_compiler=yes
d24529 6
a24534 1
ac_header_compiler=no
a24535 3
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
d24537 7
a24543 4
# Is the header present?
echo "$as_me:$LINENO: checking stddef.h presence" >&5
echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
d24549 12
a24560 1
#include <stddef.h>
d24562 8
a24569 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d24575 15
a24589 53
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: stddef.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: stddef.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: stddef.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: stddef.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to support@@sleepycat.com ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
d24591 8
a24598 33
echo "$as_me:$LINENO: checking for stddef.h" >&5
echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
if test "${ac_cv_header_stddef_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_stddef_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
echo "${ECHO_T}$ac_cv_header_stddef_h" >&6

fi
if test $ac_cv_header_stddef_h = yes; then

	db_includes="$db_includes
#include <stddef.h>"
	stddef_h_decl="#include <stddef.h>"
fi



if test "${ac_cv_header_unistd_h+set}" = set; then
  echo "$as_me:$LINENO: checking for unistd.h" >&5
echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
if test "${ac_cv_header_unistd_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking unistd.h usability" >&5
echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
d24604 12
a24615 2
$ac_includes_default
#include <unistd.h>
d24618 7
a24624 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d24631 7
a24637 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24642 6
a24647 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24651 1
a24651 1
  ac_header_compiler=yes
d24656 6
a24661 1
ac_header_compiler=no
a24662 3
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
d24664 2
a24665 30
# Is the header present?
echo "$as_me:$LINENO: checking unistd.h presence" >&5
echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unistd.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
d24670 1
a24670 48
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: unistd.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to support@@sleepycat.com ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for unistd.h" >&5
echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
if test "${ac_cv_header_unistd_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_unistd_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
echo "${ECHO_T}$ac_cv_header_unistd_h" >&6

a24671 1
if test $ac_cv_header_unistd_h = yes; then
d24673 1
a24673 3
	db_includes="$db_includes
#include <unistd.h>"
	unistd_h_decl="#include <unistd.h>"
d24676 4
a24679 11

db_includes="$db_includes
#include <stdio.h>"

# We require off_t and size_t, and we don't try to substitute our own
# if we can't find them.
echo "$as_me:$LINENO: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
if test "${ac_cv_type_off_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d24688 1
d24692 3
a24694 4
if ((off_t *) 0)
  return 0;
if (sizeof (off_t))
  return 0;
d24700 7
a24706 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d24713 7
a24719 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24724 6
a24729 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24733 1
a24733 1
  ac_cv_type_off_t=yes
d24738 1
a24738 12
ac_cv_type_off_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6
if test $ac_cv_type_off_t = yes; then
  :
else
  { { echo "$as_me:$LINENO: error: No off_t type." >&5
echo "$as_me: error: No off_t type." >&2;}
   { (exit 1); exit 1; }; }
d24741 10
a24750 4
echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d24760 5
d24768 20
a24787 4
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
d24792 8
a24799 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
a24800 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24802 7
a24808 11
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24812 1
a24812 1
  ac_cv_type_size_t=yes
d24814 2
a24815 1
  echo "$as_me: failed program was:" >&5
d24818 6
a24823 1
ac_cv_type_size_t=no
d24825 1
a24825 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d24827 1
a24827 4
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
d24829 2
a24830 3
  { { echo "$as_me:$LINENO: error: No size_t type." >&5
echo "$as_me: error: No size_t type." >&2;}
   { (exit 1); exit 1; }; }
d24832 5
d24839 3
a24841 4
# We need to know the sizes of various objects on this system.
echo "$as_me:$LINENO: checking for char" >&5
echo $ECHO_N "checking for char... $ECHO_C" >&6
if test "${ac_cv_type_char+set}" = set; then
d24852 1
d24856 1
a24856 1
if ((char *) 0)
d24858 1
a24858 1
if (sizeof (char))
d24865 7
a24871 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d24878 7
a24884 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24889 6
a24894 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24898 1
a24898 1
  ac_cv_type_char=yes
d24903 1
a24903 1
ac_cv_type_char=no
d24905 2
a24906 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d24908 2
a24909 2
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
echo "${ECHO_T}$ac_cv_type_char" >&6
d24911 3
a24913 3
echo "$as_me:$LINENO: checking size of char" >&5
echo $ECHO_N "checking size of char... $ECHO_C" >&6
if test "${ac_cv_sizeof_char+set}" = set; then
d24916 2
a24917 2
  if test "$ac_cv_type_char" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
d24931 1
d24935 1
a24935 1
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
d24943 7
a24949 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d24956 7
a24962 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24967 6
a24972 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d24986 1
d24990 1
a24990 1
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
d24998 7
a25004 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d25011 7
a25017 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25022 6
a25027 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25036 6
a25041 6
ac_lo=`expr $ac_mid + 1`
		    if test $ac_lo -le $ac_mid; then
		      ac_lo= ac_hi=
		      break
		    fi
		    ac_mid=`expr 2 '*' $ac_mid + 1`
d25043 2
a25044 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25050 1
a25050 1
cat >conftest.$ac_ext <<_ACEOF
d25058 1
d25062 1
a25062 1
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
d25070 7
a25076 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d25083 7
a25089 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25094 6
a25099 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25113 1
d25117 1
a25117 1
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
d25125 7
a25131 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d25138 7
a25144 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25149 6
a25154 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25163 6
a25168 6
ac_hi=`expr '(' $ac_mid ')' - 1`
		       if test $ac_mid -le $ac_hi; then
			 ac_lo= ac_hi=
			 break
		       fi
		       ac_mid=`expr 2 '*' $ac_mid`
d25170 2
a25171 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25177 1
a25177 1
ac_lo= ac_hi=
d25179 2
a25180 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25182 2
a25183 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25195 1
d25199 1
a25199 1
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
d25207 7
a25213 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d25220 7
a25226 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25231 6
a25236 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25245 1
a25245 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d25247 2
a25248 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25251 2
a25252 2
?*) ac_cv_sizeof_char=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
d25254 1
a25254 1
echo "$as_me: error: cannot compute sizeof (char), 77
d25256 1
a25256 1
   { (exit 1); exit 1; }; } ;;
a25258 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
d25267 3
a25269 2
long longval () { return (long) (sizeof (char)); }
unsigned long ulongval () { return (long) (sizeof (char)); }
d25278 2
a25279 2
    exit (1);
  if (((long) (sizeof (char))) < 0)
d25281 3
a25283 3
      long i = longval ();
      if (i != ((long) (sizeof (char))))
	exit (1);
d25288 3
a25290 3
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (char))))
	exit (1);
d25293 1
a25293 1
  exit (ferror (f) || fclose (f) != 0);
d25300 7
a25306 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d25310 6
a25315 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25319 1
a25319 1
  ac_cv_sizeof_char=`cat conftest.val`
d25326 1
a25326 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
d25328 1
a25328 1
echo "$as_me: error: cannot compute sizeof (char), 77
d25330 1
a25330 3
   { (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d25332 1
d25336 1
a25336 1
  ac_cv_sizeof_char=0
d25339 2
a25340 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
d25342 1
a25342 1
#define SIZEOF_CHAR $ac_cv_sizeof_char
d25346 3
a25348 3
echo "$as_me:$LINENO: checking for unsigned char" >&5
echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_char+set}" = set; then
d25359 1
d25363 1
a25363 1
if ((unsigned char *) 0)
d25365 1
a25365 1
if (sizeof (unsigned char))
d25372 7
a25378 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d25385 7
a25391 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25396 6
a25401 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25405 1
a25405 1
  ac_cv_type_unsigned_char=yes
d25410 1
a25410 1
ac_cv_type_unsigned_char=no
d25412 2
a25413 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25415 2
a25416 2
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6
d25418 3
a25420 3
echo "$as_me:$LINENO: checking size of unsigned char" >&5
echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6
if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
d25423 2
a25424 2
  if test "$ac_cv_type_unsigned_char" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
d25438 1
d25442 1
a25442 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= 0)];
d25450 7
a25456 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d25463 7
a25469 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25474 6
a25479 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25493 1
d25497 1
a25497 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
d25505 7
a25511 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d25518 7
a25524 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25529 6
a25534 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25543 6
a25548 6
ac_lo=`expr $ac_mid + 1`
		    if test $ac_lo -le $ac_mid; then
		      ac_lo= ac_hi=
		      break
		    fi
		    ac_mid=`expr 2 '*' $ac_mid + 1`
d25550 2
a25551 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25557 1
a25557 1
cat >conftest.$ac_ext <<_ACEOF
d25565 1
d25569 1
a25569 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) < 0)];
d25577 7
a25583 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d25590 7
a25596 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25601 6
a25606 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25620 1
d25624 1
a25624 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= $ac_mid)];
d25632 7
a25638 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d25645 7
a25651 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25656 6
a25661 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25670 6
a25675 6
ac_hi=`expr '(' $ac_mid ')' - 1`
		       if test $ac_mid -le $ac_hi; then
			 ac_lo= ac_hi=
			 break
		       fi
		       ac_mid=`expr 2 '*' $ac_mid`
d25677 2
a25678 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25684 1
a25684 1
ac_lo= ac_hi=
d25686 2
a25687 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25689 2
a25690 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25702 1
d25706 1
a25706 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
d25714 7
a25720 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d25727 7
a25733 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25738 6
a25743 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25752 1
a25752 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d25754 2
a25755 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25758 2
a25759 2
?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
d25761 1
a25761 1
echo "$as_me: error: cannot compute sizeof (unsigned char), 77
d25763 1
a25763 1
   { (exit 1); exit 1; }; } ;;
a25765 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
d25774 3
a25776 2
long longval () { return (long) (sizeof (unsigned char)); }
unsigned long ulongval () { return (long) (sizeof (unsigned char)); }
d25785 2
a25786 2
    exit (1);
  if (((long) (sizeof (unsigned char))) < 0)
d25788 3
a25790 3
      long i = longval ();
      if (i != ((long) (sizeof (unsigned char))))
	exit (1);
d25795 3
a25797 3
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (unsigned char))))
	exit (1);
d25800 1
a25800 1
  exit (ferror (f) || fclose (f) != 0);
d25807 7
a25813 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d25817 6
a25822 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25826 1
a25826 1
  ac_cv_sizeof_unsigned_char=`cat conftest.val`
d25833 1
a25833 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
d25835 1
a25835 1
echo "$as_me: error: cannot compute sizeof (unsigned char), 77
d25837 1
a25837 3
   { (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d25839 1
d25843 1
a25843 1
  ac_cv_sizeof_unsigned_char=0
d25846 2
a25847 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
d25849 1
a25849 1
#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
d25853 3
a25855 3
echo "$as_me:$LINENO: checking for short" >&5
echo $ECHO_N "checking for short... $ECHO_C" >&6
if test "${ac_cv_type_short+set}" = set; then
d25866 1
d25870 1
a25870 1
if ((short *) 0)
d25872 1
a25872 1
if (sizeof (short))
d25879 7
a25885 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d25892 7
a25898 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25903 6
a25908 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25912 1
a25912 1
  ac_cv_type_short=yes
d25917 1
a25917 1
ac_cv_type_short=no
d25919 2
a25920 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25922 2
a25923 2
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
echo "${ECHO_T}$ac_cv_type_short" >&6
d25925 3
a25927 3
echo "$as_me:$LINENO: checking size of short" >&5
echo $ECHO_N "checking size of short... $ECHO_C" >&6
if test "${ac_cv_sizeof_short+set}" = set; then
d25930 2
a25931 2
  if test "$ac_cv_type_short" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
d25945 1
d25949 1
a25949 1
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
d25957 7
a25963 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d25970 7
a25976 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d25981 6
a25986 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26000 1
d26004 1
a26004 1
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
d26012 7
a26018 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d26025 7
a26031 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26036 6
a26041 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26050 6
a26055 6
ac_lo=`expr $ac_mid + 1`
		    if test $ac_lo -le $ac_mid; then
		      ac_lo= ac_hi=
		      break
		    fi
		    ac_mid=`expr 2 '*' $ac_mid + 1`
d26057 2
a26058 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26064 1
a26064 1
cat >conftest.$ac_ext <<_ACEOF
d26072 1
d26076 1
a26076 1
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
d26084 7
a26090 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d26097 7
a26103 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26108 6
a26113 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26127 1
d26131 1
a26131 1
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
d26139 7
a26145 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d26152 7
a26158 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26163 6
a26168 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26177 6
a26182 6
ac_hi=`expr '(' $ac_mid ')' - 1`
		       if test $ac_mid -le $ac_hi; then
			 ac_lo= ac_hi=
			 break
		       fi
		       ac_mid=`expr 2 '*' $ac_mid`
d26184 2
a26185 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26191 1
a26191 1
ac_lo= ac_hi=
d26193 2
a26194 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26196 2
a26197 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26209 1
d26213 1
a26213 1
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
d26221 7
a26227 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d26234 7
a26240 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26245 6
a26250 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26259 1
a26259 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d26261 2
a26262 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26265 2
a26266 2
?*) ac_cv_sizeof_short=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
d26268 1
a26268 1
echo "$as_me: error: cannot compute sizeof (short), 77
d26270 1
a26270 1
   { (exit 1); exit 1; }; } ;;
a26272 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
d26281 3
a26283 2
long longval () { return (long) (sizeof (short)); }
unsigned long ulongval () { return (long) (sizeof (short)); }
d26292 2
a26293 2
    exit (1);
  if (((long) (sizeof (short))) < 0)
d26295 3
a26297 3
      long i = longval ();
      if (i != ((long) (sizeof (short))))
	exit (1);
d26302 3
a26304 3
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (short))))
	exit (1);
d26307 1
a26307 1
  exit (ferror (f) || fclose (f) != 0);
d26314 7
a26320 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d26324 6
a26329 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26333 1
a26333 1
  ac_cv_sizeof_short=`cat conftest.val`
d26340 1
a26340 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
d26342 1
a26342 1
echo "$as_me: error: cannot compute sizeof (short), 77
d26344 1
a26344 3
   { (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d26346 1
d26350 1
a26350 1
  ac_cv_sizeof_short=0
d26353 2
a26354 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
d26356 1
a26356 1
#define SIZEOF_SHORT $ac_cv_sizeof_short
d26360 3
a26362 3
echo "$as_me:$LINENO: checking for unsigned short" >&5
echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_short+set}" = set; then
d26373 1
d26377 1
a26377 1
if ((unsigned short *) 0)
d26379 1
a26379 1
if (sizeof (unsigned short))
d26386 7
a26392 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d26399 7
a26405 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26410 6
a26415 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26419 1
a26419 1
  ac_cv_type_unsigned_short=yes
d26424 1
a26424 1
ac_cv_type_unsigned_short=no
d26426 2
a26427 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26429 2
a26430 2
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
d26432 3
a26434 3
echo "$as_me:$LINENO: checking size of unsigned short" >&5
echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
d26437 2
a26438 2
  if test "$ac_cv_type_unsigned_short" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
d26452 1
d26456 1
a26456 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
d26464 7
a26470 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d26477 7
a26483 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26488 6
a26493 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26507 1
d26511 1
a26511 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
d26519 7
a26525 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d26532 7
a26538 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26543 6
a26548 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26557 6
a26562 6
ac_lo=`expr $ac_mid + 1`
		    if test $ac_lo -le $ac_mid; then
		      ac_lo= ac_hi=
		      break
		    fi
		    ac_mid=`expr 2 '*' $ac_mid + 1`
d26564 2
a26565 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26571 1
a26571 1
cat >conftest.$ac_ext <<_ACEOF
d26579 1
d26583 1
a26583 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
d26591 7
a26597 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d26604 7
a26610 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26615 6
a26620 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26634 1
d26638 1
a26638 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
d26646 7
a26652 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d26659 7
a26665 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26670 6
a26675 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26684 9
a26692 8
ac_hi=`expr '(' $ac_mid ')' - 1`
		       if test $ac_mid -le $ac_hi; then
			 ac_lo= ac_hi=
			 break
		       fi
		       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26698 1
a26698 1
ac_lo= ac_hi=
d26700 2
a26701 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26703 2
a26704 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26716 1
d26720 1
a26720 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
d26728 7
a26734 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d26741 7
a26747 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26752 6
a26757 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26766 1
a26766 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d26768 2
a26769 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26772 2
a26773 2
?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
d26775 1
a26775 1
echo "$as_me: error: cannot compute sizeof (unsigned short), 77
d26777 1
a26777 1
   { (exit 1); exit 1; }; } ;;
a26779 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
d26788 3
a26790 2
long longval () { return (long) (sizeof (unsigned short)); }
unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
d26799 2
a26800 2
    exit (1);
  if (((long) (sizeof (unsigned short))) < 0)
d26802 3
a26804 3
      long i = longval ();
      if (i != ((long) (sizeof (unsigned short))))
	exit (1);
d26809 3
a26811 3
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (unsigned short))))
	exit (1);
d26814 1
a26814 1
  exit (ferror (f) || fclose (f) != 0);
d26821 7
a26827 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d26831 6
a26836 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26840 1
a26840 1
  ac_cv_sizeof_unsigned_short=`cat conftest.val`
d26847 1
a26847 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
d26849 1
a26849 1
echo "$as_me: error: cannot compute sizeof (unsigned short), 77
d26851 1
a26851 3
   { (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d26853 1
d26857 1
a26857 1
  ac_cv_sizeof_unsigned_short=0
d26860 2
a26861 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
d26863 1
a26863 1
#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
d26867 3
a26869 3
echo "$as_me:$LINENO: checking for int" >&5
echo $ECHO_N "checking for int... $ECHO_C" >&6
if test "${ac_cv_type_int+set}" = set; then
d26880 1
d26884 1
a26884 1
if ((int *) 0)
d26886 1
a26886 1
if (sizeof (int))
d26893 7
a26899 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d26906 7
a26912 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26917 6
a26922 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26926 1
a26926 1
  ac_cv_type_int=yes
d26931 1
a26931 1
ac_cv_type_int=no
d26933 2
a26934 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26936 2
a26937 2
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
echo "${ECHO_T}$ac_cv_type_int" >&6
d26939 3
a26941 3
echo "$as_me:$LINENO: checking size of int" >&5
echo $ECHO_N "checking size of int... $ECHO_C" >&6
if test "${ac_cv_sizeof_int+set}" = set; then
d26944 2
a26945 2
  if test "$ac_cv_type_int" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
d26959 1
d26963 1
a26963 1
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
d26971 7
a26977 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d26984 7
a26990 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d26995 6
a27000 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27014 1
d27018 1
a27018 1
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
d27026 7
a27032 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d27039 7
a27045 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27050 6
a27055 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27064 6
a27069 6
ac_lo=`expr $ac_mid + 1`
		    if test $ac_lo -le $ac_mid; then
		      ac_lo= ac_hi=
		      break
		    fi
		    ac_mid=`expr 2 '*' $ac_mid + 1`
d27071 2
a27072 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27078 1
a27078 1
cat >conftest.$ac_ext <<_ACEOF
d27086 1
d27090 1
a27090 1
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
d27098 7
a27104 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d27111 7
a27117 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27122 6
a27127 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27141 1
d27145 1
a27145 1
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
d27153 7
a27159 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d27166 7
a27172 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27177 6
a27182 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27191 6
a27196 6
ac_hi=`expr '(' $ac_mid ')' - 1`
		       if test $ac_mid -le $ac_hi; then
			 ac_lo= ac_hi=
			 break
		       fi
		       ac_mid=`expr 2 '*' $ac_mid`
d27198 2
a27199 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27205 1
a27205 1
ac_lo= ac_hi=
d27207 2
a27208 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27210 2
a27211 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27223 1
d27227 1
a27227 1
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
d27235 7
a27241 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d27248 7
a27254 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27259 6
a27264 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27273 1
a27273 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d27275 2
a27276 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27279 2
a27280 2
?*) ac_cv_sizeof_int=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
d27282 1
a27282 1
echo "$as_me: error: cannot compute sizeof (int), 77
d27284 1
a27284 1
   { (exit 1); exit 1; }; } ;;
a27286 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
d27295 3
a27297 2
long longval () { return (long) (sizeof (int)); }
unsigned long ulongval () { return (long) (sizeof (int)); }
d27306 2
a27307 2
    exit (1);
  if (((long) (sizeof (int))) < 0)
d27309 3
a27311 3
      long i = longval ();
      if (i != ((long) (sizeof (int))))
	exit (1);
d27316 3
a27318 3
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (int))))
	exit (1);
d27321 1
a27321 1
  exit (ferror (f) || fclose (f) != 0);
d27328 7
a27334 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d27338 6
a27343 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27347 1
a27347 1
  ac_cv_sizeof_int=`cat conftest.val`
d27354 1
a27354 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
d27356 1
a27356 1
echo "$as_me: error: cannot compute sizeof (int), 77
d27358 1
a27358 3
   { (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d27360 1
d27364 1
a27364 1
  ac_cv_sizeof_int=0
d27367 2
a27368 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
d27370 1
a27370 1
#define SIZEOF_INT $ac_cv_sizeof_int
d27374 3
a27376 3
echo "$as_me:$LINENO: checking for unsigned int" >&5
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_int+set}" = set; then
d27387 1
d27391 1
a27391 1
if ((unsigned int *) 0)
d27393 1
a27393 1
if (sizeof (unsigned int))
d27400 7
a27406 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d27413 7
a27419 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27424 6
a27429 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27433 1
a27433 1
  ac_cv_type_unsigned_int=yes
d27438 1
a27438 1
ac_cv_type_unsigned_int=no
d27440 2
a27441 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27443 2
a27444 2
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
d27446 3
a27448 3
echo "$as_me:$LINENO: checking size of unsigned int" >&5
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
d27451 2
a27452 2
  if test "$ac_cv_type_unsigned_int" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
d27466 1
d27470 1
a27470 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
d27478 7
a27484 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d27491 7
a27497 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27502 6
a27507 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27521 1
d27525 1
a27525 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
d27533 7
a27539 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d27546 7
a27552 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27557 6
a27562 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27571 6
a27576 6
ac_lo=`expr $ac_mid + 1`
		    if test $ac_lo -le $ac_mid; then
		      ac_lo= ac_hi=
		      break
		    fi
		    ac_mid=`expr 2 '*' $ac_mid + 1`
d27578 2
a27579 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27585 1
a27585 1
cat >conftest.$ac_ext <<_ACEOF
d27593 1
d27597 1
a27597 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
d27605 7
a27611 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d27618 7
a27624 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27629 6
a27634 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27648 1
d27652 1
a27652 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
d27660 7
a27666 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d27673 7
a27679 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27684 6
a27689 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27698 6
a27703 6
ac_hi=`expr '(' $ac_mid ')' - 1`
		       if test $ac_mid -le $ac_hi; then
			 ac_lo= ac_hi=
			 break
		       fi
		       ac_mid=`expr 2 '*' $ac_mid`
d27705 2
a27706 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27712 1
a27712 1
ac_lo= ac_hi=
d27714 2
a27715 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27717 2
a27718 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27730 1
d27734 1
a27734 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
d27742 7
a27748 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d27755 7
a27761 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27766 6
a27771 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27780 1
a27780 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d27782 2
a27783 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27786 2
a27787 2
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
d27789 1
a27789 1
echo "$as_me: error: cannot compute sizeof (unsigned int), 77
d27791 1
a27791 1
   { (exit 1); exit 1; }; } ;;
a27793 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
d27802 3
a27804 2
long longval () { return (long) (sizeof (unsigned int)); }
unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
d27813 2
a27814 2
    exit (1);
  if (((long) (sizeof (unsigned int))) < 0)
d27816 3
a27818 3
      long i = longval ();
      if (i != ((long) (sizeof (unsigned int))))
	exit (1);
d27823 3
a27825 3
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (unsigned int))))
	exit (1);
d27828 1
a27828 1
  exit (ferror (f) || fclose (f) != 0);
d27835 7
a27841 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d27845 6
a27850 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27854 1
a27854 1
  ac_cv_sizeof_unsigned_int=`cat conftest.val`
d27861 1
a27861 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
d27863 1
a27863 1
echo "$as_me: error: cannot compute sizeof (unsigned int), 77
d27865 1
a27865 3
   { (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d27867 1
d27871 1
a27871 1
  ac_cv_sizeof_unsigned_int=0
d27874 2
a27875 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
d27877 1
a27877 1
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
d27881 3
a27883 3
echo "$as_me:$LINENO: checking for long" >&5
echo $ECHO_N "checking for long... $ECHO_C" >&6
if test "${ac_cv_type_long+set}" = set; then
d27894 1
d27898 1
a27898 1
if ((long *) 0)
d27900 1
a27900 1
if (sizeof (long))
d27907 7
a27913 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d27920 7
a27926 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27931 6
a27936 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d27940 1
a27940 1
  ac_cv_type_long=yes
d27945 1
a27945 1
ac_cv_type_long=no
d27947 2
a27948 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27950 2
a27951 2
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
echo "${ECHO_T}$ac_cv_type_long" >&6
d27953 3
a27955 3
echo "$as_me:$LINENO: checking size of long" >&5
echo $ECHO_N "checking size of long... $ECHO_C" >&6
if test "${ac_cv_sizeof_long+set}" = set; then
d27958 2
a27959 2
  if test "$ac_cv_type_long" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
d27973 1
d27977 1
a27977 1
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
d27985 7
a27991 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d27998 7
a28004 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28009 6
a28014 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28028 1
d28032 1
a28032 1
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
d28040 7
a28046 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d28053 7
a28059 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28064 6
a28069 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28078 6
a28083 6
ac_lo=`expr $ac_mid + 1`
		    if test $ac_lo -le $ac_mid; then
		      ac_lo= ac_hi=
		      break
		    fi
		    ac_mid=`expr 2 '*' $ac_mid + 1`
d28085 2
a28086 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28092 1
a28092 1
cat >conftest.$ac_ext <<_ACEOF
d28100 1
d28104 1
a28104 1
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
d28112 7
a28118 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d28125 7
a28131 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28136 6
a28141 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28155 1
d28159 1
a28159 1
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
d28167 7
a28173 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d28180 7
a28186 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28191 6
a28196 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28205 6
a28210 6
ac_hi=`expr '(' $ac_mid ')' - 1`
		       if test $ac_mid -le $ac_hi; then
			 ac_lo= ac_hi=
			 break
		       fi
		       ac_mid=`expr 2 '*' $ac_mid`
d28212 2
a28213 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28219 1
a28219 1
ac_lo= ac_hi=
d28221 2
a28222 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28224 2
a28225 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28237 1
d28241 1
a28241 1
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
d28249 7
a28255 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d28262 7
a28268 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28273 6
a28278 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28287 1
a28287 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d28289 2
a28290 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28293 2
a28294 2
?*) ac_cv_sizeof_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
d28296 1
a28296 1
echo "$as_me: error: cannot compute sizeof (long), 77
d28298 1
a28298 1
   { (exit 1); exit 1; }; } ;;
a28300 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
d28309 3
a28311 2
long longval () { return (long) (sizeof (long)); }
unsigned long ulongval () { return (long) (sizeof (long)); }
d28320 2
a28321 2
    exit (1);
  if (((long) (sizeof (long))) < 0)
d28323 3
a28325 3
      long i = longval ();
      if (i != ((long) (sizeof (long))))
	exit (1);
d28330 3
a28332 3
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (long))))
	exit (1);
d28335 1
a28335 1
  exit (ferror (f) || fclose (f) != 0);
d28342 7
a28348 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d28352 6
a28357 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28361 1
a28361 1
  ac_cv_sizeof_long=`cat conftest.val`
d28368 1
a28368 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
d28370 1
a28370 1
echo "$as_me: error: cannot compute sizeof (long), 77
d28372 1
a28372 3
   { (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d28374 1
d28378 1
a28378 1
  ac_cv_sizeof_long=0
d28381 2
a28382 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
d28384 1
a28384 1
#define SIZEOF_LONG $ac_cv_sizeof_long
d28388 3
a28390 3
echo "$as_me:$LINENO: checking for unsigned long" >&5
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_long+set}" = set; then
d28401 1
d28405 1
a28405 1
if ((unsigned long *) 0)
d28407 1
a28407 1
if (sizeof (unsigned long))
d28414 7
a28420 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d28427 7
a28433 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28438 6
a28443 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28447 1
a28447 1
  ac_cv_type_unsigned_long=yes
d28452 1
a28452 1
ac_cv_type_unsigned_long=no
d28454 2
a28455 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28457 2
a28458 2
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
d28460 3
a28462 3
echo "$as_me:$LINENO: checking size of unsigned long" >&5
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
d28465 2
a28466 2
  if test "$ac_cv_type_unsigned_long" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
d28480 1
d28484 1
a28484 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
d28492 7
a28498 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d28505 7
a28511 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28516 6
a28521 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28535 1
d28539 1
a28539 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
d28547 7
a28553 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d28560 7
a28566 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28571 6
a28576 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28585 6
a28590 6
ac_lo=`expr $ac_mid + 1`
		    if test $ac_lo -le $ac_mid; then
		      ac_lo= ac_hi=
		      break
		    fi
		    ac_mid=`expr 2 '*' $ac_mid + 1`
d28592 2
a28593 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28599 1
a28599 1
cat >conftest.$ac_ext <<_ACEOF
d28607 1
d28611 1
a28611 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
d28619 7
a28625 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d28632 7
a28638 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28643 6
a28648 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28662 1
d28666 1
a28666 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
d28674 7
a28680 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d28687 7
a28693 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28698 6
a28703 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28712 6
a28717 6
ac_hi=`expr '(' $ac_mid ')' - 1`
		       if test $ac_mid -le $ac_hi; then
			 ac_lo= ac_hi=
			 break
		       fi
		       ac_mid=`expr 2 '*' $ac_mid`
d28719 2
a28720 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28726 1
a28726 1
ac_lo= ac_hi=
d28728 2
a28729 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28731 2
a28732 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28744 1
d28748 1
a28748 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
d28756 7
a28762 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d28769 7
a28775 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28780 6
a28785 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28794 1
a28794 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d28796 2
a28797 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28800 2
a28801 2
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
d28803 1
a28803 1
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
d28805 1
a28805 1
   { (exit 1); exit 1; }; } ;;
a28807 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
d28816 3
a28818 2
long longval () { return (long) (sizeof (unsigned long)); }
unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
d28827 2
a28828 2
    exit (1);
  if (((long) (sizeof (unsigned long))) < 0)
d28830 3
a28832 3
      long i = longval ();
      if (i != ((long) (sizeof (unsigned long))))
	exit (1);
d28837 3
a28839 3
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (unsigned long))))
	exit (1);
d28842 1
a28842 1
  exit (ferror (f) || fclose (f) != 0);
d28849 7
a28855 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d28859 6
a28864 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28868 1
a28868 1
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
d28875 1
a28875 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
d28877 1
a28877 1
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
d28879 1
a28879 3
   { (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d28881 1
d28885 1
a28885 1
  ac_cv_sizeof_unsigned_long=0
d28888 2
a28889 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
d28891 1
a28891 1
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
d28895 3
a28897 3
echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
d28908 1
d28912 1
a28912 1
if ((long long *) 0)
d28914 1
a28914 1
if (sizeof (long long))
d28921 7
a28927 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d28934 7
a28940 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28945 6
a28950 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d28954 1
a28954 1
  ac_cv_type_long_long=yes
d28959 1
a28959 1
ac_cv_type_long_long=no
d28961 2
a28962 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28964 2
a28965 2
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
d28967 3
a28969 3
echo "$as_me:$LINENO: checking size of long long" >&5
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
if test "${ac_cv_sizeof_long_long+set}" = set; then
d28972 2
a28973 2
  if test "$ac_cv_type_long_long" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
d28987 1
d28991 1
a28991 1
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
d28999 7
a29005 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d29012 7
a29018 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29023 6
a29028 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29042 1
d29046 1
a29046 1
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
d29054 7
a29060 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d29067 7
a29073 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29078 6
a29083 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29092 6
a29097 6
ac_lo=`expr $ac_mid + 1`
		    if test $ac_lo -le $ac_mid; then
		      ac_lo= ac_hi=
		      break
		    fi
		    ac_mid=`expr 2 '*' $ac_mid + 1`
d29099 2
a29100 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d29106 1
a29106 1
cat >conftest.$ac_ext <<_ACEOF
d29114 1
d29118 1
a29118 1
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
d29126 7
a29132 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d29139 7
a29145 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29150 6
a29155 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29169 1
d29173 1
a29173 1
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
d29181 7
a29187 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d29194 7
a29200 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29205 6
a29210 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29219 6
a29224 6
ac_hi=`expr '(' $ac_mid ')' - 1`
		       if test $ac_mid -le $ac_hi; then
			 ac_lo= ac_hi=
			 break
		       fi
		       ac_mid=`expr 2 '*' $ac_mid`
d29226 2
a29227 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d29233 1
a29233 1
ac_lo= ac_hi=
d29235 2
a29236 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d29238 2
a29239 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d29251 1
d29255 1
a29255 1
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
d29263 7
a29269 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d29276 7
a29282 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29287 6
a29292 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29301 1
a29301 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d29303 2
a29304 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d29307 2
a29308 2
?*) ac_cv_sizeof_long_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
d29310 1
a29310 1
echo "$as_me: error: cannot compute sizeof (long long), 77
d29312 1
a29312 1
   { (exit 1); exit 1; }; } ;;
a29314 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
d29323 3
a29325 2
long longval () { return (long) (sizeof (long long)); }
unsigned long ulongval () { return (long) (sizeof (long long)); }
d29334 2
a29335 2
    exit (1);
  if (((long) (sizeof (long long))) < 0)
d29337 3
a29339 3
      long i = longval ();
      if (i != ((long) (sizeof (long long))))
	exit (1);
d29344 3
a29346 3
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (long long))))
	exit (1);
d29349 1
a29349 1
  exit (ferror (f) || fclose (f) != 0);
d29356 7
a29362 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d29366 6
a29371 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29375 1
a29375 1
  ac_cv_sizeof_long_long=`cat conftest.val`
d29382 1
a29382 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
d29384 1
a29384 1
echo "$as_me: error: cannot compute sizeof (long long), 77
d29386 1
a29386 3
   { (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d29388 1
d29392 1
a29392 1
  ac_cv_sizeof_long_long=0
d29395 2
a29396 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
d29398 1
a29398 1
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
d29402 3
a29404 3
echo "$as_me:$LINENO: checking for unsigned long long" >&5
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
d29415 1
d29419 1
a29419 1
if ((unsigned long long *) 0)
d29421 1
a29421 1
if (sizeof (unsigned long long))
d29428 7
a29434 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d29441 7
a29447 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29452 6
a29457 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29461 1
a29461 1
  ac_cv_type_unsigned_long_long=yes
d29466 1
a29466 1
ac_cv_type_unsigned_long_long=no
d29468 2
a29469 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d29471 2
a29472 2
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
d29474 3
a29476 3
echo "$as_me:$LINENO: checking size of unsigned long long" >&5
echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6
if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
d29479 2
a29480 2
  if test "$ac_cv_type_unsigned_long_long" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
d29494 1
d29498 1
a29498 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= 0)];
d29506 7
a29512 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d29519 7
a29525 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29530 6
a29535 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29549 1
d29553 1
a29553 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
d29561 7
a29567 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d29574 7
a29580 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29585 6
a29590 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29599 6
a29604 6
ac_lo=`expr $ac_mid + 1`
		    if test $ac_lo -le $ac_mid; then
		      ac_lo= ac_hi=
		      break
		    fi
		    ac_mid=`expr 2 '*' $ac_mid + 1`
d29606 2
a29607 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d29613 1
a29613 1
cat >conftest.$ac_ext <<_ACEOF
d29621 1
d29625 1
a29625 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) < 0)];
d29633 7
a29639 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d29646 7
a29652 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29657 6
a29662 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29676 1
d29680 1
a29680 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= $ac_mid)];
d29688 7
a29694 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d29701 7
a29707 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29712 6
a29717 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29726 6
a29731 6
ac_hi=`expr '(' $ac_mid ')' - 1`
		       if test $ac_mid -le $ac_hi; then
			 ac_lo= ac_hi=
			 break
		       fi
		       ac_mid=`expr 2 '*' $ac_mid`
d29733 2
a29734 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d29740 1
a29740 1
ac_lo= ac_hi=
d29742 2
a29743 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d29745 2
a29746 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d29758 1
d29762 1
a29762 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
d29770 7
a29776 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d29783 7
a29789 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29794 6
a29799 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29808 1
a29808 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d29810 2
a29811 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d29814 2
a29815 2
?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
d29817 1
a29817 1
echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
d29819 1
a29819 1
   { (exit 1); exit 1; }; } ;;
a29821 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
d29830 3
a29832 2
long longval () { return (long) (sizeof (unsigned long long)); }
unsigned long ulongval () { return (long) (sizeof (unsigned long long)); }
d29841 2
a29842 2
    exit (1);
  if (((long) (sizeof (unsigned long long))) < 0)
d29844 3
a29846 3
      long i = longval ();
      if (i != ((long) (sizeof (unsigned long long))))
	exit (1);
d29851 3
a29853 3
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (unsigned long long))))
	exit (1);
d29856 1
a29856 1
  exit (ferror (f) || fclose (f) != 0);
d29863 7
a29869 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d29873 6
a29878 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29882 1
a29882 1
  ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
d29889 1
a29889 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
d29891 1
a29891 1
echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
d29893 1
a29893 3
   { (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d29895 1
d29899 1
a29899 1
  ac_cv_sizeof_unsigned_long_long=0
d29902 2
a29903 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6
d29905 1
a29905 1
#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
d29909 3
a29911 3
echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
d29922 1
d29926 1
a29926 1
if ((size_t *) 0)
d29928 1
a29928 1
if (sizeof (size_t))
d29935 7
a29941 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d29948 7
a29954 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29959 6
a29964 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d29968 1
a29968 1
  ac_cv_type_size_t=yes
d29973 1
a29973 1
ac_cv_type_size_t=no
d29975 2
a29976 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d29978 2
a29979 2
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
d29981 3
a29983 3
echo "$as_me:$LINENO: checking size of size_t" >&5
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
if test "${ac_cv_sizeof_size_t+set}" = set; then
d29986 2
a29987 2
  if test "$ac_cv_type_size_t" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
d30001 1
d30005 1
a30005 1
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
d30013 7
a30019 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d30026 7
a30032 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30037 6
a30042 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30056 1
d30060 1
a30060 1
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
d30068 7
a30074 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d30081 7
a30087 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30092 6
a30097 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30106 6
a30111 6
ac_lo=`expr $ac_mid + 1`
		    if test $ac_lo -le $ac_mid; then
		      ac_lo= ac_hi=
		      break
		    fi
		    ac_mid=`expr 2 '*' $ac_mid + 1`
d30113 2
a30114 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d30120 1
a30120 1
cat >conftest.$ac_ext <<_ACEOF
d30128 1
d30132 1
a30132 1
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
d30140 7
a30146 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d30153 7
a30159 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30164 6
a30169 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30183 1
d30187 1
a30187 1
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
d30195 7
a30201 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d30208 7
a30214 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30219 6
a30224 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30233 6
a30238 6
ac_hi=`expr '(' $ac_mid ')' - 1`
		       if test $ac_mid -le $ac_hi; then
			 ac_lo= ac_hi=
			 break
		       fi
		       ac_mid=`expr 2 '*' $ac_mid`
d30240 2
a30241 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d30247 1
a30247 1
ac_lo= ac_hi=
d30249 2
a30250 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d30252 2
a30253 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d30265 1
d30269 1
a30269 1
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
d30277 7
a30283 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d30290 7
a30296 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30301 6
a30306 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30315 1
a30315 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d30317 2
a30318 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d30321 2
a30322 2
?*) ac_cv_sizeof_size_t=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
d30324 1
a30324 1
echo "$as_me: error: cannot compute sizeof (size_t), 77
d30326 1
a30326 1
   { (exit 1); exit 1; }; } ;;
a30328 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
d30337 3
a30339 2
long longval () { return (long) (sizeof (size_t)); }
unsigned long ulongval () { return (long) (sizeof (size_t)); }
d30348 2
a30349 2
    exit (1);
  if (((long) (sizeof (size_t))) < 0)
d30351 3
a30353 3
      long i = longval ();
      if (i != ((long) (sizeof (size_t))))
	exit (1);
d30357 188
a30544 15
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (size_t))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d30547 8
a30554 3
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30558 1
a30558 1
  ac_cv_sizeof_size_t=`cat conftest.val`
d30560 1
a30560 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d30563 1
a30563 6
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (size_t), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
d30565 2
a30566 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d30568 4
a30571 2
fi
rm -f conftest.val
d30573 1
a30573 1
  ac_cv_sizeof_size_t=0
a30574 6
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
_ACEOF
d30577 4
a30580 3
echo "$as_me:$LINENO: checking for char *" >&5
echo $ECHO_N "checking for char *... $ECHO_C" >&6
if test "${ac_cv_type_char_p+set}" = set; then
d30591 1
d30595 1
a30595 1
if ((char * *) 0)
d30597 1
a30597 1
if (sizeof (char *))
d30604 7
a30610 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d30617 7
a30623 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30628 6
a30633 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30637 1
a30637 1
  ac_cv_type_char_p=yes
d30642 4
a30645 1
ac_cv_type_char_p=no
d30647 6
a30652 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a30653 2
echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
echo "${ECHO_T}$ac_cv_type_char_p" >&6
d30655 5
a30659 3
echo "$as_me:$LINENO: checking size of char *" >&5
echo $ECHO_N "checking size of char *... $ECHO_C" >&6
if test "${ac_cv_sizeof_char_p+set}" = set; then
d30662 1
a30662 8
  if test "$ac_cv_type_char_p" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
d30670 1
d30674 4
a30677 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
test_array [0] = 0

d30683 7
a30689 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d30696 7
a30702 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30707 6
a30712 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30716 27
a30742 3
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
d30750 1
d30754 4
a30757 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
test_array [0] = 0

d30763 7
a30769 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d30776 7
a30782 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30787 6
a30792 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30796 1
a30796 1
  ac_hi=$ac_mid; break
d30801 4
a30804 6
ac_lo=`expr $ac_mid + 1`
		    if test $ac_lo -le $ac_mid; then
		      ac_lo= ac_hi=
		      break
		    fi
		    ac_mid=`expr 2 '*' $ac_mid + 1`
d30806 4
a30809 2
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  done
a30810 2
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d30812 28
a30839 1
cat >conftest.$ac_ext <<_ACEOF
d30847 1
d30851 4
a30854 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
test_array [0] = 0

d30860 7
a30866 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d30873 7
a30879 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30884 6
a30889 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30893 44
a30936 3
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
d30944 1
d30948 4
a30951 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
test_array [0] = 0

d30957 7
a30963 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d30970 7
a30976 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30981 6
a30986 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d30990 1
a30990 1
  ac_lo=$ac_mid; break
d30995 4
a30998 6
ac_hi=`expr '(' $ac_mid ')' - 1`
		       if test $ac_mid -le $ac_hi; then
			 ac_lo= ac_hi=
			 break
		       fi
		       ac_mid=`expr 2 '*' $ac_mid`
d31000 4
a31003 2
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  done
a31004 2
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d31006 18
a31023 1
ac_lo= ac_hi=
d31025 8
a31032 6
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
d31041 1
d31045 4
a31048 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
test_array [0] = 0

d31054 7
a31060 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d31067 7
a31073 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31078 6
a31083 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31087 1
a31087 1
  ac_hi=$ac_mid
d31092 1
a31092 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d31094 7
a31100 10
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_char_p=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char *), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } ;;
esac
d31102 16
a31117 5
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
d31119 10
d31138 1
a31138 4
long longval () { return (long) (sizeof (char *)); }
unsigned long ulongval () { return (long) (sizeof (char *)); }
#include <stdio.h>
#include <stdlib.h>
d31142 4
a31145 20

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (char *))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (char *))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (char *))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

d31150 21
a31170 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d31173 8
a31180 3
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31184 1
a31184 1
  ac_cv_sizeof_char_p=`cat conftest.val`
d31186 1
a31186 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d31189 1
a31189 6
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char *), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
d31191 2
a31192 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d31194 4
a31197 2
fi
rm -f conftest.val
d31199 19
a31217 1
  ac_cv_sizeof_char_p=0
a31218 6
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
_ACEOF
d31222 3
a31224 6
# We look for u_char, u_short, u_int, u_long -- if we can't find them,
# we create our own.

echo "$as_me:$LINENO: checking for u_char" >&5
echo $ECHO_N "checking for u_char... $ECHO_C" >&6
if test "${ac_cv_type_u_char+set}" = set; then
d31235 1
d31239 1
a31239 1
if ((u_char *) 0)
d31241 1
a31241 1
if (sizeof (u_char))
d31248 7
a31254 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d31261 7
a31267 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31272 6
a31277 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31281 1
a31281 1
  ac_cv_type_u_char=yes
d31286 1
a31286 1
ac_cv_type_u_char=no
d31288 2
a31289 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d31291 3
a31293 3
echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
echo "${ECHO_T}$ac_cv_type_u_char" >&6
if test $ac_cv_type_u_char = yes; then
d31296 19
a31314 1
  u_char_decl="typedef unsigned char u_char;"
d31319 3
a31321 3
echo "$as_me:$LINENO: checking for u_short" >&5
echo $ECHO_N "checking for u_short... $ECHO_C" >&6
if test "${ac_cv_type_u_short+set}" = set; then
d31332 1
d31336 1
a31336 1
if ((u_short *) 0)
d31338 1
a31338 1
if (sizeof (u_short))
d31345 7
a31351 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d31358 7
a31364 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31369 6
a31374 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31378 1
a31378 1
  ac_cv_type_u_short=yes
d31383 1
a31383 1
ac_cv_type_u_short=no
d31385 2
a31386 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d31388 3
a31390 3
echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
echo "${ECHO_T}$ac_cv_type_u_short" >&6
if test $ac_cv_type_u_short = yes; then
d31393 19
a31411 1
  u_short_decl="typedef unsigned short u_short;"
d31415 2
d31418 3
a31420 3
echo "$as_me:$LINENO: checking for u_int" >&5
echo $ECHO_N "checking for u_int... $ECHO_C" >&6
if test "${ac_cv_type_u_int+set}" = set; then
d31431 1
d31435 1
a31435 1
if ((u_int *) 0)
d31437 1
a31437 1
if (sizeof (u_int))
d31444 7
a31450 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d31457 7
a31463 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31468 6
a31473 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31477 1
a31477 1
  ac_cv_type_u_int=yes
d31482 1
a31482 1
ac_cv_type_u_int=no
d31484 2
a31485 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d31487 3
a31489 3
echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
echo "${ECHO_T}$ac_cv_type_u_int" >&6
if test $ac_cv_type_u_int = yes; then
d31492 19
a31510 1
  u_int_decl="typedef unsigned int u_int;"
d31514 5
d31520 3
a31522 3
echo "$as_me:$LINENO: checking for u_long" >&5
echo $ECHO_N "checking for u_long... $ECHO_C" >&6
if test "${ac_cv_type_u_long+set}" = set; then
d31531 2
a31532 2
$db_includes

d31536 1
a31536 1
if ((u_long *) 0)
d31538 1
a31538 1
if (sizeof (u_long))
d31545 7
a31551 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d31558 7
a31564 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31569 6
a31574 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31578 1
a31578 1
  ac_cv_type_u_long=yes
d31583 1
a31583 1
ac_cv_type_u_long=no
d31585 2
a31586 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d31588 3
a31590 3
echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
echo "${ECHO_T}$ac_cv_type_u_long" >&6
if test $ac_cv_type_u_long = yes; then
d31593 3
a31595 9
  u_long_decl="typedef unsigned long u_long;"
fi


# We look for fixed-size variants of u_char, u_short, u_int, u_long as well.

echo "$as_me:$LINENO: checking for u_int8_t" >&5
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int8_t+set}" = set; then
d31606 1
d31610 1
a31610 1
if ((u_int8_t *) 0)
d31612 1
a31612 1
if (sizeof (u_int8_t))
d31619 7
a31625 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d31632 7
a31638 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31643 6
a31648 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31652 1
a31652 1
  ac_cv_type_u_int8_t=yes
d31657 1
a31657 1
ac_cv_type_u_int8_t=no
d31659 2
a31660 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d31662 4
a31665 4
echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
if test $ac_cv_type_u_int8_t = yes; then
  :
d31667 2
a31669 18
	case "1" in
	"$ac_cv_sizeof_unsigned_int")
		u_int8_decl="typedef unsigned int u_int8_t;";;
	"$ac_cv_sizeof_unsigned_char")
		u_int8_decl="typedef unsigned char u_int8_t;";;
	"$ac_cv_sizeof_unsigned_short")
		u_int8_decl="typedef unsigned short u_int8_t;";;
	"$ac_cv_sizeof_unsigned_long")
		u_int8_decl="typedef unsigned long u_int8_t;";;
	"$ac_cv_sizeof_unsigned_long_long")
		u_int8_decl="typedef unsigned long long u_int8_t;";;
	*)
		if test "" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No unsigned 1-byte integral type" >&5
echo "$as_me: error: No unsigned 1-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
d31673 2
d31676 3
a31678 3
echo "$as_me:$LINENO: checking for u_int16_t" >&5
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int16_t+set}" = set; then
d31687 2
a31688 2
$db_includes

d31692 1
a31692 1
if ((u_int16_t *) 0)
d31694 1
a31694 1
if (sizeof (u_int16_t))
d31701 7
a31707 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d31714 7
a31720 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31725 6
a31730 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31734 1
a31734 1
  ac_cv_type_u_int16_t=yes
d31739 1
a31739 1
ac_cv_type_u_int16_t=no
d31741 2
a31742 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d31744 3
a31746 3
echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
if test $ac_cv_type_u_int16_t = yes; then
d31750 1
a31750 1
	case "2" in
d31752 1
a31752 1
		u_int16_decl="typedef unsigned int u_int16_t;";;
d31754 1
a31754 1
		u_int16_decl="typedef unsigned char u_int16_t;";;
d31756 1
a31756 1
		u_int16_decl="typedef unsigned short u_int16_t;";;
d31758 1
a31758 1
		u_int16_decl="typedef unsigned long u_int16_t;";;
d31760 1
a31760 1
		u_int16_decl="typedef unsigned long long u_int16_t;";;
d31763 2
a31764 2
			{ { echo "$as_me:$LINENO: error: No unsigned 2-byte integral type" >&5
echo "$as_me: error: No unsigned 2-byte integral type" >&2;}
d31772 3
a31774 3
echo "$as_me:$LINENO: checking for int16_t" >&5
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
if test "${ac_cv_type_int16_t+set}" = set; then
d31777 2
a31778 1
  cat >conftest.$ac_ext <<_ACEOF
d31784 1
a31784 2
$db_includes

d31788 1
a31788 4
if ((int16_t *) 0)
  return 0;
if (sizeof (int16_t))
  return 0;
d31794 7
a31800 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d31807 7
a31813 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31818 6
a31823 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31827 1
a31827 1
  ac_cv_type_int16_t=yes
d31832 1
a31832 1
ac_cv_type_int16_t=no
d31834 2
a31835 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d31837 8
a31844 5
echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_int16_t" >&6
if test $ac_cv_type_int16_t = yes; then
  :
else
a31845 18
	case "2" in
	"$ac_cv_sizeof_int")
		int16_decl="typedef int int16_t;";;
	"$ac_cv_sizeof_char")
		int16_decl="typedef char int16_t;";;
	"$ac_cv_sizeof_short")
		int16_decl="typedef short int16_t;";;
	"$ac_cv_sizeof_long")
		int16_decl="typedef long int16_t;";;
	"$ac_cv_sizeof_long_long")
		int16_decl="typedef long long int16_t;";;
	*)
		if test "" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No signed 2-byte integral type" >&5
echo "$as_me: error: No signed 2-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
d31848 8
d31858 4
a31861 3
echo "$as_me:$LINENO: checking for u_int32_t" >&5
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int32_t+set}" = set; then
d31864 38
a31901 1
  cat >conftest.$ac_ext <<_ACEOF
a31906 1
$db_includes
d31908 1
d31912 9
a31920 4
if ((u_int32_t *) 0)
  return 0;
if (sizeof (u_int32_t))
  return 0;
d31925 8
a31932 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d31939 7
a31945 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31949 7
a31955 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d31959 1
a31959 1
  ac_cv_type_u_int32_t=yes
d31964 1
a31964 1
ac_cv_type_u_int32_t=no
a31965 7
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
if test $ac_cv_type_u_int32_t = yes; then
  :
else
d31967 2
a31968 18
	case "4" in
	"$ac_cv_sizeof_unsigned_int")
		u_int32_decl="typedef unsigned int u_int32_t;";;
	"$ac_cv_sizeof_unsigned_char")
		u_int32_decl="typedef unsigned char u_int32_t;";;
	"$ac_cv_sizeof_unsigned_short")
		u_int32_decl="typedef unsigned short u_int32_t;";;
	"$ac_cv_sizeof_unsigned_long")
		u_int32_decl="typedef unsigned long u_int32_t;";;
	"$ac_cv_sizeof_unsigned_long_long")
		u_int32_decl="typedef unsigned long long u_int32_t;";;
	*)
		if test "" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No unsigned 4-byte integral type" >&5
echo "$as_me: error: No unsigned 4-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
d31971 6
d31978 1
a31978 6

echo "$as_me:$LINENO: checking for int32_t" >&5
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
if test "${ac_cv_type_int32_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
a31984 1
$db_includes
d31986 23
a32008 7
int
main ()
{
if ((int32_t *) 0)
  return 0;
if (sizeof (int32_t))
  return 0;
d32013 8
a32020 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d32027 7
a32033 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32037 7
a32043 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32047 1
a32047 1
  ac_cv_type_int32_t=yes
a32051 9
ac_cv_type_int32_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_int32_t" >&6
if test $ac_cv_type_int32_t = yes; then
  :
else
a32052 18
	case "4" in
	"$ac_cv_sizeof_int")
		int32_decl="typedef int int32_t;";;
	"$ac_cv_sizeof_char")
		int32_decl="typedef char int32_t;";;
	"$ac_cv_sizeof_short")
		int32_decl="typedef short int32_t;";;
	"$ac_cv_sizeof_long")
		int32_decl="typedef long int32_t;";;
	"$ac_cv_sizeof_long_long")
		int32_decl="typedef long long int32_t;";;
	*)
		if test "" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No signed 4-byte integral type" >&5
echo "$as_me: error: No signed 4-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
d32055 2
a32056 6


echo "$as_me:$LINENO: checking for u_int64_t" >&5
echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int64_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
a32063 1
$db_includes
d32065 19
a32083 9
int
main ()
{
if ((u_int64_t *) 0)
  return 0;
if (sizeof (u_int64_t))
  return 0;
  ;
  return 0;
d32086 8
a32093 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32096 7
a32102 4
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32106 1
a32106 1
  ac_cv_type_u_int64_t=yes
d32108 2
a32109 1
  echo "$as_me: failed program was:" >&5
a32111 1
ac_cv_type_u_int64_t=no
d32113 1
a32113 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a32114 5
echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
if test $ac_cv_type_u_int64_t = yes; then
  :
else
d32116 2
a32117 18
	case "8" in
	"$ac_cv_sizeof_unsigned_int")
		u_int64_decl="typedef unsigned int u_int64_t;";;
	"$ac_cv_sizeof_unsigned_char")
		u_int64_decl="typedef unsigned char u_int64_t;";;
	"$ac_cv_sizeof_unsigned_short")
		u_int64_decl="typedef unsigned short u_int64_t;";;
	"$ac_cv_sizeof_unsigned_long")
		u_int64_decl="typedef unsigned long u_int64_t;";;
	"$ac_cv_sizeof_unsigned_long_long")
		u_int64_decl="typedef unsigned long long u_int64_t;";;
	*)
		if test "notfatal" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No unsigned 8-byte integral type" >&5
echo "$as_me: error: No unsigned 8-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
d32119 1
d32121 1
a32121 7


echo "$as_me:$LINENO: checking for int64_t" >&5
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
if test "${ac_cv_type_int64_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
a32127 1
$db_includes
d32129 1
d32133 19
a32151 4
if ((int64_t *) 0)
  return 0;
if (sizeof (int64_t))
  return 0;
d32156 8
a32163 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d32170 7
a32176 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32180 7
a32186 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32190 1
a32190 1
  ac_cv_type_int64_t=yes
a32194 9
ac_cv_type_int64_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_int64_t" >&6
if test $ac_cv_type_int64_t = yes; then
  :
else
a32195 18
	case "8" in
	"$ac_cv_sizeof_int")
		int64_decl="typedef int int64_t;";;
	"$ac_cv_sizeof_char")
		int64_decl="typedef char int64_t;";;
	"$ac_cv_sizeof_short")
		int64_decl="typedef short int64_t;";;
	"$ac_cv_sizeof_long")
		int64_decl="typedef long int64_t;";;
	"$ac_cv_sizeof_long_long")
		int64_decl="typedef long long int64_t;";;
	*)
		if test "notfatal" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No signed 8-byte integral type" >&5
echo "$as_me: error: No signed 8-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
d32198 2
a32199 8

# Check for ssize_t -- if none exists, find a signed integral type that's
# the same size as a size_t.

echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
a32206 1
$db_includes
d32208 19
a32226 9
int
main ()
{
if ((ssize_t *) 0)
  return 0;
if (sizeof (ssize_t))
  return 0;
  ;
  return 0;
d32229 8
a32236 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
a32237 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d32239 7
a32245 11
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32249 1
a32249 1
  ac_cv_type_ssize_t=yes
d32251 2
a32252 1
  echo "$as_me: failed program was:" >&5
a32254 1
ac_cv_type_ssize_t=no
d32256 1
a32256 26
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = yes; then
  :
else

	case "$ac_cv_sizeof_size_t" in
	"$ac_cv_sizeof_int")
		ssize_t_decl="typedef int ssize_t;";;
	"$ac_cv_sizeof_char")
		ssize_t_decl="typedef char ssize_t;";;
	"$ac_cv_sizeof_short")
		ssize_t_decl="typedef short ssize_t;";;
	"$ac_cv_sizeof_long")
		ssize_t_decl="typedef long ssize_t;";;
	"$ac_cv_sizeof_long_long")
		ssize_t_decl="typedef long long ssize_t;";;
	*)
		if test "" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&5
echo "$as_me: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
d32260 2
a32261 1
# So far, no autoconf'd systems lack pid_t.
d32263 1
a32263 9

# Check for uintmax_t -- if none exists, first the largest unsigned integral
# type available.

echo "$as_me:$LINENO: checking for uintmax_t" >&5
echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
if test "${ac_cv_type_uintmax_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d32270 2
a32271 1
$ac_includes_default
d32275 17
a32291 4
if ((uintmax_t *) 0)
  return 0;
if (sizeof (uintmax_t))
  return 0;
d32296 8
a32303 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d32310 7
a32316 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32320 7
a32326 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32330 1
a32330 1
  ac_cv_type_uintmax_t=yes
d32335 1
a32335 1
ac_cv_type_uintmax_t=no
d32337 3
a32339 11
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
if test $ac_cv_type_uintmax_t = yes; then
  :
else
  echo "$as_me:$LINENO: checking for unsigned long long" >&5
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
a32346 1
$db_includes
d32348 17
a32364 9
int
main ()
{
if ((unsigned long long *) 0)
  return 0;
if (sizeof (unsigned long long))
  return 0;
  ;
  return 0;
d32367 8
a32374 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
a32375 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d32377 7
a32383 11
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32387 1
a32387 1
  ac_cv_type_unsigned_long_long=yes
d32389 2
a32390 1
  echo "$as_me: failed program was:" >&5
a32392 1
ac_cv_type_unsigned_long_long=no
d32394 1
a32394 8
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
if test $ac_cv_type_unsigned_long_long = yes; then
  uintmax_t_decl="typedef unsigned long long uintmax_t;"
else
  uintmax_t_decl="typedef unsigned long uintmax_t;"
d32396 1
d32399 2
d32402 1
a32402 9

# Check for uintptr_t -- if none exists, find an integral type which is
# the same size as a pointer.

echo "$as_me:$LINENO: checking for uintptr_t" >&5
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
if test "${ac_cv_type_uintptr_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d32409 2
a32410 1
$ac_includes_default
d32414 17
a32430 4
if ((uintptr_t *) 0)
  return 0;
if (sizeof (uintptr_t))
  return 0;
d32435 8
a32442 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d32449 7
a32455 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32459 7
a32465 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32469 1
a32469 1
  ac_cv_type_uintptr_t=yes
a32473 9
ac_cv_type_uintptr_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
if test $ac_cv_type_uintptr_t = yes; then
  :
else
a32474 18
	case "$ac_cv_sizeof_char_p" in
	"$ac_cv_sizeof_unsigned_int")
		uintptr_t_decl="typedef unsigned int uintptr_t;";;
	"$ac_cv_sizeof_unsigned_char")
		uintptr_t_decl="typedef unsigned char uintptr_t;";;
	"$ac_cv_sizeof_unsigned_short")
		uintptr_t_decl="typedef unsigned short uintptr_t;";;
	"$ac_cv_sizeof_unsigned_long")
		uintptr_t_decl="typedef unsigned long uintptr_t;";;
	"$ac_cv_sizeof_unsigned_long_long")
		uintptr_t_decl="typedef unsigned long long uintptr_t;";;
	*)
		if test "" != "notfatal"; then
			{ { echo "$as_me:$LINENO: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&5
echo "$as_me: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&2;}
   { (exit 1); exit 1; }; }
		fi;;
	esac
d32477 2
a32478 6


echo "$as_me:$LINENO: checking for ANSI C exit success/failure values" >&5
echo $ECHO_N "checking for ANSI C exit success/failure values... $ECHO_C" >&6
if test "${db_cv_exit_defines+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d32480 1
a32480 2

cat >conftest.$ac_ext <<_ACEOF
d32486 18
a32503 7
#include <stdlib.h>
int
main ()
{
return (EXIT_SUCCESS);
  ;
  return 0;
d32506 8
a32513 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
a32514 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d32516 7
a32522 11
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32526 1
a32526 1
  db_cv_exit_defines=yes
d32528 2
a32529 1
  echo "$as_me: failed program was:" >&5
a32531 1
db_cv_exit_defines=no
d32533 5
a32537 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d32539 4
a32542 9
echo "$as_me:$LINENO: result: $db_cv_exit_defines" >&5
echo "${ECHO_T}$db_cv_exit_defines" >&6
if test "$db_cv_exit_defines" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_EXIT_SUCCESS 1
_ACEOF



d32545 3
a32547 13
# Test for various functions/libraries -- do tests that change library values
# first.
#
# The Berkeley DB library calls fdatasync, and it's only available in -lrt on
# Solaris.  See if we can find it either without additional libraries or in
# -lrt.  If fdatasync is found in -lrt, add -lrt to the shared library links.
echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
if test "${ac_cv_search_fdatasync+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_fdatasync=no
d32555 2
a32556 7
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char fdatasync ();
d32560 10
a32569 1
fdatasync ();
d32575 7
a32581 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d32588 7
a32594 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32599 6
a32604 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32608 1
a32608 1
  ac_cv_search_fdatasync="none required"
d32613 1
d32615 2
a32616 1
rm -f conftest.err conftest.$ac_objext \
d32618 4
a32621 4
if test "$ac_cv_search_fdatasync" = no; then
  for ac_lib in rt; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
d32628 2
a32629 7
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char fdatasync ();
d32633 10
a32642 1
fdatasync ();
d32648 7
a32654 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d32661 7
a32667 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32672 6
a32677 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32681 1
a32681 2
  ac_cv_search_fdatasync="-l$ac_lib"
break
d32686 1
d32688 2
a32689 1
rm -f conftest.err conftest.$ac_objext \
a32690 1
  done
d32692 4
a32695 9
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
if test "$ac_cv_search_fdatasync" != no; then
  test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
      if test "$ac_cv_search_fdatasync" != "none required" ; then
	LIBSO_LIBS="$LIBSO_LIBS -lrt";
    fi
d32698 3
a32700 10

# The test and example programs use the sched_yield function, taken from -lrt
# on Solaris.
echo "$as_me:$LINENO: checking for library containing sched_yield" >&5
echo $ECHO_N "checking for library containing sched_yield... $ECHO_C" >&6
if test "${ac_cv_search_sched_yield+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_sched_yield=no
d32708 1
a32708 7
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
d32712 12
a32723 1
sched_yield ();
d32729 7
a32735 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d32742 7
a32748 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32753 6
a32758 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32762 1
a32762 1
  ac_cv_search_sched_yield="none required"
d32767 1
d32769 2
a32770 1
rm -f conftest.err conftest.$ac_objext \
d32772 5
a32776 4
if test "$ac_cv_search_sched_yield" = no; then
  for ac_lib in rt; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
d32783 2
a32784 7
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
d32788 8
a32795 1
sched_yield ();
d32801 7
a32807 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d32814 7
a32820 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32825 6
a32830 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32834 1
a32834 2
  ac_cv_search_sched_yield="-l$ac_lib"
break
d32839 1
d32841 2
a32842 1
rm -f conftest.err conftest.$ac_objext \
a32843 1
  done
a32844 6
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_sched_yield" >&5
echo "${ECHO_T}$ac_cv_search_sched_yield" >&6
if test "$ac_cv_search_sched_yield" != no; then
  test "$ac_cv_search_sched_yield" = "none required" || LIBS="$ac_cv_search_sched_yield $LIBS"
d32846 3
a32848 18
fi


# !!!
# We can't check for pthreads in the same way we did the test for sched_yield
# because the Solaris C library includes pthread interfaces which are not
# inter-process safe.  For that reason we always add -lpthread if we find a
# pthread library.
#
# We can't depend on any specific call existing (pthread_create, for example),
# as it may be #defined in an include file -- OSF/1 (Tru64) has this problem.
echo "$as_me:$LINENO: checking for main in -lpthread" >&5
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
if test "${ac_cv_lib_pthread_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
d32856 1
a32856 1

d32860 7
a32866 1
main ();
d32872 7
a32878 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d32885 7
a32891 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32896 6
a32901 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32905 1
a32905 1
  ac_cv_lib_pthread_main=yes
d32910 1
a32910 1
ac_cv_lib_pthread_main=no
d32912 2
a32913 1
rm -f conftest.err conftest.$ac_objext \
d32915 1
a32915 6
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
if test $ac_cv_lib_pthread_main = yes; then
  TEST_LIBS="$TEST_LIBS -lpthread"
a32916 1
ac_cv_lib_pthread=ac_cv_lib_pthread_main
d32918 2
a32919 11

# !!!
# We could be more exact about whether these libraries are needed, but don't
# bother -- if they exist, we load them, it's only the test programs anyway.
echo "$as_me:$LINENO: checking for main in -lm" >&5
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
if test "${ac_cv_lib_m_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
a32926 1

d32930 7
a32936 1
main ();
d32941 8
a32948 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d32955 7
a32961 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32965 7
a32971 3
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d32975 1
a32975 1
  ac_cv_lib_m_main=yes
d32980 1
a32980 1
ac_cv_lib_m_main=no
d32982 2
a32983 8
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
if test $ac_cv_lib_m_main = yes; then
  TEST_LIBS="$TEST_LIBS -lm"
a32984 1
ac_cv_lib_m=ac_cv_lib_m_main
d32986 2
a32987 7
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
d32995 1
a32995 1

d32998 8
a33005 2
{
main ();
d33011 7
a33017 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d33024 7
a33030 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33035 6
a33040 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33044 1
a33044 1
  ac_cv_lib_socket_main=yes
d33049 1
a33049 1
ac_cv_lib_socket_main=no
d33051 2
a33052 1
rm -f conftest.err conftest.$ac_objext \
a33053 6
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
if test $ac_cv_lib_socket_main = yes; then
  TEST_LIBS="$TEST_LIBS -lsocket"
a33054 1
ac_cv_lib_socket=ac_cv_lib_socket_main
d33056 5
a33060 7
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
d33068 1
a33068 1

d33072 7
a33078 1
main ();
d33084 7
a33090 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d33097 7
a33103 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33108 6
a33113 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33117 1
a33117 1
  ac_cv_lib_nsl_main=yes
a33121 24
ac_cv_lib_nsl_main=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
if test $ac_cv_lib_nsl_main = yes; then
  TEST_LIBS="$TEST_LIBS -lnsl"
fi
ac_cv_lib_nsl=ac_cv_lib_nsl_main


# Check for mutexes.
# We do this here because it changes $LIBS.


# Mutexes we don't test for, but want the #defines to exist for
# other ports.




a33122 37
echo "$as_me:$LINENO: checking for mutexes" >&5
echo $ECHO_N "checking for mutexes... $ECHO_C" >&6
if test "${db_cv_mutex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

db_cv_mutex=no

orig_libs=$LIBS

# User-specified POSIX or UI mutexes.
#
# There are two different reasons to specify mutexes: First, the application
# is already using one type of mutex and doesn't want to mix-and-match (for
# example, on Solaris, which has POSIX, UI and LWP mutexes).  Second, the
# applications POSIX pthreads mutexes don't support inter-process locking,
# but the application wants to use them anyway (for example, some Linux and
# *BSD systems).
#
# Test for LWP threads before testing for UI/POSIX threads, we prefer them
# on Solaris.  There's a bug in SunOS 5.7 where applications get pwrite, not
# pwrite64, if they load the C library before the appropriate threads library,
# e.g., tclsh using dlopen to load the DB library.  By using LWP threads we
# avoid answering lots of user questions, not to mention the bugs.
#
# Otherwise, test for POSIX threads before UI threads.  There are Linux systems
# that support a UI compatibility mode, and applications are more likely to be
# written for POSIX threads than UI threads.
#
# Try and link with a threads library if possible.  The problem is the Solaris
# C library has UI/POSIX interface stubs, but they're broken, configuring them
# for inter-process mutexes doesn't return an error, but it doesn't work either.
if test "$db_cv_posixmutexes" = yes; then
	db_cv_mutex="posix_only";
fi
if test "$db_cv_uimutexes" = yes; then
	db_cv_mutex="ui_only";
d33125 2
a33126 3
# User-specified Win32 mutexes (MinGW build)
if test "$db_cv_mingw" = "yes"; then
	db_cv_mutex=win32/gcc
d33129 5
a33133 1
# LWP threads: _lwp_XXX
d33142 1
a33142 1
#include <synch.h>
d33147 4
a33150 7
	static lwp_mutex_t mi = SHAREDMUTEX;
	static lwp_cond_t ci = SHAREDCV;
	lwp_mutex_t mutex = mi;
	lwp_cond_t cond = ci;
	exit (
	_lwp_mutex_lock(&mutex) ||
	_lwp_mutex_unlock(&mutex));
d33157 7
a33163 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d33170 7
a33176 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33181 6
a33186 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33190 1
a33190 1
  db_cv_mutex="Solaris/lwp"
d33195 1
d33197 2
a33198 1
rm -f conftest.err conftest.$ac_objext \
d33202 3
a33204 9
# POSIX.1 pthreads: pthread_XXX
#
# If the user specified we use POSIX pthreads mutexes, and we fail to find the
# full interface, try and configure for just intra-process support.
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
	LIBS="$LIBS -lpthread"

if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
d33211 1
a33211 1
#include <pthread.h>
d33216 3
a33218 17
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d33225 7
a33231 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d33238 7
a33244 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33249 6
a33254 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33258 1
a33258 1
  db_cv_mutex=""POSIX/pthreads/library""
d33263 1
d33265 2
a33266 1
rm -f conftest.err conftest.$ac_objext \
d33268 5
a33272 2
else
  cat >conftest.$ac_ext <<_ACEOF
d33279 10
a33288 19
#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d33291 21
a33311 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d33314 8
a33321 3
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33325 1
a33325 1
  db_cv_mutex=""POSIX/pthreads/library""
d33327 1
a33327 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d33330 1
d33332 3
a33334 3
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
	LIBS="$orig_libs"
a33335 1
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
d33337 3
a33339 2
if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
a33345 1
#include <pthread.h>
d33350 5
a33354 17
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d33360 8
a33367 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d33374 7
a33380 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33384 7
a33390 3
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33394 1
a33394 1
  db_cv_mutex=""POSIX/pthreads""
d33399 1
d33401 7
a33407 4
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
d33414 12
a33425 19
#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d33428 21
a33448 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d33451 8
a33458 3
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33462 1
a33462 1
  db_cv_mutex=""POSIX/pthreads""
d33464 1
a33464 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d33467 1
d33469 2
a33470 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a33471 2
fi
if test "$db_cv_mutex" = "posix_only"; then
d33473 3
a33475 2
if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
a33481 1
#include <pthread.h>
d33486 5
a33490 15
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d33496 8
a33503 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d33510 7
a33516 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33520 7
a33526 3
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33530 1
a33530 1
  db_cv_mutex=""POSIX/pthreads/private""
d33535 4
d33540 4
a33543 4
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
d33550 12
a33561 17
#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d33564 21
a33584 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d33587 8
a33594 3
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33598 1
a33598 1
  db_cv_mutex=""POSIX/pthreads/private""
d33600 1
a33600 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d33603 1
d33605 2
a33606 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a33607 3
fi
if test "$db_cv_mutex" = "posix_only"; then
	LIBS="$LIBS -lpthread"
d33609 3
a33611 2
if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
a33617 1
#include <pthread.h>
d33622 5
a33626 15
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d33632 8
a33639 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d33646 7
a33652 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33656 7
a33662 3
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33666 1
a33666 1
  db_cv_mutex=""POSIX/pthreads/library/private""
d33671 4
a33675 9
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d33677 21
a33697 17
#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d33700 21
a33720 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d33723 8
a33730 3
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33734 1
a33734 1
  db_cv_mutex=""POSIX/pthreads/library/private""
d33736 1
a33736 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d33739 1
d33741 2
a33742 8
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
	LIBS="$orig_libs"
fi
if test "$db_cv_mutex" = "posix_only"; then
	{ { echo "$as_me:$LINENO: error: unable to find POSIX 1003.1 mutex interfaces" >&5
echo "$as_me: error: unable to find POSIX 1003.1 mutex interfaces" >&2;}
   { (exit 1); exit 1; }; }
d33745 2
a33746 3
# UI threads: thr_XXX
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
LIBS="$LIBS -lthread"
a33753 2
#include <thread.h>
#include <synch.h>
d33758 5
a33762 8
	mutex_t mutex;
	cond_t cond;
	int type = USYNC_PROCESS;
	exit (
	mutex_init(&mutex, type, NULL) ||
	cond_init(&cond, type, NULL) ||
	mutex_lock(&mutex) ||
	mutex_unlock(&mutex));
d33768 8
a33775 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d33782 7
a33788 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33792 7
a33798 3
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33802 1
a33802 1
  db_cv_mutex="UI/threads/library"
d33807 1
d33809 2
a33810 3
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS="$orig_libs"
d33812 3
a33814 1
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
a33821 2
#include <thread.h>
#include <synch.h>
d33826 5
a33830 8
	mutex_t mutex;
	cond_t cond;
	int type = USYNC_PROCESS;
	exit (
	mutex_init(&mutex, type, NULL) ||
	cond_init(&cond, type, NULL) ||
	mutex_lock(&mutex) ||
	mutex_unlock(&mutex));
d33836 8
a33843 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d33850 7
a33856 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33860 7
a33866 3
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33870 1
a33870 1
  db_cv_mutex="UI/threads"
d33875 1
d33877 2
a33878 7
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
if test "$db_cv_mutex" = "ui_only"; then
	{ { echo "$as_me:$LINENO: error: unable to find UI mutex interfaces" >&5
echo "$as_me: error: unable to find UI mutex interfaces" >&2;}
   { (exit 1); exit 1; }; }
d33881 1
a33881 2
# msemaphore: HPPA only
# Try HPPA before general msem test, it needs special alignment.
a33889 1
#include <sys/mman.h>
d33894 1
a33894 6
#if defined(__hppa)
	typedef msemaphore tsl_t;
	msemaphore x;
	msem_init(&x, 0);
	msem_lock(&x, 0);
	msem_unlock(&x, 0);
d33904 8
a33911 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d33918 7
a33924 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33928 7
a33934 3
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33938 1
a33938 1
  db_cv_mutex="HP/msem_init"
d33943 1
d33945 2
a33946 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d33949 1
a33949 1
# msemaphore: AIX, OSF/1
a33957 2
#include <sys/types.h>
#include <sys/mman.h>
d33962 1
a33962 5
	typedef msemaphore tsl_t;
	msemaphore x;
	msem_init(&x, 0);
	msem_lock(&x, 0);
	msem_unlock(&x, 0);
d33964 3
d33972 8
a33979 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d33986 7
a33992 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d33996 7
a34002 3
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34006 1
a34006 1
  db_cv_mutex="UNIX/msem_init"
d34011 1
d34013 2
a34014 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d34017 1
a34017 1
# ReliantUNIX
a34018 1
LIBS="$LIBS -lmproc"
a34025 1
#include <ulocks.h>
d34030 5
a34034 5
	typedef spinlock_t tsl_t;
	spinlock_t x;
	initspin(&x, 1);
	cspinlock(&x);
	spinunlock(&x);
d34040 8
a34047 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d34054 7
a34060 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34064 7
a34070 3
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34074 1
a34074 1
  db_cv_mutex="ReliantUNIX/initspin"
d34079 1
d34081 2
a34082 3
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS="$orig_libs"
d34085 1
a34085 1
# SCO: UnixWare has threads in libthread, but OpenServer doesn't.
d34098 1
a34098 1
#if defined(__USLC__)
d34109 7
a34115 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d34122 7
a34128 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34133 6
a34138 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34142 1
a34142 1
  db_cv_mutex="SCO/x86/cc-assembly"
d34147 1
d34149 2
a34150 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34153 1
a34153 1
# abilock_t: SGI
a34161 1
#include <abi_mutex.h>
d34166 5
a34170 5
	typedef abilock_t tsl_t;
	abilock_t x;
	init_lock(&x);
	acquire_lock(&x);
	release_lock(&x);
d34176 8
a34183 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d34190 7
a34196 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34200 7
a34206 3
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34210 1
a34210 1
  db_cv_mutex="SGI/init_lock"
d34215 1
d34217 2
a34218 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d34221 2
a34222 5
# sema_t: Solaris
# The sema_XXX calls do not work on Solaris 5.5.  I see no reason to ever
# turn this test on, unless we find some other platform that uses the old
# POSIX.1 interfaces.  (I plan to move directly to pthreads on Solaris.)
if test "$db_cv_mutex" = DOESNT_WORK; then
a34229 1
#include <synch.h>
d34234 5
a34238 5
	typedef sema_t tsl_t;
	sema_t x;
	sema_init(&x, 1, USYNC_PROCESS, NULL);
	sema_wait(&x);
	sema_post(&x);
d34244 8
a34251 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d34258 7
a34264 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34268 7
a34274 3
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34278 1
a34278 1
  db_cv_mutex="UNIX/sema_init"
d34283 1
d34285 2
a34286 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d34289 1
a34289 5
# _lock_try/_lock_clear: Solaris
# On Solaris systems without Pthread or UI mutex interfaces, DB uses the
# undocumented _lock_try _lock_clear function calls instead of either the
# sema_trywait(3T) or sema_wait(3T) function calls.  This is because of
# problems in those interfaces in some releases of the Solaris C library.
a34297 1
#include <sys/machlock.h>
d34302 5
a34306 4
	typedef lock_t tsl_t;
	lock_t x;
	_lock_try(&x);
	_lock_clear(&x);
d34312 8
a34319 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d34326 7
a34332 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34336 7
a34342 3
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34346 1
a34346 1
  db_cv_mutex="Solaris/_lock_try"
a34350 4
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
d34352 191
a34542 4
# _check_lock/_clear_lock: AIX
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
a34543 3
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
a34544 4
#include <sys/atomic_op.h>
int
main ()
{
d34546 6
a34551 3
	int x;
	_check_lock(&x,0,1);
	_clear_lock(&x,0);
d34553 4
a34556 3
  ;
  return 0;
}
a34557 26
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="AIX/_check_lock"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a34558 4
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
d34560 4
a34563 4
# _spin_lock_try/_spin_unlock: Apple/Darwin
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
a34564 7
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
a34565 3
	int x;
	_spin_lock_try(&x);
	_spin_unlock(&x);
d34567 4
a34570 3
  ;
  return 0;
}
a34571 26
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="Darwin/_spin_lock_try"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a34572 4
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
d34574 4
a34577 4
# Tru64/cc
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
a34578 3
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
a34579 3
int
main ()
{
d34581 4
a34584 9
#if defined(__alpha) && defined(__DECC)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
a34585 26
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="Tru64/cc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a34586 3
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
d34588 4
a34591 4
# Alpha/gcc
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
a34592 3
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
a34593 3
int
main ()
{
d34595 4
a34598 9
#if defined(__alpha) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
a34599 26
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="ALPHA/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a34600 3
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
d34602 4
a34605 4
# ARM/gcc: Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
a34606 7
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
a34607 5
#if defined(__arm__) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
d34609 6
a34614 3
  ;
  return 0;
}
a34615 26
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="ARM/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a34616 3
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
d34618 36
a34653 2
# MIPS/gcc: Linux
if test "$db_cv_mutex" = no; then
d34661 1
d34665 1
a34665 7

#if (defined(__mips) || defined(__mips__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

d34670 8
a34677 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d34684 7
a34690 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34694 7
a34700 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34704 1
a34704 1
  db_cv_mutex="MIPS/gcc-assembly"
d34709 6
d34716 4
a34719 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34721 12
a34732 3

# MIPS/gcc: Linux
if test "$db_cv_mutex" = no; then
d34740 1
d34744 1
a34744 7

#if (defined(__mips) || defined(__mips__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

d34749 8
a34756 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d34763 7
a34769 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34773 7
a34779 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34783 1
a34783 1
  db_cv_mutex="MIPS/gcc-assembly"
d34788 6
d34795 4
a34798 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34800 13
a34812 3

# PaRisc/gcc: HP/UX
if test "$db_cv_mutex" = no; then
d34820 1
d34824 1
a34824 7

#if (defined(__hppa) || defined(__hppa__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

d34829 8
a34836 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d34843 7
a34849 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34853 7
a34859 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34863 1
a34863 1
  db_cv_mutex="HPPA/gcc-assembly"
d34868 6
d34875 4
a34878 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34880 1
d34882 2
a34883 8
# PPC/gcc:
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34885 4
a34888 3
int
main ()
{
a34889 5
#if (defined(__powerpc__) || defined(__ppc__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
d34891 4
a34894 3
  ;
  return 0;
}
d34896 1
a34896 23
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="PPC/gcc-assembly"
d34898 1
a34898 10
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# Sparc/gcc: SunOS, Solaris
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
d34904 2
a34905 1

d34910 3
a34912 5
#if defined(__sparc__) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
d34919 7
a34925 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d34932 7
a34938 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34943 6
a34948 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d34952 4
a34955 1
  db_cv_mutex="Sparc/gcc-assembly"
d34960 1
d34962 2
a34963 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34966 4
a34969 8
# 68K/gcc: SunOS
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
a34970 3
int
main ()
{
d34972 7
a34978 5
#if (defined(mc68020) || defined(sun3)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
d34980 3
a34982 3
  ;
  return 0;
}
a34983 26
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="68K/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a34984 3
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
d34986 12
a34997 2
# x86/gcc: FreeBSD, NetBSD, BSD/OS, Linux
if test "$db_cv_mutex" = no; then
d35005 1
d35009 1
a35009 7

#if (defined(i386) || defined(__i386__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

d35014 8
a35021 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d35028 7
a35034 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35038 7
a35044 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35048 1
a35048 1
  db_cv_mutex="x86/gcc-assembly"
d35053 6
d35060 4
a35063 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d35065 1
d35067 7
a35073 2
# x86_64/gcc: FreeBSD, NetBSD, BSD/OS, Linux
if test "$db_cv_mutex" = no; then
d35081 1
d35085 1
a35085 7

#if (defined(x86_64) || defined(__x86_64__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

d35090 8
a35097 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d35104 7
a35110 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35114 7
a35120 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35124 1
a35124 1
  db_cv_mutex="x86_64/gcc-assembly"
d35129 1
d35131 14
a35144 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d35147 44
a35190 2
# S390/cc: IBM OS/390 Unix
if test "$db_cv_mutex" = no; then
d35198 7
d35208 1
a35208 7

#if defined(__MVS__) && defined(__IBMC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

d35213 15
a35227 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d35234 7
a35240 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35244 7
a35250 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35254 1
a35254 1
  db_cv_mutex="S390/cc-assembly"
d35259 13
d35273 2
a35274 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d35276 15
a35290 3

# S390/gcc: Linux
if test "$db_cv_mutex" = no; then
d35298 7
d35308 1
a35308 7

#if defined(__s390__) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

d35313 15
a35327 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d35334 7
a35340 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35344 7
a35350 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35354 1
a35354 1
  db_cv_mutex="S390/gcc-assembly"
d35359 25
d35385 1
a35385 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d35388 11
a35398 2
# ia64/gcc: Linux
if test "$db_cv_mutex" = no; then
d35406 1
d35410 1
a35410 7

#if defined(__ia64) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

d35415 8
a35422 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d35429 7
a35435 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35439 7
a35445 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35449 1
a35449 1
  db_cv_mutex="ia64/gcc-assembly"
d35454 6
d35461 4
a35464 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d35466 9
a35474 3

# uts/cc: UTS
if test "$db_cv_mutex" = no; then
d35482 1
d35486 1
a35486 7

#if defined(_UTS)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

d35491 8
a35498 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d35505 7
a35511 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35515 7
a35521 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35525 1
a35525 1
  db_cv_mutex="UTS/cc-assembly"
d35530 2
a35531 260
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# default to UNIX fcntl system call mutexes.
if test "$db_cv_mutex" = no; then
	db_cv_mutex="UNIX/fcntl"
fi

fi
echo "$as_me:$LINENO: result: $db_cv_mutex" >&5
echo "${ECHO_T}$db_cv_mutex" >&6



db_threadid_t_decl=notset

case "$db_cv_mutex" in
68K/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_68K_GCC_ASSEMBLY 1
_ACEOF


;;
AIX/_check_lock)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_AIX_CHECK_LOCK 1
_ACEOF


;;
Darwin/_spin_lock_try)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_DARWIN_SPIN_LOCK_TRY 1
_ACEOF


;;
ALPHA/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1
_ACEOF


;;
ARM/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_ARM_GCC_ASSEMBLY 1
_ACEOF


;;
HP/msem_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_HPPA_MSEM_INIT 1
_ACEOF


;;
HPPA/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1
_ACEOF


;;
ia64/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1
_ACEOF


;;
POSIX/pthreads)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			thread_h_decl="#include <pthread.h>"
			db_threadid_t_decl="typedef pthread_t db_threadid_t;"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF


;;
POSIX/pthreads/private)	ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			thread_h_decl="#include <pthread.h>"
			db_threadid_t_decl="typedef pthread_t db_threadid_t;"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF



			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_THREAD_ONLY 1
_ACEOF


;;
POSIX/pthreads/library)	LIBS="$LIBS -lpthread"
			LIBSO_LIBS="$LIBSO_LIBS -lpthread"
			ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			thread_h_decl="#include <pthread.h>"
			db_threadid_t_decl="typedef pthread_t db_threadid_t;"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF


;;
POSIX/pthreads/library/private)
			LIBS="$LIBS -lpthread"
			LIBSO_LIBS="$LIBSO_LIBS -lpthread"
			ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			thread_h_decl="#include <pthread.h>"
			db_threadid_t_decl="typedef pthread_t db_threadid_t;"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF



			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_THREAD_ONLY 1
_ACEOF


;;
PPC/gcc-assembly)
			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PPC_GCC_ASSEMBLY 1
_ACEOF


;;
ReliantUNIX/initspin)	LIBS="$LIBS -lmproc"
			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1
_ACEOF


;;
S390/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_S390_CC_ASSEMBLY 1
_ACEOF


;;
S390/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_S390_GCC_ASSEMBLY 1
_ACEOF


;;
SCO/x86/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1
_ACEOF


;;
SGI/init_lock)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SGI_INIT_LOCK 1
_ACEOF


;;
Solaris/_lock_try)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1
_ACEOF


;;
Solaris/lwp)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			thread_h_decl="#include <pthread.h>"
			db_threadid_t_decl="typedef pthread_t db_threadid_t;"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SOLARIS_LWP 1
_ACEOF


;;
Sparc/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1
_ACEOF


;;
Tru64/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_TRU64_CC_ASSEMBLY 1
_ACEOF


;;
UI/threads)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			thread_h_decl="#include <thread.h>"
			db_threadid_t_decl="typedef thread_t db_threadid_t;"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UI_THREADS 1
_ACEOF


;;
UI/threads/library)	LIBS="$LIBS -lthread"
			LIBSO_LIBS="$LIBSO_LIBS -lthread"
			ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			thread_h_decl="#include <thread.h>"
			db_threadid_t_decl="typedef thread_t db_threadid_t;"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UI_THREADS 1
_ACEOF


;;
UNIX/msem_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_MSEM_INIT 1
_ACEOF


;;
UNIX/sema_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SEMA_INIT 1
_ACEOF


;;
UTS/cc-assembly)	ADDITIONAL_OBJS="uts4.cc${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UTS_CC_ASSEMBLY 1
_ACEOF


;;
win32)			ADDITIONAL_OBJS="mut_win32${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_WIN32 1
_ACEOF


;;
win32/gcc)		ADDITIONAL_OBJS="mut_win32${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_WIN32_GCC 1
_ACEOF


;;
MIPS/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_MIPS_GCC_ASSEMBLY 1
_ACEOF
d35533 10
d35544 9
a35552 4
;;
x86/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_X86_GCC_ASSEMBLY 1
d35554 3
d35559 7
a35565 4
;;
x86_64/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_X86_64_GCC_ASSEMBLY 1
d35567 28
a35594 15


;;
UNIX/fcntl)		{ echo "$as_me:$LINENO: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&5
echo "$as_me: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&2;}
			ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_FCNTL 1
_ACEOF


;;
*)			{ { echo "$as_me:$LINENO: error: Unknown mutex interface: $db_cv_mutex" >&5
echo "$as_me: error: Unknown mutex interface: $db_cv_mutex" >&2;}
   { (exit 1); exit 1; }; };;
d35596 9
d35606 2
a35607 5
# The mutex selection often tells us what kind of thread package we're using.
# We need to know if the thread ID type will fit into an integral type and we
# can compare it for equality and generally treat it like an int, or if it's a
# non-integral type and we have to treat it like a structure or other untyped
# block of bytes.  For example, MVS typedef's pthread_t to a structure.
d35609 10
d35620 4
a35623 6
if test "$db_threadid_t_decl" = "notset"; then
	db_threadid_t_decl="typedef uintmax_t db_threadid_t;"
	cat >>confdefs.h <<\_ACEOF
#define HAVE_INTEGRAL_THREAD_TYPE 1
_ACEOF

d35625 3
a35627 1
	cat >conftest.$ac_ext <<_ACEOF
d35633 2
a35634 2
#include <sys/types.h>
	$thread_h_decl
d35638 1
a35638 5

	$db_threadid_t_decl
	db_threadid_t a;
	a = 0;

d35643 8
a35650 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d35657 7
a35663 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35667 7
a35673 3
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35677 1
a35677 4
  cat >>confdefs.h <<\_ACEOF
#define HAVE_INTEGRAL_THREAD_TYPE 1
_ACEOF

d35682 1
d35684 9
a35692 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d35694 1
a35694 19

# There are 3 classes of mutexes:
#
# 1: Mutexes requiring no cleanup, for example, test-and-set mutexes.
# 2: Mutexes that must be destroyed, but which don't hold permanent system
#    resources, for example, pthread mutexes on MVS aka OS/390 aka z/OS.
# 3: Mutexes that must be destroyed, even after the process is gone, for
#    example, pthread mutexes on QNX and binary semaphores on VxWorks.
#
# DB cannot currently distinguish between #2 and #3 because DB does not know
# if the application is running environment recovery as part of startup and
# does not need to do cleanup, or if the environment is being removed and/or
# recovered in a loop in the application, and so does need to clean up.  If
# we get it wrong, we're going to call the mutex destroy routine on a random
# piece of memory, which usually works, but just might drop core.  For now,
# we group #2 and #3 into the HAVE_MUTEX_SYSTEM_RESOURCES define, until we
# have a better solution or reason to solve this in a general way -- so far,
# the places we've needed to handle this are few.

d35697 3
a35699 7
case "$host_os$db_cv_mutex" in
*qnx*POSIX/pthread*|openedition*POSIX/pthread*)
	cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SYSTEM_RESOURCES 1
_ACEOF
;;
esac
a35702 1
# XXX
d35712 25
a35736 1
for ac_func in getcwd getopt memcmp memcpy memmove raise
d35739 3
a35741 3
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d35767 3
a35769 1
/* Override any gcc2 internal prototype to avoid an error.  */
a35771 1
{
a35772 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d35777 1
a35777 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a35778 5
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
d35784 1
a35784 1
return f != $ac_func;
d35790 7
a35796 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d35803 7
a35809 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35814 6
a35819 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35828 1
a35828 1
eval "$as_ac_var=no"
d35830 2
a35831 1
rm -f conftest.err conftest.$ac_objext \
d35834 3
a35836 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d35843 1
a35843 4
  case $LIBOBJS in
    "$ac_func.$ac_objext"   | \
  *" $ac_func.$ac_objext"   | \
    "$ac_func.$ac_objext "* | \
d35845 2
a35846 1
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
d35854 18
d35876 6
a35881 1
for ac_func in strcasecmp strdup strerror strtol strtoul
d35884 3
a35886 3
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d35912 3
a35914 1
/* Override any gcc2 internal prototype to avoid an error.  */
a35916 1
{
a35917 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d35922 1
a35922 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a35923 5
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
d35929 1
a35929 1
return f != $ac_func;
d35935 7
a35941 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d35948 7
a35954 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35959 6
a35964 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d35973 2
a35974 41
eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  case $LIBOBJS in
    "$ac_func.$ac_objext"   | \
  *" $ac_func.$ac_objext"   | \
    "$ac_func.$ac_objext "* | \
  *" $ac_func.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
esac

fi
done



# Check for system functions we optionally use.














d35976 10
d35987 2
d35991 1
d35993 1
a35993 4
for ac_func in \
   _fstati64 clock_gettime directio fchmod fcntl fdatasync ftruncate\
   getrusage gettimeofday getuid pstat_getdynamic rand sched_yield\
   select snprintf srand sysconf vsnprintf yield
d35996 3
a35998 3
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d36024 3
a36026 1
/* Override any gcc2 internal prototype to avoid an error.  */
a36028 1
{
a36029 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d36034 1
a36034 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a36035 5
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
d36041 1
a36041 1
return f != $ac_func;
d36047 7
a36053 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d36060 7
a36066 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36071 6
a36076 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36085 1
a36085 1
eval "$as_ac_var=no"
d36087 2
a36088 1
rm -f conftest.err conftest.$ac_objext \
d36091 3
a36093 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d36102 6
d36109 5
a36113 3
# Pthread_self.
# The use of pthread_self to identify threads can be forced.
if test "$db_cv_pthread_self" = "yes"; then
d36115 1
a36115 1
for ac_func in pthread_self
d36118 3
a36120 3
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d36146 3
a36148 1
/* Override any gcc2 internal prototype to avoid an error.  */
a36150 1
{
a36151 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d36156 1
a36156 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a36157 5
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
d36163 1
a36163 1
return f != $ac_func;
d36169 7
a36175 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d36182 7
a36188 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36193 6
a36198 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36207 1
a36207 1
eval "$as_ac_var=no"
d36209 2
a36210 1
rm -f conftest.err conftest.$ac_objext \
d36213 3
a36215 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d36224 80
d36319 3
a36321 3
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d36347 3
a36349 1
/* Override any gcc2 internal prototype to avoid an error.  */
a36351 1
{
a36352 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d36357 1
a36357 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a36358 5
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
d36364 1
a36364 1
return f != $ac_func;
d36370 7
a36376 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d36383 7
a36389 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36394 6
a36399 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36408 1
a36408 1
eval "$as_ac_var=no"
d36410 2
a36411 1
rm -f conftest.err conftest.$ac_objext \
d36414 3
a36416 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d36428 2
a36429 2
echo "$as_me:$LINENO: checking for fcntl/F_SETFD" >&5
echo $ECHO_N "checking for fcntl/F_SETFD... $ECHO_C" >&6
d36454 7
a36460 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d36467 7
a36473 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36478 6
a36483 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36492 1
a36492 1
db_cv_fcntl_f_setfd=no
d36494 2
a36495 1
rm -f conftest.err conftest.$ac_objext \
d36498 2
a36499 2
echo "$as_me:$LINENO: result: $db_cv_fcntl_f_setfd" >&5
echo "${ECHO_T}$db_cv_fcntl_f_setfd" >&6
d36511 1
a36511 4
aux*)	case $LIBOBJS in
    "getopt.$ac_objext"   | \
  *" getopt.$ac_objext"   | \
    "getopt.$ac_objext "* | \
d36513 2
a36514 1
  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
d36523 2
a36524 2
	echo "$as_me:$LINENO: checking for open/O_DIRECT" >&5
echo $ECHO_N "checking for open/O_DIRECT... $ECHO_C" >&6
d36549 7
a36555 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d36562 7
a36568 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36573 6
a36578 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36587 1
a36587 1
db_cv_open_o_direct=no
d36589 2
a36590 1
rm -f conftest.err conftest.$ac_objext \
d36593 2
a36594 2
echo "$as_me:$LINENO: result: $db_cv_open_o_direct" >&5
echo "${ECHO_T}$db_cv_open_o_direct" >&6
d36607 1
a36607 1
# Check whether --enable-largefile or --disable-largefile was given.
d36609 2
a36610 1
  enableval="$enable_largefile"
a36611 1
fi;
d36614 2
a36615 2
  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
d36623 2
a36624 2
     	 # IRIX 6.2 and later do not support large files by default,
     	 # so use the C compiler's -n32 option if that helps.
d36648 8
a36655 3
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d36662 7
a36668 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36673 6
a36678 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36687 1
d36689 11
a36699 5
rm -f conftest.err conftest.$ac_objext
     	 CC="$CC -n32"
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d36706 7
a36712 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36717 6
a36722 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36731 1
d36733 2
a36734 1
rm -f conftest.err conftest.$ac_objext
d36741 2
a36742 2
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
d36747 2
a36748 2
  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
d36778 7
a36784 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d36791 7
a36797 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36802 6
a36807 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36816 1
d36818 2
a36819 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d36845 7
a36851 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d36858 7
a36864 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36869 6
a36874 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36883 1
d36885 2
a36886 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d36890 2
a36891 2
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
d36900 2
a36901 2
  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
d36931 7
a36937 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d36944 7
a36950 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36955 6
a36960 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d36969 1
d36971 2
a36972 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d36998 7
a37004 2
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d37011 7
a37017 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d37022 6
a37027 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d37036 1
d37038 2
a37039 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d37043 2
a37044 2
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
d37075 1
a37075 111
for ac_func in mmap munmap
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  mmap_ok=no
fi
done
;;
ultrix*)
	{ echo "$as_me:$LINENO: WARNING: mmap(2) interface ignored on $host_os-$host_vendor." >&5
echo "$as_me: WARNING: mmap(2) interface ignored on $host_os-$host_vendor." >&2;};;
*)
	mmap_ok=yes


for ac_func in mlock munlock
d37078 3
a37080 3
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d37106 3
a37108 1
/* Override any gcc2 internal prototype to avoid an error.  */
a37110 1
{
a37111 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d37116 1
a37116 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a37117 5
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
d37123 1
a37123 1
return f != $ac_func;
d37129 7
a37135 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d37142 7
a37148 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d37153 6
a37158 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d37167 1
a37167 1
eval "$as_ac_var=no"
d37169 2
a37170 1
rm -f conftest.err conftest.$ac_objext \
d37173 3
a37175 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d37181 2
d37185 6
d37193 1
a37193 2

for ac_func in mmap munmap
d37196 3
a37198 3
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d37224 3
a37226 1
/* Override any gcc2 internal prototype to avoid an error.  */
a37228 1
{
a37229 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d37234 1
a37234 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a37235 5
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
d37241 1
a37241 1
return f != $ac_func;
d37247 7
a37253 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d37260 7
a37266 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d37271 6
a37276 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d37285 1
a37285 1
eval "$as_ac_var=no"
d37287 2
a37288 1
rm -f conftest.err conftest.$ac_objext \
d37291 3
a37293 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a37298 2
else
  mmap_ok=no
a37300 2
;;
esac
a37301 11
# Second, we look for shmget.
#
# SunOS has the shmget(2) interfaces, but there appears to be a missing
# #include <debug/debug.h> file, so we ignore them.
shmget_ok=no
case "$host_os" in
sunos*)
	{ echo "$as_me:$LINENO: WARNING: shmget(2) interface ignored on $host_os-$host_vendor." >&5
echo "$as_me: WARNING: shmget(2) interface ignored on $host_os-$host_vendor." >&2;};;
*)
	shmget_ok=yes
d37303 2
a37304 1
for ac_func in shmget
d37307 3
a37309 3
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d37335 3
a37337 1
/* Override any gcc2 internal prototype to avoid an error.  */
a37339 1
{
a37340 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d37345 1
a37345 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a37346 5
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
d37352 1
a37352 1
return f != $ac_func;
d37358 7
a37364 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d37371 7
a37377 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d37382 6
a37387 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d37396 1
a37396 1
eval "$as_ac_var=no"
d37398 2
a37399 1
rm -f conftest.err conftest.$ac_objext \
d37402 3
a37404 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d37411 1
a37411 1
  shmget_ok=no
d37417 11
a37427 5
# We require either mmap/munmap(2) or shmget(2).
if test "$mmap_ok" = "no" -a "$shmget_ok" = "no"; then
	{ echo "$as_me:$LINENO: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
echo "$as_me: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&2;}
fi
d37429 6
a37434 87
# Optional RPC client/server.
if test "$db_cv_rpc" = "yes"; then

	cat >>confdefs.h <<\_ACEOF
#define HAVE_RPC 1
_ACEOF




	# We use the target's rpcgen utility because it may be architecture
	# specific, for example, 32- or 64-bit specific.
	XDR_FILE=$srcdir/../rpc_server/db_server.x

	# Prefer the -C option to rpcgen which generates ANSI C-conformant
	# code.
	RPCGEN="rpcgen -C"
	echo "$as_me:$LINENO: checking \"$RPCGEN\" build of db_server.h" >&5
echo $ECHO_N "checking \"$RPCGEN\" build of db_server.h... $ECHO_C" >&6
	$RPCGEN -h $XDR_FILE > db_server.h 2>/dev/null
	if test $? -ne 0; then
		echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

		# Try rpcgen without the -C option.
		RPCGEN="rpcgen"
		echo "$as_me:$LINENO: checking \"$RPCGEN\" build of db_server.h" >&5
echo $ECHO_N "checking \"$RPCGEN\" build of db_server.h... $ECHO_C" >&6
		$RPCGEN -h $XDR_FILE > db_server.h 2>/dev/null
		if test $? -ne 0; then
			echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
			{ { echo "$as_me:$LINENO: error: Unable to build RPC support: $RPCGEN failed." >&5
echo "$as_me: error: Unable to build RPC support: $RPCGEN failed." >&2;}
   { (exit 1); exit 1; }; }
		fi
	fi

	# Some rpcgen programs generate a set of client stubs called something
	# like __db_env_create_4003 and functions on the server to handle the
	# request called something like __db_env_create_4003_svc.  Others
	# expect client and server stubs to both be called __db_env_create_4003.
	#
	# We have to generate code in whichever format rpcgen expects, and the
	# only reliable way to do that is to check what is in the db_server.h
	# file we just created.
	if grep "env_create_[0-9]*_svc" db_server.h >/dev/null 2>&1 ; then
		sed 's/__SVCSUFFIX__/_svc/' \
		    < $srcdir/../rpc_server/c/gen_db_server.c > gen_db_server.c
	else
		sed 's/__SVCSUFFIX__//' \
		    < $srcdir/../rpc_server/c/gen_db_server.c > gen_db_server.c
	fi

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

	$RPCGEN -l $XDR_FILE |
	sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \
	    -e '1,/^#include/s/^#include/#include "db_config.h"\
&/' > db_server_clnt.c

	$RPCGEN -s tcp $XDR_FILE |
	sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \
	    -e 's/^main *()/__dbsrv_main()/' \
	    -e 's/^main *(.*argc.*argv.*)/__dbsrv_main(int argc, char *argv)/' \
	    -e '/^db_rpc_serverprog/,/^}/{' \
	    -e 's/return;//' \
	    -e 's/^}/__dbsrv_timeout(0);}/' \
	    -e '}' \
	    -e '1,/^#include/s/^#include/#include "db_config.h"\
&/' > db_server_svc.c

	$RPCGEN -c $XDR_FILE |
	sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \
	    -e '1,/^#include/s/^#include/#include "db_config.h"\
&/' > db_server_xdr.c

	RPC_SERVER_H=db_server.h
	RPC_CLIENT_OBJS="\$(RPC_CLIENT_OBJS)"
	ADDITIONAL_PROGS="berkeley_db_svc $ADDITIONAL_PROGS"

	case "$host_os" in
	hpux*)
		echo "$as_me:$LINENO: checking for svc_run" >&5
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
if test "${ac_cv_func_svc_run+set}" = set; then
d37443 1
a37443 1
/* Define svc_run to an innocuous variant, in case <limits.h> declares svc_run.
d37445 1
a37445 1
#define svc_run innocuous_svc_run
d37448 1
a37448 1
    which can conflict with char svc_run (); below.
d37458 1
a37458 80
#undef svc_run

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char svc_run ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_svc_run) || defined (__stub___svc_run)
choke me
#else
char (*f) () = svc_run;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != svc_run;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_svc_run=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_svc_run=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_svc_run" >&5
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
if test $ac_cv_func_svc_run = yes; then
  :
else
  echo "$as_me:$LINENO: checking for svc_run in -lnsl" >&5
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d37460 3
a37462 1
/* Override any gcc2 internal prototype to avoid an error.  */
d37466 8
a37473 3
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char svc_run ();
d37477 1
a37477 1
svc_run ();
d37483 7
a37489 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d37496 7
a37502 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d37507 6
a37512 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d37516 1
a37516 1
  ac_cv_lib_nsl_svc_run=yes
d37521 1
a37521 1
ac_cv_lib_nsl_svc_run=no
d37523 2
a37524 1
rm -f conftest.err conftest.$ac_objext \
a37525 1
LIBS=$ac_check_lib_save_LIBS
d37527 10
a37536 5
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_svc_run" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
if test $ac_cv_lib_nsl_svc_run = yes; then
  LIBS="-lnsl $LIBS"; LIBTSO_LIBS="-lnsl $LIBTSO_LIBS";
		    LIBJSO_LIBS="-lnsl $LIBJSO_LIBS"
d37538 3
d37542 4
d37547 86
a37632 4
;;
	solaris*)
		echo "$as_me:$LINENO: checking for svc_run" >&5
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
d37659 3
a37661 1
/* Override any gcc2 internal prototype to avoid an error.  */
a37663 1
{
a37664 2
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
d37669 1
a37669 1
#if defined (__stub_svc_run) || defined (__stub___svc_run)
a37670 5
#else
char (*f) () = svc_run;
#endif
#ifdef __cplusplus
}
d37676 1
a37676 1
return f != svc_run;
d37682 7
a37688 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d37695 7
a37701 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d37706 6
a37711 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d37720 1
a37720 1
ac_cv_func_svc_run=no
d37722 2
a37723 1
rm -f conftest.err conftest.$ac_objext \
d37726 2
a37727 2
echo "$as_me:$LINENO: result: $ac_cv_func_svc_run" >&5
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
d37731 3
a37733 4

echo "$as_me:$LINENO: checking for svc_run in -lnsl" >&5
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
d37745 1
a37745 7
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char svc_run ();
d37749 1
a37749 1
svc_run ();
d37755 7
a37761 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d37768 7
a37774 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d37779 6
a37784 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d37788 1
a37788 1
  ac_cv_lib_nsl_svc_run=yes
d37793 1
a37793 1
ac_cv_lib_nsl_svc_run=no
d37795 2
a37796 1
rm -f conftest.err conftest.$ac_objext \
d37800 6
a37805 8
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_svc_run" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
if test $ac_cv_lib_nsl_svc_run = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBNSL 1
_ACEOF

  LIBS="-lnsl $LIBS"
a37808 3
fi
;;
	esac
d37862 2
a37863 2
	echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
d37866 2
a37867 2
		echo "$as_me:$LINENO: result: loading" >&5
echo "${ECHO_T}loading" >&6
d37870 2
a37871 2
		echo "$as_me:$LINENO: result: file not found" >&5
echo "${ECHO_T}file not found" >&6
d37917 2
a37918 2
	echo "$as_me:$LINENO: checking for 64-bit integral type support for sequences" >&5
echo $ECHO_N "checking for 64-bit integral type support for sequences... $ECHO_C" >&6
d37990 7
a37996 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
d38003 7
a38009 4
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d38014 6
a38019 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d38028 1
a38028 1
db_cv_build_sequence="no"
d38030 2
a38031 1
rm -f conftest.err conftest.$ac_objext \
d38059 7
a38065 2
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d38069 6
a38074 2
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d38087 1
a38087 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d38089 2
a38092 7
		cat >>confdefs.h <<\_ACEOF
#define HAVE_SEQUENCE 1
_ACEOF




d38106 2
a38107 2
	echo "$as_me:$LINENO: result: $db_cv_build_sequence" >&5
echo "${ECHO_T}$db_cv_build_sequence" >&6
d38169 4
d38241 1
d38285 1
a38285 1
          ac_config_files="$ac_config_files $CREATE_LIST"
d38305 1
a38305 1
# So, don't put newlines in cache variables' values.
d38308 16
a38323 1
{
d38325 2
a38326 2
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
d38332 1
a38332 1
      ;;
d38335 1
a38335 2
      sed -n \
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
d38337 3
a38339 2
    esac;
} |
d38341 1
d38343 1
a38343 1
     : clear
d38346 7
a38352 5
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if diff $cache_file confcache >/dev/null 2>&1; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
d38355 2
a38356 1
    echo "not updating unwritable cache $cache_file"
a38364 15
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@@srcdir@@:*/:/;
s/^\([^=]*=[	 ]*\):*/\1/;
s/:*$//;
s/^[^=]*=[	 ]*$//;
}'
fi

d38371 6
a38376 5
  ac_i=`echo "$ac_i" |
	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  # 2. Add them.
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
d38414 3
a38416 2
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
d38418 1
d38421 22
d38451 33
d38485 3
a38487 1
$as_unset ENV MAIL MAILPATH
d38501 1
a38501 1
    $as_unset $as_var
d38506 2
a38507 1
if expr a : '\(a\)' >/dev/null 2>&1; then
d38513 1
a38513 1
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
d38521 1
a38521 1
as_me=`$as_basename "$0" ||
d38524 1
a38524 2
	 X"$0" : 'X\(/\)$' \| \
	 .     : '\(.\)' 2>/dev/null ||
d38526 13
a38538 4
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  	  /^X\/\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d38540 2
a38541 21

# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi
a38543 16
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  # Find who we are.  Look in the path if we contain no path at all
  # relative or not.
  case $0 in
    *[\\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
a38544 23
       ;;
  esac
  # We did not find ourselves, most probably we were run as `sh COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for as_base in sh bash ksh sh5; do
	 case $as_dir in
	 /*)
	   if ("$as_dir/$as_base" -c '
a38546 1
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
d38548 1
a38548 12
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
	     CONFIG_SHELL=$as_dir/$as_base
	     export CONFIG_SHELL
	     exec "$CONFIG_SHELL" "$0" ${1+"$@@"}
	   fi;;
	 esac
       done
done
;;
  esac
d38552 5
a38556 4
  # line-number line before each line; the second 'sed' does the real
  # work.  The second script uses 'N' to pair each line-number line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special case at line end.
d38558 6
a38563 2
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  sed '=' <$as_myself |
d38565 4
d38570 2
a38571 3
      s,$,-,
      : loop
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
d38573 1
a38573 2
      s,-$,,
      s,^['$as_cr_digits']*\n,,
d38575 2
a38576 3
  chmod +x $as_me.lineno ||
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
d38581 2
a38582 2
  # original and so on.  Autoconf is especially sensible to this).
  . ./$as_me.lineno
d38588 15
a38602 5
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
d38605 2
a38606 1
if expr a : '\(a\)' >/dev/null 2>&1; then
d38613 6
d38621 6
a38626 4
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
a38627 3
  else
    as_ln_s='ln -s'
  fi
d38633 2
a38634 1
rm -f conf$$ conf$$.exe conf$$.file
d38643 13
a38655 1
as_executable_p="test -f"
a38663 9
# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH

d38666 1
a38666 1
# Open the log real soon, to keep \$[0] and so on meaningful, and to
d38668 4
a38671 12
# values after options handling.  Logging --version etc. is OK.
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
} >&5
cat >&5 <<_CSEOF

This file was extended by Berkeley DB $as_me 4.4.20, which was
generated by GNU Autoconf 2.59.  Invocation command line was
d38679 3
a38681 3
_CSEOF
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
echo >&5
d38684 1
d38686 2
a38687 3
if test -n "$ac_config_files"; then
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi
d38689 1
a38689 11
if test -n "$ac_config_headers"; then
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_links"; then
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_commands"; then
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi
a38691 1

d38715 1
a38716 1

d38719 3
a38721 3
Berkeley DB config.status 4.4.20
configured by $0, generated by GNU Autoconf 2.59,
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d38723 1
a38723 1
Copyright (C) 2003 Free Software Foundation, Inc.
d38726 4
a38729 2
srcdir=$srcdir
INSTALL="$INSTALL"
d38740 2
a38741 2
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
d38744 1
a38744 1
  -*)
a38748 4
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_option=$1
     ac_need_defaults=false;;
a38752 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
d38755 3
a38757 12
  --version | --vers* | -V )
    echo "$ac_cs_version"; exit 0 ;;
  --he | --h)
    # Conflict between --help and --header
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit 0 ;;
  --debug | --d* | -d )
d38767 7
d38779 2
a38780 4
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
d38783 2
a38784 1
  *) ac_config_targets="$ac_config_targets $1" ;;
d38800 4
a38803 2
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d38807 9
d38817 3
d38821 1
d38823 1
a38823 3


cat >>$CONFIG_STATUS <<\_ACEOF
d38826 4
a38829 4
  case "$ac_config_target" in
  # Handling of arguments.
  "$CREATE_LIST" ) CONFIG_FILES="$CONFIG_FILES $CREATE_LIST" ;;
  "db_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS db_config.h:config.hin" ;;
d38836 1
d38847 1
a38847 1
# simply because there is no reason to put it here, and in addition,
d38849 3
a38851 1
# Create a temporary directory, and hook for its removal unless debugging.
d38854 4
a38857 1
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
a38859 1

d38863 1
a38863 1
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
d38867 2
a38868 2
  tmp=./confstat$$-$RANDOM
  (umask 077 && mkdir $tmp)
d38875 112
d38989 31
d39021 3
d39025 74
a39098 3
#
# CONFIG_FILES section.
#
d39100 8
a39107 226
# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@@/@@@@/; s/@@,/@@@@/; s/,;t t\$/@@;t t/; /@@;t t\$/s/[\\\\&,]/\\\\&/g;
   s/@@@@/,@@/; s/@@@@/@@,/; s/@@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@@SHELL@@,$SHELL,;t t
s,@@PATH_SEPARATOR@@,$PATH_SEPARATOR,;t t
s,@@PACKAGE_NAME@@,$PACKAGE_NAME,;t t
s,@@PACKAGE_TARNAME@@,$PACKAGE_TARNAME,;t t
s,@@PACKAGE_VERSION@@,$PACKAGE_VERSION,;t t
s,@@PACKAGE_STRING@@,$PACKAGE_STRING,;t t
s,@@PACKAGE_BUGREPORT@@,$PACKAGE_BUGREPORT,;t t
s,@@exec_prefix@@,$exec_prefix,;t t
s,@@prefix@@,$prefix,;t t
s,@@program_transform_name@@,$program_transform_name,;t t
s,@@bindir@@,$bindir,;t t
s,@@sbindir@@,$sbindir,;t t
s,@@libexecdir@@,$libexecdir,;t t
s,@@datadir@@,$datadir,;t t
s,@@sysconfdir@@,$sysconfdir,;t t
s,@@sharedstatedir@@,$sharedstatedir,;t t
s,@@localstatedir@@,$localstatedir,;t t
s,@@libdir@@,$libdir,;t t
s,@@includedir@@,$includedir,;t t
s,@@oldincludedir@@,$oldincludedir,;t t
s,@@infodir@@,$infodir,;t t
s,@@mandir@@,$mandir,;t t
s,@@build_alias@@,$build_alias,;t t
s,@@host_alias@@,$host_alias,;t t
s,@@target_alias@@,$target_alias,;t t
s,@@DEFS@@,$DEFS,;t t
s,@@ECHO_C@@,$ECHO_C,;t t
s,@@ECHO_N@@,$ECHO_N,;t t
s,@@ECHO_T@@,$ECHO_T,;t t
s,@@LIBS@@,$LIBS,;t t
s,@@build@@,$build,;t t
s,@@build_cpu@@,$build_cpu,;t t
s,@@build_vendor@@,$build_vendor,;t t
s,@@build_os@@,$build_os,;t t
s,@@host@@,$host,;t t
s,@@host_cpu@@,$host_cpu,;t t
s,@@host_vendor@@,$host_vendor,;t t
s,@@host_os@@,$host_os,;t t
s,@@ADDITIONAL_INCS@@,$ADDITIONAL_INCS,;t t
s,@@ADDITIONAL_LANG@@,$ADDITIONAL_LANG,;t t
s,@@ADDITIONAL_OBJS@@,$ADDITIONAL_OBJS,;t t
s,@@ADDITIONAL_PROGS@@,$ADDITIONAL_PROGS,;t t
s,@@BUILD_TARGET@@,$BUILD_TARGET,;t t
s,@@CFLAGS@@,$CFLAGS,;t t
s,@@CONFIGURATION_ARGS@@,$CONFIGURATION_ARGS,;t t
s,@@CONFIGURATION_PATH@@,$CONFIGURATION_PATH,;t t
s,@@CPPFLAGS@@,$CPPFLAGS,;t t
s,@@CRYPTO_OBJS@@,$CRYPTO_OBJS,;t t
s,@@CXX@@,$CXX,;t t
s,@@CXXFLAGS@@,$CXXFLAGS,;t t
s,@@DB_PROTO1@@,$DB_PROTO1,;t t
s,@@DB_PROTO2@@,$DB_PROTO2,;t t
s,@@DEFAULT_LIB@@,$DEFAULT_LIB,;t t
s,@@DEFAULT_LIB_CXX@@,$DEFAULT_LIB_CXX,;t t
s,@@INSTALLER@@,$INSTALLER,;t t
s,@@INSTALL_LIBS@@,$INSTALL_LIBS,;t t
s,@@INSTALL_TARGET@@,$INSTALL_TARGET,;t t
s,@@JAR@@,$JAR,;t t
s,@@JAVACFLAGS@@,$JAVACFLAGS,;t t
s,@@LDFLAGS@@,$LDFLAGS,;t t
s,@@LIBCSO_LIBS@@,$LIBCSO_LIBS,;t t
s,@@LIBJSO_LIBS@@,$LIBJSO_LIBS,;t t
s,@@LIBSO_LIBS@@,$LIBSO_LIBS,;t t
s,@@LIBTOOL@@,$LIBTOOL,;t t
s,@@LIBTSO_LIBS@@,$LIBTSO_LIBS,;t t
s,@@LIBTSO_MODSUFFIX@@,$LIBTSO_MODSUFFIX,;t t
s,@@LIBTSO_MODULE@@,$LIBTSO_MODULE,;t t
s,@@LIBXSO_LIBS@@,$LIBXSO_LIBS,;t t
s,@@MAKEFILE_CC@@,$MAKEFILE_CC,;t t
s,@@MAKEFILE_CCLINK@@,$MAKEFILE_CCLINK,;t t
s,@@MAKEFILE_CXX@@,$MAKEFILE_CXX,;t t
s,@@MAKEFILE_CXXLINK@@,$MAKEFILE_CXXLINK,;t t
s,@@MAKEFILE_SOLINK@@,$MAKEFILE_SOLINK,;t t
s,@@MAKEFILE_XSOLINK@@,$MAKEFILE_XSOLINK,;t t
s,@@OSDIR@@,$OSDIR,;t t
s,@@POSTLINK@@,$POSTLINK,;t t
s,@@REPLACEMENT_OBJS@@,$REPLACEMENT_OBJS,;t t
s,@@RPC_CLIENT_OBJS@@,$RPC_CLIENT_OBJS,;t t
s,@@RPC_SERVER_H@@,$RPC_SERVER_H,;t t
s,@@SOFLAGS@@,$SOFLAGS,;t t
s,@@TEST_LIBS@@,$TEST_LIBS,;t t
s,@@db_cv_build_type@@,$db_cv_build_type,;t t
s,@@db_int_def@@,$db_int_def,;t t
s,@@o@@,$o,;t t
s,@@DB_VERSION_MAJOR@@,$DB_VERSION_MAJOR,;t t
s,@@DB_VERSION_MINOR@@,$DB_VERSION_MINOR,;t t
s,@@DB_VERSION_PATCH@@,$DB_VERSION_PATCH,;t t
s,@@DB_VERSION_STRING@@,$DB_VERSION_STRING,;t t
s,@@DB_VERSION_UNIQUE_NAME@@,$DB_VERSION_UNIQUE_NAME,;t t
s,@@db_cv_path_ar@@,$db_cv_path_ar,;t t
s,@@ac_ct_db_cv_path_ar@@,$ac_ct_db_cv_path_ar,;t t
s,@@db_cv_path_chmod@@,$db_cv_path_chmod,;t t
s,@@ac_ct_db_cv_path_chmod@@,$ac_ct_db_cv_path_chmod,;t t
s,@@db_cv_path_cp@@,$db_cv_path_cp,;t t
s,@@ac_ct_db_cv_path_cp@@,$ac_ct_db_cv_path_cp,;t t
s,@@db_cv_path_ln@@,$db_cv_path_ln,;t t
s,@@ac_ct_db_cv_path_ln@@,$ac_ct_db_cv_path_ln,;t t
s,@@db_cv_path_mkdir@@,$db_cv_path_mkdir,;t t
s,@@ac_ct_db_cv_path_mkdir@@,$ac_ct_db_cv_path_mkdir,;t t
s,@@path_ranlib@@,$path_ranlib,;t t
s,@@ac_ct_path_ranlib@@,$ac_ct_path_ranlib,;t t
s,@@db_cv_path_ranlib@@,$db_cv_path_ranlib,;t t
s,@@db_cv_path_rm@@,$db_cv_path_rm,;t t
s,@@ac_ct_db_cv_path_rm@@,$ac_ct_db_cv_path_rm,;t t
s,@@db_cv_path_rpcgen@@,$db_cv_path_rpcgen,;t t
s,@@ac_ct_db_cv_path_rpcgen@@,$ac_ct_db_cv_path_rpcgen,;t t
s,@@path_sh@@,$path_sh,;t t
s,@@ac_ct_path_sh@@,$ac_ct_path_sh,;t t
s,@@db_cv_path_sh@@,$db_cv_path_sh,;t t
s,@@db_cv_path_true@@,$db_cv_path_true,;t t
s,@@ac_ct_db_cv_path_true@@,$ac_ct_db_cv_path_true,;t t
s,@@path_strip@@,$path_strip,;t t
s,@@ac_ct_path_strip@@,$ac_ct_path_strip,;t t
s,@@db_cv_path_strip@@,$db_cv_path_strip,;t t
s,@@db_cv_path_kill@@,$db_cv_path_kill,;t t
s,@@ac_ct_db_cv_path_kill@@,$ac_ct_db_cv_path_kill,;t t
s,@@INSTALL_PROGRAM@@,$INSTALL_PROGRAM,;t t
s,@@INSTALL_SCRIPT@@,$INSTALL_SCRIPT,;t t
s,@@INSTALL_DATA@@,$INSTALL_DATA,;t t
s,@@CC@@,$CC,;t t
s,@@ac_ct_CC@@,$ac_ct_CC,;t t
s,@@EXEEXT@@,$EXEEXT,;t t
s,@@OBJEXT@@,$OBJEXT,;t t
s,@@DB_CONST@@,$DB_CONST,;t t
s,@@CCC@@,$CCC,;t t
s,@@ac_ct_CCC@@,$ac_ct_CCC,;t t
s,@@ac_ct_CXX@@,$ac_ct_CXX,;t t
s,@@CXXCPP@@,$CXXCPP,;t t
s,@@cxx_have_stdheaders@@,$cxx_have_stdheaders,;t t
s,@@EGREP@@,$EGREP,;t t
s,@@LN_S@@,$LN_S,;t t
s,@@ECHO@@,$ECHO,;t t
s,@@AR@@,$AR,;t t
s,@@ac_ct_AR@@,$ac_ct_AR,;t t
s,@@RANLIB@@,$RANLIB,;t t
s,@@ac_ct_RANLIB@@,$ac_ct_RANLIB,;t t
s,@@STRIP@@,$STRIP,;t t
s,@@ac_ct_STRIP@@,$ac_ct_STRIP,;t t
s,@@CPP@@,$CPP,;t t
s,@@F77@@,$F77,;t t
s,@@FFLAGS@@,$FFLAGS,;t t
s,@@ac_ct_F77@@,$ac_ct_F77,;t t
s,@@SOSUFFIX@@,$SOSUFFIX,;t t
s,@@MODSUFFIX@@,$MODSUFFIX,;t t
s,@@JMODSUFFIX@@,$JMODSUFFIX,;t t
s,@@JAVAC@@,$JAVAC,;t t
s,@@JAVA@@,$JAVA,;t t
s,@@uudecode@@,$uudecode,;t t
s,@@_ACJNI_JAVAC@@,$_ACJNI_JAVAC,;t t
s,@@inttypes_h_decl@@,$inttypes_h_decl,;t t
s,@@stdint_h_decl@@,$stdint_h_decl,;t t
s,@@stddef_h_decl@@,$stddef_h_decl,;t t
s,@@unistd_h_decl@@,$unistd_h_decl,;t t
s,@@u_char_decl@@,$u_char_decl,;t t
s,@@u_short_decl@@,$u_short_decl,;t t
s,@@u_int_decl@@,$u_int_decl,;t t
s,@@u_long_decl@@,$u_long_decl,;t t
s,@@u_int8_decl@@,$u_int8_decl,;t t
s,@@u_int16_decl@@,$u_int16_decl,;t t
s,@@int16_decl@@,$int16_decl,;t t
s,@@u_int32_decl@@,$u_int32_decl,;t t
s,@@int32_decl@@,$int32_decl,;t t
s,@@u_int64_decl@@,$u_int64_decl,;t t
s,@@int64_decl@@,$int64_decl,;t t
s,@@ssize_t_decl@@,$ssize_t_decl,;t t
s,@@pid_t_decl@@,$pid_t_decl,;t t
s,@@uintmax_t_decl@@,$uintmax_t_decl,;t t
s,@@uintptr_t_decl@@,$uintptr_t_decl,;t t
s,@@thread_h_decl@@,$thread_h_decl,;t t
s,@@db_threadid_t_decl@@,$db_threadid_t_decl,;t t
s,@@LIBOBJS@@,$LIBOBJS,;t t
s,@@TCL_BIN_DIR@@,$TCL_BIN_DIR,;t t
s,@@TCL_INCLUDE_SPEC@@,$TCL_INCLUDE_SPEC,;t t
s,@@TCL_LIB_FILE@@,$TCL_LIB_FILE,;t t
s,@@TCL_SRC_DIR@@,$TCL_SRC_DIR,;t t
s,@@TCL_TCLSH@@,$TCL_TCLSH,;t t
s,@@INT64_FMT@@,$INT64_FMT,;t t
s,@@UINT64_FMT@@,$UINT64_FMT,;t t
s,@@db_seq_decl@@,$db_seq_decl,;t t
s,@@LTLIBOBJS@@,$LTLIBOBJS,;t t
CEOF

_ACEOF

  cat >>$CONFIG_STATUS <<\_ACEOF
  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # Line after last line for current file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
    else
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
    fi
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
d39109 7
a39115 1
fi # test -n "$CONFIG_FILES"
d39117 18
d39136 17
d39154 62
a39215 10
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
	cat >$tmp/stdin
	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
d39218 1
a39218 2
  # Compute @@srcdir@@, @@top_srcdir@@, and @@INSTALL@@ for subdirectories.
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
d39222 1
a39222 2
	 X"$ac_file" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
d39224 22
a39245 9
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  { if $as_mkdir_p; then
    mkdir -p "$ac_dir"
  else
    as_dir="$ac_dir"
d39247 7
a39253 3
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
d39257 1
a39257 2
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
d39259 18
a39276 5
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d39278 3
a39280 3
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
a39281 1

d39284 3
a39286 1
if test "$ac_dir" != .; then
d39288 11
a39298 5
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi
d39301 1
a39301 1
  .)  # No --srcdir option.  We are building in place.
d39303 3
a39305 6
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
d39307 6
a39312 4
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
d39314 1
a39315 38
# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
case `pwd` in
.) ac_abs_builddir="$ac_dir";;
*)
  case "$ac_dir" in
  .) ac_abs_builddir=`pwd`;;
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
  case ${ac_top_builddir}. in
  .) ac_abs_top_builddir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
  case $ac_srcdir in
  .) ac_abs_srcdir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
  case $ac_top_srcdir in
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  esac;;
esac
d39317 5
d39325 1
a39325 1
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d39327 1
d39329 29
a39357 43
  if test x"$ac_file" != x-; then
    { echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    rm -f "$ac_file"
  fi
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated by config.status.  */
  if test x"$ac_file" = x-; then
    configure_input=
  else
    configure_input="$ac_file.  "
  fi
  configure_input=$configure_input"Generated from `echo $ac_file_in |
				     sed 's,.*/,,'` by configure."

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
	 # Absolute (can't be DOS-style, as IFS=:)
	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
	 echo "$f";;
      *) # Relative
	 if test -f "$f"; then
	   # Build tree
	   echo "$f"
	 elif test -f "$srcdir/$f"; then
	   # Source tree
	   echo "$srcdir/$f"
	 else
	   # /dev/null tree
	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
	 fi;;
      esac
    done` || { (exit 1); exit 1; }
d39359 4
d39370 20
a39389 18
s,@@configure_input@@,$configure_input,;t t
s,@@srcdir@@,$ac_srcdir,;t t
s,@@abs_srcdir@@,$ac_abs_srcdir,;t t
s,@@top_srcdir@@,$ac_top_srcdir,;t t
s,@@abs_top_srcdir@@,$ac_abs_top_srcdir,;t t
s,@@builddir@@,$ac_builddir,;t t
s,@@abs_builddir@@,$ac_abs_builddir,;t t
s,@@top_builddir@@,$ac_top_builddir,;t t
s,@@abs_top_builddir@@,$ac_abs_top_builddir,;t t
s,@@INSTALL@@,$ac_INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi
d39391 10
a39400 1
done
a39401 5
cat >>$CONFIG_STATUS <<\_ACEOF

#
# CONFIG_HEADER section.
#
d39403 17
a39419 6
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
ac_dB='[	 ].*$,\1#\2'
d39421 1
a39421 21
ac_dD=',;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
ac_uB='$,\1#\2define\3'
ac_uC=' '
ac_uD=',;t'

for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
	cat >$tmp/stdin
	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
d39423 12
a39434 63
  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
	 # Absolute (can't be DOS-style, as IFS=:)
	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
	 # Do quote $f, to prevent DOS paths from being IFS'd.
	 echo "$f";;
      *) # Relative
	 if test -f "$f"; then
	   # Build tree
	   echo "$f"
	 elif test -f "$srcdir/$f"; then
	   # Source tree
	   echo "$srcdir/$f"
	 else
	   # /dev/null tree
	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
	 fi;;
      esac
    done` || { (exit 1); exit 1; }
  # Remove the trailing spaces.
  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in

_ACEOF

# Transform confdefs.h into two sed scripts, `conftest.defines' and
# `conftest.undefs', that substitutes the proper values into
# config.h.in to produce config.h.  The first handles `#define'
# templates, and the second `#undef' templates.
# And first: Protect against being on the right side of a sed subst in
# config.status.  Protect against being in an unquoted here document
# in config.status.
rm -f conftest.defines conftest.undefs
# Using a here document instead of a string reduces the quoting nightmare.
# Putting comments in sed scripts is not portable.
#
# `end' is used to avoid that the second main sed command (meant for
# 0-ary CPP macros) applies to n-ary macro definitions.
# See the Autoconf documentation for `clear'.
cat >confdef2sed.sed <<\_ACEOF
s/[\\&,]/\\&/g
s,[\\$`],\\&,g
t clear
: clear
s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
t end
s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
: end
_ACEOF
# If some macros were called several times there might be several times
# the same #defines, which is useless.  Nevertheless, we may not want to
# sort them, since we want the *last* AC-DEFINE to be honored.
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
rm -f confdef2sed.sed
d39436 2
a39437 1
# This sed command replaces #undef with comments.  This is necessary, for
d39440 25
a39464 2
cat >>conftest.undefs <<\_ACEOF
s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
d39466 1
a39466 18

# Break up conftest.defines because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
echo '  :' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.defines >/dev/null
do
  # Write a limited-size here document to $tmp/defines.sed.
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#define' lines.
  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
d39468 4
a39471 5
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
d39475 1
a39475 28
rm -f conftest.defines
echo '  fi # grep' >>$CONFIG_STATUS
echo >>$CONFIG_STATUS

# Break up conftest.undefs because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.undefs >/dev/null
do
  # Write a limited-size here document to $tmp/undefs.sed.
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#undef'
  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  echo 'CEOF
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  rm -f conftest.undefs
  mv conftest.tail conftest.undefs
done
rm -f conftest.undefs
d39477 1
a39478 10
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated by config.status.  */
  if test x"$ac_file" = x-; then
    echo "/* Generated by configure.  */" >$tmp/config.h
  else
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
d39480 3
a39482 1
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
a39485 37
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
      { if $as_mkdir_p; then
    mkdir -p "$ac_dir"
  else
    as_dir="$ac_dir"
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }; }

d39487 1
a39487 1
      mv $tmp/config.h $ac_file
d39490 2
a39491 2
    cat $tmp/config.h
    rm -f $tmp/config.h
d39493 7
a39499 2
done
_ACEOF
a39500 1
cat >>$CONFIG_STATUS <<\_ACEOF
@


1.14
log
@Upgrade to db-4.4.16.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.59 for Berkeley DB 4.4.16.
d425 3
a427 3
PACKAGE_TARNAME='db-4.4.16'
PACKAGE_VERSION='4.4.16'
PACKAGE_STRING='Berkeley DB 4.4.16'
d958 1
a958 1
\`configure' configures Berkeley DB 4.4.16 to adapt to many kinds of systems.
d1024 1
a1024 1
     short | recursive ) echo "Configuration of Berkeley DB 4.4.16:";;
d1192 1
a1192 1
Berkeley DB configure 4.4.16
d1206 1
a1206 1
It was created by Berkeley DB $as_me 4.4.16, which was
d1712 1
a1712 1
DB_VERSION_PATCH="16"
d1714 1
a1714 1
DB_VERSION_STRING='"Sleepycat Software: Berkeley DB 4.4.16: (November 12, 2005)"'
d35942 1
a35942 1
This file was extended by Berkeley DB $as_me 4.4.16, which was
d36002 1
a36002 1
Berkeley DB config.status 4.4.16
@


1.13
log
@Update to db-4.4.11.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.59 for Berkeley DB 4.4.11.
d425 3
a427 3
PACKAGE_TARNAME='db-4.4.11'
PACKAGE_VERSION='4.4.11'
PACKAGE_STRING='Berkeley DB 4.4.11'
d469 1
a469 1
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os ADDITIONAL_INCS ADDITIONAL_LANG ADDITIONAL_OBJS ADDITIONAL_PROGS BUILD_TARGET CFLAGS CONFIGURATION_ARGS CONFIGURATION_PATH CPPFLAGS CRYPTO_OBJS CXX CXXFLAGS DB_PROTO1 DB_PROTO2 DEFAULT_LIB DEFAULT_LIB_CXX INSTALLER INSTALL_LIBS INSTALL_TARGET JAR JAVACFLAGS LDFLAGS LIBCSO_LIBS LIBJSO_LIBS LIBSO_LIBS LIBTOOL LIBTSO_LIBS LIBTSO_MODSUFFIX LIBTSO_MODULE LIBXSO_LIBS MAKEFILE_CC MAKEFILE_CCLINK MAKEFILE_CXX MAKEFILE_CXXLINK MAKEFILE_SOLINK MAKEFILE_XSOLINK OSDIR POSTLINK REPLACEMENT_OBJS RPC_CLIENT_OBJS RPC_SERVER_H SOFLAGS TEST_LIBS db_cv_build_type db_int_def o DB_VERSION_MAJOR DB_VERSION_MINOR DB_VERSION_PATCH DB_VERSION_STRING DB_VERSION_UNIQUE_NAME db_cv_path_ar ac_ct_db_cv_path_ar db_cv_path_chmod ac_ct_db_cv_path_chmod db_cv_path_cp ac_ct_db_cv_path_cp db_cv_path_ln ac_ct_db_cv_path_ln db_cv_path_mkdir ac_ct_db_cv_path_mkdir path_ranlib ac_ct_path_ranlib db_cv_path_ranlib db_cv_path_rm ac_ct_db_cv_path_rm db_cv_path_rpcgen ac_ct_db_cv_path_rpcgen path_sh ac_ct_path_sh db_cv_path_sh db_cv_path_true ac_ct_db_cv_path_true path_strip ac_ct_path_strip db_cv_path_strip db_cv_path_kill ac_ct_db_cv_path_kill INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC ac_ct_CC EXEEXT OBJEXT DB_CONST CCC ac_ct_CCC ac_ct_CXX CXXCPP cxx_have_stdheaders EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP F77 FFLAGS ac_ct_F77 SOSUFFIX MODSUFFIX JMODSUFFIX JAVAC JAVA uudecode _ACJNI_JAVAC inttypes_h_decl stdint_h_decl stddef_h_decl unistd_h_decl u_char_decl u_short_decl u_int_decl u_long_decl u_int8_decl u_int16_decl int16_decl u_int32_decl int32_decl u_int64_decl int64_decl ssize_t_decl pid_t_decl uintmax_t_decl uintptr_t_decl LIBOBJS TCL_BIN_DIR TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_SRC_DIR TCL_TCLSH db_seq_decl LTLIBOBJS'
d958 1
a958 1
\`configure' configures Berkeley DB 4.4.11 to adapt to many kinds of systems.
d1024 1
a1024 1
     short | recursive ) echo "Configuration of Berkeley DB 4.4.11:";;
d1192 1
a1192 1
Berkeley DB configure 4.4.11
d1206 1
a1206 1
It was created by Berkeley DB $as_me 4.4.11, which was
d1712 1
a1712 1
DB_VERSION_PATCH="11"
d1714 1
a1714 1
DB_VERSION_STRING='"Sleepycat Software: Berkeley DB 4.4.11: (October 25, 2005)"'
a23929 134
# Check for long long and unsigned long long, we only support sequences
# if those types are available.
echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

int
main ()
{
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_long_long=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_long_long=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi
echo "$as_me:$LINENO: checking for unsigned long long" >&5
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

int
main ()
{
if ((unsigned long long *) 0)
  return 0;
if (sizeof (unsigned long long))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_unsigned_long_long=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_unsigned_long_long=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
if test $ac_cv_type_unsigned_long_long = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_UNSIGNED_LONG_LONG 1
_ACEOF


fi


d32765 4
d32827 2
d32836 2
d32853 2
d32865 2
d32931 2
a32952 1

d32954 2
d32965 2
d33043 68
d35234 1
d35246 19
a35264 3
	# Have to be able to cast variables to the "unsigned long long" and
	# "long long" types, that's our cast for the printf "%ll[du]" format.
	if test "$ac_cv_type_long_long" = "no"; then
a35266 2
	if test "$ac_cv_type_unsigned_long_long" = "no"; then
		db_cv_build_sequence="no"
d35285 2
a35286 2
			long long l;
			unsigned long long u;
d35291 1
a35291 1
			(void)snprintf(buf, sizeof(buf), "%lld", l);
d35295 1
a35295 1
			(void)snprintf(buf, sizeof(buf), "%llu", u);
d35344 2
a35345 2
			long long l;
			unsigned long long u;
d35350 1
a35350 1
			(void)snprintf(buf, sizeof(buf), "%lld", l);
d35354 1
a35354 1
			(void)snprintf(buf, sizeof(buf), "%llu", u);
d35393 7
d35942 1
a35942 1
This file was extended by Berkeley DB $as_me 4.4.11, which was
d36002 1
a36002 1
Berkeley DB config.status 4.4.11
d36329 2
d36337 2
@


1.12
log
@Reapply the sunrpc+uniquename patch.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.59 for Berkeley DB 4.4.4.
d290 2
a291 2
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
       echo_test_string="`eval $cmd`" &&
d425 3
a427 3
PACKAGE_TARNAME='db-4.4.4'
PACKAGE_VERSION='4.4.4'
PACKAGE_STRING='Berkeley DB 4.4.4'
d469 1
a469 1
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os ADDITIONAL_INCS ADDITIONAL_LANG ADDITIONAL_OBJS ADDITIONAL_PROGS BUILD_TARGET CFLAGS CONFIGURATION_ARGS CONFIGURATION_PATH CPPFLAGS CRYPTO_OBJS CXX CXXFLAGS DB_PROTO1 DB_PROTO2 DEFAULT_LIB DEFAULT_LIB_CXX INSTALLER INSTALL_LIBS INSTALL_TARGET JAR JAVACFLAGS LDFLAGS LIBCSO_LIBS LIBJSO_LIBS LIBSO_LIBS LIBTOOL LIBTSO_LIBS LIBTSO_MODSUFFIX LIBTSO_MODULE LIBXSO_LIBS MAKEFILE_CC MAKEFILE_CCLINK MAKEFILE_CXX MAKEFILE_CXXLINK MAKEFILE_SOLINK MAKEFILE_XSOLINK OSDIR POSTLINK REPLACEMENT_OBJS RPC_CLIENT_OBJS RPC_SERVER_H SOFLAGS TEST_LIBS db_int_def o DB_VERSION_MAJOR DB_VERSION_MINOR DB_VERSION_PATCH DB_VERSION_STRING DB_VERSION_UNIQUE_NAME db_cv_path_ar ac_ct_db_cv_path_ar db_cv_path_chmod ac_ct_db_cv_path_chmod db_cv_path_cp ac_ct_db_cv_path_cp db_cv_path_ln ac_ct_db_cv_path_ln db_cv_path_mkdir ac_ct_db_cv_path_mkdir path_ranlib ac_ct_path_ranlib db_cv_path_ranlib db_cv_path_rm ac_ct_db_cv_path_rm db_cv_path_rpcgen ac_ct_db_cv_path_rpcgen path_sh ac_ct_path_sh db_cv_path_sh path_strip ac_ct_path_strip db_cv_path_strip db_cv_path_kill ac_ct_db_cv_path_kill INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA db_cv_build_type CC ac_ct_CC EXEEXT OBJEXT DB_CONST CCC ac_ct_CCC ac_ct_CXX CXXCPP cxx_have_stdheaders EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP F77 FFLAGS ac_ct_F77 SOSUFFIX MODSUFFIX JMODSUFFIX JAVAC JAVA uudecode _ACJNI_JAVAC inttypes_h_decl stdint_h_decl stddef_h_decl u_char_decl u_short_decl u_int_decl u_long_decl u_int8_decl u_int16_decl int16_decl u_int32_decl int32_decl u_int64_decl int64_decl ssize_t_decl uintmax_t_decl uintptr_t_decl LIBOBJS TCL_BIN_DIR TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_SRC_DIR TCL_TCLSH db_seq_decl LTLIBOBJS'
d958 1
a958 1
\`configure' configures Berkeley DB 4.4.4 to adapt to many kinds of systems.
d1024 1
a1024 1
     short | recursive ) echo "Configuration of Berkeley DB 4.4.4:";;
d1049 1
d1070 1
a1070 1
                          Selection of non-standard mutex alignment.
d1192 1
a1192 1
Berkeley DB configure 4.4.4
d1206 1
a1206 1
It was created by Berkeley DB $as_me 4.4.4, which was
d1702 1
d1712 1
a1712 1
DB_VERSION_PATCH="4"
d1714 1
a1714 1
DB_VERSION_STRING='"Sleepycat Software: Berkeley DB 4.4.4: (February  9, 2005)"'
d1980 12
d2093 2
a2094 4


echo "$as_me:$LINENO: checking if --with-mutexalign=ALIGNMENT option specified" >&5
echo $ECHO_N "checking if --with-mutexalign=ALIGNMENT option specified... $ECHO_C" >&6
d2099 3
a2101 3
  with_mutexalign="$withval"
else
  with_mutexalign="no"
a2102 13
if test "$with_mutexalign" = "yes"; then
	{ { echo "$as_me:$LINENO: error: --with-mutexalign requires a mutex alignment argument" >&5
echo "$as_me: error: --with-mutexalign requires a mutex alignment argument" >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$with_mutexalign" != "no"; then
	cat >>confdefs.h <<_ACEOF
#define MUTEX_ALIGN $with_mutexalign
_ACEOF

fi
echo "$as_me:$LINENO: result: $with_mutexalign" >&5
echo "${ECHO_T}$with_mutexalign" >&6
d2157 5
a2161 5
#	if test "$db_cv_rpc" = "yes"; then
#		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-rpc" >&5
#echo "$as_me: error: --with-uniquename is not compatible with --enable-rpc" >&2;}
#   { (exit 1); exit 1; }; }
#	fi
d3075 86
d3473 1
a3473 1
optimize_def="-O"
d3476 1
a3476 1
	optimize_def="-O2"
d3490 1
a3490 1
irix*)	optimize_def="-O2"
d3505 5
a3509 11
# Set CFLAGS/CXXFLAGS.  We MUST set the flags before we call autoconf
# compiler configuration macros, because if we don't, they set CFLAGS
# to no optimization and -g, which isn't what we want.
CFLAGS=${CFLAGS-$optimize_def}
CXXFLAGS=${CXXFLAGS-"$CFLAGS"}

# If the user wants a debugging environment, add -g to the CFLAGS value.
#
# XXX
# Some compilers can't mix optimizing and debug flags.  The only way to
# handle this is to specify CFLAGS in the environment before configuring.
d3518 1
a3518 5
	CFLAGS="$CFLAGS -g"
	CXXFLAGS="$CXXFLAGS -g"
	db_cv_build_type=debug
else
	db_cv_build_type=release
d3521 5
d4244 1
a4244 1
# Set specific per-compiler flags.
d5628 1
a5628 1
  test ! -f $lt_ac_sed && break
d5733 1
a5733 1
      # but apparently some GNU ld's only accept -v.
d5767 1
a5767 1
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
d5915 1
a5915 1
freebsd* | kfreebsd*-gnu)
d5921 1
a5921 1
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
d5937 1
a5937 1
  case "$host_cpu" in
a5964 9
  case $host_cpu in
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
    lt_cv_deplibs_check_method=pass_all ;;
  *)
    # glibc up to 2.1.1 does not perform some relocations on ARM
    # this will be overridden with pass_all, but let us keep it just in case
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  esac
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
d6082 1
a6082 1
  echo '#line 6011 "configure"' > conftest.$ac_ext
d6125 1
a6125 1
    case "`/usr/bin/file conftest.o`" in
d6867 237
d7196 1
a7196 1
echo "$as_me:6888:" \
d7386 1
a7386 1
  netbsd* | freebsd* | openbsd* | darwin* )
d7393 1
a7393 1
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
d7397 1
d7399 14
a7412 2

 *)
a7462 3
# Transform the above into a raw symbol and a C symbol.
symxfrm='\1 \2\3 \3'

d7484 7
d7522 3
d7526 1
a7526 1
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
d7688 1
a7688 1
Xsed='sed -e s/^X//'
d7708 1
a7708 1
# All known linkers require a `.a' archive for static linking (except M$VC,
d7993 10
a8002 1
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
d8029 1
a8029 1
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d8091 1
a8091 1
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d8190 14
d8240 1
a8240 1
     # The compiler can only warn and ignore the option if not recognized
d8245 5
d8295 1
a8295 1
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
d8298 1
a8298 1
   (eval echo "\"\$as_me:7942: $lt_compile\"" >&5)
d8302 1
a8302 1
   echo "$as_me:7946: \$? = $ac_status" >&5
d8305 4
a8308 2
     # So say no if there are warnings
     if test ! -s conftest.err; then
d8385 1
a8385 1
      case "$host_cpu" in
d8414 1
a8414 1
       case "$cc_basename" in
d8432 1
a8432 1
      case "$host_cpu" in
d8456 1
a8456 1
      case $CC in
d8462 7
a8488 1
      lt_prog_compiler_wl='-Wl,'
d8491 6
d8518 5
d8557 1
a8557 1
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
d8560 1
a8560 1
   (eval echo "\"\$as_me:8185: $lt_compile\"" >&5)
d8564 1
a8564 1
   echo "$as_me:8189: \$? = $ac_status" >&5
d8567 4
a8570 2
     # So say no if there are warnings
     if test ! -s conftest.err; then
d8591 1
a8591 1
case "$host_os" in
d8619 1
a8619 1
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
d8622 1
a8622 1
   (eval echo "\"\$as_me:8245: $lt_compile\"" >&5)
d8626 1
a8626 1
   echo "$as_me:8249: \$? = $ac_status" >&5
d8631 3
a8633 1
     if test ! -s out/conftest.err; then
d8637 1
a8637 1
   chmod u+w .
d8713 10
d8743 21
d8814 1
a8814 1
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
d8832 31
a8900 25
  linux*)
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_cmds="$tmp_archive_cmds"
      supports_anon_versioning=no
      case `$LD -v 2>/dev/null` in
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
        *\ 2.11.*) ;; # other 2.11 versions
        *) supports_anon_versioning=yes ;;
      esac
      if test $supports_anon_versioning = yes; then
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
$echo "local: *; };" >> $output_objdir/$libname.ver~
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
      else
        archive_expsym_cmds="$tmp_archive_cmds"
      fi
    else
      ld_shlibs=no
    fi
    ;;

d8911 5
a8915 10
    if test "$ld_shlibs" = yes; then
      runpath_var=LD_RUN_PATH
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
      export_dynamic_flag_spec='${wl}--export-dynamic'
      # ancient GNU ld didn't support --whole-archive et. al.
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec=
      fi
d8979 1
a8979 1
	case $host_os in aix4.012|aix4.012.*)
d9000 3
d9149 1
a9149 1
	  # This is similar to how AIX traditionally builds it's shared libraries.
d9189 1
a9189 1
      case "$host_os" in
d9218 1
a9218 1
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
d9222 1
a9222 1
      case "$cc_basename" in
d9227 1
a9227 1
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
d9268 1
a9268 1
    freebsd* | kfreebsd*-gnu)
d9293 1
a9293 1
	case "$host_cpu" in
d9302 1
a9302 1
	case "$host_cpu" in
d9312 1
a9312 1
	case "$host_cpu" in
d9425 1
a9425 1
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
d9444 1
d9449 1
d9458 12
a9469 2
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
d9771 2
a9772 1
      $install_prog $dir/$dlname \$dldir/$dlname'
d9802 1
a9802 1
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
d9825 1
a9825 1
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
d9860 11
a9870 2
freebsd*)
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
d9888 1
a9888 1
  freebsd3.01* | freebsdelf3.01*)
d9915 1
a9915 1
  case "$host_cpu" in
d10014 1
a10014 1
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
d10077 5
a10081 1
  need_version=no
d10870 1
a10870 1
#line 10430 "configure"
d10936 1
a10936 1
    (./conftest; exit; ) 2>/dev/null
d10968 1
a10968 1
#line 10528 "configure"
d11034 1
a11034 1
    (./conftest; exit; ) 2>/dev/null
d11084 1
a11084 1
case "$host_os" in
d11226 1
a11226 1
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
d11237 1
a11237 1
Xsed="$SED -e s/^X//"
d11271 6
d11353 1
a11353 1
# Must we lock files when doing compilation ?
d11648 3
a11650 1
	if test -n "$CXX" && test "X$CXX" != "Xno"; then
d11687 1
a11687 1
ac_ext=cc
d11708 14
d11743 10
a11752 1
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
d11823 1
a11823 1
      # but apparently some GNU ld's only accept -v.
d11857 1
a11857 1
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
d11966 1
a11966 1
      case $host_os in aix4.012|aix4.012.*)
d11987 3
d12137 1
a12137 1
	# This is similar to how AIX traditionally builds it's shared libraries.
d12176 1
a12176 1
        case "$host_os" in
d12214 1
a12214 1
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
d12222 1
a12222 1
      case "$cc_basename" in
d12227 1
a12227 1
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
d12240 1
a12240 1
      ec++)
d12244 1
a12244 1
      ghcx)
d12255 1
a12255 1
  freebsd12*)
d12262 1
a12262 1
  freebsd* | kfreebsd*-gnu)
d12279 1
a12279 1
    CC)
d12283 1
a12283 1
    aCC)
d12293 1
a12293 1
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
d12307 1
a12307 1
      case "$host_cpu" in
d12323 1
a12323 1
    case "$host_cpu" in
d12344 1
a12344 1
      CC)
d12348 2
a12349 2
      aCC)
	case "$host_cpu" in
d12370 1
a12370 1
	    case "$host_cpu" in
d12388 1
a12388 1
      CC)
d12390 1
a12390 1
	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
d12401 1
a12401 1
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
d12414 1
a12414 1
      KCC)
d12439 1
a12439 1
      icpc)
d12451 6
a12456 2
  	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d12464 10
a12473 1
      cxx)
d12504 1
a12504 1
      cxx)
d12530 2
d12543 1
a12543 1
      KCC)
d12559 1
a12559 1
      RCC)
d12564 1
a12564 1
      cxx)
d12566 1
a12566 1
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
d12584 1
a12584 1
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
d12603 1
a12603 1
      KCC)
d12618 1
a12618 1
      RCC)
d12623 1
a12623 1
      cxx)
d12625 1
a12625 1
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
d12628 1
a12628 1
	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
d12647 1
a12647 1
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
d12671 1
a12671 1
      CC)
d12683 1
a12683 1
      CC)
d12688 1
a12688 1
      lcc)
d12701 1
a12701 1
      CC)
d12703 1
d12705 1
a12705 1
	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d12707 1
a12707 1
	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
d12712 1
a12712 1
	  solaris2.0-5 | solaris2.0-5.*) ;;
d12716 5
a12720 1
	    # linker.
d12722 1
a12722 1
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
d12727 1
a12727 9
	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
d12735 1
a12735 1
      gcx)
d12778 1
a12778 1
      NCC)
d12835 1
a12835 1
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
d12911 14
d12980 1
a12980 1
      case "$host_cpu" in
d13005 1
a13005 1
	cxch68)
d13014 1
a13014 1
         case "$cc_basename" in
d13023 1
a13023 1
	  ec++)
d13026 1
a13026 1
	  ghcx)
d13034 1
a13034 1
      freebsd* | kfreebsd*-gnu)
d13039 1
a13039 1
	  CC)
d13046 1
a13046 1
	  aCC)
d13049 1
a13049 1
	    case "$host_cpu" in
d13064 1
a13064 1
	  CC)
d13075 1
a13075 1
	  KCC)
d13080 1
a13080 1
	  icpc)
d13086 7
a13092 1
	  cxx)
d13109 1
a13109 1
	  cxx)
d13120 1
a13120 1
	  KCC)
d13123 1
a13123 1
	  RCC)
d13127 1
a13127 1
	  cxx)
d13143 1
a13143 1
	  CC)
d13152 1
a13152 1
	  CC)
d13158 1
a13158 1
	  gcx)
d13168 1
a13168 1
	  CC)
d13173 1
a13173 1
	  lcc)
d13183 1
a13183 1
	  NCC)
d13224 1
a13224 1
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
d13227 1
a13227 1
   (eval echo "\"\$as_me:12721: $lt_compile\"" >&5)
d13231 1
a13231 1
   echo "$as_me:12725: \$? = $ac_status" >&5
d13234 4
a13237 2
     # So say no if there are warnings
     if test ! -s conftest.err; then
d13258 1
a13258 1
case "$host_os" in
d13286 1
a13286 1
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
d13289 1
a13289 1
   (eval echo "\"\$as_me:12781: $lt_compile\"" >&5)
d13293 1
a13293 1
   echo "$as_me:12785: \$? = $ac_status" >&5
d13298 3
a13300 1
     if test ! -s out/conftest.err; then
d13304 1
a13304 1
   chmod u+w .
d13359 1
a13359 1
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
d13567 2
a13568 1
      $install_prog $dir/$dlname \$dldir/$dlname'
d13598 1
a13598 1
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
d13621 1
a13621 1
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
d13656 11
a13666 2
freebsd*)
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
d13684 1
a13684 1
  freebsd3.01* | freebsdelf3.01*)
d13711 1
a13711 1
  case "$host_cpu" in
d13810 1
a13810 1
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
d13873 5
a13877 1
  need_version=no
d14666 1
a14666 1
#line 14142 "configure"
d14732 1
a14732 1
    (./conftest; exit; ) 2>/dev/null
d14764 1
a14764 1
#line 14240 "configure"
d14830 1
a14830 1
    (./conftest; exit; ) 2>/dev/null
d14982 6
d15064 1
a15064 1
# Must we lock files when doing compilation ?
d15345 14
d15364 10
a15373 1
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
d15386 1
a15386 1
case "$host_os" in
d15395 3
a15397 1
  test "$enable_shared" = yes && enable_static=no
d15474 1
a15474 1
      case "$host_cpu" in
d15503 1
a15503 1
       case "$cc_basename" in
d15521 1
a15521 1
      case "$host_cpu" in
d15545 1
a15545 1
      case $CC in
d15551 7
a15577 1
      lt_prog_compiler_wl_F77='-Wl,'
d15580 6
d15607 5
d15646 1
a15646 1
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
d15649 1
a15649 1
   (eval echo "\"\$as_me:15077: $lt_compile\"" >&5)
d15653 1
a15653 1
   echo "$as_me:15081: \$? = $ac_status" >&5
d15656 4
a15659 2
     # So say no if there are warnings
     if test ! -s conftest.err; then
d15680 1
a15680 1
case "$host_os" in
d15708 1
a15708 1
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
d15711 1
a15711 1
   (eval echo "\"\$as_me:15137: $lt_compile\"" >&5)
d15715 1
a15715 1
   echo "$as_me:15141: \$? = $ac_status" >&5
d15720 3
a15722 1
     if test ! -s out/conftest.err; then
d15726 1
a15726 1
   chmod u+w .
d15802 10
d15832 21
d15903 1
a15903 1
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
d15917 32
a15948 1
	ld_shlibs=no
a15989 25
  linux*)
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_cmds_F77="$tmp_archive_cmds"
      supports_anon_versioning=no
      case `$LD -v 2>/dev/null` in
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
        *\ 2.11.*) ;; # other 2.11 versions
        *) supports_anon_versioning=yes ;;
      esac
      if test $supports_anon_versioning = yes; then
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
$echo "local: *; };" >> $output_objdir/$libname.ver~
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
      else
        archive_expsym_cmds_F77="$tmp_archive_cmds"
      fi
    else
      ld_shlibs_F77=no
    fi
    ;;

d16000 5
a16004 10
    if test "$ld_shlibs_F77" = yes; then
      runpath_var=LD_RUN_PATH
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
      # ancient GNU ld didn't support --whole-archive et. al.
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_F77=
      fi
d16068 1
a16068 1
	case $host_os in aix4.012|aix4.012.*)
d16089 3
d16218 1
a16218 1
	  # This is similar to how AIX traditionally builds it's shared libraries.
d16253 1
a16253 1
      fix_srcfile_path='`cygpath -w "$srcfile"`'
d16258 1
a16258 1
      case "$host_os" in
d16287 1
a16287 1
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
d16291 1
a16291 1
      case "$cc_basename" in
d16296 1
a16296 1
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
d16337 1
a16337 1
    freebsd* | kfreebsd*-gnu)
d16362 1
a16362 1
	case "$host_cpu" in
d16371 1
a16371 1
	case "$host_cpu" in
d16381 1
a16381 1
	case "$host_cpu" in
d16494 1
a16494 1
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
d16513 1
d16518 1
d16527 12
a16538 2
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
d16840 2
a16841 1
      $install_prog $dir/$dlname \$dldir/$dlname'
d16871 1
a16871 1
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
d16894 1
a16894 1
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
d16929 11
a16939 2
freebsd*)
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
d16957 1
a16957 1
  freebsd3.01* | freebsdelf3.01*)
d16984 1
a16984 1
  case "$host_cpu" in
d17083 1
a17083 1
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
d17146 5
a17150 1
  need_version=no
d17450 6
d17532 1
a17532 1
# Must we lock files when doing compilation ?
d17770 1
a17770 1
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
d17781 14
d17800 10
d17814 2
d17842 1
a17842 1
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
d17845 1
a17845 1
   (eval echo "\"\$as_me:17176: $lt_compile\"" >&5)
d17849 1
a17849 1
   echo "$as_me:17180: \$? = $ac_status" >&5
d17852 4
a17855 2
     # So say no if there are warnings
     if test ! -s conftest.err; then
d17932 1
a17932 1
      case "$host_cpu" in
d17961 1
a17961 1
       case "$cc_basename" in
d17979 1
a17979 1
      case "$host_cpu" in
d18003 1
a18003 1
      case $CC in
d18009 7
a18035 1
      lt_prog_compiler_wl_GCJ='-Wl,'
d18038 6
d18065 5
d18104 1
a18104 1
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
d18107 1
a18107 1
   (eval echo "\"\$as_me:17419: $lt_compile\"" >&5)
d18111 1
a18111 1
   echo "$as_me:17423: \$? = $ac_status" >&5
d18114 4
a18117 2
     # So say no if there are warnings
     if test ! -s conftest.err; then
d18138 1
a18138 1
case "$host_os" in
d18166 1
a18166 1
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
d18169 1
a18169 1
   (eval echo "\"\$as_me:17479: $lt_compile\"" >&5)
d18173 1
a18173 1
   echo "$as_me:17483: \$? = $ac_status" >&5
d18178 3
a18180 1
     if test ! -s out/conftest.err; then
d18184 1
a18184 1
   chmod u+w .
d18260 10
d18290 21
d18361 1
a18361 1
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
d18375 32
a18406 1
	ld_shlibs=no
a18447 25
  linux*)
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_cmds_GCJ="$tmp_archive_cmds"
      supports_anon_versioning=no
      case `$LD -v 2>/dev/null` in
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
        *\ 2.11.*) ;; # other 2.11 versions
        *) supports_anon_versioning=yes ;;
      esac
      if test $supports_anon_versioning = yes; then
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
$echo "local: *; };" >> $output_objdir/$libname.ver~
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
      else
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
      fi
    else
      ld_shlibs_GCJ=no
    fi
    ;;

d18458 5
a18462 10
    if test "$ld_shlibs_GCJ" = yes; then
      runpath_var=LD_RUN_PATH
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
      # ancient GNU ld didn't support --whole-archive et. al.
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_GCJ=
      fi
d18526 1
a18526 1
	case $host_os in aix4.012|aix4.012.*)
d18547 3
d18696 1
a18696 1
	  # This is similar to how AIX traditionally builds it's shared libraries.
d18731 1
a18731 1
      fix_srcfile_path='`cygpath -w "$srcfile"`'
d18736 1
a18736 1
      case "$host_os" in
d18765 1
a18765 1
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
d18769 1
a18769 1
      case "$cc_basename" in
d18774 1
a18774 1
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
d18815 1
a18815 1
    freebsd* | kfreebsd*-gnu)
d18840 1
a18840 1
	case "$host_cpu" in
d18849 1
a18849 1
	case "$host_cpu" in
d18859 1
a18859 1
	case "$host_cpu" in
d18972 1
a18972 1
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
d18991 1
d18996 1
d19005 12
a19016 2
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
d19318 2
a19319 1
      $install_prog $dir/$dlname \$dldir/$dlname'
d19349 1
a19349 1
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
d19372 1
a19372 1
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
d19407 11
a19417 2
freebsd*)
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
d19435 1
a19435 1
  freebsd3.01* | freebsdelf3.01*)
d19462 1
a19462 1
  case "$host_cpu" in
d19561 1
a19561 1
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
d19624 5
a19628 1
  need_version=no
d20417 1
a20417 1
#line 19664 "configure"
d20483 1
a20483 1
    (./conftest; exit; ) 2>/dev/null
d20515 1
a20515 1
#line 19762 "configure"
d20581 1
a20581 1
    (./conftest; exit; ) 2>/dev/null
d20733 6
d20815 1
a20815 1
# Must we lock files when doing compilation ?
d21063 14
d21082 10
d21208 6
d21290 1
a21290 1
# Must we lock files when doing compilation ?
d21731 8
d21849 1
a21849 1
/* #line 21052 "configure" */
d22108 1
a22108 1
        echo "configure: 21311: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
d22226 1
a22226 1
/* #line 21429 "configure" */
d22263 1
a22263 1
/* [#]line 21466 "configure" */
d23648 146
d30047 3
d30456 1
a30456 1
	LIBSO_LIBS=$"LIBSO_LIBS -lrt";
d32242 108
d32579 1
a32579 1
#if (defined(i386) || defined(__i386__) || defined(__x86_64__)) && defined(__GNUC__)
d32620 54
d32782 1
a32782 1
# ia86/gcc: Linux
d33125 7
d33139 7
a33159 9
if test "$db_cv_mutex" != "UNIX/fcntl"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_THREADS 1
_ACEOF



fi

d33553 107
a34824 1
#include "db_int_def.h"\
d35248 3
a35250 3
	eval TCL_INCLUDE_SPEC="${TCL_INCLUDE_SPEC}"
	eval TCL_LIB_FILE="${TCL_LIB_FILE}"
	eval TCL_LIB_FLAG="${TCL_LIB_FLAG}"
d35969 1
a35969 1
This file was extended by Berkeley DB $as_me 4.4.4, which was
d36029 1
a36029 1
Berkeley DB config.status 4.4.4
d36269 1
d36297 2
a36306 1
s,@@db_cv_build_type@@,$db_cv_build_type,;t t
d36340 1
d36353 1
@


1.11
log
@Upgrade to db-4.4.4.
@
text
@d2158 5
a2162 5
	if test "$db_cv_rpc" = "yes"; then
		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-rpc" >&5
echo "$as_me: error: --with-uniquename is not compatible with --enable-rpc" >&2;}
   { (exit 1); exit 1; }; }
	fi
d33605 1
@


1.10
log
@Mac OS X fiddles.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.59 for Berkeley DB 4.3.27.
d425 3
a427 3
PACKAGE_TARNAME='db-4.3.27'
PACKAGE_VERSION='4.3.27'
PACKAGE_STRING='Berkeley DB 4.3.27'
d431 1
a431 1
ac_default_prefix=/usr/local/BerkeleyDB.4.3
d469 1
a469 1
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os ADDITIONAL_INCS ADDITIONAL_LANG ADDITIONAL_OBJS ADDITIONAL_PROGS BUILD_TARGET CFLAGS CONFIGURATION_ARGS CONFIGURATION_PATH CPPFLAGS CRYPTO_OBJS CXX CXXFLAGS DB_PROTO1 DB_PROTO2 DEFAULT_LIB DEFAULT_LIB_CXX INSTALLER INSTALL_LIBS INSTALL_TARGET JAR JAVACFLAGS LDFLAGS LIBJSO_LIBS LIBSO_LIBS LIBTOOL LIBTSO_LIBS LIBTSO_MODSUFFIX LIBTSO_MODULE LIBXSO_LIBS MAKEFILE_CC MAKEFILE_CCLINK MAKEFILE_CXX MAKEFILE_CXXLINK MAKEFILE_SOLINK MAKEFILE_XSOLINK OSDIR POSTLINK REPLACEMENT_OBJS RPC_CLIENT_OBJS RPC_SERVER_H SOFLAGS TEST_LIBS db_int_def o DB_VERSION_MAJOR DB_VERSION_MINOR DB_VERSION_PATCH DB_VERSION_STRING DB_VERSION_UNIQUE_NAME db_cv_path_ar ac_ct_db_cv_path_ar db_cv_path_chmod ac_ct_db_cv_path_chmod db_cv_path_cp ac_ct_db_cv_path_cp db_cv_path_ln ac_ct_db_cv_path_ln db_cv_path_mkdir ac_ct_db_cv_path_mkdir path_ranlib ac_ct_path_ranlib db_cv_path_ranlib db_cv_path_rm ac_ct_db_cv_path_rm db_cv_path_rpcgen ac_ct_db_cv_path_rpcgen path_sh ac_ct_path_sh db_cv_path_sh path_strip ac_ct_path_strip db_cv_path_strip db_cv_path_kill ac_ct_db_cv_path_kill INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA db_cv_build_type CC ac_ct_CC EXEEXT OBJEXT DB_CONST CCC ac_ct_CCC ac_ct_CXX CXXCPP cxx_have_stdheaders EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP F77 FFLAGS ac_ct_F77 SOSUFFIX MODSUFFIX JMODSUFFIX JAVAC JAVA uudecode _ACJNI_JAVAC inttypes_h_decl stdint_h_decl stddef_h_decl u_char_decl u_short_decl u_int_decl u_long_decl u_int8_decl u_int16_decl int16_decl u_int32_decl int32_decl u_int64_decl int64_decl ssize_t_decl uintmax_t_decl uintptr_t_decl LIBOBJS TCFLAGS TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_TCLSH db_seq_decl LTLIBOBJS'
d958 1
a958 1
\`configure' configures Berkeley DB 4.3.27 to adapt to many kinds of systems.
d1024 1
a1024 1
     short | recursive ) echo "Configuration of Berkeley DB 4.3.27:";;
d1191 1
a1191 1
Berkeley DB configure 4.3.27
d1205 1
a1205 1
It was created by Berkeley DB $as_me 4.3.27, which was
d1700 1
d1708 1
a1708 1
DB_VERSION_MINOR="3"
d1710 1
a1710 1
DB_VERSION_PATCH="27"
d1712 1
a1712 1
DB_VERSION_STRING='"Sleepycat Software: Berkeley DB 4.3.27: (December 22, 2004)"'
d2139 1
a2139 1
		DB_VERSION_UNIQUE_NAME="_4003"
d2158 5
a2162 5
#	if test "$db_cv_rpc" = "yes"; then
#		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-rpc" >&5
#echo "$as_me: error: --with-uniquename is not compatible with --enable-rpc" >&2;}
#   { (exit 1); exit 1; }; }
#	fi
d6011 1
a6011 1
  echo '#line 6010 "configure"' > conftest.$ac_ext
d6888 1
a6888 1
echo "$as_me:6887:" \
d7942 1
a7942 1
   (eval echo "\"\$as_me:7941: $lt_compile\"" >&5)
d7946 1
a7946 1
   echo "$as_me:7945: \$? = $ac_status" >&5
d8185 1
a8185 1
   (eval echo "\"\$as_me:8184: $lt_compile\"" >&5)
d8189 1
a8189 1
   echo "$as_me:8188: \$? = $ac_status" >&5
d8245 1
a8245 1
   (eval echo "\"\$as_me:8244: $lt_compile\"" >&5)
d8249 1
a8249 1
   echo "$as_me:8248: \$? = $ac_status" >&5
d10430 1
a10430 1
#line 10429 "configure"
d10528 1
a10528 1
#line 10527 "configure"
d12721 1
a12721 1
   (eval echo "\"\$as_me:12720: $lt_compile\"" >&5)
d12725 1
a12725 1
   echo "$as_me:12724: \$? = $ac_status" >&5
d12781 1
a12781 1
   (eval echo "\"\$as_me:12780: $lt_compile\"" >&5)
d12785 1
a12785 1
   echo "$as_me:12784: \$? = $ac_status" >&5
d14142 1
a14142 1
#line 14141 "configure"
d14240 1
a14240 1
#line 14239 "configure"
d15077 1
a15077 1
   (eval echo "\"\$as_me:15076: $lt_compile\"" >&5)
d15081 1
a15081 1
   echo "$as_me:15080: \$? = $ac_status" >&5
d15137 1
a15137 1
   (eval echo "\"\$as_me:15136: $lt_compile\"" >&5)
d15141 1
a15141 1
   echo "$as_me:15140: \$? = $ac_status" >&5
d17176 1
a17176 1
   (eval echo "\"\$as_me:17175: $lt_compile\"" >&5)
d17180 1
a17180 1
   echo "$as_me:17179: \$? = $ac_status" >&5
d17419 1
a17419 1
   (eval echo "\"\$as_me:17418: $lt_compile\"" >&5)
d17423 1
a17423 1
   echo "$as_me:17422: \$? = $ac_status" >&5
d17479 1
a17479 1
   (eval echo "\"\$as_me:17478: $lt_compile\"" >&5)
d17483 1
a17483 1
   echo "$as_me:17482: \$? = $ac_status" >&5
d19664 1
a19664 1
#line 19663 "configure"
d19762 1
a19762 1
#line 19761 "configure"
d21052 1
a21052 1
/* #line 21051 "configure" */
d21311 1
a21311 1
        echo "configure: 21310: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
d21429 1
a21429 1
/* #line 21428 "configure" */
d21466 1
a21466 1
/* [#]line 21465 "configure" */
d29385 1
a29385 2
# -lrt.  If fdatasync is found in -lrt, add -lrt to the Java and Tcl shared
# library link lines.
d29510 1
a29510 3
        LIBJSO_LIBS="$LIBJSO_LIBS -lrt";
        LIBSO_LIBS="$LIBSO_LIBS -lrt";
        LIBTSO_LIBS="$LIBTSO_LIBS -lrt";
d31869 1
a31869 2
			LIBJSO_LIBS="$LIBJSO_LIBS -lpthread"
			LIBTSO_LIBS="$LIBTSO_LIBS -lpthread"
d31879 1
a31879 2
			LIBJSO_LIBS="$LIBJSO_LIBS -lpthread"
			LIBTSO_LIBS="$LIBTSO_LIBS -lpthread"
d31974 1
a32321 17
for ac_func in _fstati64 clock_gettime directio fdatasync ftruncate getrusage
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func
a32322 4
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
a32323 5
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
a32324 1
#undef $ac_func
a32325 19
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif
a32326 34
int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a32327 11
eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a32328 2
fi
done
d32335 4
a32338 108
for ac_func in gettimeofday getuid pstat_getdynamic rand sched_yield
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done







for ac_func in select snprintf srand sysconf vsnprintf yield
a33604 1
#include "db_int_def.h"\
a33965 2


d34026 3
a34028 4
	#
	# The eval is required to do the TCL_DBGX substitution in the
	# TCL_LIB_FILE variable
	#
d34051 1
a34054 4
	if test x"$TCL_PREFIX" != x && test -f "$TCL_PREFIX/include/tcl.h"; then
		TCFLAGS="-I$TCL_PREFIX/include"
	fi

d34101 1
a34101 1
			char buf100;
d34103 1
a34103 1
			buf0 = 'a';
d34315 6
d34749 1
a34749 1
This file was extended by Berkeley DB $as_me 4.3.27, which was
d34809 1
a34809 1
Berkeley DB config.status 4.3.27
d35028 1
a35132 1
s,@@TCFLAGS@@,$TCFLAGS,;t t
d35134 2
a35136 1
s,@@TCL_LIB_FILE@@,$TCL_LIB_FILE,;t t
@


1.9
log
@Reapply sunrpc patch.
@
text
@d33804 2
a33805 1
	    -e '1,/^#include/s/^#include/#include "db_config.h"\n#include "db_int_def.h"\
@


1.8
log
@Update to db-4.3.27.
@
text
@d2157 5
a2161 5
	if test "$db_cv_rpc" = "yes"; then
		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-rpc" >&5
echo "$as_me: error: --with-uniquename is not compatible with --enable-rpc" >&2;}
   { (exit 1); exit 1; }; }
	fi
d33804 1
a33804 1
	    -e '1,/^#include/s/^#include/#include "db_config.h"\
@


1.7
log
@Re-add the rpc fixes from db-4.3.14.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.59 for Berkeley DB 4.3.21.
d425 3
a427 3
PACKAGE_TARNAME='db-4.3.21'
PACKAGE_VERSION='4.3.21'
PACKAGE_STRING='Berkeley DB 4.3.21'
d958 1
a958 1
\`configure' configures Berkeley DB 4.3.21 to adapt to many kinds of systems.
d1024 1
a1024 1
     short | recursive ) echo "Configuration of Berkeley DB 4.3.21:";;
d1191 1
a1191 1
Berkeley DB configure 4.3.21
d1205 1
a1205 1
It was created by Berkeley DB $as_me 4.3.21, which was
d1709 1
a1709 1
DB_VERSION_PATCH="21"
d1711 1
a1711 1
DB_VERSION_STRING='"Sleepycat Software: Berkeley DB 4.3.21: (November  8, 2004)"'
d2157 5
a2161 5
#	if test "$db_cv_rpc" = "yes"; then
#		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-rpc" >&5
#echo "$as_me: error: --with-uniquename is not compatible with --enable-rpc" >&2;}
#   { (exit 1); exit 1; }; }
#	fi
d4170 2
a4171 2
	hpux11*)
		CPPFLAGS="$CPPFLAGS -mt";;
d29511 1
d33804 1
a33804 1
	    -e '1,/^#include/s/^#include/#include "db_config.h"\n#include "db_int_def.h"\
d34949 1
a34949 1
This file was extended by Berkeley DB $as_me 4.3.21, which was
d35009 1
a35009 1
Berkeley DB config.status 4.3.21
@


1.7.2.1
log
@Upgrade to db-4.3.27.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.59 for Berkeley DB 4.3.27.
d425 3
a427 3
PACKAGE_TARNAME='db-4.3.27'
PACKAGE_VERSION='4.3.27'
PACKAGE_STRING='Berkeley DB 4.3.27'
d958 1
a958 1
\`configure' configures Berkeley DB 4.3.27 to adapt to many kinds of systems.
d1024 1
a1024 1
     short | recursive ) echo "Configuration of Berkeley DB 4.3.27:";;
d1191 1
a1191 1
Berkeley DB configure 4.3.27
d1205 1
a1205 1
It was created by Berkeley DB $as_me 4.3.27, which was
d1709 1
a1709 1
DB_VERSION_PATCH="27"
d1711 1
a1711 1
DB_VERSION_STRING='"Sleepycat Software: Berkeley DB 4.3.27: (December 22, 2004)"'
d4170 2
a4171 2
	hpux11.0*)	;;
	hpux11*)	CPPFLAGS="$CPPFLAGS -mt";;
a29510 1
        LIBSO_LIBS="$LIBSO_LIBS -lrt";
d34948 1
a34948 1
This file was extended by Berkeley DB $as_me 4.3.27, which was
d35008 1
a35008 1
Berkeley DB config.status 4.3.27
@


1.7.2.2
log
@Build on macosx.
@
text
@d33804 1
a33804 2
	    -e '1,/^#include/s/^#include/#include "db_config.h"\
#include "db_int_def.h"\
@


1.7.2.3
log
@Update to db-4.3.29.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.59 for Berkeley DB 4.3.29.
d290 2
a291 2
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
       echo_test_string=`eval $cmd` &&
d425 3
a427 3
PACKAGE_TARNAME='db-4.3.29'
PACKAGE_VERSION='4.3.29'
PACKAGE_STRING='Berkeley DB 4.3.29'
d958 1
a958 1
\`configure' configures Berkeley DB 4.3.29 to adapt to many kinds of systems.
d1024 1
a1024 1
     short | recursive ) echo "Configuration of Berkeley DB 4.3.29:";;
d1191 1
a1191 1
Berkeley DB configure 4.3.29
d1205 1
a1205 1
It was created by Berkeley DB $as_me 4.3.29, which was
d1709 1
a1709 1
DB_VERSION_PATCH="29"
d1711 1
a1711 1
DB_VERSION_STRING='"Sleepycat Software: Berkeley DB 4.3.29: (October 20, 2005)"'
d2157 5
a2161 5
	if test "$db_cv_rpc" = "yes"; then
		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-rpc" >&5
echo "$as_me: error: --with-uniquename is not compatible with --enable-rpc" >&2;}
   { (exit 1); exit 1; }; }
	fi
d5547 1
a5547 1
  test ! -f $lt_ac_sed && continue
d5652 1
a5652 1
      # but apparently some variants of GNU ld only accept -v.
d5686 1
a5686 1
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
d5834 1
a5834 1
freebsd* | kfreebsd*-gnu | dragonfly*)
d5840 1
a5840 1
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
d5856 1
a5856 1
  case $host_cpu in
d5884 9
d6010 1
a6010 1
  echo '#line 6001 "configure"' > conftest.$ac_ext
d6053 1
a6053 1
    case `/usr/bin/file conftest.o` in
a6794 237


if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
echo "$as_me:$LINENO: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

fi

d6887 1
a6887 1
echo "$as_me:7115:" \
d7077 1
a7077 1
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
d7084 1
a7084 1
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
a7087 1
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d7089 2
a7090 14
  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  *)
d7141 3
a7164 7
linux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDGIRSTW]'
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  fi
  ;;
a7195 3
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

d7197 1
a7197 1
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
d7359 1
a7359 1
Xsed='sed -e 1s/^X//'
d7379 1
a7379 1
# All known linkers require a `.a' archive for static linking (except MSVC,
d7664 1
a7664 10
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

d7691 1
a7691 1
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
d7753 1
a7753 1
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a7851 14
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


d7888 1
a7888 1
     # The linker can only warn and ignore the option if not recognized
a7892 5
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
       $SED '/^$/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works=yes
       fi
d7938 1
a7938 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d7941 1
a7941 1
   (eval echo "\"\$as_me:8217: $lt_compile\"" >&5)
d7945 1
a7945 1
   echo "$as_me:8221: \$? = $ac_status" >&5
d7948 2
a7949 4
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
d8026 1
a8026 1
      case $host_cpu in
d8055 1
a8055 1
       case $cc_basename in
d8073 1
a8073 1
      case $host_cpu in
d8097 1
a8097 1
      case $cc_basename in
a8102 7
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
d8123 1
a8125 6
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl='-Qoption ld ';;
      *)
	lt_prog_compiler_wl='-Wl,';;
      esac
a8146 5
    unicos*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
      ;;

d8181 1
a8181 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d8184 1
a8184 1
   (eval echo "\"\$as_me:8479: $lt_compile\"" >&5)
d8188 1
a8188 1
   echo "$as_me:8483: \$? = $ac_status" >&5
d8191 2
a8192 4
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
d8213 1
a8213 1
case $host_os in
d8241 1
a8241 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d8244 1
a8244 1
   (eval echo "\"\$as_me:8541: $lt_compile\"" >&5)
d8248 1
a8248 1
   echo "$as_me:8545: \$? = $ac_status" >&5
d8253 1
a8253 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
     $SED '/^$/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
d8257 1
a8257 1
   chmod u+w . 2>&5
a8332 10
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a8352 21
    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

d8403 1
a8403 1
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a8420 31
    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs=no
      fi
      ;;

d8459 25
d8494 10
a8503 5
    if test "$ld_shlibs" = no; then
      runpath_var=
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
d8567 1
a8567 1
	case $host_os in aix4.[012]|aix4.[012].*)
a8587 3
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
d8734 1
a8734 1
	  # This is similar to how AIX traditionally builds its shared libraries.
d8774 1
a8774 1
      case $host_os in
d8803 1
a8803 1
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
d8807 1
a8807 1
      case $cc_basename in
d8812 1
a8812 1
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
d8853 1
a8853 1
    freebsd* | kfreebsd*-gnu | dragonfly*)
d8878 1
a8878 1
	case $host_cpu in
d8887 1
a8887 1
	case $host_cpu in
d8897 1
a8897 1
	case $host_cpu in
d9010 1
a9010 1
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
a9028 1
	wlarc='${wl}'
a9032 1
	wlarc=''
d9041 2
a9042 12
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
d9344 1
a9344 2
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
d9374 1
a9374 1
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d9397 1
a9397 1
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
d9432 2
a9433 11
freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
d9451 1
a9451 1
  freebsd3.[01]* | freebsdelf3.[01]*)
d9478 1
a9478 1
  case $host_cpu in
a9574 21
  # find out which ABI we are using
  libsuff=
  case "$host_cpu" in
  x86_64*|s390x*|powerpc64*)
    echo '#line 9935 "configure"' > conftest.$ac_ext
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
      case `/usr/bin/file conftest.$ac_objext` in
      *64-bit*)
        libsuff=64
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
        ;;
      esac
    fi
    rm -rf conftest*
    ;;
  esac

d9577 2
a9578 2
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
d9640 1
a9640 5
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
d10429 1
a10429 1
#line 10810 "configure"
d10495 1
a10495 1
    (./conftest; exit; ) >&5 2>/dev/null
d10527 1
a10527 1
#line 10908 "configure"
d10593 1
a10593 1
    (./conftest; exit; ) >&5 2>/dev/null
d10643 1
a10643 1
case $host_os in
d10785 1
a10785 1
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d10796 1
a10796 1
Xsed="$SED -e 1s/^X//"
a10829 6
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
d10906 1
a10906 1
# Must we lock files when doing compilation?
d11201 1
a11201 3
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
	    (test "X$CXX" != "Xg++"))) ; then
d11238 1
a11238 1
ac_ext=cpp
a11258 14
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


d11280 1
a11280 10
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

d11351 1
a11351 1
      # but apparently some variants of GNU ld only accept -v.
d11385 1
a11385 1
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
d11494 1
a11494 1
      case $host_os in aix4.[012]|aix4.[012].*)
a11514 3
      if test "$aix_use_runtimelinking" = yes; then
	shared_flag="$shared_flag "'${wl}-G'
      fi
d11662 1
a11662 1
	# This is similar to how AIX traditionally builds its shared libraries.
d11701 1
a11701 1
        case $host_os in
d11739 1
a11739 1
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
d11747 1
a11747 1
      case $cc_basename in
d11752 1
a11752 1
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
d11765 1
a11765 1
      ec++*)
d11769 1
a11769 1
      ghcx*)
d11780 1
a11780 1
  freebsd[12]*)
d11787 1
a11787 1
  freebsd* | kfreebsd*-gnu | dragonfly*)
d11804 1
a11804 1
    CC*)
d11808 1
a11808 1
    aCC*)
d11818 1
a11818 1
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
d11832 1
a11832 1
      case $host_cpu in
d11848 1
a11848 1
    case $host_cpu in
d11869 1
a11869 1
      CC*)
d11873 2
a11874 2
      aCC*)
	case $host_cpu in
d11895 1
a11895 1
	    case $host_cpu in
d11913 1
a11913 1
      CC*)
d11915 1
a11915 1
	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
d11926 1
a11926 1
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d11939 1
a11939 1
      KCC*)
d11964 1
a11964 1
      icpc*)
d11976 2
a11977 6
	  tmp_idyn=
	  case $host_cpu in
	    ia64*) tmp_idyn=' -i_dynamic';;
	  esac
  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d11985 1
a11985 10
      pgCC*)
        # Portland Group C++ compiler
	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'

	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
        ;;
      cxx*)
d12016 1
a12016 1
      cxx*)
a12041 2
    hardcode_direct_CXX=yes
    hardcode_shlibpath_var_CXX=no
d12053 1
a12053 1
      KCC*)
d12069 1
a12069 1
      RCC*)
d12074 1
a12074 1
      cxx*)
d12076 1
a12076 1
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
d12094 1
a12094 1
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d12113 1
a12113 1
      KCC*)
d12128 1
a12128 1
      RCC*)
d12133 1
a12133 1
      cxx*)
d12135 1
a12135 1
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
d12138 1
a12138 1
	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
d12157 1
a12157 1
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d12181 1
a12181 1
      CC*)
d12193 1
a12193 1
      CC*)
d12198 1
a12198 1
      lcc*)
d12211 1
a12211 1
      CC*)
a12212 1
        archive_cmds_need_lc_CXX=yes
d12214 1
a12214 1
	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d12216 1
a12216 1
	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
d12221 1
a12221 1
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
d12225 1
a12225 5
	    # linker. We must also pass each convience library through
	    # to the system linker between allextract/defaultextract.
	    # The C++ compiler will combine linker options so we
	    # cannot just pass the convience library names through
	    # without $wl.
d12227 1
a12227 1
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
d12232 9
a12240 1
	output_verbose_link_cmd='echo'
d12248 1
a12248 1
      gcx*)
d12291 1
a12291 1
      NCC*)
d12348 1
a12348 1
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
a12423 14
# PORTME: override above test on systems where it is broken
case $host_os in
solaris*)
  case $cc_basename in
  CC*)
    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    postdeps_CXX='-lCstd -lCrun'
    ;;
  esac
esac


d12479 1
a12479 1
      case $host_cpu in
d12504 1
a12504 1
	cxch68*)
d12513 1
a12513 1
         case $cc_basename in
d12522 1
a12522 1
	  ec++*)
d12525 1
a12525 1
	  ghcx*)
d12533 1
a12533 1
      freebsd* | kfreebsd*-gnu | dragonfly*)
d12538 1
a12538 1
	  CC*)
d12545 1
a12545 1
	  aCC*)
d12548 1
a12548 1
	    case $host_cpu in
d12563 1
a12563 1
	  CC*)
d12574 1
a12574 1
	  KCC*)
d12579 1
a12579 1
	  icpc* | ecpc*)
d12585 1
a12585 7
	  pgCC*)
	    # Portland Group C++ compiler.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
d12602 1
a12602 1
	  cxx*)
d12613 1
a12613 1
	  KCC*)
d12616 1
a12616 1
	  RCC*)
d12620 1
a12620 1
	  cxx*)
d12636 1
a12636 1
	  CC*)
d12645 1
a12645 1
	  CC*)
d12651 1
a12651 1
	  gcx*)
d12661 1
a12661 1
	  CC*)
d12666 1
a12666 1
	  lcc*)
d12676 1
a12676 1
	  NCC*)
d12717 1
a12717 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d12720 1
a12720 1
   (eval echo "\"\$as_me:13167: $lt_compile\"" >&5)
d12724 1
a12724 1
   echo "$as_me:13171: \$? = $ac_status" >&5
d12727 2
a12728 4
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
d12749 1
a12749 1
case $host_os in
d12777 1
a12777 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d12780 1
a12780 1
   (eval echo "\"\$as_me:13229: $lt_compile\"" >&5)
d12784 1
a12784 1
   echo "$as_me:13233: \$? = $ac_status" >&5
d12789 1
a12789 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
     $SED '/^$/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
d12793 1
a12793 1
   chmod u+w . 2>&5
d12848 1
a12848 1
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
d13056 1
a13056 2
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
d13086 1
a13086 1
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d13109 1
a13109 1
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
d13144 2
a13145 11
freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
d13163 1
a13163 1
  freebsd3.[01]* | freebsdelf3.[01]*)
d13190 1
a13190 1
  case $host_cpu in
a13286 21
  # find out which ABI we are using
  libsuff=
  case "$host_cpu" in
  x86_64*|s390x*|powerpc64*)
    echo '#line 13752 "configure"' > conftest.$ac_ext
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
      case `/usr/bin/file conftest.$ac_objext` in
      *64-bit*)
        libsuff=64
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
        ;;
      esac
    fi
    rm -rf conftest*
    ;;
  esac

d13289 2
a13290 2
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
d13352 1
a13352 5
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
d14141 1
a14141 1
#line 14627 "configure"
d14207 1
a14207 1
    (./conftest; exit; ) >&5 2>/dev/null
d14239 1
a14239 1
#line 14725 "configure"
d14305 1
a14305 1
    (./conftest; exit; ) >&5 2>/dev/null
a14456 6
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
d14533 1
a14533 1
# Must we lock files when doing compilation?
a14813 14
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


d14819 1
a14819 10
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

d14832 1
a14832 1
case $host_os in
d14841 1
a14841 3
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
  fi
d14918 1
a14918 1
      case $host_cpu in
d14947 1
a14947 1
       case $cc_basename in
d14965 1
a14965 1
      case $host_cpu in
d14989 1
a14989 1
      case $cc_basename in
a14994 7
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-fpic'
	lt_prog_compiler_static_F77='-Bstatic'
        ;;
d15015 1
a15017 6
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_F77='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_F77='-Wl,';;
      esac
a15038 5
    unicos*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_can_build_shared_F77=no
      ;;

d15073 1
a15073 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d15076 1
a15076 1
   (eval echo "\"\$as_me:15610: $lt_compile\"" >&5)
d15080 1
a15080 1
   echo "$as_me:15614: \$? = $ac_status" >&5
d15083 2
a15084 4
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
d15105 1
a15105 1
case $host_os in
d15133 1
a15133 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d15136 1
a15136 1
   (eval echo "\"\$as_me:15672: $lt_compile\"" >&5)
d15140 1
a15140 1
   echo "$as_me:15676: \$? = $ac_status" >&5
d15145 1
a15145 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
     $SED '/^$/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
d15149 1
a15149 1
   chmod u+w . 2>&5
a15224 10
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a15244 21
    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_F77=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

d15295 1
a15295 1
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
d15309 1
a15309 32
	ld_shlibs_F77=no
      fi
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs_F77=no
d15351 25
d15386 10
a15395 5
    if test "$ld_shlibs_F77" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_F77=
      export_dynamic_flag_spec_F77=
      whole_archive_flag_spec_F77=
d15459 1
a15459 1
	case $host_os in aix4.[012]|aix4.[012].*)
a15479 3
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
d15606 1
a15606 1
	  # This is similar to how AIX traditionally builds its shared libraries.
d15641 1
a15641 1
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
d15646 1
a15646 1
      case $host_os in
d15675 1
a15675 1
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
d15679 1
a15679 1
      case $cc_basename in
d15684 1
a15684 1
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
d15725 1
a15725 1
    freebsd* | kfreebsd*-gnu | dragonfly*)
d15750 1
a15750 1
	case $host_cpu in
d15759 1
a15759 1
	case $host_cpu in
d15769 1
a15769 1
	case $host_cpu in
d15882 1
a15882 1
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
a15900 1
	wlarc='${wl}'
a15904 1
	wlarc=''
d15913 2
a15914 12
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
d16216 1
a16216 2
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
d16246 1
a16246 1
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d16269 1
a16269 1
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
d16304 2
a16305 11
freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
d16323 1
a16323 1
  freebsd3.[01]* | freebsdelf3.[01]*)
d16350 1
a16350 1
  case $host_cpu in
a16446 21
  # find out which ABI we are using
  libsuff=
  case "$host_cpu" in
  x86_64*|s390x*|powerpc64*)
    echo '#line 17046 "configure"' > conftest.$ac_ext
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
      case `/usr/bin/file conftest.$ac_objext` in
      *64-bit*)
        libsuff=64
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
        ;;
      esac
    fi
    rm -rf conftest*
    ;;
  esac

d16449 2
a16450 2
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
d16512 1
a16512 5
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
a16811 6
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
d16888 1
a16888 1
# Must we lock files when doing compilation?
d17126 1
a17126 1
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
a17136 14
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


a17141 10
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

a17145 2
old_archive_cmds_GCJ=$old_archive_cmds

d17172 1
a17172 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d17175 1
a17175 1
   (eval echo "\"\$as_me:17827: $lt_compile\"" >&5)
d17179 1
a17179 1
   echo "$as_me:17831: \$? = $ac_status" >&5
d17182 2
a17183 4
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
d17260 1
a17260 1
      case $host_cpu in
d17289 1
a17289 1
       case $cc_basename in
d17307 1
a17307 1
      case $host_cpu in
d17331 1
a17331 1
      case $cc_basename in
a17336 7
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-fpic'
	lt_prog_compiler_static_GCJ='-Bstatic'
        ;;
d17357 1
a17359 6
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_GCJ='-Wl,';;
      esac
a17380 5
    unicos*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_can_build_shared_GCJ=no
      ;;

d17415 1
a17415 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d17418 1
a17418 1
   (eval echo "\"\$as_me:18089: $lt_compile\"" >&5)
d17422 1
a17422 1
   echo "$as_me:18093: \$? = $ac_status" >&5
d17425 2
a17426 4
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
d17447 1
a17447 1
case $host_os in
d17475 1
a17475 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d17478 1
a17478 1
   (eval echo "\"\$as_me:18151: $lt_compile\"" >&5)
d17482 1
a17482 1
   echo "$as_me:18155: \$? = $ac_status" >&5
d17487 1
a17487 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
     $SED '/^$/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
d17491 1
a17491 1
   chmod u+w . 2>&5
a17566 10
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a17586 21
    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_GCJ=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

d17637 1
a17637 1
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
d17651 1
a17651 32
	ld_shlibs_GCJ=no
      fi
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs_GCJ=no
d17693 25
d17728 10
a17737 5
    if test "$ld_shlibs_GCJ" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_GCJ=
      export_dynamic_flag_spec_GCJ=
      whole_archive_flag_spec_GCJ=
d17801 1
a17801 1
	case $host_os in aix4.[012]|aix4.[012].*)
a17821 3
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
d17968 1
a17968 1
	  # This is similar to how AIX traditionally builds its shared libraries.
d18003 1
a18003 1
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
d18008 1
a18008 1
      case $host_os in
d18037 1
a18037 1
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
d18041 1
a18041 1
      case $cc_basename in
d18046 1
a18046 1
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
d18087 1
a18087 1
    freebsd* | kfreebsd*-gnu | dragonfly*)
d18112 1
a18112 1
	case $host_cpu in
d18121 1
a18121 1
	case $host_cpu in
d18131 1
a18131 1
	case $host_cpu in
d18244 1
a18244 1
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
a18262 1
	wlarc='${wl}'
a18266 1
	wlarc=''
d18275 2
a18276 12
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
d18578 1
a18578 2
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
d18608 1
a18608 1
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d18631 1
a18631 1
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
d18666 2
a18667 11
freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
d18685 1
a18685 1
  freebsd3.[01]* | freebsdelf3.[01]*)
d18712 1
a18712 1
  case $host_cpu in
a18808 21
  # find out which ABI we are using
  libsuff=
  case "$host_cpu" in
  x86_64*|s390x*|powerpc64*)
    echo '#line 19545 "configure"' > conftest.$ac_ext
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
      case `/usr/bin/file conftest.$ac_objext` in
      *64-bit*)
        libsuff=64
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
        ;;
      esac
    fi
    rm -rf conftest*
    ;;
  esac

d18811 2
a18812 2
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
d18874 1
a18874 5
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
d19663 1
a19663 1
#line 20420 "configure"
d19729 1
a19729 1
    (./conftest; exit; ) >&5 2>/dev/null
d19761 1
a19761 1
#line 20518 "configure"
d19827 1
a19827 1
    (./conftest; exit; ) >&5 2>/dev/null
a19978 6
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
d20055 1
a20055 1
# Must we lock files when doing compilation?
a20302 14
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


a20307 10
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

a20423 6
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
d20500 1
a20500 1
# Must we lock files when doing compilation?
d20789 1
a20789 1
	if test "$_SOSUFFIX" = "X" ; then
d20816 1
a20816 1
	if test "$_SOSUFFIX" = "X" ; then
d20843 1
a20843 1
	if test "$_SOSUFFIX" = "X" ; then
d20955 1
a20955 1
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj34$EXEEXT -C" "gcj-ssa$EXEEXT -C" "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
d20996 1
a20996 1
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj34$EXEEXT -C" "gcj-ssa$EXEEXT -C" "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
d21051 1
a21051 1
/* #line 21844 "configure" */
d21250 3
a21252 4
if test x$JAVA = x; then
	{ echo "$as_me:$LINENO: WARNING: no acceptable Java virtual machine found in \$PATH" >&5
echo "$as_me: WARNING: no acceptable Java virtual machine found in \$PATH" >&2;}
else
d21310 1
a21310 1
        echo "configure: 22104: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
d21332 1
a21332 1
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj34$EXEEXT -C" "gcj-ssa$EXEEXT -C" "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
d21373 1
a21373 1
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj34$EXEEXT -C" "gcj-ssa$EXEEXT -C" "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
d21428 1
a21428 1
/* #line 22222 "configure" */
d21465 1
a21465 1
/* [#]line 22259 "configure" */
a21507 1
fi
a21634 1
	if test x$JAVA != x; then
d21647 1
a21647 1
	1.[3456789]* | 1.[1-9][0-9]* | [23456789]* | *libgcj* ) ;;
a21657 1
	fi
d33805 1
d34950 1
a34950 1
This file was extended by Berkeley DB $as_me 4.3.29, which was
d35010 1
a35010 1
Berkeley DB config.status 4.3.29
@


1.7.2.4
log
@- upgrade to db-4.3.29.
- add --target to rpm queries.
- rollback: add --rbexclude tid option.
@
text
@d2157 5
a2161 5
#	if test "$db_cv_rpc" = "yes"; then
#		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-rpc" >&5
#echo "$as_me: error: --with-uniquename is not compatible with --enable-rpc" >&2;}
#   { (exit 1); exit 1; }; }
#	fi
a34601 1
#include "db_int_def.h"\
@


1.7.2.5
log
@Update to db-4.4.11.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.59 for Berkeley DB 4.4.11.
d425 3
a427 3
PACKAGE_TARNAME='db-4.4.11'
PACKAGE_VERSION='4.4.11'
PACKAGE_STRING='Berkeley DB 4.4.11'
d431 1
a431 1
ac_default_prefix=/usr/local/BerkeleyDB.4.4
d469 1
a469 1
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os ADDITIONAL_INCS ADDITIONAL_LANG ADDITIONAL_OBJS ADDITIONAL_PROGS BUILD_TARGET CFLAGS CONFIGURATION_ARGS CONFIGURATION_PATH CPPFLAGS CRYPTO_OBJS CXX CXXFLAGS DB_PROTO1 DB_PROTO2 DEFAULT_LIB DEFAULT_LIB_CXX INSTALLER INSTALL_LIBS INSTALL_TARGET JAR JAVACFLAGS LDFLAGS LIBCSO_LIBS LIBJSO_LIBS LIBSO_LIBS LIBTOOL LIBTSO_LIBS LIBTSO_MODSUFFIX LIBTSO_MODULE LIBXSO_LIBS MAKEFILE_CC MAKEFILE_CCLINK MAKEFILE_CXX MAKEFILE_CXXLINK MAKEFILE_SOLINK MAKEFILE_XSOLINK OSDIR POSTLINK REPLACEMENT_OBJS RPC_CLIENT_OBJS RPC_SERVER_H SOFLAGS TEST_LIBS db_cv_build_type db_int_def o DB_VERSION_MAJOR DB_VERSION_MINOR DB_VERSION_PATCH DB_VERSION_STRING DB_VERSION_UNIQUE_NAME db_cv_path_ar ac_ct_db_cv_path_ar db_cv_path_chmod ac_ct_db_cv_path_chmod db_cv_path_cp ac_ct_db_cv_path_cp db_cv_path_ln ac_ct_db_cv_path_ln db_cv_path_mkdir ac_ct_db_cv_path_mkdir path_ranlib ac_ct_path_ranlib db_cv_path_ranlib db_cv_path_rm ac_ct_db_cv_path_rm db_cv_path_rpcgen ac_ct_db_cv_path_rpcgen path_sh ac_ct_path_sh db_cv_path_sh db_cv_path_true ac_ct_db_cv_path_true path_strip ac_ct_path_strip db_cv_path_strip db_cv_path_kill ac_ct_db_cv_path_kill INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC ac_ct_CC EXEEXT OBJEXT DB_CONST CCC ac_ct_CCC ac_ct_CXX CXXCPP cxx_have_stdheaders EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP F77 FFLAGS ac_ct_F77 SOSUFFIX MODSUFFIX JMODSUFFIX JAVAC JAVA uudecode _ACJNI_JAVAC inttypes_h_decl stdint_h_decl stddef_h_decl unistd_h_decl u_char_decl u_short_decl u_int_decl u_long_decl u_int8_decl u_int16_decl int16_decl u_int32_decl int32_decl u_int64_decl int64_decl ssize_t_decl pid_t_decl uintmax_t_decl uintptr_t_decl LIBOBJS TCL_BIN_DIR TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_SRC_DIR TCL_TCLSH db_seq_decl LTLIBOBJS'
d958 1
a958 1
\`configure' configures Berkeley DB 4.4.11 to adapt to many kinds of systems.
d1024 1
a1024 1
     short | recursive ) echo "Configuration of Berkeley DB 4.4.11:";;
a1048 1
  --enable-pthread_self   Force use of pthread_self to identify threads.
d1069 1
a1069 1
                          Obsolete; use DbEnv::mutex_set_align instead.
d1191 1
a1191 1
Berkeley DB configure 4.4.11
d1205 1
a1205 1
It was created by Berkeley DB $as_me 4.4.11, which was
a1699 2


d1707 1
a1707 1
DB_VERSION_MINOR="4"
d1709 1
a1709 1
DB_VERSION_PATCH="11"
d1711 1
a1711 1
DB_VERSION_STRING='"Sleepycat Software: Berkeley DB 4.4.11: (October 25, 2005)"'
a1976 12
echo "$as_me:$LINENO: checking if --enable-pthread_self option specified" >&5
echo $ECHO_N "checking if --enable-pthread_self option specified... $ECHO_C" >&6
# Check whether --enable-pthread_self or --disable-pthread_self was given.
if test "${enable_pthread_self+set}" = set; then
  enableval="$enable_pthread_self"
  db_cv_pthread_self="$enable_pthread_self"
else
  db_cv_pthread_self="no"
fi;
echo "$as_me:$LINENO: result: $db_cv_pthread_self" >&5
echo "${ECHO_T}$db_cv_pthread_self" >&6

d2078 4
a2081 2
# --with-mutexalign=ALIGNMENT was the configuration option that Berkeley DB
# used before the DbEnv::mutex_set_align method was added.
d2086 7
a2092 2
  { { echo "$as_me:$LINENO: error: --with-mutexalign no longer supported, use DbEnv::mutex_set_align" >&5
echo "$as_me: error: --with-mutexalign no longer supported, use DbEnv::mutex_set_align" >&2;}
d2094 9
a2102 1
fi;
d2138 1
a2138 1
		DB_VERSION_UNIQUE_NAME="_4004"
a3074 86
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}true", so it can be a program name with args.
set dummy ${ac_tool_prefix}true; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_true+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_true"; then
  ac_cv_prog_db_cv_path_true="$db_cv_path_true" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_true="${ac_tool_prefix}true"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
db_cv_path_true=$ac_cv_prog_db_cv_path_true
if test -n "$db_cv_path_true"; then
  echo "$as_me:$LINENO: result: $db_cv_path_true" >&5
echo "${ECHO_T}$db_cv_path_true" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_db_cv_path_true"; then
  ac_ct_db_cv_path_true=$db_cv_path_true
  # Extract the first word of "true", so it can be a program name with args.
set dummy true; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_true+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_true"; then
  ac_cv_prog_ac_ct_db_cv_path_true="$ac_ct_db_cv_path_true" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_true="true"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_prog_ac_ct_db_cv_path_true" && ac_cv_prog_ac_ct_db_cv_path_true="missing_true"
fi
fi
ac_ct_db_cv_path_true=$ac_cv_prog_ac_ct_db_cv_path_true
if test -n "$ac_ct_db_cv_path_true"; then
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_true" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_true" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  db_cv_path_true=$ac_ct_db_cv_path_true
else
  db_cv_path_true="$ac_cv_prog_db_cv_path_true"
fi

if test "$db_cv_path_true" = missing_true; then
	{ { echo "$as_me:$LINENO: error: No true utility found." >&5
echo "$as_me: error: No true utility found." >&2;}
   { (exit 1); exit 1; }; }
fi

d3387 1
a3387 1
optimize_debug="-O"
d3390 1
a3390 1
	optimize_debug="-O2"
d3404 1
a3404 1
irix*)	optimize_debug="-O2"
d3419 11
a3429 5
# If the user wants a debugging environment, change any compiler optimization
# flags to -g.  We used to add -g to the -O compiler flags, but compilers are
# good enough at code re-organization that debugging with -O no longer works.
# If you want to compile with a different set of flags, specify CFLAGS in the
# environment before configuring.
d3438 5
a3442 1
	optimize_debug="-g"
a3444 5
# Set CFLAGS/CXXFLAGS.  We MUST set the flags before we call autoconf
# compiler configuration macros, because if we don't, they set CFLAGS
# to no optimization and -g, which isn't what we want.
CFLAGS=${CFLAGS-$optimize_debug}
CXXFLAGS=${CXXFLAGS-"$CFLAGS"}
d4163 1
a4163 1
# We know what compiler we're going to use, now.  Set per-compiler flags.
d6001 1
a6001 1
  echo '#line 6082 "configure"' > conftest.$ac_ext
d7115 1
a7115 1
echo "$as_me:7196:" \
d8217 1
a8217 1
   (eval echo "\"\$as_me:8298: $lt_compile\"" >&5)
d8221 1
a8221 1
   echo "$as_me:8302: \$? = $ac_status" >&5
d8479 1
a8479 1
   (eval echo "\"\$as_me:8560: $lt_compile\"" >&5)
d8483 1
a8483 1
   echo "$as_me:8564: \$? = $ac_status" >&5
d8541 1
a8541 1
   (eval echo "\"\$as_me:8622: $lt_compile\"" >&5)
d8545 1
a8545 1
   echo "$as_me:8626: \$? = $ac_status" >&5
d9931 21
d9955 1
a9955 1
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
d10810 1
a10810 1
#line 10870 "configure"
d10908 1
a10908 1
#line 10968 "configure"
d13167 1
a13167 1
   (eval echo "\"\$as_me:13227: $lt_compile\"" >&5)
d13171 1
a13171 1
   echo "$as_me:13231: \$? = $ac_status" >&5
d13229 1
a13229 1
   (eval echo "\"\$as_me:13289: $lt_compile\"" >&5)
d13233 1
a13233 1
   echo "$as_me:13293: \$? = $ac_status" >&5
d13748 21
d13772 1
a13772 1
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
d14627 1
a14627 1
#line 14666 "configure"
d14725 1
a14725 1
#line 14764 "configure"
d15610 1
a15610 1
   (eval echo "\"\$as_me:15649: $lt_compile\"" >&5)
d15614 1
a15614 1
   echo "$as_me:15653: \$? = $ac_status" >&5
d15672 1
a15672 1
   (eval echo "\"\$as_me:15711: $lt_compile\"" >&5)
d15676 1
a15676 1
   echo "$as_me:15715: \$? = $ac_status" >&5
d17042 21
d17066 1
a17066 1
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
d17827 1
a17827 1
   (eval echo "\"\$as_me:17845: $lt_compile\"" >&5)
d17831 1
a17831 1
   echo "$as_me:17849: \$? = $ac_status" >&5
d18089 1
a18089 1
   (eval echo "\"\$as_me:18107: $lt_compile\"" >&5)
d18093 1
a18093 1
   echo "$as_me:18111: \$? = $ac_status" >&5
d18151 1
a18151 1
   (eval echo "\"\$as_me:18169: $lt_compile\"" >&5)
d18155 1
a18155 1
   echo "$as_me:18173: \$? = $ac_status" >&5
d19541 21
d19565 1
a19565 1
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
d20420 1
a20420 1
#line 20417 "configure"
d20518 1
a20518 1
#line 20515 "configure"
d21582 1
a21582 1
	if test "$_SOSUFFIX" = "" ; then
d21609 1
a21609 1
	if test "$_SOSUFFIX" = "" ; then
d21636 1
a21636 1
	if test "$_SOSUFFIX" = "" ; then
a21733 8
# We split DbConstants.java into debug and release versions so Windows
# developers don't need to do anything special to use the Debug DLL.
if test "$db_cv_debug" = "yes"; then
	db_cv_build_type=debug
else
	db_cv_build_type=release
fi

d21748 1
a21748 1
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
d21789 1
a21789 1
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
d21844 1
a21844 1
/* #line 21849 "configure" */
d22043 4
a22046 3
test x$JAVA = x && { { echo "$as_me:$LINENO: error: no acceptable Java virtual machine found in \$PATH" >&5
echo "$as_me: error: no acceptable Java virtual machine found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
d22104 1
a22104 1
        echo "configure: 22108: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
d22126 1
a22126 1
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
d22167 1
a22167 1
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
d22222 1
a22222 1
/* #line 22226 "configure" */
d22259 1
a22259 1
/* [#]line 22263 "configure" */
d22302 1
d22430 1
d22443 1
a22443 1
	1.[3456789]* | 1.[1-9][0-9]* | [23456789]* ) ;;
d22454 1
a23646 146

if test "${ac_cv_header_unistd_h+set}" = set; then
  echo "$as_me:$LINENO: checking for unistd.h" >&5
echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
if test "${ac_cv_header_unistd_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking unistd.h usability" >&5
echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <unistd.h>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking unistd.h presence" >&5
echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unistd.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: unistd.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to support@@sleepycat.com ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for unistd.h" >&5
echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
if test "${ac_cv_header_unistd_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_unistd_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
echo "${ECHO_T}$ac_cv_header_unistd_h" >&6

fi
if test $ac_cv_header_unistd_h = yes; then

	db_includes="$db_includes
#include <unistd.h>"
	unistd_h_decl="#include <unistd.h>"
fi


a29899 3
# So far, no autoconf'd systems lack pid_t.


d30181 2
a30182 1
# -lrt.  If fdatasync is found in -lrt, add -lrt to the shared library links.
d30307 3
a30309 1
	LIBSO_LIBS="$LIBSO_LIBS -lrt";
a32094 108
# MIPS/gcc: Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if (defined(__mips) || defined(__mips__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="MIPS/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# MIPS/gcc: Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if (defined(__mips) || defined(__mips__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="MIPS/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi

d32324 1
a32324 1
#if (defined(i386) || defined(__i386__)) && defined(__GNUC__)
a32364 54
# x86_64/gcc: FreeBSD, NetBSD, BSD/OS, Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

#if (defined(x86_64) || defined(__x86_64__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="x86_64/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi

d32473 1
a32473 1
# ia64/gcc: Linux
d32668 2
a32669 1
			LIBSO_LIBS="$LIBSO_LIBS -lpthread"
d32679 2
a32680 1
			LIBSO_LIBS="$LIBSO_LIBS -lpthread"
a32774 1
			LIBSO_LIBS="$LIBSO_LIBS -lthread"
a32816 7
MIPS/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_MIPS_GCC_ASSEMBLY 1
_ACEOF


;;
a32823 7
x86_64/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_X86_64_GCC_ASSEMBLY 1
_ACEOF


;;
d32838 9
d33122 17
d33140 4
d33145 5
d33151 1
d33153 19
d33173 34
d33208 11
d33220 2
d33228 1
a33228 4
for ac_func in \
   _fstati64 clock_gettime directio fchmod fcntl fdatasync ftruncate\
   getrusage gettimeofday getuid pstat_getdynamic rand sched_yield\
   select snprintf srand sysconf vsnprintf yield
a33329 3
# Pthread_self.
# The use of pthread_self to identify threads can be forced.
if test "$db_cv_pthread_self" = "yes"; then
d33331 5
a33335 1
for ac_func in pthread_self
a33435 1
fi
d34964 2
d35026 6
a35031 5
	# The eval is required to do substitution (for example, the TCL_DBGX
	# substitution in the TCL_LIB_FILE variable.
	eval "TCL_INCLUDE_SPEC=\"${TCL_INCLUDE_SPEC}\""
	eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
	eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
d35052 1
a35053 1
	TCL_TCLSH="${TCL_PREFIX}/bin/tclsh${TCL_VERSION}"
d35055 3
d35105 1
a35105 1
			char buf[100];
d35107 1
a35107 1
			buf[0] = 'a';
a35318 6
# If DIAGNOSTIC is defined, include the log print routines in the library
# itself, various diagnostic modes use them.
if test "$db_cv_diagnostic" = "yes"; then
	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(PRINT_OBJS)"
fi

d35747 1
a35747 1
This file was extended by Berkeley DB $as_me 4.4.11, which was
d35807 1
a35807 1
Berkeley DB config.status 4.4.11
a36025 1
s,@@LIBCSO_LIBS@@,$LIBCSO_LIBS,;t t
a36045 1
s,@@db_cv_build_type@@,$db_cv_build_type,;t t
a36072 2
s,@@db_cv_path_true@@,$db_cv_path_true,;t t
s,@@ac_ct_db_cv_path_true@@,$ac_ct_db_cv_path_true,;t t
d36081 1
a36114 1
s,@@unistd_h_decl@@,$unistd_h_decl,;t t
a36126 1
s,@@pid_t_decl@@,$pid_t_decl,;t t
d36130 1
d36132 1
a36132 1
s,@@TCL_INCLUDE_SPEC@@,$TCL_INCLUDE_SPEC,;t t
a36133 1
s,@@TCL_SRC_DIR@@,$TCL_SRC_DIR,;t t
@


1.7.2.6
log
@Add orphan directories.
@
text
@d2157 5
a2161 5
	if test "$db_cv_rpc" = "yes"; then
		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-rpc" >&5
echo "$as_me: error: --with-uniquename is not compatible with --enable-rpc" >&2;}
   { (exit 1); exit 1; }; }
	fi
d34825 1
@


1.7.2.7
log
@Reapply patch to permit uniquenames with sunrpc.
@
text
@d2157 5
a2161 5
#	if test "$db_cv_rpc" = "yes"; then
#		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-rpc" >&5
#echo "$as_me: error: --with-uniquename is not compatible with --enable-rpc" >&2;}
#   { (exit 1); exit 1; }; }
#	fi
a34824 1
#include "db_int_def.h"\
@


1.7.2.8
log
@- upgrade to db-4.4.16.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.59 for Berkeley DB 4.4.16.
d425 3
a427 3
PACKAGE_TARNAME='db-4.4.16'
PACKAGE_VERSION='4.4.16'
PACKAGE_STRING='Berkeley DB 4.4.16'
d469 1
a469 1
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os ADDITIONAL_INCS ADDITIONAL_LANG ADDITIONAL_OBJS ADDITIONAL_PROGS BUILD_TARGET CFLAGS CONFIGURATION_ARGS CONFIGURATION_PATH CPPFLAGS CRYPTO_OBJS CXX CXXFLAGS DB_PROTO1 DB_PROTO2 DEFAULT_LIB DEFAULT_LIB_CXX INSTALLER INSTALL_LIBS INSTALL_TARGET JAR JAVACFLAGS LDFLAGS LIBCSO_LIBS LIBJSO_LIBS LIBSO_LIBS LIBTOOL LIBTSO_LIBS LIBTSO_MODSUFFIX LIBTSO_MODULE LIBXSO_LIBS MAKEFILE_CC MAKEFILE_CCLINK MAKEFILE_CXX MAKEFILE_CXXLINK MAKEFILE_SOLINK MAKEFILE_XSOLINK OSDIR POSTLINK REPLACEMENT_OBJS RPC_CLIENT_OBJS RPC_SERVER_H SOFLAGS TEST_LIBS db_cv_build_type db_int_def o DB_VERSION_MAJOR DB_VERSION_MINOR DB_VERSION_PATCH DB_VERSION_STRING DB_VERSION_UNIQUE_NAME db_cv_path_ar ac_ct_db_cv_path_ar db_cv_path_chmod ac_ct_db_cv_path_chmod db_cv_path_cp ac_ct_db_cv_path_cp db_cv_path_ln ac_ct_db_cv_path_ln db_cv_path_mkdir ac_ct_db_cv_path_mkdir path_ranlib ac_ct_path_ranlib db_cv_path_ranlib db_cv_path_rm ac_ct_db_cv_path_rm db_cv_path_rpcgen ac_ct_db_cv_path_rpcgen path_sh ac_ct_path_sh db_cv_path_sh db_cv_path_true ac_ct_db_cv_path_true path_strip ac_ct_path_strip db_cv_path_strip db_cv_path_kill ac_ct_db_cv_path_kill INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC ac_ct_CC EXEEXT OBJEXT DB_CONST CCC ac_ct_CCC ac_ct_CXX CXXCPP cxx_have_stdheaders EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP F77 FFLAGS ac_ct_F77 SOSUFFIX MODSUFFIX JMODSUFFIX JAVAC JAVA uudecode _ACJNI_JAVAC inttypes_h_decl stdint_h_decl stddef_h_decl unistd_h_decl u_char_decl u_short_decl u_int_decl u_long_decl u_int8_decl u_int16_decl int16_decl u_int32_decl int32_decl u_int64_decl int64_decl ssize_t_decl pid_t_decl uintmax_t_decl uintptr_t_decl thread_h_decl db_threadid_t_decl LIBOBJS TCL_BIN_DIR TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_SRC_DIR TCL_TCLSH INT64_FMT UINT64_FMT db_seq_decl LTLIBOBJS'
d958 1
a958 1
\`configure' configures Berkeley DB 4.4.16 to adapt to many kinds of systems.
d1024 1
a1024 1
     short | recursive ) echo "Configuration of Berkeley DB 4.4.16:";;
d1192 1
a1192 1
Berkeley DB configure 4.4.16
d1206 1
a1206 1
It was created by Berkeley DB $as_me 4.4.16, which was
d1712 1
a1712 1
DB_VERSION_PATCH="16"
d1714 1
a1714 1
DB_VERSION_STRING='"Sleepycat Software: Berkeley DB 4.4.16: (November 12, 2005)"'
d2157 5
a2161 5
	if test "$db_cv_rpc" = "yes"; then
		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-rpc" >&5
echo "$as_me: error: --with-uniquename is not compatible with --enable-rpc" >&2;}
   { (exit 1); exit 1; }; }
	fi
d23930 134
a32898 4


db_threadid_t_decl=notset

a32956 2
			thread_h_decl="#include <pthread.h>"
			db_threadid_t_decl="typedef pthread_t db_threadid_t;"
a32963 2
			thread_h_decl="#include <pthread.h>"
			db_threadid_t_decl="typedef pthread_t db_threadid_t;"
a32978 2
			thread_h_decl="#include <pthread.h>"
			db_threadid_t_decl="typedef pthread_t db_threadid_t;"
a32988 2
			thread_h_decl="#include <pthread.h>"
			db_threadid_t_decl="typedef pthread_t db_threadid_t;"
a33052 2
			thread_h_decl="#include <pthread.h>"
			db_threadid_t_decl="typedef pthread_t db_threadid_t;"
d33073 1
a33074 2
			thread_h_decl="#include <thread.h>"
			db_threadid_t_decl="typedef thread_t db_threadid_t;"
a33083 2
			thread_h_decl="#include <thread.h>"
			db_threadid_t_decl="typedef thread_t db_threadid_t;"
a33159 68
# The mutex selection often tells us what kind of thread package we're using.
# We need to know if the thread ID type will fit into an integral type and we
# can compare it for equality and generally treat it like an int, or if it's a
# non-integral type and we have to treat it like a structure or other untyped
# block of bytes.  For example, MVS typedef's pthread_t to a structure.


if test "$db_threadid_t_decl" = "notset"; then
	db_threadid_t_decl="typedef uintmax_t db_threadid_t;"
	cat >>confdefs.h <<\_ACEOF
#define HAVE_INTEGRAL_THREAD_TYPE 1
_ACEOF

else
	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
	$thread_h_decl
int
main ()
{

	$db_threadid_t_decl
	db_threadid_t a;
	a = 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_INTEGRAL_THREAD_TYPE 1
_ACEOF

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi

d34825 1
d35295 3
a35297 19
	# Figure out what type is the right size, and set the format.


	db_cv_seq_type="no"
	if test "$db_cv_build_sequence" = "yes" -a\
	    "$ac_cv_sizeof_long" -eq "8"; then
		db_cv_seq_type="long"
		db_cv_seq_fmt='"%ld"'
		db_cv_seq_ufmt='"%lu"'
		INT64_FMT='#define	INT64_FMT	"%ld"'
		UINT64_FMT='#define	UINT64_FMT	"%lu"'
	else if test "$db_cv_build_sequence" = "yes" -a\
	    "$ac_cv_sizeof_long_long" -eq "8"; then
		db_cv_seq_type="long long"
		db_cv_seq_fmt='"%lld"'
		db_cv_seq_ufmt='"%llu"'
		INT64_FMT='#define	INT64_FMT	"%lld"'
		UINT64_FMT='#define	UINT64_FMT	"%llu"'
	else
d35300 2
d35320 2
a35321 2
			$db_cv_seq_type l;
			unsigned $db_cv_seq_type u;
d35326 1
a35326 1
			(void)snprintf(buf, sizeof(buf), $db_cv_seq_fmt, l);
d35330 1
a35330 1
			(void)snprintf(buf, sizeof(buf), $db_cv_seq_ufmt, u);
d35379 2
a35380 2
			$db_cv_seq_type l;
			unsigned $db_cv_seq_type u;
d35385 1
a35385 1
			(void)snprintf(buf, sizeof(buf), $db_cv_seq_fmt, l);
d35389 1
a35389 1
			(void)snprintf(buf, sizeof(buf), $db_cv_seq_ufmt, u);
a35427 7

		cat >>confdefs.h <<\_ACEOF
#define HAVE_64BIT_TYPES 1
_ACEOF



d35970 1
a35970 1
This file was extended by Berkeley DB $as_me 4.4.16, which was
d36030 1
a36030 1
Berkeley DB config.status 4.4.16
a36356 2
s,@@thread_h_decl@@,$thread_h_decl,;t t
s,@@db_threadid_t_decl@@,$db_threadid_t_decl,;t t
a36362 2
s,@@INT64_FMT@@,$INT64_FMT,;t t
s,@@UINT64_FMT@@,$UINT64_FMT,;t t
@


1.7.2.9
log
@- upgrade to db-4.4.16 internal.
@
text
@d1714 1
a1714 1
DB_VERSION_STRING='"Sleepycat Software: Berkeley DB 4.4.16: (November 19, 2005)"'
d2157 5
d6082 1
a6082 1
  echo '#line 6077 "configure"' > conftest.$ac_ext
d7196 1
a7196 1
echo "$as_me:7191:" \
d8298 1
a8298 1
   (eval echo "\"\$as_me:8293: $lt_compile\"" >&5)
d8302 1
a8302 1
   echo "$as_me:8297: \$? = $ac_status" >&5
d8560 1
a8560 1
   (eval echo "\"\$as_me:8555: $lt_compile\"" >&5)
d8564 1
a8564 1
   echo "$as_me:8559: \$? = $ac_status" >&5
d8622 1
a8622 1
   (eval echo "\"\$as_me:8617: $lt_compile\"" >&5)
d8626 1
a8626 1
   echo "$as_me:8621: \$? = $ac_status" >&5
d10870 1
a10870 1
#line 10865 "configure"
d10968 1
a10968 1
#line 10963 "configure"
d13227 1
a13227 1
   (eval echo "\"\$as_me:13222: $lt_compile\"" >&5)
d13231 1
a13231 1
   echo "$as_me:13226: \$? = $ac_status" >&5
d13289 1
a13289 1
   (eval echo "\"\$as_me:13284: $lt_compile\"" >&5)
d13293 1
a13293 1
   echo "$as_me:13288: \$? = $ac_status" >&5
d14666 1
a14666 1
#line 14661 "configure"
d14764 1
a14764 1
#line 14759 "configure"
d15649 1
a15649 1
   (eval echo "\"\$as_me:15644: $lt_compile\"" >&5)
d15653 1
a15653 1
   echo "$as_me:15648: \$? = $ac_status" >&5
d15711 1
a15711 1
   (eval echo "\"\$as_me:15706: $lt_compile\"" >&5)
d15715 1
a15715 1
   echo "$as_me:15710: \$? = $ac_status" >&5
d17845 1
a17845 1
   (eval echo "\"\$as_me:17840: $lt_compile\"" >&5)
d17849 1
a17849 1
   echo "$as_me:17844: \$? = $ac_status" >&5
d18107 1
a18107 1
   (eval echo "\"\$as_me:18102: $lt_compile\"" >&5)
d18111 1
a18111 1
   echo "$as_me:18106: \$? = $ac_status" >&5
d18169 1
a18169 1
   (eval echo "\"\$as_me:18164: $lt_compile\"" >&5)
d18173 1
a18173 1
   echo "$as_me:18168: \$? = $ac_status" >&5
d20417 1
a20417 1
#line 20412 "configure"
d20515 1
a20515 1
#line 20510 "configure"
d21849 1
a21849 1
/* #line 21844 "configure" */
d22108 1
a22108 1
        echo "configure: 22103: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
d22226 1
a22226 1
/* #line 22221 "configure" */
d22263 1
a22263 1
/* [#]line 22258 "configure" */
a34775 1
#include "db_int_def.h"\
@


1.7.2.10
log
@Upgrade to db-4.4.20.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.59 for Berkeley DB 4.4.20.
d425 3
a427 3
PACKAGE_TARNAME='db-4.4.20'
PACKAGE_VERSION='4.4.20'
PACKAGE_STRING='Berkeley DB 4.4.20'
d958 1
a958 1
\`configure' configures Berkeley DB 4.4.20 to adapt to many kinds of systems.
d1024 1
a1024 1
     short | recursive ) echo "Configuration of Berkeley DB 4.4.20:";;
d1192 1
a1192 1
Berkeley DB configure 4.4.20
d1206 1
a1206 1
It was created by Berkeley DB $as_me 4.4.20, which was
d1712 1
a1712 1
DB_VERSION_PATCH="20"
d1714 1
a1714 1
DB_VERSION_STRING='"Sleepycat Software: Berkeley DB 4.4.20: (January 10, 2006)"'
d35937 1
a35937 1
This file was extended by Berkeley DB $as_me 4.4.20, which was
d35997 1
a35997 1
Berkeley DB config.status 4.4.20
@


1.7.2.11
log
@Merge db-4.5.20 onto rpm-4_4 branch.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.60 for Berkeley DB 4.5.20.
d5 1
a5 1
# Report bugs to <Oracle Technology Network Berkeley DB forum>.
d7 1
a7 2
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d21 2
a22 3
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
a23 1
BIN_SH=xpg4; export BIN_SH # for Tru64
a25 22

# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi

a33 33
# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
as_nl='
'
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

d35 1
a35 3
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
d49 1
a49 1
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d54 1
a54 2
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
d60 1
a60 1
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d68 1
a68 1
as_me=`$as_basename -- "$0" ||
d71 2
a72 1
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d74 4
a77 13
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
a78 2
# CDPATH.
$as_unset CDPATH
d80 7
d88 11
a98 5
if test "x$CONFIG_SHELL" = x; then
  if (eval ":") 2>/dev/null; then
  as_have_required=yes
else
  as_have_required=no
a100 16
  if test $as_have_required = yes && 	 (eval ":
(as_func_return () {
  (exit \$1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}
d102 16
a117 7
exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi
d119 13
a131 35
if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test \$exitcode = 0) || { (exit 1); exit 1; }

(
  as_lineno_1=\$LINENO
  as_lineno_2=\$LINENO
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
") 2> /dev/null; then
  :
else
  as_candidate_shells=
d133 1
a133 1
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
d137 2
a138 1
  case $as_dir in
d140 1
a140 98
	   for as_base in sh bash ksh sh5; do
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
	   done;;
       esac
done
IFS=$as_save_IFS


      for as_shell in $as_candidate_shells $SHELL; do
	 # Try only shells that exist, to save several forks.
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
fi
BIN_SH=xpg4; export BIN_SH # for Tru64
DUALCASE=1; export DUALCASE # for MKS sh

:
_ASEOF
}; then
  CONFIG_SHELL=$as_shell
	       as_have_required=yes
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
fi
BIN_SH=xpg4; export BIN_SH # for Tru64
DUALCASE=1; export DUALCASE # for MKS sh

:
(as_func_return () {
  (exit $1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = "$1" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test $exitcode = 0) || { (exit 1); exit 1; }

(
d143 1
d145 12
a156 96
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }

_ASEOF
}; then
  break
fi

fi

      done

      if test "x$CONFIG_SHELL" != x; then
  for as_var in BASH_ENV ENV
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
        done
        export CONFIG_SHELL
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@@"}
fi


    if test $as_have_required = no; then
  echo This script requires a shell more modern than all the
      echo shells that I found on your system.  Please install a
      echo modern shell, or manually run the script under such a
      echo shell if you do have one.
      { (exit 1); exit 1; }
fi


fi

fi



(eval "as_func_return () {
  (exit \$1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test \$exitcode = 0") || {
  echo No shell found that supports shell functions.
  echo Please tell autoconf@@gnu.org about your system,
  echo including any error possibly output before this
  echo message
}



  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d160 4
a163 5
  # line-number line after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, and appends
  # trailing '-' during substitution so that $LINENO is not a special
  # case at line end.
d165 2
a166 6
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
a167 4
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
d169 3
a171 2
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d173 2
a174 1
      s/-\n.*//
d176 1
a176 1
  chmod +x "$as_me.lineno" ||
d182 2
a183 2
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
d189 5
a193 15
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
d196 1
a196 2
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
a202 6
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir
fi
d205 4
a208 6
  as_ln_s='ln -s'
  # ... but there are two gotchas:
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  # In both cases, we have to default to `cp -p'.
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d210 3
d218 1
a218 2
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
d227 1
a227 13
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
# systems may use methods other than mode bits to determine executability.
cat >conf$$.file <<_ASEOF
#! /bin/sh
exit 0
_ASEOF
chmod +x conf$$.file
if test -x conf$$.file >/dev/null 2>&1; then
  as_executable_p="test -x"
else
  as_executable_p=:
fi
rm -f conf$$.file
d236 9
a399 2
exec 7<&0 </dev/null 6>&1

d405 2
a410 1
ac_clean_files=
a411 1
LIBOBJS=
d418 5
d425 4
a428 4
PACKAGE_TARNAME='db-4.5.20'
PACKAGE_VERSION='4.5.20'
PACKAGE_STRING='Berkeley DB 4.5.20'
PACKAGE_BUGREPORT='Oracle Technology Network Berkeley DB forum'
d431 1
a431 1
ac_default_prefix=/usr/local/BerkeleyDB.4.5
d460 4
a463 3
#endif
#if HAVE_STDINT_H
# include <stdint.h>
d469 1
a469 167
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
datarootdir
datadir
sysconfdir
sharedstatedir
localstatedir
includedir
oldincludedir
docdir
infodir
htmldir
dvidir
pdfdir
psdir
libdir
localedir
mandir
DEFS
ECHO_C
ECHO_N
ECHO_T
LIBS
build_alias
host_alias
target_alias
build
build_cpu
build_vendor
build_os
host
host_cpu
host_vendor
host_os
ADDITIONAL_INCS
ADDITIONAL_LANG
ADDITIONAL_OBJS
ADDITIONAL_PROGS
BUILD_TARGET
CFLAGS
CONFIGURATION_ARGS
CONFIGURATION_PATH
CPPFLAGS
CRYPTO_OBJS
CXX
CXXFLAGS
DB_PROTO1
DB_PROTO2
DEFAULT_LIB
DEFAULT_LIB_CXX
INSTALLER
INSTALL_LIBS
INSTALL_TARGET
JAR
JAVACFLAGS
LDFLAGS
LIBCSO_LIBS
LIBJSO_LIBS
LIBSO_LIBS
LIBTOOL
LIBTSO_LIBS
LIBTSO_MODSUFFIX
LIBTSO_MODULE
LIBXSO_LIBS
MAKEFILE_CC
MAKEFILE_CCLINK
MAKEFILE_CXX
MAKEFILE_CXXLINK
MAKEFILE_SOLINK
MAKEFILE_XSOLINK
OSDIR
POSTLINK
REPLACEMENT_OBJS
RPC_CLIENT_OBJS
RPC_SERVER_H
SOFLAGS
SWIGCFLAGS
TEST_LIBS
db_int_def
o
platform_header
platform_footer
DB_VERSION_MAJOR
DB_VERSION_MINOR
DB_VERSION_PATCH
DB_VERSION_STRING
DB_VERSION_UNIQUE_NAME
AR
CHMOD
CP
KILL
LN
MKDIR
RANLIB
RM
RPCGEN
db_cv_path_sh
STRIP
INSTALL_PROGRAM
INSTALL_SCRIPT
INSTALL_DATA
CC
ac_ct_CC
EXEEXT
OBJEXT
DB_CONST
CCC
ac_ct_CXX
CXXCPP
cxx_have_stdheaders
GREP
EGREP
LN_S
ECHO
CPP
F77
FFLAGS
ac_ct_F77
SOSUFFIX
MODSUFFIX
JMODSUFFIX
JAVAC
JAVA
uudecode
_ACJNI_JAVAC
inttypes_h_decl
stdint_h_decl
stddef_h_decl
unistd_h_decl
u_char_decl
u_short_decl
u_int_decl
u_long_decl
u_int8_decl
u_int16_decl
int16_decl
u_int32_decl
int32_decl
u_int64_decl
int64_decl
ssize_t_decl
pid_t_decl
uintmax_t_decl
uintptr_t_decl
thread_h_decl
db_threadid_t_decl
LIBOBJS
TCL_BIN_DIR
TCL_INCLUDE_SPEC
TCL_LIB_FILE
TCL_SRC_DIR
TCL_TCLSH
INT64_FMT
UINT64_FMT
db_seq_decl
LTLIBOBJS'
a470 15
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
CPPFLAGS
CXX
CXXFLAGS
CCC
CXXCPP
CPP
F77
FFLAGS'

a496 1
# (The list follows the same order as the GNU Coding Standards.)
d500 1
a500 2
datarootdir='${prefix}/share'
datadir='${datarootdir}'
d504 1
d507 2
a508 9
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'
a510 1
ac_dashdash=
d515 1
a515 1
    eval $ac_prev=\$ac_option
d520 1
a520 4
  case $ac_option in
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *)	ac_optarg=yes ;;
  esac
d524 1
a524 3
  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;
d546 1
a546 1
  -datadir | --datadir | --datadi | --datad)
d548 2
a549 1
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
a551 7
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

d559 1
a559 11
    eval enable_$ac_feature=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;
d568 5
a572 1
    eval enable_$ac_feature=\$ac_optarg ;;
a598 6
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

a622 5
  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

d624 2
a625 1
  | --localstate | --localstat | --localsta | --localst | --locals)
d628 2
a629 1
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
a693 10
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

d750 5
a754 1
    eval with_$ac_package=\$ac_optarg ;;
d763 1
a763 1
    eval with_$ac_package=no ;;
d794 2
a795 1
    eval $ac_envvar=\$ac_optarg
d815 14
a828 5
# Be sure to have absolute directory names.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
d830 1
a830 1
  eval ac_val=\$$ac_var
d832 3
a834 2
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a835 2
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; }
a861 10
ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  { echo "$as_me: error: Working directory cannot be determined" >&2
   { (exit 1); exit 1; }; }
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  { echo "$as_me: error: pwd does not report name of working directory" >&2
   { (exit 1); exit 1; }; }


d865 2
a866 2
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$0" ||
d870 2
a871 1
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d873 5
a877 17
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
d879 1
a879 1
  if test ! -r "$srcdir/$ac_unique_file"; then
d885 65
a949 26
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   { (exit 1); exit 1; }; }
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   { (exit 1); exit 1; }; }
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done
d958 1
a958 1
\`configure' configures Berkeley DB 4.5.20 to adapt to many kinds of systems.
d978 3
d998 1
d1005 2
a1006 10
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR          info documentation [DATAROOTDIR/info]
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR           man documentation [DATAROOTDIR/man]
  --docdir=DIR           documentation root [DATAROOTDIR/doc/db-4.5.20]
  --htmldir=DIR          html documentation [DOCDIR]
  --dvidir=DIR           dvi documentation [DOCDIR]
  --pdfdir=DIR           pdf documentation [DOCDIR]
  --psdir=DIR            ps documentation [DOCDIR]
d1024 1
a1024 1
     short | recursive ) echo "Configuration of Berkeley DB 4.5.20:";;
d1049 1
a1049 2
  --enable-pthread_self   Obsolete; use --enable-pthread_api instead.
  --enable-pthread_api    Configure Berkeley DB for POSIX pthread API.
d1056 4
a1059 2
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
d1076 2
a1077 1
  --with-tags[=TAGS]      include additional configurations [automatic]
d1084 2
a1085 2
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
d1096 1
a1096 1
Report bugs to <Oracle Technology Network Berkeley DB forum>.
a1097 1
ac_status=$?
d1102 1
d1104 1
a1104 1
    test -d "$ac_dir" || continue
d1107 1
a1107 3
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
d1109 5
a1113 11
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
d1116 1
a1116 1
  .)  # We are building in place.
d1118 6
a1123 3
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
d1125 57
a1181 17
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
d1184 2
a1185 2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
d1189 1
a1189 1
test -n "$ac_init_help" && exit $ac_status
d1192 2
a1193 2
Berkeley DB configure 4.5.20
generated by GNU Autoconf 2.60
d1195 1
a1195 2
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d1199 1
a1199 1
  exit
d1201 2
a1202 1
cat >config.log <<_ACEOF
d1206 2
a1207 2
It was created by Berkeley DB $as_me 4.5.20, which was
generated by GNU Autoconf 2.60.  Invocation command line was
a1211 1
exec 5>>config.log
d1230 1
a1230 1
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
a1243 1
IFS=$as_save_IFS
d1265 1
d1276 1
a1276 1
    *\'*)
d1298 3
a1300 1
      ac_configure_args="$ac_configure_args '$ac_arg'"
d1311 2
a1312 2
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d1325 1
a1325 15
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done
d1327 2
a1328 2
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
d1330 3
a1332 3
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
d1334 2
a1335 1
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d1337 2
a1338 3
    esac |
    sort
)
d1349 2
a1350 5
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      echo "$ac_var='\''$ac_val'\''"
d1356 3
a1358 3
## ------------------- ##
## File substitutions. ##
## ------------------- ##
d1363 2
a1364 5
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	echo "$ac_var='\''$ac_val'\''"
d1376 1
a1376 1
      cat confdefs.h
d1383 2
a1384 2
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d1386 1
a1386 1
' 0
d1393 3
a1395 1
rm -f -r conftest* confdefs.h
d1426 6
a1431 7
if test -n "$CONFIG_SITE"; then
  set x "$CONFIG_SITE"
elif test "x$prefix" != xNONE; then
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
else
  set x "$ac_default_prefix/share/config.site" \
	"$ac_default_prefix/etc/config.site"
d1433 1
a1433 3
shift
for ac_site_file
do
d1449 2
a1450 2
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
d1462 2
a1463 1
for ac_var in $ac_precious_vars; do
d1466 2
a1467 2
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
d1492 2
a1493 1
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d1510 6
a1539 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d1543 1
a1543 1
ac_config_headers="$ac_config_headers db_config.h:config.hin"
d1548 2
a1549 2
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  if test -f "$ac_dir/install-sh"; then
d1553 1
a1553 1
  elif test -f "$ac_dir/install.sh"; then
d1557 1
a1557 1
  elif test -f "$ac_dir/shtool"; then
d1564 2
a1565 2
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d1568 3
a1570 9

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.

d1573 3
a1575 3
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d1578 2
a1579 2
{ echo "$as_me:$LINENO: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d1583 4
a1586 4
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
d1590 3
a1592 3
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d1596 2
a1597 8
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
echo "$as_me: error: invalid value of canonical build" >&2;}
   { (exit 1); exit 1; }; };;
esac
d1599 3
a1601 11
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
d1604 2
a1605 2
{ echo "$as_me:$LINENO: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d1609 6
a1614 6
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
a1615 1
fi
d1618 2
a1619 8
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
echo "$as_me: error: invalid value of canonical host" >&2;}
   { (exit 1); exit 1; }; };;
esac
d1621 3
a1623 11
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
d1627 1
a1627 1
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
d1630 1
a1630 1
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d1637 1
a1637 1
rm -f conftest.sed
d1641 2
a1642 2
{ echo "$as_me:$LINENO: checking if building in the top-level or dist directories" >&5
echo $ECHO_N "checking if building in the top-level or dist directories... $ECHO_C" >&6; }
d1644 4
a1647 10
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	{ { echo "$as_me:$LINENO: error: \
Berkeley DB should not be built in the top-level or \"dist\" directories. \
Change directory to the build_unix directory and run ../dist/configure \
from there." >&5
echo "$as_me: error: \
Berkeley DB should not be built in the top-level or \"dist\" directories. \
Change directory to the build_unix directory and run ../dist/configure \
from there." >&2;}
a1648 1

d1650 2
a1651 2
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a1702 4
# The Windows public header has two extra symbols we need to remove.



d1710 1
a1710 1
DB_VERSION_MINOR="5"
d1714 1
a1714 1
DB_VERSION_STRING='"Berkeley DB 4.5.20: (September 20, 2006)"'
d1722 1
a1722 1
# Check whether --enable-bigfile was given.
d1724 2
a1725 1
  enableval=$enable_bigfile; { { echo "$as_me:$LINENO: error: --enable-bigfile no longer supported, use --enable-largefile" >&5
d1728 1
a1728 1
fi
d1730 5
a1735 5
{ echo "$as_me:$LINENO: checking if --disable-cryptography option specified" >&5
echo $ECHO_N "checking if --disable-cryptography option specified... $ECHO_C" >&6; }
# Check whether --enable-cryptography was given.
if test "${enable_cryptography+set}" = set; then
  enableval=$enable_cryptography;
d1738 1
a1738 2
fi

d1741 4
a1744 4
 no) { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; };;
yes) { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; };;
d1747 3
a1749 3
{ echo "$as_me:$LINENO: checking if --disable-hash option specified" >&5
echo $ECHO_N "checking if --disable-hash option specified... $ECHO_C" >&6; }
# Check whether --enable-hash was given.
d1751 2
a1752 1
  enableval=$enable_hash;
d1755 1
a1755 2
fi

d1758 4
a1761 4
 no) { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; };;
yes) { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; };;
d1764 3
a1766 3
{ echo "$as_me:$LINENO: checking if --disable-queue option specified" >&5
echo $ECHO_N "checking if --disable-queue option specified... $ECHO_C" >&6; }
# Check whether --enable-queue was given.
d1768 2
a1769 1
  enableval=$enable_queue;
d1772 1
a1772 2
fi

d1775 4
a1778 4
 no) { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; };;
yes) { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; };;
d1781 3
a1783 3
{ echo "$as_me:$LINENO: checking if --disable-replication option specified" >&5
echo $ECHO_N "checking if --disable-replication option specified... $ECHO_C" >&6; }
# Check whether --enable-replication was given.
d1785 2
a1786 1
  enableval=$enable_replication;
d1789 1
a1789 2
fi

d1792 4
a1795 4
 no) { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; };;
yes) { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; };;
d1798 3
a1800 3
{ echo "$as_me:$LINENO: checking if --disable-statistics option specified" >&5
echo $ECHO_N "checking if --disable-statistics option specified... $ECHO_C" >&6; }
# Check whether --enable-statistics was given.
d1802 2
a1803 1
  enableval=$enable_statistics;
d1806 1
a1806 2
fi

d1809 4
a1812 4
 no) { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; };;
yes) { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; };;
d1815 3
a1817 3
{ echo "$as_me:$LINENO: checking if --disable-verify option specified" >&5
echo $ECHO_N "checking if --disable-verify option specified... $ECHO_C" >&6; }
# Check whether --enable-verify was given.
d1819 2
a1820 1
  enableval=$enable_verify;
d1823 1
a1823 2
fi

d1826 4
a1829 4
 no) { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; };;
yes) { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; };;
d1832 3
a1834 3
{ echo "$as_me:$LINENO: checking if --enable-compat185 option specified" >&5
echo $ECHO_N "checking if --enable-compat185 option specified... $ECHO_C" >&6; }
# Check whether --enable-compat185 was given.
d1836 2
a1837 1
  enableval=$enable_compat185; db_cv_compat185="$enable_compat185"
d1840 7
a1846 8
fi

{ echo "$as_me:$LINENO: result: $db_cv_compat185" >&5
echo "${ECHO_T}$db_cv_compat185" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-cxx option specified" >&5
echo $ECHO_N "checking if --enable-cxx option specified... $ECHO_C" >&6; }
# Check whether --enable-cxx was given.
d1848 2
a1849 1
  enableval=$enable_cxx; db_cv_cxx="$enable_cxx"
d1852 7
a1858 8
fi

{ echo "$as_me:$LINENO: result: $db_cv_cxx" >&5
echo "${ECHO_T}$db_cv_cxx" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6; }
# Check whether --enable-debug was given.
d1860 2
a1861 1
  enableval=$enable_debug; db_cv_debug="$enable_debug"
d1864 7
a1870 8
fi

{ echo "$as_me:$LINENO: result: $db_cv_debug" >&5
echo "${ECHO_T}$db_cv_debug" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-debug_rop option specified" >&5
echo $ECHO_N "checking if --enable-debug_rop option specified... $ECHO_C" >&6; }
# Check whether --enable-debug_rop was given.
d1872 2
a1873 1
  enableval=$enable_debug_rop; db_cv_debug_rop="$enable_debug_rop"
d1876 7
a1882 8
fi

{ echo "$as_me:$LINENO: result: $db_cv_debug_rop" >&5
echo "${ECHO_T}$db_cv_debug_rop" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-debug_wop option specified" >&5
echo $ECHO_N "checking if --enable-debug_wop option specified... $ECHO_C" >&6; }
# Check whether --enable-debug_wop was given.
d1884 2
a1885 1
  enableval=$enable_debug_wop; db_cv_debug_wop="$enable_debug_wop"
d1888 7
a1894 8
fi

{ echo "$as_me:$LINENO: result: $db_cv_debug_wop" >&5
echo "${ECHO_T}$db_cv_debug_wop" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-diagnostic option specified" >&5
echo $ECHO_N "checking if --enable-diagnostic option specified... $ECHO_C" >&6; }
# Check whether --enable-diagnostic was given.
d1896 2
a1897 1
  enableval=$enable_diagnostic; db_cv_diagnostic="$enable_diagnostic"
d1900 1
a1900 2
fi

d1902 2
a1903 2
	{ echo "$as_me:$LINENO: result: $db_cv_diagnostic" >&5
echo "${ECHO_T}$db_cv_diagnostic" >&6; }
d1907 2
a1908 2
	{ echo "$as_me:$LINENO: result: by --enable-debug_rop" >&5
echo "${ECHO_T}by --enable-debug_rop" >&6; }
d1912 2
a1913 2
	{ echo "$as_me:$LINENO: result: by --enable-debug_wop" >&5
echo "${ECHO_T}by --enable-debug_wop" >&6; }
d1916 2
a1917 2
	{ echo "$as_me:$LINENO: result: $db_cv_diagnostic" >&5
echo "${ECHO_T}$db_cv_diagnostic" >&6; }
d1920 3
a1922 3
{ echo "$as_me:$LINENO: checking if --enable-dump185 option specified" >&5
echo $ECHO_N "checking if --enable-dump185 option specified... $ECHO_C" >&6; }
# Check whether --enable-dump185 was given.
d1924 2
a1925 1
  enableval=$enable_dump185; db_cv_dump185="$enable_dump185"
d1928 7
a1934 8
fi

{ echo "$as_me:$LINENO: result: $db_cv_dump185" >&5
echo "${ECHO_T}$db_cv_dump185" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-java option specified" >&5
echo $ECHO_N "checking if --enable-java option specified... $ECHO_C" >&6; }
# Check whether --enable-java was given.
d1936 2
a1937 1
  enableval=$enable_java; db_cv_java="$enable_java"
d1940 7
a1946 8
fi

{ echo "$as_me:$LINENO: result: $db_cv_java" >&5
echo "${ECHO_T}$db_cv_java" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-mingw option specified" >&5
echo $ECHO_N "checking if --enable-mingw option specified... $ECHO_C" >&6; }
# Check whether --enable-mingw was given.
d1948 2
a1949 1
  enableval=$enable_mingw; db_cv_mingw="$enable_mingw"
d1952 7
a1958 8
fi

{ echo "$as_me:$LINENO: result: $db_cv_mingw" >&5
echo "${ECHO_T}$db_cv_mingw" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-o_direct option specified" >&5
echo $ECHO_N "checking if --enable-o_direct option specified... $ECHO_C" >&6; }
# Check whether --enable-o_direct was given.
d1960 2
a1961 1
  enableval=$enable_o_direct; db_cv_o_direct="$enable_o_direct"
d1964 7
a1970 8
fi

{ echo "$as_me:$LINENO: result: $db_cv_o_direct" >&5
echo "${ECHO_T}$db_cv_o_direct" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-posixmutexes option specified" >&5
echo $ECHO_N "checking if --enable-posixmutexes option specified... $ECHO_C" >&6; }
# Check whether --enable-posixmutexes was given.
d1972 2
a1973 1
  enableval=$enable_posixmutexes; db_cv_posixmutexes="$enable_posixmutexes"
d1976 7
a1982 6
fi

{ echo "$as_me:$LINENO: result: $db_cv_posixmutexes" >&5
echo "${ECHO_T}$db_cv_posixmutexes" >&6; }

# Check whether --enable-pthread_self was given.
d1984 2
a1985 11
  enableval=$enable_pthread_self; { { echo "$as_me:$LINENO: error: --enable-pthread_self no longer supported, use --enable-pthread_api" >&5
echo "$as_me: error: --enable-pthread_self no longer supported, use --enable-pthread_api" >&2;}
   { (exit 1); exit 1; }; }
fi


{ echo "$as_me:$LINENO: checking if --enable-pthread_api option specified" >&5
echo $ECHO_N "checking if --enable-pthread_api option specified... $ECHO_C" >&6; }
# Check whether --enable-pthread_api was given.
if test "${enable_pthread_api+set}" = set; then
  enableval=$enable_pthread_api; db_cv_pthread_api="$enable_pthread_api"
d1987 8
a1994 21
  db_cv_pthread_api="no"
fi

# POSIX mutexes implies other POSIX APIs.
if test "$db_cv_posixmutexes" != "no"; then
	db_cv_pthread_api="yes"
fi
{ echo "$as_me:$LINENO: result: $db_cv_pthread_api" >&5
echo "${ECHO_T}$db_cv_pthread_api" >&6; }


if test "$db_cv_pthread_api" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_PTHREAD_API 1
_ACEOF

fi

{ echo "$as_me:$LINENO: checking if --enable-rpc option specified" >&5
echo $ECHO_N "checking if --enable-rpc option specified... $ECHO_C" >&6; }
# Check whether --enable-rpc was given.
d1996 2
a1997 1
  enableval=$enable_rpc; db_cv_rpc="$enable_rpc"
d2000 7
a2006 8
fi

{ echo "$as_me:$LINENO: result: $db_cv_rpc" >&5
echo "${ECHO_T}$db_cv_rpc" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-smallbuild option specified" >&5
echo $ECHO_N "checking if --enable-smallbuild option specified... $ECHO_C" >&6; }
# Check whether --enable-smallbuild was given.
d2008 2
a2009 1
  enableval=$enable_smallbuild; db_cv_smallbuild="$enable_smallbuild"
d2012 1
a2012 2
fi

d2021 2
a2022 2
{ echo "$as_me:$LINENO: result: $db_cv_smallbuild" >&5
echo "${ECHO_T}$db_cv_smallbuild" >&6; }
d2024 3
a2026 3
{ echo "$as_me:$LINENO: checking if --enable-tcl option specified" >&5
echo $ECHO_N "checking if --enable-tcl option specified... $ECHO_C" >&6; }
# Check whether --enable-tcl was given.
d2028 2
a2029 1
  enableval=$enable_tcl; db_cv_tcl="$enable_tcl"
d2032 7
a2038 8
fi

{ echo "$as_me:$LINENO: result: $db_cv_tcl" >&5
echo "${ECHO_T}$db_cv_tcl" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-test option specified" >&5
echo $ECHO_N "checking if --enable-test option specified... $ECHO_C" >&6; }
# Check whether --enable-test was given.
d2040 2
a2041 1
  enableval=$enable_test; db_cv_test="$enable_test"
d2044 7
a2050 8
fi

{ echo "$as_me:$LINENO: result: $db_cv_test" >&5
echo "${ECHO_T}$db_cv_test" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-uimutexes option specified" >&5
echo $ECHO_N "checking if --enable-uimutexes option specified... $ECHO_C" >&6; }
# Check whether --enable-uimutexes was given.
d2052 2
a2053 1
  enableval=$enable_uimutexes; db_cv_uimutexes="$enable_uimutexes"
d2056 7
a2062 8
fi

{ echo "$as_me:$LINENO: result: $db_cv_uimutexes" >&5
echo "${ECHO_T}$db_cv_uimutexes" >&6; }

{ echo "$as_me:$LINENO: checking if --enable-umrw option specified" >&5
echo $ECHO_N "checking if --enable-umrw option specified... $ECHO_C" >&6; }
# Check whether --enable-umrw was given.
d2064 2
a2065 1
  enableval=$enable_umrw; db_cv_umrw="$enable_umrw"
d2068 3
a2070 4
fi

{ echo "$as_me:$LINENO: result: $db_cv_umrw" >&5
echo "${ECHO_T}$db_cv_umrw" >&6; }
d2072 2
a2073 2
{ echo "$as_me:$LINENO: checking if --with-mutex=MUTEX option specified" >&5
echo $ECHO_N "checking if --with-mutex=MUTEX option specified... $ECHO_C" >&6; }
d2075 1
a2075 1
# Check whether --with-mutex was given.
d2077 2
a2078 1
  withval=$with_mutex; with_mutex="$withval"
d2081 1
a2081 2
fi

d2090 2
a2091 2
{ echo "$as_me:$LINENO: result: $with_mutex" >&5
echo "${ECHO_T}$with_mutex" >&6; }
d2096 1
a2096 1
# Check whether --with-mutexalign was given.
d2098 2
a2099 1
  withval=$with_mutexalign; { { echo "$as_me:$LINENO: error: --with-mutexalign no longer supported, use DbEnv::mutex_set_align" >&5
d2102 1
a2102 2
fi

d2104 2
a2105 2
{ echo "$as_me:$LINENO: checking if --with-tcl=DIR option specified" >&5
echo $ECHO_N "checking if --with-tcl=DIR option specified... $ECHO_C" >&6; }
d2107 1
a2107 1
# Check whether --with-tcl was given.
d2109 2
a2110 1
  withval=$with_tcl; with_tclconfig="$withval"
d2113 3
a2115 4
fi

{ echo "$as_me:$LINENO: result: $with_tclconfig" >&5
echo "${ECHO_T}$with_tclconfig" >&6; }
d2120 2
a2121 2
{ echo "$as_me:$LINENO: checking if --with-uniquename=NAME option specified" >&5
echo $ECHO_N "checking if --with-uniquename=NAME option specified... $ECHO_C" >&6; }
d2123 1
a2123 1
# Check whether --with-uniquename was given.
d2125 2
a2126 1
  withval=$with_uniquename; with_uniquename="$withval"
d2129 1
a2129 2
fi

d2133 2
a2134 2
	{ echo "$as_me:$LINENO: result: $with_uniquename" >&5
echo "${ECHO_T}$with_uniquename" >&6; }
d2138 1
a2138 1
		DB_VERSION_UNIQUE_NAME="_4005"
d2142 2
a2143 2
	{ echo "$as_me:$LINENO: result: $DB_VERSION_UNIQUE_NAME" >&5
echo "${ECHO_T}$DB_VERSION_UNIQUE_NAME" >&6; }
d2155 14
d2218 3
a2220 3
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_AR+set}" = set; then
d2223 2
a2224 2
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
d2232 2
a2233 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="${ac_tool_prefix}ar"
a2238 1
IFS=$as_save_IFS
d2242 4
a2245 4
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { echo "$as_me:$LINENO: result: $AR" >&5
echo "${ECHO_T}$AR" >&6; }
d2247 2
a2248 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a2250 1

d2252 2
a2253 2
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
d2256 3
a2258 3
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
d2261 2
a2262 2
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
d2270 2
a2271 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="ar"
a2276 1
IFS=$as_save_IFS
d2278 1
d2281 4
a2284 4
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6; }
d2286 2
a2287 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d2290 1
a2290 15
  if test "x$ac_ct_AR" = x; then
    AR="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
d2292 1
a2292 1
  AR="$ac_cv_prog_AR"
d2295 2
a2296 1
test "$AR" = "none" && { { echo "$as_me:$LINENO: error: No ar utility found." >&5
d2299 1
d2304 3
a2306 3
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CHMOD+set}" = set; then
d2309 2
a2310 2
  if test -n "$CHMOD"; then
  ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
d2318 2
a2319 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CHMOD="${ac_tool_prefix}chmod"
a2324 1
IFS=$as_save_IFS
d2328 4
a2331 4
CHMOD=$ac_cv_prog_CHMOD
if test -n "$CHMOD"; then
  { echo "$as_me:$LINENO: result: $CHMOD" >&5
echo "${ECHO_T}$CHMOD" >&6; }
d2333 2
a2334 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a2336 1

d2338 2
a2339 2
if test -z "$ac_cv_prog_CHMOD"; then
  ac_ct_CHMOD=$CHMOD
d2342 3
a2344 3
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CHMOD+set}" = set; then
d2347 2
a2348 2
  if test -n "$ac_ct_CHMOD"; then
  ac_cv_prog_ac_ct_CHMOD="$ac_ct_CHMOD" # Let the user override the test.
d2356 2
a2357 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CHMOD="chmod"
a2362 1
IFS=$as_save_IFS
d2364 1
d2367 4
a2370 4
ac_ct_CHMOD=$ac_cv_prog_ac_ct_CHMOD
if test -n "$ac_ct_CHMOD"; then
  { echo "$as_me:$LINENO: result: $ac_ct_CHMOD" >&5
echo "${ECHO_T}$ac_ct_CHMOD" >&6; }
d2372 2
a2373 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d2376 1
a2376 15
  if test "x$ac_ct_CHMOD" = x; then
    CHMOD="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CHMOD=$ac_ct_CHMOD
  fi
d2378 1
a2378 1
  CHMOD="$ac_cv_prog_CHMOD"
d2381 2
a2382 1
test "$CHMOD" = "none" && { { echo "$as_me:$LINENO: error: No chmod utility found." >&5
d2385 1
d2390 3
a2392 3
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CP+set}" = set; then
d2395 2
a2396 2
  if test -n "$CP"; then
  ac_cv_prog_CP="$CP" # Let the user override the test.
d2404 2
a2405 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CP="${ac_tool_prefix}cp"
a2410 1
IFS=$as_save_IFS
d2414 4
a2417 4
CP=$ac_cv_prog_CP
if test -n "$CP"; then
  { echo "$as_me:$LINENO: result: $CP" >&5
echo "${ECHO_T}$CP" >&6; }
d2419 2
a2420 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a2422 1

d2424 2
a2425 2
if test -z "$ac_cv_prog_CP"; then
  ac_ct_CP=$CP
d2428 3
a2430 3
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CP+set}" = set; then
d2433 2
a2434 2
  if test -n "$ac_ct_CP"; then
  ac_cv_prog_ac_ct_CP="$ac_ct_CP" # Let the user override the test.
d2442 2
a2443 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CP="cp"
a2448 1
IFS=$as_save_IFS
d2450 1
d2453 4
a2456 4
ac_ct_CP=$ac_cv_prog_ac_ct_CP
if test -n "$ac_ct_CP"; then
  { echo "$as_me:$LINENO: result: $ac_ct_CP" >&5
echo "${ECHO_T}$ac_ct_CP" >&6; }
d2458 2
a2459 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d2462 1
a2462 15
  if test "x$ac_ct_CP" = x; then
    CP="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CP=$ac_ct_CP
  fi
d2464 1
a2464 1
  CP="$ac_cv_prog_CP"
d2467 2
a2468 1
test "$CP" = "none" && { { echo "$as_me:$LINENO: error: No cp utility found." >&5
d2471 1
d2473 6
a2478 8
# The Tcl test suite requires a kill utility.
if test "$db_cv_test" = "yes"; then
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}kill", so it can be a program name with args.
set dummy ${ac_tool_prefix}kill; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_KILL+set}" = set; then
d2481 2
a2482 2
  if test -n "$KILL"; then
  ac_cv_prog_KILL="$KILL" # Let the user override the test.
d2490 2
a2491 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_KILL="${ac_tool_prefix}kill"
a2496 1
IFS=$as_save_IFS
d2500 4
a2503 4
KILL=$ac_cv_prog_KILL
if test -n "$KILL"; then
  { echo "$as_me:$LINENO: result: $KILL" >&5
echo "${ECHO_T}$KILL" >&6; }
d2505 2
a2506 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a2508 1

d2510 7
a2516 7
if test -z "$ac_cv_prog_KILL"; then
  ac_ct_KILL=$KILL
  # Extract the first word of "kill", so it can be a program name with args.
set dummy kill; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_KILL+set}" = set; then
d2519 2
a2520 2
  if test -n "$ac_ct_KILL"; then
  ac_cv_prog_ac_ct_KILL="$ac_ct_KILL" # Let the user override the test.
d2528 2
a2529 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_KILL="kill"
a2534 1
IFS=$as_save_IFS
d2536 1
d2539 4
a2542 4
ac_ct_KILL=$ac_cv_prog_ac_ct_KILL
if test -n "$ac_ct_KILL"; then
  { echo "$as_me:$LINENO: result: $ac_ct_KILL" >&5
echo "${ECHO_T}$ac_ct_KILL" >&6; }
d2544 2
a2545 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d2548 1
a2548 15
  if test "x$ac_ct_KILL" = x; then
    KILL="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    KILL=$ac_ct_KILL
  fi
d2550 1
a2550 1
  KILL="$ac_cv_prog_KILL"
d2553 3
a2555 2
	test "$KILL" = "none" && { { echo "$as_me:$LINENO: error: No kill utility found." >&5
echo "$as_me: error: No kill utility found." >&2;}
d2560 5
a2564 5
  # Extract the first word of "${ac_tool_prefix}ln", so it can be a program name with args.
set dummy ${ac_tool_prefix}ln; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_LN+set}" = set; then
d2567 2
a2568 2
  if test -n "$LN"; then
  ac_cv_prog_LN="$LN" # Let the user override the test.
d2576 2
a2577 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LN="${ac_tool_prefix}ln"
a2582 1
IFS=$as_save_IFS
d2586 4
a2589 4
LN=$ac_cv_prog_LN
if test -n "$LN"; then
  { echo "$as_me:$LINENO: result: $LN" >&5
echo "${ECHO_T}$LN" >&6; }
d2591 2
a2592 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a2594 1

d2596 7
a2602 7
if test -z "$ac_cv_prog_LN"; then
  ac_ct_LN=$LN
  # Extract the first word of "ln", so it can be a program name with args.
set dummy ln; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_LN+set}" = set; then
d2605 2
a2606 2
  if test -n "$ac_ct_LN"; then
  ac_cv_prog_ac_ct_LN="$ac_ct_LN" # Let the user override the test.
d2614 2
a2615 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LN="ln"
a2620 1
IFS=$as_save_IFS
d2622 1
d2625 4
a2628 4
ac_ct_LN=$ac_cv_prog_ac_ct_LN
if test -n "$ac_ct_LN"; then
  { echo "$as_me:$LINENO: result: $ac_ct_LN" >&5
echo "${ECHO_T}$ac_ct_LN" >&6; }
d2630 2
a2631 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d2634 1
a2634 15
  if test "x$ac_ct_LN" = x; then
    LN="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    LN=$ac_ct_LN
  fi
d2636 1
a2636 1
  LN="$ac_cv_prog_LN"
d2639 3
a2641 2
test "$LN" = "none" && { { echo "$as_me:$LINENO: error: No ln utility found." >&5
echo "$as_me: error: No ln utility found." >&2;}
d2643 1
d2645 2
d2648 5
a2652 5
  # Extract the first word of "${ac_tool_prefix}mkdir", so it can be a program name with args.
set dummy ${ac_tool_prefix}mkdir; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_MKDIR+set}" = set; then
d2655 2
a2656 2
  if test -n "$MKDIR"; then
  ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
d2664 2
a2665 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_MKDIR="${ac_tool_prefix}mkdir"
a2670 1
IFS=$as_save_IFS
d2674 4
a2677 4
MKDIR=$ac_cv_prog_MKDIR
if test -n "$MKDIR"; then
  { echo "$as_me:$LINENO: result: $MKDIR" >&5
echo "${ECHO_T}$MKDIR" >&6; }
d2679 2
a2680 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a2682 1

d2684 7
a2690 7
if test -z "$ac_cv_prog_MKDIR"; then
  ac_ct_MKDIR=$MKDIR
  # Extract the first word of "mkdir", so it can be a program name with args.
set dummy mkdir; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_MKDIR+set}" = set; then
d2693 2
a2694 2
  if test -n "$ac_ct_MKDIR"; then
  ac_cv_prog_ac_ct_MKDIR="$ac_ct_MKDIR" # Let the user override the test.
d2702 2
a2703 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_MKDIR="mkdir"
a2708 1
IFS=$as_save_IFS
d2710 1
d2713 4
a2716 4
ac_ct_MKDIR=$ac_cv_prog_ac_ct_MKDIR
if test -n "$ac_ct_MKDIR"; then
  { echo "$as_me:$LINENO: result: $ac_ct_MKDIR" >&5
echo "${ECHO_T}$ac_ct_MKDIR" >&6; }
d2718 2
a2719 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d2722 1
a2722 15
  if test "x$ac_ct_MKDIR" = x; then
    MKDIR="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    MKDIR=$ac_ct_MKDIR
  fi
d2724 1
a2724 1
  MKDIR="$ac_cv_prog_MKDIR"
d2727 5
a2731 12
test "$MKDIR" = "none" && { { echo "$as_me:$LINENO: error: No mkdir utility found." >&5
echo "$as_me: error: No mkdir utility found." >&2;}
   { (exit 1); exit 1; }; }

# Ranlib doesn't exist on some architectures because the ar utility
# packages the library itself.
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_RANLIB+set}" = set; then
d2734 6
a2739 4
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d2745 2
a2746 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
a2751 1
IFS=$as_save_IFS
d2753 3
d2757 5
a2761 5
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6; }
d2763 2
a2764 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d2768 25
d2794 18
a2811 7
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
d2814 2
a2815 2
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d2823 2
a2824 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
a2829 1
IFS=$as_save_IFS
d2831 1
d2834 4
a2837 4
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d2839 2
a2840 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d2843 1
a2843 15
  if test "x$ac_ct_RANLIB" = x; then
    RANLIB="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
d2845 1
a2845 1
  RANLIB="$ac_cv_prog_RANLIB"
d2848 5
d2854 7
a2860 6
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}rm", so it can be a program name with args.
set dummy ${ac_tool_prefix}rm; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_RM+set}" = set; then
d2863 2
a2864 2
  if test -n "$RM"; then
  ac_cv_prog_RM="$RM" # Let the user override the test.
d2872 2
a2873 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RM="${ac_tool_prefix}rm"
a2878 1
IFS=$as_save_IFS
d2882 4
a2885 4
RM=$ac_cv_prog_RM
if test -n "$RM"; then
  { echo "$as_me:$LINENO: result: $RM" >&5
echo "${ECHO_T}$RM" >&6; }
d2887 2
a2888 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a2890 1

d2892 7
a2898 7
if test -z "$ac_cv_prog_RM"; then
  ac_ct_RM=$RM
  # Extract the first word of "rm", so it can be a program name with args.
set dummy rm; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_RM+set}" = set; then
d2901 2
a2902 2
  if test -n "$ac_ct_RM"; then
  ac_cv_prog_ac_ct_RM="$ac_ct_RM" # Let the user override the test.
d2910 2
a2911 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RM="rm"
a2916 1
IFS=$as_save_IFS
d2918 1
d2921 4
a2924 4
ac_ct_RM=$ac_cv_prog_ac_ct_RM
if test -n "$ac_ct_RM"; then
  { echo "$as_me:$LINENO: result: $ac_ct_RM" >&5
echo "${ECHO_T}$ac_ct_RM" >&6; }
d2926 2
a2927 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d2930 1
a2930 15
  if test "x$ac_ct_RM" = x; then
    RM="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    RM=$ac_ct_RM
  fi
d2932 1
a2932 1
  RM="$ac_cv_prog_RM"
d2935 3
a2937 2
test "$RM" = "none" && { { echo "$as_me:$LINENO: error: No rm utility found." >&5
echo "$as_me: error: No rm utility found." >&2;}
d2939 2
d2942 8
a2949 7
if test "$db_cv_rpc" = "yes"; then
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}rpcgen", so it can be a program name with args.
set dummy ${ac_tool_prefix}rpcgen; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_RPCGEN+set}" = set; then
d2952 2
a2953 2
  if test -n "$RPCGEN"; then
  ac_cv_prog_RPCGEN="$RPCGEN" # Let the user override the test.
d2961 2
a2962 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RPCGEN="${ac_tool_prefix}rpcgen"
a2967 1
IFS=$as_save_IFS
d2971 4
a2974 4
RPCGEN=$ac_cv_prog_RPCGEN
if test -n "$RPCGEN"; then
  { echo "$as_me:$LINENO: result: $RPCGEN" >&5
echo "${ECHO_T}$RPCGEN" >&6; }
d2976 2
a2977 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a2979 1

d2981 7
a2987 7
if test -z "$ac_cv_prog_RPCGEN"; then
  ac_ct_RPCGEN=$RPCGEN
  # Extract the first word of "rpcgen", so it can be a program name with args.
set dummy rpcgen; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_RPCGEN+set}" = set; then
d2990 2
a2991 2
  if test -n "$ac_ct_RPCGEN"; then
  ac_cv_prog_ac_ct_RPCGEN="$ac_ct_RPCGEN" # Let the user override the test.
d2999 2
a3000 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RPCGEN="rpcgen"
a3005 1
IFS=$as_save_IFS
d3007 1
d3010 4
a3013 4
ac_ct_RPCGEN=$ac_cv_prog_ac_ct_RPCGEN
if test -n "$ac_ct_RPCGEN"; then
  { echo "$as_me:$LINENO: result: $ac_ct_RPCGEN" >&5
echo "${ECHO_T}$ac_ct_RPCGEN" >&6; }
d3015 2
a3016 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d3019 1
a3019 15
  if test "x$ac_ct_RPCGEN" = x; then
    RPCGEN="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    RPCGEN=$ac_ct_RPCGEN
  fi
d3021 1
a3021 6
  RPCGEN="$ac_cv_prog_RPCGEN"
fi

	test "$RPCGEN" = "none" && { { echo "$as_me:$LINENO: error: No rpcgen utility found." >&5
echo "$as_me: error: No rpcgen utility found." >&2;}
   { (exit 1); exit 1; }; }
d3024 4
a3027 9
# We need a complete path for sh, because some make utility implementations get
# upset if SHELL is set to just the command name.  Don't use the SHELL variable
# here because the user likely has the SHELL variable set to something other
# than the Bourne shell, which is what Make wants.
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}sh", so it can be a program name with args.
set dummy ${ac_tool_prefix}sh; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d3042 1
a3042 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a3048 1
IFS=$as_save_IFS
d3050 1
d3055 1
d3057 2
a3058 2
  { echo "$as_me:$LINENO: result: $db_cv_path_sh" >&5
echo "${ECHO_T}$db_cv_path_sh" >&6; }
d3060 8
a3067 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d3070 35
d3107 7
a3113 7
if test -z "$ac_cv_path_db_cv_path_sh"; then
  ac_pt_db_cv_path_sh=$db_cv_path_sh
  # Extract the first word of "sh", so it can be a program name with args.
set dummy sh; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_path_ac_pt_db_cv_path_sh+set}" = set; then
d3116 4
a3119 6
  case $ac_pt_db_cv_path_sh in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_db_cv_path_sh="$ac_pt_db_cv_path_sh" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d3125 2
a3126 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_db_cv_path_sh="$as_dir/$ac_word$ac_exec_ext"
a3131 1
IFS=$as_save_IFS
d3133 2
a3134 2
  ;;
esac
d3136 4
a3139 4
ac_pt_db_cv_path_sh=$ac_cv_path_ac_pt_db_cv_path_sh
if test -n "$ac_pt_db_cv_path_sh"; then
  { echo "$as_me:$LINENO: result: $ac_pt_db_cv_path_sh" >&5
echo "${ECHO_T}$ac_pt_db_cv_path_sh" >&6; }
d3141 2
a3142 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d3145 1
a3145 15
  if test "x$ac_pt_db_cv_path_sh" = x; then
    db_cv_path_sh="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    db_cv_path_sh=$ac_pt_db_cv_path_sh
  fi
d3147 1
a3147 1
  db_cv_path_sh="$ac_cv_path_db_cv_path_sh"
d3150 3
a3152 2
test "$db_cv_path_sh" = "none" && { { echo "$as_me:$LINENO: error: No sh utility found." >&5
echo "$as_me: error: No sh utility found." >&2;}
d3154 1
d3158 1
a3158 1
	STRIP="none"
d3163 3
a3165 3
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then
d3168 2
a3169 2
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d3177 2
a3178 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a3183 1
IFS=$as_save_IFS
d3187 4
a3190 4
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6; }
d3192 2
a3193 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a3195 1

d3197 2
a3198 2
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
d3201 3
a3203 3
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
d3206 2
a3207 2
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d3215 2
a3216 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
a3221 1
IFS=$as_save_IFS
d3223 1
d3226 10
a3235 4
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d3237 1
a3237 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d3240 28
a3267 12
  if test "x$ac_ct_STRIP" = x; then
    STRIP="none"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
d3269 73
a3341 1
    STRIP=$ac_ct_STRIP
d3343 16
d3360 1
a3360 1
  STRIP="$ac_cv_prog_STRIP"
d3363 5
a3367 2
	test "$STRIP" = "none" && { echo "$as_me:$LINENO: WARNING: No strip utility found." >&5
echo "$as_me: WARNING: No strip utility found." >&2;}
d3369 2
d3384 2
a3385 2
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d3407 1
a3407 1
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
a3425 1
IFS=$as_save_IFS
d3432 2
a3433 2
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
d3435 1
a3435 1
    # removed, or if the value is a relative name.
d3439 2
a3440 2
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6; }
d3476 1
a3476 1
	LIBSO_LIBS="$LIBSO_LIBS -lipc";;
d3488 1
a3488 1
	LIBSO_LIBS="$LIBSO_LIBS -lsocket -lsvipc";;
d3497 1
a3497 1
	CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS ";;
d3535 2
a3536 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d3549 1
a3549 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a3555 1
IFS=$as_save_IFS
d3561 2
a3562 2
  { echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
d3564 2
a3565 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a3567 1

d3577 2
a3578 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d3591 1
a3591 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a3597 1
IFS=$as_save_IFS
d3603 2
a3604 2
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6; }
d3606 2
a3607 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a3609 1

d3613 1
a3613 15
  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
d3624 2
a3625 1
echo "$as_me:$LINENO: checking for C compiler version" >&5
d3627 2
a3628 7
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
d3632 2
a3633 7
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
d3637 2
a3638 7
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
d3663 2
a3664 2
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d3666 2
a3667 26
#
# List of possible output files, starting from the most likely.
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
# only as a last resort.  b.out is created by i960 compilers.
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
#
# The IRIX 6 linker writes into existing files which may not be
# executable, retaining their permissions.  Remove them first so a
# subsequent execution test works.
ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { (ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link_default") 2>&5
d3671 9
a3679 6
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files
d3683 4
a3686 1
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d3693 5
a3697 9
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
a3702 2
test "$ac_cv_exeext" = no && ac_cv_exeext=

d3715 2
a3716 2
{ echo "$as_me:$LINENO: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6; }
d3718 1
a3718 1
# Check that the compiler produces executables we can run.  If not, either
d3720 2
a3721 2
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d3726 2
a3727 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d3746 2
a3747 2
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d3751 1
a3751 1
# Check that the compiler produces executables we can run.  If not, either
d3753 9
a3761 14
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6; }

{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d3772 1
a3772 1
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d3774 1
d3788 2
a3789 2
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6; }
d3794 2
a3795 2
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d3815 2
a3816 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>&5
d3820 1
a3820 2
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
d3822 1
a3822 1
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d3840 2
a3841 2
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6; }
d3844 2
a3845 2
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d3868 2
a3869 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d3876 4
a3879 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d3884 2
a3885 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d3894 1
a3894 1
	ac_compiler_gnu=no
d3896 1
a3896 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d3900 2
a3901 2
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d3905 3
a3907 2
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d3911 1
a3911 5
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
d3927 2
a3928 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d3935 4
a3938 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d3943 2
a3944 117
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	CFLAGS=""
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d3953 1
a3953 1

d3955 1
a3955 9

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
d3957 2
a3958 2
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d3974 3
a3976 3
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then
d3979 1
a3979 1
  ac_cv_prog_cc_c89=no
d4013 1
a4013 1
   as 'x'.  The following induces an error, until -std is added to get
d4016 1
a4016 1
   that's true only with -std.  */
a4018 5
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

d4033 8
a4040 2
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d4044 2
a4045 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d4052 4
a4055 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d4060 2
a4061 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d4065 2
a4066 1
  ac_cv_prog_cc_c89=$ac_arg
a4070 1

d4072 1
a4072 3

rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
d4074 1
a4074 1
rm -f conftest.$ac_ext
d4078 5
a4082 8
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6; } ;;
  xno)
    { echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6; } ;;
d4084 3
a4086 3
    CC="$CC $ac_cv_prog_cc_c89"
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d4089 140
d4230 2
d4241 1
a4241 5
	# Use -O3 if we're using gcc, unless we're doing a small build, in
	# which case we use -Os alone.  The code size for -O3 is quite a
	# bit larger than -O2: a compromise is "-Os -finline-functions",
	# it's smaller and explicitly inlining the functions helps Berkeley
	# DB.
d4243 1
a4243 5
	if test "$db_cv_smallbuild" = "yes"; then
		CFLAGS=`echo "$CFLAGS" | sed 's/-O /-Os /g'`
	else
		CFLAGS=`echo "$CFLAGS" | sed 's/-O /-O3 /g'`
	fi
d4263 2
a4264 2
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
a4303 1
    if (s) return 0;
a4321 1
    if (!foo) return 0;
a4322 1
  return !x[0] && !zero.x;
d4330 2
a4331 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d4338 4
a4341 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d4346 2
a4347 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d4356 1
a4356 1
	ac_cv_c_const=no
d4358 1
a4358 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d4360 2
a4361 2
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6; }
d4396 2
a4397 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d4410 1
a4410 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a4416 1
IFS=$as_save_IFS
d4422 2
a4423 2
  { echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6; }
d4425 2
a4426 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a4428 1

d4434 2
a4435 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d4448 1
a4448 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a4454 1
IFS=$as_save_IFS
d4460 2
a4461 2
  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6; }
d4463 2
a4464 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d4467 1
a4467 15
  if test "x$ac_ct_CCC" = x; then
    CCC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CCC=$ac_ct_CCC
  fi
d4473 1
a4473 1
				LIBSO_LIBS="-lC_r $LIBSO_LIBS";;
d4477 2
a4478 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d4491 1
a4491 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a4497 1
IFS=$as_save_IFS
d4503 2
a4504 2
  { echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6; }
d4506 2
a4507 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a4509 1

d4515 2
a4516 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d4529 1
a4529 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a4535 1
IFS=$as_save_IFS
d4541 2
a4542 2
  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6; }
d4544 2
a4545 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d4548 1
a4548 15
  if test "x$ac_ct_CCC" = x; then
    CCC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CCC=$ac_ct_CCC
  fi
d4556 2
a4557 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d4570 1
a4570 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a4576 1
IFS=$as_save_IFS
d4582 2
a4583 2
  { echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6; }
d4585 2
a4586 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a4588 1

d4594 2
a4595 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d4608 1
a4608 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a4614 1
IFS=$as_save_IFS
d4620 2
a4621 2
  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6; }
d4623 2
a4624 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d4627 1
a4627 15
  if test "x$ac_ct_CCC" = x; then
    CCC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CCC=$ac_ct_CCC
  fi
d4635 2
a4636 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d4649 1
a4649 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a4655 1
IFS=$as_save_IFS
d4661 2
a4662 2
  { echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6; }
d4664 2
a4665 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a4667 1

d4673 2
a4674 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d4687 1
a4687 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a4693 1
IFS=$as_save_IFS
d4699 2
a4700 2
  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6; }
d4702 2
a4703 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d4706 1
a4706 15
  if test "x$ac_ct_CCC" = x; then
    CCC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CCC=$ac_ct_CCC
  fi
d4714 2
a4715 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d4728 1
a4728 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a4734 1
IFS=$as_save_IFS
d4740 2
a4741 2
  { echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6; }
d4743 2
a4744 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a4746 1

d4752 2
a4753 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d4766 1
a4766 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a4772 1
IFS=$as_save_IFS
d4778 2
a4779 2
  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6; }
d4781 2
a4782 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d4785 1
a4785 15
  if test "x$ac_ct_CCC" = x; then
    CCC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CCC=$ac_ct_CCC
  fi
d4792 1
a4792 1
	ac_ext=cpp
d4797 2
a4798 6
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d4802 2
a4803 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d4816 1
a4816 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a4822 1
IFS=$as_save_IFS
d4828 2
a4829 2
  { echo "$as_me:$LINENO: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6; }
d4831 2
a4832 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a4834 1

d4840 1
a4840 1
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d4844 2
a4845 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d4858 1
a4858 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a4864 1
IFS=$as_save_IFS
d4870 2
a4871 2
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6; }
d4873 2
a4874 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a4876 1

d4879 1
d4881 1
a4881 15
  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
d4884 1
a4884 2
  fi
fi
d4886 2
a4887 1
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d4889 2
a4890 7
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
d4894 2
a4895 7
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
d4899 2
a4900 7
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
d4905 2
a4906 2
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d4929 2
a4930 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d4937 4
a4940 7
	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d4945 2
a4946 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d4955 1
a4955 1
	ac_compiler_gnu=no
d4957 1
a4957 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d4961 2
a4962 2
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d4966 3
a4968 2
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d4972 1
a4972 5
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
d4988 2
a4989 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d4996 4
a4999 7
	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d5004 2
a5005 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d5014 30
a5043 2
	CXXFLAGS=""
      cat >conftest.$ac_ext <<_ACEOF
d5049 2
a5050 1

d5054 1
a5054 1

d5060 2
a5061 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d5068 4
a5071 7
	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d5076 2
a5077 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d5086 4
a5089 3
	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat >conftest.$ac_ext <<_ACEOF
d5095 1
a5095 1

d5099 1
a5099 1

d5105 2
a5106 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d5113 4
a5116 7
	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d5121 2
a5122 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d5126 1
a5126 1
  ac_cv_prog_cxx_g=yes
a5130 1

d5132 7
a5138 5

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a5140 20
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
d5148 1
a5148 1
	ac_ext=cpp
d5153 2
a5154 2
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d5184 2
a5185 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a5209 1

d5212 1
a5212 1
  # OK, works on sane cases.  Now check whether nonexistent headers
d5222 2
a5223 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a5249 1

d5267 2
a5268 2
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6; }
d5291 2
a5292 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a5316 1

d5319 1
a5319 1
  # OK, works on sane cases.  Now check whether nonexistent headers
d5329 2
a5330 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a5356 1

d5382 2
a5383 2
{ echo "$as_me:$LINENO: checking whether C++ supports the ISO C++ standard includes" >&5
echo $ECHO_N "checking whether C++ supports the ISO C++ standard includes... $ECHO_C" >&6; }
d5388 2
a5389 1
 ac_ext=cpp
d5412 2
a5413 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d5420 4
a5423 7
	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d5428 2
a5429 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d5438 1
a5438 1
	db_cv_cxx_have_stdheaders=no
d5440 1
a5440 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5449 2
a5450 2
{ echo "$as_me:$LINENO: result: $db_cv_cxx_have_stdheaders" >&5
echo "${ECHO_T}$db_cv_cxx_have_stdheaders" >&6; }
d5460 2
a5461 2
{ echo "$as_me:$LINENO: checking whether we are using gcc version 2.96" >&5
echo $ECHO_N "checking whether we are using gcc version 2.96... $ECHO_C" >&6; }
d5475 2
a5476 2
{ echo "$as_me:$LINENO: result: $db_cv_gcc_2_96" >&5
echo "${ECHO_T}$db_cv_gcc_2_96" >&6; }
d5486 2
a5487 2
{ echo "$as_me:$LINENO: checking whether g++ requires -fhandle-exceptions" >&5
echo $ECHO_N "checking whether g++ requires -fhandle-exceptions... $ECHO_C" >&6; }
d5501 2
a5502 2
{ echo "$as_me:$LINENO: result: $db_cv_gxx_except" >&5
echo "${ECHO_T}$db_cv_gxx_except" >&6; }
d5526 1
a5526 1
# Check whether --enable-shared was given.
d5528 2
a5529 1
  enableval=$enable_shared; p=${PACKAGE-default}
d5548 1
a5548 1
fi
d5550 1
a5550 2

# Check whether --enable-static was given.
d5552 2
a5553 1
  enableval=$enable_static; p=${PACKAGE-default}
d5572 1
a5572 1
fi
d5574 1
a5574 2

# Check whether --enable-fast-install was given.
d5576 2
a5577 1
  enableval=$enable_fast_install; p=${PACKAGE-default}
d5596 1
a5596 1
fi
d5598 2
a5599 3

{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d5652 2
a5653 75
{ echo "$as_me:$LINENO: result: $SED" >&5
echo "${ECHO_T}$SED" >&6; }

{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
if test "${ac_cv_path_GREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # Extract the first word of "grep ggrep" to use in msg output
if test -z "$GREP"; then
set dummy grep ggrep; ac_prog_name=$2
if test "${ac_cv_path_GREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_path_GREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in grep ggrep; do
  for ac_exec_ext in '' $ac_executable_extensions; do
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
    # Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac


    $ac_path_GREP_found && break 3
  done
done

done
IFS=$as_save_IFS


fi

GREP="$ac_cv_path_GREP"
if test -z "$GREP"; then
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
fi

else
  ac_cv_path_GREP=$GREP
fi

d5655 3
a5657 18
fi
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
if test "${ac_cv_path_EGREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     # Extract the first word of "egrep" to use in msg output
if test -z "$EGREP"; then
set dummy egrep; ac_prog_name=$2
if test "${ac_cv_path_EGREP+set}" = set; then
d5660 3
a5662 32
  ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in egrep; do
  for ac_exec_ext in '' $ac_executable_extensions; do
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
    # Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
a5663 30
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac


    $ac_path_EGREP_found && break 3
  done
done

done
IFS=$as_save_IFS


fi

EGREP="$ac_cv_path_EGREP"
if test -z "$EGREP"; then
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
fi

else
  ac_cv_path_EGREP=$EGREP
fi


   fi
d5665 3
a5667 3
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"
d5671 1
a5671 1
# Check whether --with-gnu-ld was given.
d5673 2
a5674 1
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d5677 1
a5677 2
fi

d5681 2
a5682 2
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d5711 2
a5712 2
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d5714 2
a5715 2
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d5748 2
a5749 2
  { echo "$as_me:$LINENO: result: $LD" >&5
echo "${ECHO_T}$LD" >&6; }
d5751 2
a5752 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d5757 2
a5758 2
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d5772 2
a5773 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d5777 2
a5778 2
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d5784 2
a5785 2
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d5795 1
a5795 1
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
d5802 2
a5803 2
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d5811 19
a5829 18
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
d5833 2
a5834 10
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
d5837 2
a5838 3
      fi
    done
    IFS="$lt_save_ifs"
d5840 1
d5844 2
a5845 2
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d5848 2
a5849 2
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d5852 2
a5853 2
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d5855 2
a5856 2
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6; }
d5859 2
a5860 2
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
a5947 5
interix3*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;

d5993 4
d6001 1
a6001 1
sysv4 | sysv4.3*)
a6021 3
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
d6025 1
a6025 1
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
d6031 2
a6032 2
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
a6042 3
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

d6046 1
a6046 1
# Check whether --enable-libtool-lock was given.
d6048 1
a6048 2
  enableval=$enable_libtool_lock;
fi
d6050 1
d6077 1
a6077 1
  echo '#line 7033 "configure"' > conftest.$ac_ext
d6162 2
a6163 2
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d6189 2
a6190 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d6197 4
a6200 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d6205 2
a6206 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d6215 1
a6215 1
	lt_cv_cc_needs_belf=no
d6217 1
a6217 2

rm -f core conftest.err conftest.$ac_objext \
d6226 2
a6227 2
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
a6232 20
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)    LD="${LD-ld} -64" ;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;

d6244 2
a6245 2
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d6279 2
a6280 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a6304 1

d6307 1
a6307 1
  # OK, works on sane cases.  Now check whether nonexistent headers
d6317 2
a6318 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a6344 1

d6362 2
a6363 2
{ echo "$as_me:$LINENO: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6; }
d6386 2
a6387 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a6411 1

d6414 1
a6414 1
  # OK, works on sane cases.  Now check whether nonexistent headers
d6424 2
a6425 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a6451 1

d6474 2
a6475 2
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d6499 2
a6500 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d6507 4
a6510 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d6515 2
a6516 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d6525 1
a6525 1
	ac_cv_header_stdc=no
d6527 1
a6527 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6582 1
#include <stdlib.h>
d6602 2
a6603 2
      return 2;
  return 0;
d6607 2
a6608 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d6612 2
a6613 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d6626 1
a6626 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a6627 2


d6630 2
a6631 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d6654 3
a6656 3
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d6670 2
a6671 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d6678 4
a6681 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d6686 2
a6687 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d6696 1
a6696 1
	eval "$as_ac_Header=no"
d6698 1
a6698 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6700 2
a6701 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d6716 4
a6719 4
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d6722 2
a6723 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d6726 2
a6727 2
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d6738 2
a6739 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d6746 4
a6749 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d6754 2
a6755 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d6764 1
a6764 1
	ac_header_compiler=no
d6766 3
a6768 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d6771 2
a6772 2
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d6781 2
a6782 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a6805 1

d6807 2
a6808 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d6832 5
a6836 4
    ( cat <<\_ASBOX
## ---------------------------------------------------------- ##
## Report this to Oracle Technology Network Berkeley DB forum ##
## ---------------------------------------------------------- ##
d6838 2
a6839 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d6842 3
a6844 3
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d6849 2
a6850 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d6867 1
a6867 1
  ac_ext=cpp
d6872 2
a6873 2
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d6903 2
a6904 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a6928 1

d6931 1
a6931 1
  # OK, works on sane cases.  Now check whether nonexistent headers
d6941 2
a6942 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a6968 1

d6986 2
a6987 2
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6; }
d7010 2
a7011 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a7035 1

d7038 1
a7038 1
  # OK, works on sane cases.  Now check whether nonexistent headers
d7048 2
a7049 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a7075 1

d7091 1
a7091 1
ac_ext=cpp
d7104 1
a7104 1
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
d7108 2
a7109 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7122 1
a7122 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a7128 1
IFS=$as_save_IFS
d7134 2
a7135 2
  { echo "$as_me:$LINENO: result: $F77" >&5
echo "${ECHO_T}$F77" >&6; }
d7137 2
a7138 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a7140 1

d7146 1
a7146 1
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
d7150 2
a7151 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7164 1
a7164 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a7170 1
IFS=$as_save_IFS
d7176 2
a7177 2
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
echo "${ECHO_T}$ac_ct_F77" >&6; }
d7179 2
a7180 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a7182 1

d7186 1
a7186 15
  if test "x$ac_ct_F77" = x; then
    F77=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    F77=$ac_ct_F77
  fi
d7191 2
a7192 1
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d7194 2
a7195 7
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
d7199 2
a7200 7
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
d7204 2
a7205 7
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
d7215 2
a7216 2
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d7229 2
a7230 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d7237 4
a7240 7
	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d7245 2
a7246 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d7255 1
a7255 1
	ac_compiler_gnu=no
d7257 1
a7257 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7261 2
a7262 2
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d7267 2
a7268 2
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d7279 2
a7280 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d7287 4
a7290 7
	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d7295 2
a7296 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d7305 1
a7305 1
	ac_cv_prog_f77_g=no
d7307 1
a7307 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7310 2
a7311 2
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d7340 2
a7341 2
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
a7393 6

  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;

a7406 11
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
d7432 2
a7433 2
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d7435 2
a7436 2
  { echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6; }
d7443 2
a7444 2
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d7492 1
a7492 1
solaris*)
a7494 9
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
d7639 2
a7640 2
  { echo "$as_me:$LINENO: result: failed" >&5
echo "${ECHO_T}failed" >&6; }
d7642 2
a7643 2
  { echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6; }
d7646 2
a7647 2
{ echo "$as_me:$LINENO: checking for objdir" >&5
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d7661 2
a7662 2
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
echo "${ECHO_T}$lt_cv_objdir" >&6; }
d7713 2
a7714 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7727 1
a7727 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a7733 1
IFS=$as_save_IFS
d7739 2
a7740 2
  { echo "$as_me:$LINENO: result: $AR" >&5
echo "${ECHO_T}$AR" >&6; }
d7742 2
a7743 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a7745 1

d7751 2
a7752 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7765 1
a7765 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a7771 1
IFS=$as_save_IFS
d7773 1
d7778 2
a7779 2
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6; }
d7781 2
a7782 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d7785 1
a7785 15
  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
d7793 2
a7794 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7807 1
a7807 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a7813 1
IFS=$as_save_IFS
d7819 2
a7820 2
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6; }
d7822 2
a7823 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a7825 1

d7831 2
a7832 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7845 1
a7845 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a7851 1
IFS=$as_save_IFS
d7853 1
d7858 2
a7859 2
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d7861 2
a7862 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d7865 1
a7865 15
  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
d7873 2
a7874 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7887 1
a7887 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a7893 1
IFS=$as_save_IFS
d7899 2
a7900 2
  { echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6; }
d7902 2
a7903 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a7905 1

d7911 2
a7912 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7925 1
a7925 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a7931 1
IFS=$as_save_IFS
d7933 1
d7938 2
a7939 2
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d7941 2
a7942 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d7945 1
a7945 15
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
a7959 1
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
d7979 1
a7979 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
d7982 1
a7982 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
d8003 2
a8004 2
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d8056 2
a8057 2
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6; }
d8059 2
a8060 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d8065 2
a8066 2
    { echo "$as_me:$LINENO: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d8118 2
a8119 2
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6; }
d8121 2
a8122 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d8137 1
a8137 1
# Check whether --enable-libtool-lock was given.
d8139 1
a8139 2
  enableval=$enable_libtool_lock;
fi
d8141 1
d8145 1
a8145 1
# Check whether --with-pic was given.
d8147 2
a8148 1
  withval=$with_pic; pic_mode="$withval"
d8151 1
a8151 2
fi

a8180 3
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

d8188 1
a8188 1
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
d8194 1
a8194 1
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
d8199 65
d8275 2
a8276 2
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d8293 1
a8293 1
   (eval echo "\"\$as_me:9459: $lt_compile\"" >&5)
d8297 1
a8297 1
   echo "$as_me:9463: \$? = $ac_status" >&5
d8301 3
a8303 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d8310 2
a8311 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d8325 2
a8326 2
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a8363 5
    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

d8478 5
d8500 1
a8500 1
    sysv4 | sysv4.2uw2* | sysv4.3*)
a8512 6
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

d8529 2
a8530 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d8537 2
a8538 2
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d8555 1
a8555 1
   (eval echo "\"\$as_me:9727: $lt_compile\"" >&5)
d8559 1
a8559 1
   echo "$as_me:9731: \$? = $ac_status" >&5
d8563 3
a8565 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d8572 2
a8573 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d8596 2
a8597 44
#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works=yes
       fi
     else
       lt_prog_compiler_static_works=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }

if test x"$lt_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d8617 1
a8617 1
   (eval echo "\"\$as_me:9831: $lt_compile\"" >&5)
d8621 1
a8621 1
   echo "$as_me:9835: \$? = $ac_status" >&5
d8626 3
a8628 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
d8643 2
a8644 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d8650 2
a8651 2
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d8658 2
a8659 2
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
d8669 2
a8670 2
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a8727 4
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
d8812 1
a8812 1
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d8821 1
a8821 1
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a8826 15
    interix3*)
      hardcode_direct=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

d8868 1
a8868 1
    solaris*)
a8888 27
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs=no
	  fi
	;;
      esac
      ;;

d8922 1
a8922 1
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a8955 1
	  ;;
a8992 1
	  ;;
d9005 1
a9005 1
	  if test "$aix_use_runtimelinking" = yes; then
d9009 1
a9009 1
	  fi
d9037 2
a9038 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d9045 4
a9048 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d9053 2
a9054 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a9067 1

d9069 1
a9069 2

rm -f core conftest.err conftest.$ac_objext \
d9074 1
a9074 1
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d9079 1
a9079 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
d9098 2
a9099 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d9106 4
a9109 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d9114 2
a9115 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a9128 1

d9130 1
a9130 2

rm -f core conftest.err conftest.$ac_objext \
d9139 2
d9142 1
a9142 1
	  whole_archive_flag_spec='$convenience'
d9145 1
a9145 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
d9286 1
a9286 20
    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	hardcode_direct=yes
	export_dynamic_flag_spec='${wl}-E'

	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L=yes
      fi
      ;;

    hpux11*)
d9289 1
a9289 1
	hppa*64*)
a9291 3
	ia64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
d9298 2
a9299 5
	hppa*64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d9302 1
a9302 1
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a9306 3
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

d9308 2
a9309 1
	hppa*64*|ia64*)
d9311 6
d9319 4
d9325 2
d9428 8
d9521 4
a9524 3
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag='${wl}-z,text'
      archive_cmds_need_lc=no
d9526 3
a9528 1
      runpath_var='LD_RUN_PATH'
d9530 2
d9533 1
a9533 2
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9535 1
a9535 2
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9537 2
d9541 8
a9548 10
    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
      archive_cmds_need_lc=no
a9549 4
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      export_dynamic_flag_spec='${wl}-Bexport'
a9550 8

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
d9565 2
a9566 2
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
echo "${ECHO_T}$ld_shlibs" >&6; }
d9569 5
d9591 2
a9592 2
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a9605 1
	pic_flag=$lt_prog_compiler_pic
d9628 2
a9629 2
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9636 2
a9637 2
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9887 1
a9887 2
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a9890 4
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
a9949 12
interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

a10070 1
  sys_lib_dlsearch_path_spec="/usr/lib"
d10114 7
d10146 1
a10146 1
sysv4 | sysv4.3*)
a10178 23
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

d10190 2
a10191 2
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
d10194 2
a10195 7
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d10219 2
a10220 2
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
echo "${ECHO_T}$hardcode_action" >&6; }
d10233 2
a10234 2
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d10238 2
a10239 2
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d10246 2
a10247 2
         { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d10249 2
a10250 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d10254 2
a10255 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d10287 2
a10288 2
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d10301 1
a10301 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d10305 2
d10311 1
a10311 1
return dlopen ();
d10317 2
a10318 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d10325 4
a10328 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d10333 2
a10334 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d10343 1
a10343 1
	ac_cv_lib_dl_dlopen=no
d10345 1
a10345 2

rm -f core conftest.err conftest.$ac_objext \
d10349 2
a10350 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d10364 2
a10365 2
    { echo "$as_me:$LINENO: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d10392 1
a10392 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d10395 1
d10397 2
d10403 1
a10403 1
#if defined __stub_shl_load || defined __stub___shl_load
d10405 5
d10415 1
a10415 1
return shl_load ();
d10421 2
a10422 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d10429 4
a10432 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d10437 2
a10438 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d10447 1
a10447 1
	ac_cv_func_shl_load=no
d10449 1
a10449 2

rm -f core conftest.err conftest.$ac_objext \
d10452 2
a10453 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d10457 2
a10458 2
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d10471 1
a10471 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d10475 2
d10481 1
a10481 1
return shl_load ();
d10487 2
a10488 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d10495 4
a10498 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d10503 2
a10504 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d10513 1
a10513 1
	ac_cv_lib_dld_shl_load=no
d10515 1
a10515 2

rm -f core conftest.err conftest.$ac_objext \
d10519 2
a10520 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d10524 2
a10525 2
  { echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d10552 1
a10552 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d10555 1
d10557 2
d10563 1
a10563 1
#if defined __stub_dlopen || defined __stub___dlopen
d10565 5
d10575 1
a10575 1
return dlopen ();
d10581 2
a10582 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d10589 4
a10592 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d10597 2
a10598 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d10607 1
a10607 1
	ac_cv_func_dlopen=no
d10609 1
a10609 2

rm -f core conftest.err conftest.$ac_objext \
d10612 2
a10613 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d10617 2
a10618 2
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d10631 1
a10631 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d10635 2
d10641 1
a10641 1
return dlopen ();
d10647 2
a10648 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d10655 4
a10658 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d10663 2
a10664 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d10673 1
a10673 1
	ac_cv_lib_dl_dlopen=no
d10675 1
a10675 2

rm -f core conftest.err conftest.$ac_objext \
d10679 2
a10680 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d10684 2
a10685 2
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d10698 1
a10698 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d10702 2
d10708 1
a10708 1
return dlopen ();
d10714 2
a10715 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d10722 4
a10725 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d10730 2
a10731 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d10740 1
a10740 1
	ac_cv_lib_svld_dlopen=no
d10742 1
a10742 2

rm -f core conftest.err conftest.$ac_objext \
d10746 2
a10747 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d10751 2
a10752 2
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d10765 1
a10765 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d10769 2
d10775 1
a10775 1
return dld_link ();
d10781 2
a10782 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d10789 4
a10792 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d10797 2
a10798 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d10807 1
a10807 1
	ac_cv_lib_dld_dld_link=no
d10809 1
a10809 2

rm -f core conftest.err conftest.$ac_objext \
d10813 2
a10814 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d10849 1
a10849 1
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d10854 2
a10855 2
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d10865 1
a10865 1
#line 12283 "configure"
a10921 2
  else
    puts (dlerror ());
d10936 1
a10936 1
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
d10947 2
a10948 2
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d10951 3
a10953 3
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d10963 1
a10963 1
#line 12383 "configure"
a11019 2
  else
    puts (dlerror ());
d11034 1
a11034 1
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
d11045 2
a11046 2
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d11067 5
a11071 5
# Report which library types will actually be built
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6; }
d11073 2
a11074 2
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d11094 2
a11095 2
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6; }
d11097 2
a11098 2
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d11101 2
a11102 2
{ echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6; }
d11117 1
a11117 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a11282 3
# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

d11591 1
a11591 1
# Check whether --with-tags was given.
d11593 3
a11595 3
  withval=$with_tags; tagnames="$withval"
fi

a11612 3
  if test -z "$LTCFLAGS"; then
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  fi
d11646 1
a11646 1
	  ac_ext=cpp
a11664 1
hardcode_shlibpath_var_CXX=unsupported
d11692 1
a11692 1
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
a11698 3
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

d11706 1
a11706 1
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
d11712 1
a11712 1
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
d11727 1
a11727 1
  $as_unset lt_cv_prog_gnu_ld
d11732 1
a11732 1
  $as_unset lt_cv_path_LD
d11761 1
a11761 1
# Check whether --with-gnu-ld was given.
d11763 2
a11764 1
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d11767 1
a11767 2
fi

d11771 2
a11772 2
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d11801 2
a11802 2
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d11804 2
a11805 2
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d11838 2
a11839 2
  { echo "$as_me:$LINENO: result: $LD" >&5
echo "${ECHO_T}$LD" >&6; }
d11841 2
a11842 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d11847 2
a11848 2
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d11862 2
a11863 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d11913 2
a11914 2
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a11942 1
	;;
a11979 1
	;;
d12024 2
a12025 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d12032 4
a12035 7
	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d12040 2
a12041 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a12054 1

d12056 1
a12056 2

rm -f core conftest.err conftest.$ac_objext \
d12062 1
a12062 1
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d12067 1
a12067 1
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
d12086 2
a12087 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d12094 4
a12097 7
	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d12102 2
a12103 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a12116 1

d12118 1
a12118 2

rm -f core conftest.err conftest.$ac_objext \
d12127 2
d12130 1
a12130 1
	whole_archive_flag_spec_CXX='$convenience'
d12133 1
a12133 1
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
a12136 12

  beos*)
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
      allow_undefined_flag_CXX=unsupported
      # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
      # support --undefined.  This deserves some investigation.  FIXME
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    else
      ld_shlibs_CXX=no
    fi
    ;;

d12146 1
d12156 1
a12156 1
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d12165 1
a12165 1
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a12301 3
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_CXX=:

d12303 2
a12304 1
      hppa*64*|ia64*)
d12306 4
d12312 2
d12319 5
a12323 1
    hppa*64*|ia64*)
d12326 3
d12345 2
a12346 5
	hppa*64*)
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d12366 2
a12367 5
	    hppa*64*)
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      ;;
	    ia64*)
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
a12380 14
  interix3*)
    hardcode_direct_CXX=no
    hardcode_shlibpath_var_CXX=no
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    export_dynamic_flag_spec_CXX='${wl}-E'
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
    # Instead, shared libraries are loaded at an image base (0x10000000 by
    # default) and relocated if they conflict, which is a slow very memory
    # consuming and fragmenting process.  To avoid this, we pick a random,
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
    ;;
d12663 13
d12768 1
a12768 35
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
    no_undefined_flag_CXX='${wl}-z,text'
    archive_cmds_need_lc_CXX=no
    hardcode_shlibpath_var_CXX=no
    runpath_var='LD_RUN_PATH'

    case $cc_basename in
      CC*)
	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
      *)
	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
    esac
    ;;
  sysv5* | sco3.2v5* | sco5v6*)
    # Note: We can NOT use -z defs as we might desire, because we do not
    # link with -lc, and that would cause any symbols used from libc to
    # always be unresolved, which means just about no library would
    # ever link correctly.  If we're not using GNU ld we use -z text
    # though, which does catch some bad symbols but isn't as heavy-handed
    # as -z defs.
    # For security reasons, it is highly recommended that you always
    # use absolute paths for naming shared libraries, and exclude the
    # DT_RUNPATH tag from executables and libraries.  But doing so
    # requires that you compile everything twice, which is a pain.
    # So that behaviour is only enabled if SCOABSPATH is set to a
    # non-empty value in the environment.  Most likely only useful for
    # creating official distributions of packages.
    # This is a hack until libtool officially supports absolute path
    # names for shared libraries.
    no_undefined_flag_CXX='${wl}-z,text'
    allow_undefined_flag_CXX='${wl}-z,nodefs'
a12769 17
    hardcode_shlibpath_var_CXX=no
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
    hardcode_libdir_separator_CXX=':'
    link_all_deplibs_CXX=yes
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
    runpath_var='LD_RUN_PATH'

    case $cc_basename in
      CC*)
	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
      *)
	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
    esac
d12793 2
a12794 2
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
a12907 8
interix3*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

a12916 1
  ;;
d12928 2
a12929 2
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a12966 4
    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
d13036 1
a13036 1
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
d13043 1
a13043 1
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
a13056 4
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
d13136 9
d13186 1
a13186 8
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
d13196 2
a13197 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d13204 2
a13205 2
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d13222 1
a13222 1
   (eval echo "\"\$as_me:14755: $lt_compile\"" >&5)
d13226 1
a13226 1
   echo "$as_me:14759: \$? = $ac_status" >&5
d13230 3
a13232 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d13239 2
a13240 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d13263 3
a13265 7
#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
d13268 14
a13281 52
  lt_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_prog_compiler_static_works_CXX=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d13284 1
a13284 1
   (eval echo "\"\$as_me:14859: $lt_compile\"" >&5)
d13288 1
a13288 1
   echo "$as_me:14863: \$? = $ac_status" >&5
d13293 3
a13295 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
d13310 2
a13311 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d13317 2
a13318 2
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d13325 2
a13326 2
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
d13336 2
a13337 2
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d13361 2
a13362 2
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d13365 5
d13387 2
a13388 2
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a13401 1
	pic_flag=$lt_prog_compiler_pic_CXX
d13424 2
a13425 2
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d13432 2
a13433 2
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d13683 1
a13683 2
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a13686 4
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
a13745 12
interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

a13866 1
  sys_lib_dlsearch_path_spec="/usr/lib"
d13910 7
d13942 1
a13942 1
sysv4 | sysv4.3*)
a13974 23
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

d13986 2
a13987 2
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
d13990 2
a13991 7
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d14015 2
a14016 2
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d14027 25
a14051 84

# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_CXX \
    CC_CXX \
    LD_CXX \
    lt_prog_compiler_wl_CXX \
    lt_prog_compiler_pic_CXX \
    lt_prog_compiler_static_CXX \
    lt_prog_compiler_no_builtin_flag_CXX \
    export_dynamic_flag_spec_CXX \
    thread_safe_flag_spec_CXX \
    whole_archive_flag_spec_CXX \
    enable_shared_with_static_runtimes_CXX \
    old_archive_cmds_CXX \
    old_archive_from_new_cmds_CXX \
    predep_objects_CXX \
    postdep_objects_CXX \
    predeps_CXX \
    postdeps_CXX \
    compiler_lib_search_path_CXX \
    archive_cmds_CXX \
    archive_expsym_cmds_CXX \
    postinstall_cmds_CXX \
    postuninstall_cmds_CXX \
    old_archive_from_expsyms_cmds_CXX \
    allow_undefined_flag_CXX \
    no_undefined_flag_CXX \
    export_symbols_cmds_CXX \
    hardcode_libdir_flag_spec_CXX \
    hardcode_libdir_flag_spec_ld_CXX \
    hardcode_libdir_separator_CXX \
    hardcode_automatic_CXX \
    module_cmds_CXX \
    module_expsym_cmds_CXX \
    lt_cv_prog_compiler_c_o_CXX \
    exclude_expsyms_CXX \
    include_expsyms_CXX; do

    case $var in
    old_archive_cmds_CXX | \
    old_archive_from_new_cmds_CXX | \
    archive_cmds_CXX | \
    archive_expsym_cmds_CXX | \
    module_cmds_CXX | \
    module_expsym_cmds_CXX | \
    old_archive_from_expsyms_cmds_CXX | \
    export_symbols_cmds_CXX | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
d14054 1
d14056 7
a14062 1
cfgfile="$ofile"
d14064 6
a14069 2
  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
d14071 4
a14074 1
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
d14076 4
a14079 2
# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL
d14081 15
a14095 2
# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared
d14097 41
a14137 2
# Whether or not to build static libraries.
build_old_libs=$enable_static
d14139 11
a14149 2
# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX
d14151 3
a14153 2
# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
d14155 1
a14155 2
# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install
d14157 1
a14157 4
# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os
d14159 15
a14173 4
# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
d14175 4
a14178 2
# An echo program that does not interpret backslashes.
echo=$lt_echo
d14180 5
a14184 3
# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS
d14186 1
a14186 2
# A C compiler.
LTCC=$lt_LTCC
d14188 19
a14206 2
# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS
d14208 34
a14241 2
# A language-specific compiler.
CC=$lt_compiler_CXX
d14243 23
a14265 2
# Is the compiler the GNU C compiler?
with_gcc=$GCC_CXX
d14267 41
a14307 2
# An ERE matcher.
EGREP=$lt_EGREP
d14309 25
a14333 2
# The linker used to build libraries.
LD=$lt_LD_CXX
d14335 4
a14338 2
# Whether we need hard or soft links.
LN_S=$lt_LN_S
d14340 5
a14344 2
# A BSD-compatible nm program.
NM=$lt_NM
d14346 1
a14346 2
# A symbol stripping program
STRIP=$lt_STRIP
d14348 19
a14366 2
# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD
d14368 34
a14401 2
# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"
d14403 23
a14425 2
# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"
d14427 41
a14467 2
# Used on cygwin: assembler.
AS="$AS"
d14469 24
a14492 2
# The name of the directory that contains temporary libtool files.
objdir=$objdir
d14494 41
a14534 3
# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds
d14536 24
a14559 2
# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX
d14561 41
a14601 2
# Object file suffix (normally "o").
objext="$ac_objext"
d14603 11
a14613 2
# Old archive suffix (normally "a").
libext="$libext"
a14614 2
# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'
d14616 1
a14616 2
# Executable file suffix (normally "").
exeext="$exeext"
a14617 3
# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX
pic_mode=$pic_mode
d14619 1
a14619 2
# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len
a14620 2
# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
d14622 1
a14622 2
# Must we lock files when doing compilation?
need_locks=$lt_need_locks
a14623 2
# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix
d14625 1
a14625 2
# Do we need a version for libraries?
need_version=$need_version
a14626 2
# Whether dlopen is supported.
dlopen_support=$enable_dlopen
d14628 1
a14628 2
# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self
d14630 2
a14631 2
# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static
d14633 5
a14637 2
# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX
d14639 4
a14642 2
# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
d14644 2
a14645 2
# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
d14647 2
a14648 2
# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
d14650 13
a14662 2
# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
d14664 3
a14666 2
# Library versioning type.
version_type=$version_type
d14668 1
a14668 2
# Format of library name prefix.
libname_spec=$lt_libname_spec
d14670 9
a14678 3
# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec
d14680 21
a14700 2
# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec
d14702 3
a14704 5
# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_CXX
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds
d14706 5
a14710 2
# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
d14712 6
a14717 2
# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
d14719 21
a14739 5
# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds
a14740 3
# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX
d14742 3
a14744 3
# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib
d14746 15
a14760 3
# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_CXX
d14762 3
a14764 3
# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_CXX
d14766 1
a14766 3
# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_CXX
d14768 9
a14776 3
# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_CXX
d14778 21
a14798 3
# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d14800 3
a14802 2
# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method
d14804 5
a14808 2
# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd
d14810 6
a14815 2
# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX
d14817 21
a14837 2
# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX
a14838 2
# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds
d14840 4
a14843 2
# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval
d14845 5
a14849 2
# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d14851 4
a14854 2
# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d14856 5
a14860 2
# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
a14861 2
# This is the shared library runtime path variable.
runpath_var=$runpath_var
d14863 87
a14949 2
# This is the shared library path variable.
shlibpath_var=$shlibpath_var
d14951 2
a14952 2
# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d14954 1
a14954 2
# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX
d14956 2
a14957 2
# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs
d14959 2
a14960 3
# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
d14962 2
a14963 4
# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
d14965 2
a14966 2
# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
d14968 2
a14969 3
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_CXX
d14971 2
a14972 3
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX
d14974 4
a14977 3
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
d14979 4
a14982 3
# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_CXX
d14984 2
a14985 3
# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"
d14987 3
a14989 2
# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX
d14991 2
a14992 2
# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d14994 2
a14995 2
# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d14997 2
a14998 2
# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_CXX"
d15000 2
a15001 2
# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX
d15003 2
a15004 2
# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX
d15006 2
a15007 2
# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds
d15009 2
a15010 2
# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX
d15012 2
a15013 2
# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX
d15015 2
a15016 1
# ### END LIBTOOL TAG CONFIG: $tagname
d15018 2
a15019 1
__EOF__
d15021 2
d15024 2
a15025 9
else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi
d15027 2
d15030 3
a15032 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d15034 2
a15035 10
CC=$lt_save_CC
LDCXX=$LD
LD=$lt_save_LD
GCC=$lt_save_GCC
with_gnu_ldcxx=$with_gnu_ld
with_gnu_ld=$lt_save_with_gnu_ld
lt_cv_path_LDCXX=$lt_cv_path_LD
lt_cv_path_LD=$lt_save_path_LD
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
d15037 2
a15038 4
	else
	  tagname=""
	fi
	;;
d15040 2
a15041 2
      F77)
	if test -n "$F77" && test "X$F77" != "Xno"; then
d15043 2
a15044 4
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
d15046 2
d15049 3
a15051 18
archive_cmds_need_lc_F77=no
allow_undefined_flag_F77=
always_export_symbols_F77=no
archive_expsym_cmds_F77=
export_dynamic_flag_spec_F77=
hardcode_direct_F77=no
hardcode_libdir_flag_spec_F77=
hardcode_libdir_flag_spec_ld_F77=
hardcode_libdir_separator_F77=
hardcode_minus_L_F77=no
hardcode_automatic_F77=no
module_cmds_F77=
module_expsym_cmds_F77=
link_all_deplibs_F77=unknown
old_archive_cmds_F77=$old_archive_cmds
no_undefined_flag_F77=
whole_archive_flag_spec_F77=
enable_shared_with_static_runtimes_F77=no
d15053 2
a15054 2
# Source file extension for f77 test sources.
ac_ext=f
d15056 2
a15057 3
# Object file extension for compiled f77 test sources.
objext=o
objext_F77=$objext
d15059 2
a15060 2
# Code to be used in simple compile tests
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
d15062 2
a15063 2
# Code to be used in simple link tests
lt_simple_link_test_code="      program t\n      end\n"
d15065 2
a15066 1
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
d15068 2
a15069 2
# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}
d15071 2
a15072 2
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d15074 2
a15075 2
# Allow CC to be a program name with arguments.
compiler=$CC
d15077 2
d15080 2
a15081 6
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*
d15083 2
a15084 5
ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*
d15086 2
d15089 2
a15090 14
# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${F77-"f77"}
compiler=$CC
compiler_F77=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d15092 2
d15095 2
a15096 4
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6; }
d15098 3
a15100 3
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
test "$can_build_shared" = "no" && enable_shared=no
d15102 2
a15103 18
# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case $host_os in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;
aix4* | aix5*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
  fi
  ;;
esac
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6; }
d15105 5
a15109 6
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
{ echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6; }
d15111 2
a15112 2
GCC_F77="$G77"
LD_F77="$LD"
d15114 2
a15115 3
lt_prog_compiler_wl_F77=
lt_prog_compiler_pic_F77=
lt_prog_compiler_static_F77=
d15117 5
a15121 2
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d15123 3
a15125 3
  if test "$GCC" = yes; then
    lt_prog_compiler_wl_F77='-Wl,'
    lt_prog_compiler_static_F77='-static'
d15127 3
a15129 8
    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_F77='-Bstatic'
      fi
      ;;
d15131 3
a15133 6
    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
      ;;
d15135 3
a15137 3
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
d15139 3
a15141 5
    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
      ;;
d15143 3
a15145 5
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_F77='-fno-common'
      ;;
d15147 3
a15149 4
    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
d15151 2
a15152 6
    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_F77=no
      enable_shared=no
      ;;
d15154 2
a15155 5
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_F77=-Kconform_pic
      fi
      ;;
d15157 2
a15158 12
    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_F77='-fPIC'
	;;
      esac
      ;;
d15160 2
a15161 26
    *)
      lt_prog_compiler_pic_F77='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_F77='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_F77='-Bstatic'
      else
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic_F77='-qnocommon'
         lt_prog_compiler_wl_F77='-Wl,'
         ;;
       esac
       ;;
d15163 2
a15164 5
    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
      ;;
d15166 2
a15167 15
    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_F77='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_F77='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
      ;;
d15169 2
a15170 5
    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_F77='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_F77='-non_shared'
      ;;
d15172 2
a15173 4
    newsos6)
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;
d15175 2
a15176 21
    linux*)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-KPIC'
	lt_prog_compiler_static_F77='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-fpic'
	lt_prog_compiler_static_F77='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl_F77='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_F77='-non_shared'
        ;;
      esac
      ;;
d15178 2
a15179 5
    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_F77='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_F77='-non_shared'
      ;;
d15181 2
a15182 10
    solaris*)
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_F77='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_F77='-Wl,';;
      esac
      ;;
d15184 2
a15185 5
    sunos4*)
      lt_prog_compiler_wl_F77='-Qoption ld '
      lt_prog_compiler_pic_F77='-PIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;
d15187 33
a15219 5
    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;
d15221 3
a15223 6
    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_F77='-Kconform_pic'
	lt_prog_compiler_static_F77='-Bstatic'
      fi
      ;;
d15225 2
a15226 5
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;
d15228 2
a15229 4
    unicos*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_can_build_shared_F77=no
      ;;
d15231 2
a15232 4
    uts4*)
      lt_prog_compiler_pic_F77='-pic'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;
d15234 2
a15235 5
    *)
      lt_prog_compiler_can_build_shared_F77=no
      ;;
    esac
  fi
d15237 2
a15238 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d15240 2
a15241 4
#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_F77"; then
d15243 2
a15244 33
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_F77=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:16429: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:16433: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works_F77=yes
     fi
   fi
   $rm conftest*
d15246 2
a15247 3
fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d15249 2
a15250 9
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
    case $lt_prog_compiler_pic_F77 in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
     esac
else
    lt_prog_compiler_pic_F77=
     lt_prog_compiler_can_build_shared_F77=no
fi
d15252 1
a15252 10
fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_F77=
    ;;
  *)
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
    ;;
esac
d15254 1
a15254 30
#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_F77=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_F77=yes
       fi
     else
       lt_prog_compiler_static_works_F77=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"
a15255 3
fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
a15256 2
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
    :
d15258 7
a15264 1
    lt_prog_compiler_static_F77=
d15268 5
a15272 11
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_F77=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
d15274 10
a15283 33
   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:16533: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:16537: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_F77=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*
d15285 4
a15288 3
fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d15290 2
d15293 4
a15296 21
hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi
a15297 2
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d15299 61
a15359 38
  runpath_var=
  allow_undefined_flag_F77=
  enable_shared_with_static_runtimes_F77=no
  archive_cmds_F77=
  archive_expsym_cmds_F77=
  old_archive_From_new_cmds_F77=
  old_archive_from_expsyms_cmds_F77=
  export_dynamic_flag_spec_F77=
  whole_archive_flag_spec_F77=
  thread_safe_flag_spec_F77=
  hardcode_libdir_flag_spec_F77=
  hardcode_libdir_flag_spec_ld_F77=
  hardcode_libdir_separator_F77=
  hardcode_direct_F77=no
  hardcode_minus_L_F77=no
  hardcode_shlibpath_var_F77=unsupported
  link_all_deplibs_F77=unknown
  hardcode_automatic_F77=no
  module_cmds_F77=
  module_expsym_cmds_F77=
  always_export_symbols_F77=no
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_F77=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
a15368 17
  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac
d15370 39
a15408 4
  ld_shlibs_F77=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'
d15410 3
a15412 20
    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_F77=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac
d15414 2
a15415 7
    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs_F77=no
	cat <<EOF 1>&2
d15417 3
a15419 5
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.
d15421 6
a15426 1
EOF
d15431 9
a15439 3
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes
d15441 4
a15444 7
      # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs_F77=no
d15447 4
a15450 9
    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag_F77=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs_F77=no
      fi
d15453 6
a15458 8
    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec_F77='-L$libdir'
      allow_undefined_flag_F77=unsupported
      always_export_symbols_F77=no
      enable_shared_with_static_runtimes_F77=yes
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
d15460 3
a15462 13
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs_F77=no
d15466 11
a15476 13
    interix3*)
      hardcode_direct_F77=no
      hardcode_shlibpath_var_F77=no
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
      export_dynamic_flag_spec_F77='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d15479 12
a15490 26
    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
d15492 1
a15492 1
	ld_shlibs_F77=no
d15495 16
d15512 14
a15525 8
    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
d15528 5
a15532 4
    solaris*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs_F77=no
	cat <<EOF 1>&2
d15534 4
a15537 6
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.
d15539 20
a15558 7
EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_F77=no
      fi
d15561 5
a15565 5
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs_F77=no
	cat <<_LT_EOF 1>&2
d15567 4
a15570 6
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.
d15572 8
a15579 11
_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs_F77=no
	  fi
	;;
d15584 3
a15586 4
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
d15589 4
a15592 7
    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_F77=no
      fi
a15593 1
    esac
d15595 4
a15598 20
    if test "$ld_shlibs_F77" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_F77=
      export_dynamic_flag_spec_F77=
      whole_archive_flag_spec_F77=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag_F77=unsupported
      always_export_symbols_F77=yes
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L_F77=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct_F77=unsupported
d15602 4
a15605 16
    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no
d15607 4
a15610 12
	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	  ;;
	esac
d15612 5
a15616 3
	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi
d15618 2
a15619 5
      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d15621 4
a15624 4
      archive_cmds_F77=''
      hardcode_direct_F77=yes
      hardcode_libdir_separator_F77=':'
      link_all_deplibs_F77=yes
d15626 37
a15662 40
      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct_F77=yes
	  else
  	  # We have old collect2
  	  hardcode_direct_F77=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L_F77=yes
  	  hardcode_libdir_flag_spec_F77='-L$libdir'
  	  hardcode_libdir_separator_F77=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi
d15664 9
a15672 10
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols_F77=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag_F77='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       cat >conftest.$ac_ext <<_ACEOF
      program main
d15674 9
a15682 30
      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
a15683 5
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15685 4
a15688 5
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
d15690 6
a15695 2
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d15697 33
d15732 2
a15734 3
rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d15736 18
a15753 54
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag_F77="-z nodefs"
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
d15755 1
a15755 4
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


d15758 2
a15759 3
rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d15761 104
a15864 13
	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag_F77=' ${wl}-bernotok'
	  allow_undefined_flag_F77=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec_F77='$convenience'
	  archive_cmds_need_lc_F77=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;
d15870 7
a15876 1
      # see comment about different semantics on the GNU ld section
d15880 9
a15888 2
    bsdi[45]*)
      export_dynamic_flag_spec_F77=-rdynamic
d15892 3
a15894 5
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec_F77=' '
d15896 1
a15896 11
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds_F77='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
d15898 16
d15916 29
a15944 48
    darwin* | rhapsody*)
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
      esac
      archive_cmds_need_lc_F77=no
      hardcode_direct_F77=no
      hardcode_automatic_F77=yes
      hardcode_shlibpath_var_F77=unsupported
      whole_archive_flag_spec_F77=''
      link_all_deplibs_F77=yes
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_F77=no
          ;;
      esac
    fi
d15947 8
a15954 4
    dgux*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_shlibpath_var_F77=no
d15957 4
a15960 3
    freebsd1*)
      ld_shlibs_F77=no
      ;;
d15962 6
a15967 10
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;
d15969 7
a15975 6
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=yes
      hardcode_shlibpath_var_F77=no
d15978 3
a15980 4
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu | dragonfly*)
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec_F77='-R$libdir'
d15985 4
a15988 3
    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d15990 1
a15990 1
	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d15992 2
a15993 3
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      hardcode_direct_F77=yes
d15995 15
a16009 2
      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
d16011 5
a16015 1
      export_dynamic_flag_spec_F77='${wl}-E'
d16018 7
a16024 3
    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d16026 23
a16048 1
	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
a16049 3
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_F77=:
d16051 5
a16055 2
	hardcode_direct_F77=yes
	export_dynamic_flag_spec_F77='${wl}-E'
d16057 4
a16060 5
	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L_F77=yes
      fi
      ;;
d16062 20
a16081 12
    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
d16083 4
d16088 12
a16099 11
	case $host_cpu in
	hppa*64*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
a16100 3
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_F77=:
d16102 100
a16201 9
	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
	  hardcode_direct_F77=no
	  hardcode_shlibpath_var_F77=no
	  ;;
	*)
	  hardcode_direct_F77=yes
	  export_dynamic_flag_spec_F77='${wl}-E'
d16203 13
a16215 5
	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_F77=yes
	  ;;
	esac
d16219 6
a16224 10
    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      link_all_deplibs_F77=yes
d16227 201
a16427 9
    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
d16497 8
d16590 4
a16593 3
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag_F77='${wl}-z,text'
      archive_cmds_need_lc_F77=no
d16595 3
a16597 1
      runpath_var='LD_RUN_PATH'
d16599 2
d16602 1
a16602 2
	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d16604 1
a16604 2
	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d16606 2
d16610 8
a16617 10
    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag_F77='${wl}-z,text'
      allow_undefined_flag_F77='${wl}-z,nodefs'
      archive_cmds_need_lc_F77=no
a16618 4
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator_F77=':'
      link_all_deplibs_F77=yes
      export_dynamic_flag_spec_F77='${wl}-Bexport'
a16619 8

      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
d16634 2
a16635 2
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d16638 5
d16660 2
a16661 2
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a16674 1
	pic_flag=$lt_prog_compiler_pic_F77
d16697 2
a16698 2
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d16705 2
a16706 2
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d16956 1
a16956 2
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a16959 4
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
a17018 12
interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

a17139 1
  sys_lib_dlsearch_path_spec="/usr/lib"
d17183 7
d17215 1
a17215 1
sysv4 | sysv4.3*)
a17247 23
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

d17259 2
a17260 2
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
d17263 3
a17265 8
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
hardcode_action_F77=
d17288 2
a17289 2
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
echo "${ECHO_T}$hardcode_action_F77" >&6; }
d17300 30
d17344 1
a17344 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a17461 3
# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

d17753 1
a17771 3
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

d17779 1
a17779 1
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
d17785 1
a17785 1
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
d17822 2
a17823 2
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d17840 1
a17840 1
   (eval echo "\"\$as_me:18767: $lt_compile\"" >&5)
d17844 1
a17844 1
   echo "$as_me:18771: \$? = $ac_status" >&5
d17848 3
a17850 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d17857 2
a17858 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d17872 2
a17873 2
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a17910 5
    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

d18025 5
d18047 1
a18047 1
    sysv4 | sysv4.2uw2* | sysv4.3*)
a18059 6
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

d18076 2
a18077 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d18084 2
a18085 2
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d18102 1
a18102 1
   (eval echo "\"\$as_me:19035: $lt_compile\"" >&5)
d18106 1
a18106 1
   echo "$as_me:19039: \$? = $ac_status" >&5
d18110 3
a18112 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d18119 2
a18120 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d18143 2
a18144 44
#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_GCJ=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_GCJ=yes
       fi
     else
       lt_prog_compiler_static_works_GCJ=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }

if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
    :
else
    lt_prog_compiler_static_GCJ=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d18164 1
a18164 1
   (eval echo "\"\$as_me:19139: $lt_compile\"" >&5)
d18168 1
a18168 1
   echo "$as_me:19143: \$? = $ac_status" >&5
d18173 3
a18175 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
d18190 2
a18191 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d18197 2
a18198 2
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d18205 2
a18206 2
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
d18216 2
a18217 2
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a18274 4
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
d18359 1
a18359 1
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d18368 1
a18368 1
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a18373 15
    interix3*)
      hardcode_direct_GCJ=no
      hardcode_shlibpath_var_GCJ=no
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
      export_dynamic_flag_spec_GCJ='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

d18415 1
a18415 1
    solaris*)
a18435 27
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs_GCJ=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs_GCJ=no
	  fi
	;;
      esac
      ;;

d18469 1
a18469 1
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a18502 1
	  ;;
a18539 1
	  ;;
d18552 1
a18552 1
	  if test "$aix_use_runtimelinking" = yes; then
d18556 1
a18556 1
	  fi
d18584 2
a18585 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d18592 4
a18595 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d18600 2
a18601 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a18614 1

d18616 1
a18616 2

rm -f core conftest.err conftest.$ac_objext \
d18621 1
a18621 1
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d18626 1
a18626 1
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
d18645 2
a18646 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d18653 4
a18656 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d18661 2
a18662 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a18675 1

d18677 1
a18677 2

rm -f core conftest.err conftest.$ac_objext \
d18686 2
d18689 1
a18689 1
	  whole_archive_flag_spec_GCJ='$convenience'
d18692 1
a18692 1
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
d18833 1
a18833 20
    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_GCJ=:

	hardcode_direct_GCJ=yes
	export_dynamic_flag_spec_GCJ='${wl}-E'

	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L_GCJ=yes
      fi
      ;;

    hpux11*)
d18836 1
a18836 1
	hppa*64*)
a18838 3
	ia64*)
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
d18845 2
a18846 5
	hppa*64*)
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d18849 1
a18849 1
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a18853 3
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_GCJ=:

d18855 2
a18856 1
	hppa*64*|ia64*)
d18858 6
d18866 4
d18872 2
d18975 8
d19068 4
a19071 3
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag_GCJ='${wl}-z,text'
      archive_cmds_need_lc_GCJ=no
d19073 3
a19075 1
      runpath_var='LD_RUN_PATH'
d19077 2
d19080 1
a19080 2
	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d19082 1
a19082 2
	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d19084 2
d19088 8
a19095 10
    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag_GCJ='${wl}-z,text'
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
      archive_cmds_need_lc_GCJ=no
a19096 4
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator_GCJ=':'
      link_all_deplibs_GCJ=yes
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
a19097 8

      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
d19112 2
a19113 2
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d19116 5
d19138 2
a19139 2
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a19152 1
	pic_flag=$lt_prog_compiler_pic_GCJ
d19175 2
a19176 2
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d19183 2
a19184 2
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d19434 1
a19434 2
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a19437 4
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
a19496 12
interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

a19617 1
  sys_lib_dlsearch_path_spec="/usr/lib"
d19661 7
d19693 1
a19693 1
sysv4 | sysv4.3*)
a19725 23
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

d19737 2
a19738 2
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
d19741 2
a19742 7
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d19761 830
a20590 4
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_GCJ=unsupported
d20592 14
a20605 2
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d20607 4
a20610 7
if test "$hardcode_action_GCJ" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
d20627 1
a20627 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a20744 3
# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

d21035 1
a21053 3
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

d21061 1
a21061 1
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
d21067 1
a21067 1
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
d21102 1
a21102 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a21219 3
# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

d21566 2
a21567 2
	{ echo "$as_me:$LINENO: checking SOSUFFIX from libtool" >&5
echo $ECHO_N "checking SOSUFFIX from libtool... $ECHO_C" >&6; }
d21588 2
a21589 2
	{ echo "$as_me:$LINENO: result: $SOSUFFIX" >&5
echo "${ECHO_T}$SOSUFFIX" >&6; }
d21593 2
a21594 2
	{ echo "$as_me:$LINENO: checking MODSUFFIX from libtool" >&5
echo $ECHO_N "checking MODSUFFIX from libtool... $ECHO_C" >&6; }
d21615 2
a21616 2
	{ echo "$as_me:$LINENO: result: $MODSUFFIX" >&5
echo "${ECHO_T}$MODSUFFIX" >&6; }
d21620 2
a21621 2
	{ echo "$as_me:$LINENO: checking JMODSUFFIX from libtool" >&5
echo $ECHO_N "checking JMODSUFFIX from libtool... $ECHO_C" >&6; }
d21646 2
a21647 2
	{ echo "$as_me:$LINENO: result: $JMODSUFFIX" >&5
echo "${ECHO_T}$JMODSUFFIX" >&6; }
d21693 1
a21693 1
        LIBTSO_MODSUFFIX=$MODSUFFIX
d21726 8
d21752 2
a21753 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d21766 1
a21766 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a21772 1
IFS=$as_save_IFS
d21778 2
a21779 2
  { echo "$as_me:$LINENO: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6; }
d21781 2
a21782 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a21784 1

d21793 2
a21794 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d21807 1
a21807 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a21813 1
IFS=$as_save_IFS
d21819 2
a21820 2
  { echo "$as_me:$LINENO: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6; }
d21822 2
a21823 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a21825 1

d21835 2
a21836 2
{ echo "$as_me:$LINENO: checking if $JAVAC works" >&5
echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6; }
d21844 1
a21844 1
/* #line 22113 "configure" */
d21865 2
a21866 2
{ echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
echo "${ECHO_T}$ac_cv_prog_javac_works" >&6; }
d21875 2
a21876 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d21889 1
a21889 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a21895 1
IFS=$as_save_IFS
d21901 2
a21902 2
  { echo "$as_me:$LINENO: result: $JAR" >&5
echo "${ECHO_T}$JAR" >&6; }
d21904 2
a21905 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a21907 1

d21916 2
a21917 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d21930 1
a21930 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a21936 1
IFS=$as_save_IFS
d21942 2
a21943 2
  { echo "$as_me:$LINENO: result: $JAR" >&5
echo "${ECHO_T}$JAR" >&6; }
d21945 2
a21946 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a21948 1

d21964 2
a21965 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d21978 1
a21978 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a21984 1
IFS=$as_save_IFS
d21990 2
a21991 2
  { echo "$as_me:$LINENO: result: $JAVA" >&5
echo "${ECHO_T}$JAVA" >&6; }
d21993 2
a21994 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a21996 1

d22005 2
a22006 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d22019 1
a22019 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a22025 1
IFS=$as_save_IFS
d22031 2
a22032 2
  { echo "$as_me:$LINENO: result: $JAVA" >&5
echo "${ECHO_T}$JAVA" >&6; }
d22034 2
a22035 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a22037 1

d22049 2
a22050 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d22063 1
a22063 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a22069 1
IFS=$as_save_IFS
d22075 2
a22076 2
  { echo "$as_me:$LINENO: result: $uudecode" >&5
echo "${ECHO_T}$uudecode" >&6; }
d22078 2
a22079 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a22081 1

d22083 2
a22084 2
{ echo "$as_me:$LINENO: checking if uudecode can decode base 64 file" >&5
echo $ECHO_N "checking if uudecode can decode base 64 file... $ECHO_C" >&6; }
d22103 1
a22103 1
        echo "configure: 22382: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
d22110 2
a22111 2
{ echo "$as_me:$LINENO: result: $ac_cv_prog_uudecode_base64" >&5
echo "${ECHO_T}$ac_cv_prog_uudecode_base64" >&6; }
d22129 2
a22130 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d22143 1
a22143 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a22149 1
IFS=$as_save_IFS
d22155 2
a22156 2
  { echo "$as_me:$LINENO: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6; }
d22158 2
a22159 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a22161 1

d22170 2
a22171 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d22184 1
a22184 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a22190 1
IFS=$as_save_IFS
d22196 2
a22197 2
  { echo "$as_me:$LINENO: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6; }
d22199 2
a22200 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a22202 1

d22212 2
a22213 2
{ echo "$as_me:$LINENO: checking if $JAVAC works" >&5
echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6; }
d22221 1
a22221 1
/* #line 22504 "configure" */
d22242 2
a22243 2
{ echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
echo "${ECHO_T}$ac_cv_prog_javac_works" >&6; }
d22248 2
a22249 2
{ echo "$as_me:$LINENO: checking if $JAVA works" >&5
echo $ECHO_N "checking if $JAVA works... $ECHO_C" >&6; }
d22258 1
a22258 1
/* [#]line 22541 "configure" */
d22297 2
a22298 2
{ echo "$as_me:$LINENO: result: $ac_cv_prog_java_works" >&5
echo "${ECHO_T}$ac_cv_prog_java_works" >&6; }
d22311 2
a22312 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d22327 1
a22327 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a22333 1
IFS=$as_save_IFS
d22340 1
d22342 2
a22343 2
  { echo "$as_me:$LINENO: result: $_ACJNI_JAVAC" >&5
echo "${ECHO_T}$_ACJNI_JAVAC" >&6; }
d22345 2
a22346 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a22348 1

d22352 2
a22353 2
{ echo "$as_me:$LINENO: checking absolute path of $JAVAC" >&5
echo $ECHO_N "checking absolute path of $JAVAC... $ECHO_C" >&6; }
d22355 2
a22356 2
/*)	{ echo "$as_me:$LINENO: result: $_ACJNI_JAVAC" >&5
echo "${ECHO_T}$_ACJNI_JAVAC" >&6; };;
d22366 2
a22367 2
	{ echo "$as_me:$LINENO: checking symlink for $_cur" >&5
echo $ECHO_N "checking symlink for $_cur... $ECHO_C" >&6; }
d22374 2
a22375 2
	{ echo "$as_me:$LINENO: result: $_cur" >&5
echo "${ECHO_T}$_cur" >&6; }
d22428 2
a22429 2
	{ echo "$as_me:$LINENO: checking java version" >&5
echo $ECHO_N "checking java version... $ECHO_C" >&6; }
d22437 2
a22438 2
	{ echo "$as_me:$LINENO: result: $JAVA_VERSION" >&5
echo "${ECHO_T}$JAVA_VERSION" >&6; }
a22446 8
	# Because of the code that SWIG generates to cast between pointers and
	# integers, we need to add the flag "-fno-strict-aliasing" to the gcc
	# command line when compiling the JNI code.  This is documented in
	# [#14953] and at http://www.swig.org/Doc1.3/Java.html
	if test ${GCC} = "yes"; then
		SWIGCFLAGS="-fno-strict-aliasing"
	fi

d22460 1
a22460 1
	OSDIR=os_windows
d22477 2
a22478 2
{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
d22491 1
a22491 1
#if defined S_ISBLK && defined S_IFDIR
d22497 1
a22497 1
#if defined S_ISBLK && defined S_IFCHR
d22503 1
a22503 1
#if defined S_ISLNK && defined S_IFREG
d22509 1
a22509 1
#if defined S_ISSOCK && defined S_IFREG
d22525 2
a22526 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
d22535 2
a22536 2
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
d22560 2
a22561 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d22568 4
a22571 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d22576 2
a22577 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d22586 1
a22586 1
	ac_cv_header_time=no
d22588 1
a22588 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d22590 2
a22591 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6; }
d22608 3
a22610 3
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d22632 2
a22633 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d22640 4
a22643 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d22648 2
a22649 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d22658 1
a22658 1
	eval "$as_ac_Header=no"
d22660 1
a22660 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d22662 2
a22663 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d22675 2
a22676 2
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d22681 1
d22689 1
a22689 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d22693 2
d22699 1
a22699 1
return opendir ();
d22704 3
a22706 15
for ac_lib in '' dir; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d22713 4
a22716 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d22721 2
a22722 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d22726 1
a22726 1
  ac_cv_search_opendir=$ac_res
d22731 12
d22744 42
a22785 1
fi
a22786 4
rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext
  if test "${ac_cv_search_opendir+set}" = set; then
  break
d22788 3
a22790 5
done
if test "${ac_cv_search_opendir+set}" = set; then
  :
else
  ac_cv_search_opendir=no
a22791 1
rm conftest.$ac_ext
d22794 4
a22797 5
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d22802 2
a22803 2
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d22808 1
d22816 1
a22816 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d22820 2
d22826 1
a22826 1
return opendir ();
d22831 3
a22833 15
for ac_lib in '' x; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d22840 4
a22843 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d22848 2
a22849 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d22853 1
a22853 1
  ac_cv_search_opendir=$ac_res
d22858 12
d22871 42
a22912 1
fi
a22913 4
rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext
  if test "${ac_cv_search_opendir+set}" = set; then
  break
d22915 3
a22917 5
done
if test "${ac_cv_search_opendir+set}" = set; then
  :
else
  ac_cv_search_opendir=no
a22918 1
rm conftest.$ac_ext
d22921 4
a22924 5
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d22936 4
a22939 4
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d22942 2
a22943 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d22946 2
a22947 2
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d22958 2
a22959 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d22966 4
a22969 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d22974 2
a22975 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d22984 1
a22984 1
	ac_header_compiler=no
d22986 3
a22988 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d22991 2
a22992 2
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d23001 2
a23002 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a23025 1

d23027 2
a23028 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d23052 5
a23056 4
    ( cat <<\_ASBOX
## ---------------------------------------------------------- ##
## Report this to Oracle Technology Network Berkeley DB forum ##
## ---------------------------------------------------------- ##
d23058 2
a23059 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d23062 3
a23064 3
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d23069 2
a23070 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d23082 2
a23083 2
{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
d23105 2
a23106 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d23113 4
a23116 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23121 2
a23122 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23131 1
a23131 1
	cat >conftest.$ac_ext <<_ACEOF
d23149 2
a23150 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d23157 4
a23160 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23165 2
a23166 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23175 1
a23175 1
	ac_cv_member_struct_stat_st_blksize=no
d23177 1
a23177 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d23179 1
a23179 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d23181 2
a23182 2
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
d23207 2
a23208 2
  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
d23212 2
a23213 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
d23216 2
a23217 2
{ echo "$as_me:$LINENO: checking inttypes.h usability" >&5
echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
d23228 2
a23229 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d23236 4
a23239 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23244 2
a23245 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23254 1
a23254 1
	ac_header_compiler=no
d23256 3
a23258 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d23261 2
a23262 2
{ echo "$as_me:$LINENO: checking inttypes.h presence" >&5
echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
d23271 2
a23272 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a23295 1

d23297 2
a23298 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d23322 5
a23326 4
    ( cat <<\_ASBOX
## ---------------------------------------------------------- ##
## Report this to Oracle Technology Network Berkeley DB forum ##
## ---------------------------------------------------------- ##
d23328 2
a23329 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d23332 2
a23333 2
{ echo "$as_me:$LINENO: checking for inttypes.h" >&5
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
d23339 2
a23340 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
d23353 2
a23354 2
  { echo "$as_me:$LINENO: checking for stdint.h" >&5
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
d23358 2
a23359 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
d23362 2
a23363 2
{ echo "$as_me:$LINENO: checking stdint.h usability" >&5
echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
d23374 2
a23375 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d23382 4
a23385 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23390 2
a23391 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23400 1
a23400 1
	ac_header_compiler=no
d23402 3
a23404 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d23407 2
a23408 2
{ echo "$as_me:$LINENO: checking stdint.h presence" >&5
echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
d23417 2
a23418 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a23441 1

d23443 2
a23444 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d23468 5
a23472 4
    ( cat <<\_ASBOX
## ---------------------------------------------------------- ##
## Report this to Oracle Technology Network Berkeley DB forum ##
## ---------------------------------------------------------- ##
d23474 2
a23475 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d23478 2
a23479 2
{ echo "$as_me:$LINENO: checking for stdint.h" >&5
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
d23485 2
a23486 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
d23499 2
a23500 2
  { echo "$as_me:$LINENO: checking for stddef.h" >&5
echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
d23504 2
a23505 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
d23508 2
a23509 2
{ echo "$as_me:$LINENO: checking stddef.h usability" >&5
echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; }
d23520 2
a23521 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d23528 4
a23531 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23536 2
a23537 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23546 1
a23546 1
	ac_header_compiler=no
d23548 3
a23550 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d23553 2
a23554 2
{ echo "$as_me:$LINENO: checking stddef.h presence" >&5
echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; }
d23563 2
a23564 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a23587 1

d23589 2
a23590 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d23614 5
a23618 4
    ( cat <<\_ASBOX
## ---------------------------------------------------------- ##
## Report this to Oracle Technology Network Berkeley DB forum ##
## ---------------------------------------------------------- ##
d23620 2
a23621 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d23624 2
a23625 2
{ echo "$as_me:$LINENO: checking for stddef.h" >&5
echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
d23631 2
a23632 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
d23645 2
a23646 2
  { echo "$as_me:$LINENO: checking for unistd.h" >&5
echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
d23650 2
a23651 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
d23654 2
a23655 2
{ echo "$as_me:$LINENO: checking unistd.h usability" >&5
echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; }
d23666 2
a23667 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d23674 4
a23677 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23682 2
a23683 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23692 1
a23692 1
	ac_header_compiler=no
d23694 3
a23696 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d23699 2
a23700 2
{ echo "$as_me:$LINENO: checking unistd.h presence" >&5
echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; }
d23709 2
a23710 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a23733 1

d23735 2
a23736 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d23760 5
a23764 4
    ( cat <<\_ASBOX
## ---------------------------------------------------------- ##
## Report this to Oracle Technology Network Berkeley DB forum ##
## ---------------------------------------------------------- ##
d23766 2
a23767 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d23770 2
a23771 2
{ echo "$as_me:$LINENO: checking for unistd.h" >&5
echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
d23777 2
a23778 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
d23794 2
a23795 2
{ echo "$as_me:$LINENO: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
a23806 1
typedef off_t ac__type_new_;
d23810 1
a23810 1
if ((ac__type_new_ *) 0)
d23812 1
a23812 1
if (sizeof (ac__type_new_))
d23819 2
a23820 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d23827 4
a23830 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23835 2
a23836 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23845 1
a23845 1
	ac_cv_type_off_t=no
d23847 1
a23847 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d23849 2
a23850 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
d23859 2
a23860 2
{ echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
a23871 1
typedef size_t ac__type_new_;
d23875 1
a23875 1
if ((ac__type_new_ *) 0)
d23877 1
a23877 1
if (sizeof (ac__type_new_))
d23884 2
a23885 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d23892 4
a23895 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23900 2
a23901 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23910 1
a23910 1
	ac_cv_type_size_t=no
d23912 1
a23912 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d23914 2
a23915 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
d23926 2
a23927 2
{ echo "$as_me:$LINENO: checking for char" >&5
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
a23938 1
typedef char ac__type_new_;
d23942 1
a23942 1
if ((ac__type_new_ *) 0)
d23944 1
a23944 1
if (sizeof (ac__type_new_))
d23951 2
a23952 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d23959 4
a23962 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23967 2
a23968 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d23977 1
a23977 1
	ac_cv_type_char=no
d23979 1
a23979 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d23981 2
a23982 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
echo "${ECHO_T}$ac_cv_type_char" >&6; }
d23984 2
a23985 2
{ echo "$as_me:$LINENO: checking size of char" >&5
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
d23990 1
a23990 1
  # The cast to long int works around a bug in the HP C Compiler
a24003 1
		   typedef char ac__type_sizeof_;
d24007 1
a24007 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d24015 2
a24016 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24023 4
a24026 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24031 2
a24032 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a24045 1
		   typedef char ac__type_sizeof_;
d24049 1
a24049 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d24057 2
a24058 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24065 4
a24068 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24073 2
a24074 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24083 6
a24088 6
	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
d24090 1
a24090 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24096 1
a24096 1
	cat >conftest.$ac_ext <<_ACEOF
a24103 1
		   typedef char ac__type_sizeof_;
d24107 1
a24107 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d24115 2
a24116 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24123 4
a24126 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24131 2
a24132 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a24145 1
		   typedef char ac__type_sizeof_;
d24149 1
a24149 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d24157 2
a24158 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24165 4
a24168 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24173 2
a24174 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24183 6
a24188 6
	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
d24190 1
a24190 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24196 1
a24196 1
	ac_lo= ac_hi=
d24198 1
a24198 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24200 1
a24200 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a24211 1
		   typedef char ac__type_sizeof_;
d24215 1
a24215 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d24223 2
a24224 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24231 4
a24234 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24239 2
a24240 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24249 1
a24249 1
	ac_lo=`expr '(' $ac_mid ')' + 1`
d24251 1
a24251 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24255 1
a24255 1
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
d24257 1
a24257 1
echo "$as_me: error: cannot compute sizeof (char)
d24259 1
a24259 1
   { (exit 77); exit 77; }; } ;;
d24262 7
d24277 2
a24278 3
		   typedef char ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d24287 2
a24288 2
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d24290 3
a24292 3
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d24297 3
a24299 3
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d24302 1
a24302 1
  return ferror (f) || fclose (f) != 0;
d24309 2
a24310 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d24314 2
a24315 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24326 1
a24326 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
d24328 1
a24328 1
echo "$as_me: error: cannot compute sizeof (char)
d24330 3
a24332 1
   { (exit 77); exit 77; }; }
a24333 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d24340 2
a24341 2
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
d24347 2
a24348 2
{ echo "$as_me:$LINENO: checking for unsigned char" >&5
echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
a24359 1
typedef unsigned char ac__type_new_;
d24363 1
a24363 1
if ((ac__type_new_ *) 0)
d24365 1
a24365 1
if (sizeof (ac__type_new_))
d24372 2
a24373 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24380 4
a24383 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24388 2
a24389 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24398 1
a24398 1
	ac_cv_type_unsigned_char=no
d24400 1
a24400 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24402 2
a24403 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
d24405 2
a24406 2
{ echo "$as_me:$LINENO: checking size of unsigned char" >&5
echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
d24411 1
a24411 1
  # The cast to long int works around a bug in the HP C Compiler
a24424 1
		   typedef unsigned char ac__type_sizeof_;
d24428 1
a24428 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d24436 2
a24437 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24444 4
a24447 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24452 2
a24453 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a24466 1
		   typedef unsigned char ac__type_sizeof_;
d24470 1
a24470 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d24478 2
a24479 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24486 4
a24489 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24494 2
a24495 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24504 6
a24509 6
	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
d24511 1
a24511 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24517 1
a24517 1
	cat >conftest.$ac_ext <<_ACEOF
a24524 1
		   typedef unsigned char ac__type_sizeof_;
d24528 1
a24528 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d24536 2
a24537 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24544 4
a24547 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24552 2
a24553 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a24566 1
		   typedef unsigned char ac__type_sizeof_;
d24570 1
a24570 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d24578 2
a24579 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24586 4
a24589 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24594 2
a24595 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24604 6
a24609 6
	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
d24611 1
a24611 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24617 1
a24617 1
	ac_lo= ac_hi=
d24619 1
a24619 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24621 1
a24621 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a24632 1
		   typedef unsigned char ac__type_sizeof_;
d24636 1
a24636 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d24644 2
a24645 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24652 4
a24655 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24660 2
a24661 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24670 1
a24670 1
	ac_lo=`expr '(' $ac_mid ')' + 1`
d24672 1
a24672 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24676 1
a24676 1
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
d24678 1
a24678 1
echo "$as_me: error: cannot compute sizeof (unsigned char)
d24680 1
a24680 1
   { (exit 77); exit 77; }; } ;;
d24683 7
d24698 2
a24699 3
		   typedef unsigned char ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d24708 2
a24709 2
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d24711 3
a24713 3
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d24718 3
a24720 3
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d24723 1
a24723 1
  return ferror (f) || fclose (f) != 0;
d24730 2
a24731 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d24735 2
a24736 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24747 1
a24747 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
d24749 1
a24749 1
echo "$as_me: error: cannot compute sizeof (unsigned char)
d24751 3
a24753 1
   { (exit 77); exit 77; }; }
a24754 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d24761 2
a24762 2
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
d24768 2
a24769 2
{ echo "$as_me:$LINENO: checking for short" >&5
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
a24780 1
typedef short ac__type_new_;
d24784 1
a24784 1
if ((ac__type_new_ *) 0)
d24786 1
a24786 1
if (sizeof (ac__type_new_))
d24793 2
a24794 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24801 4
a24804 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24809 2
a24810 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24819 1
a24819 1
	ac_cv_type_short=no
d24821 1
a24821 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24823 2
a24824 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
echo "${ECHO_T}$ac_cv_type_short" >&6; }
d24826 2
a24827 2
{ echo "$as_me:$LINENO: checking size of short" >&5
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
d24832 1
a24832 1
  # The cast to long int works around a bug in the HP C Compiler
a24845 1
		   typedef short ac__type_sizeof_;
d24849 1
a24849 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d24857 2
a24858 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24865 4
a24868 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24873 2
a24874 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a24887 1
		   typedef short ac__type_sizeof_;
d24891 1
a24891 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d24899 2
a24900 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24907 4
a24910 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24915 2
a24916 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24925 6
a24930 6
	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
d24932 1
a24932 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24938 1
a24938 1
	cat >conftest.$ac_ext <<_ACEOF
a24945 1
		   typedef short ac__type_sizeof_;
d24949 1
a24949 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d24957 2
a24958 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24965 4
a24968 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24973 2
a24974 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a24987 1
		   typedef short ac__type_sizeof_;
d24991 1
a24991 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d24999 2
a25000 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25007 4
a25010 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25015 2
a25016 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25025 6
a25030 6
	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
d25032 1
a25032 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25038 1
a25038 1
	ac_lo= ac_hi=
d25040 1
a25040 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25042 1
a25042 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a25053 1
		   typedef short ac__type_sizeof_;
d25057 1
a25057 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d25065 2
a25066 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25073 4
a25076 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25081 2
a25082 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25091 1
a25091 1
	ac_lo=`expr '(' $ac_mid ')' + 1`
d25093 1
a25093 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25097 1
a25097 1
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
d25099 1
a25099 1
echo "$as_me: error: cannot compute sizeof (short)
d25101 1
a25101 1
   { (exit 77); exit 77; }; } ;;
d25104 7
d25119 2
a25120 3
		   typedef short ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d25129 2
a25130 2
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d25132 3
a25134 3
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d25139 3
a25141 3
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d25144 1
a25144 1
  return ferror (f) || fclose (f) != 0;
d25151 2
a25152 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d25155 3
a25157 7
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25168 1
a25168 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
d25170 1
a25170 1
echo "$as_me: error: cannot compute sizeof (short)
d25172 3
a25174 1
   { (exit 77); exit 77; }; }
a25175 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d25182 2
a25183 2
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
d25189 2
a25190 2
{ echo "$as_me:$LINENO: checking for unsigned short" >&5
echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
a25201 1
typedef unsigned short ac__type_new_;
d25205 1
a25205 1
if ((ac__type_new_ *) 0)
d25207 1
a25207 1
if (sizeof (ac__type_new_))
d25214 2
a25215 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25222 4
a25225 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25230 2
a25231 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25240 1
a25240 1
	ac_cv_type_unsigned_short=no
d25242 1
a25242 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25244 2
a25245 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
d25247 2
a25248 2
{ echo "$as_me:$LINENO: checking size of unsigned short" >&5
echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
d25253 1
a25253 1
  # The cast to long int works around a bug in the HP C Compiler
a25266 1
		   typedef unsigned short ac__type_sizeof_;
d25270 1
a25270 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d25278 2
a25279 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25286 4
a25289 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25294 2
a25295 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a25308 1
		   typedef unsigned short ac__type_sizeof_;
d25312 1
a25312 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d25320 2
a25321 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25328 4
a25331 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25336 2
a25337 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25346 6
a25351 6
	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
d25353 1
a25353 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25359 1
a25359 1
	cat >conftest.$ac_ext <<_ACEOF
a25366 1
		   typedef unsigned short ac__type_sizeof_;
d25370 1
a25370 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d25378 2
a25379 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25386 4
a25389 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25394 2
a25395 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a25408 1
		   typedef unsigned short ac__type_sizeof_;
d25412 1
a25412 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d25420 2
a25421 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25428 4
a25431 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25436 2
a25437 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25446 6
a25451 6
	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
d25453 1
a25453 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25459 1
a25459 1
	ac_lo= ac_hi=
d25461 1
a25461 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25463 1
a25463 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a25474 1
		   typedef unsigned short ac__type_sizeof_;
d25478 1
a25478 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d25486 2
a25487 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25494 4
a25497 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25502 2
a25503 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25512 1
a25512 1
	ac_lo=`expr '(' $ac_mid ')' + 1`
d25514 1
a25514 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25518 1
a25518 1
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
d25520 1
a25520 1
echo "$as_me: error: cannot compute sizeof (unsigned short)
d25522 1
a25522 1
   { (exit 77); exit 77; }; } ;;
d25525 7
d25540 2
a25541 3
		   typedef unsigned short ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d25550 2
a25551 2
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d25553 3
a25555 3
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d25560 3
a25562 3
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d25565 1
a25565 1
  return ferror (f) || fclose (f) != 0;
d25572 2
a25573 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d25577 2
a25578 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25589 1
a25589 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
d25591 1
a25591 1
echo "$as_me: error: cannot compute sizeof (unsigned short)
d25593 3
a25595 1
   { (exit 77); exit 77; }; }
a25596 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d25603 2
a25604 2
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
d25610 2
a25611 2
{ echo "$as_me:$LINENO: checking for int" >&5
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
a25622 1
typedef int ac__type_new_;
d25626 1
a25626 1
if ((ac__type_new_ *) 0)
d25628 1
a25628 1
if (sizeof (ac__type_new_))
d25635 2
a25636 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25643 4
a25646 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25651 2
a25652 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25661 1
a25661 1
	ac_cv_type_int=no
d25663 1
a25663 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25665 2
a25666 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
echo "${ECHO_T}$ac_cv_type_int" >&6; }
d25668 2
a25669 2
{ echo "$as_me:$LINENO: checking size of int" >&5
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
d25674 1
a25674 1
  # The cast to long int works around a bug in the HP C Compiler
a25687 1
		   typedef int ac__type_sizeof_;
d25691 1
a25691 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d25699 2
a25700 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25707 4
a25710 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25715 2
a25716 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a25729 1
		   typedef int ac__type_sizeof_;
d25733 1
a25733 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d25741 2
a25742 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25749 4
a25752 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25757 2
a25758 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25767 6
a25772 6
	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
d25774 1
a25774 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25780 1
a25780 1
	cat >conftest.$ac_ext <<_ACEOF
a25787 1
		   typedef int ac__type_sizeof_;
d25791 1
a25791 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d25799 2
a25800 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25807 4
a25810 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25815 2
a25816 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a25829 1
		   typedef int ac__type_sizeof_;
d25833 1
a25833 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d25841 2
a25842 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25849 4
a25852 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25857 2
a25858 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25867 6
a25872 6
	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
d25874 1
a25874 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25880 1
a25880 1
	ac_lo= ac_hi=
d25882 1
a25882 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25884 1
a25884 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a25895 1
		   typedef int ac__type_sizeof_;
d25899 1
a25899 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d25907 2
a25908 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25915 4
a25918 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25923 2
a25924 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25933 1
a25933 1
	ac_lo=`expr '(' $ac_mid ')' + 1`
d25935 1
a25935 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25939 1
a25939 1
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
d25941 1
a25941 1
echo "$as_me: error: cannot compute sizeof (int)
d25943 1
a25943 1
   { (exit 77); exit 77; }; } ;;
d25946 7
d25961 2
a25962 3
		   typedef int ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d25971 2
a25972 2
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d25974 3
a25976 3
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d25981 3
a25983 3
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d25986 1
a25986 1
  return ferror (f) || fclose (f) != 0;
d25993 2
a25994 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d25998 2
a25999 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26010 1
a26010 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
d26012 1
a26012 1
echo "$as_me: error: cannot compute sizeof (int)
d26014 3
a26016 1
   { (exit 77); exit 77; }; }
a26017 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d26024 2
a26025 2
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
d26031 2
a26032 2
{ echo "$as_me:$LINENO: checking for unsigned int" >&5
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
a26043 1
typedef unsigned int ac__type_new_;
d26047 1
a26047 1
if ((ac__type_new_ *) 0)
d26049 1
a26049 1
if (sizeof (ac__type_new_))
d26056 2
a26057 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26064 4
a26067 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26072 2
a26073 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26082 1
a26082 1
	ac_cv_type_unsigned_int=no
d26084 1
a26084 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d26086 2
a26087 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
d26089 2
a26090 2
{ echo "$as_me:$LINENO: checking size of unsigned int" >&5
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
d26095 1
a26095 1
  # The cast to long int works around a bug in the HP C Compiler
a26108 1
		   typedef unsigned int ac__type_sizeof_;
d26112 1
a26112 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d26120 2
a26121 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26128 4
a26131 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26136 2
a26137 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a26150 1
		   typedef unsigned int ac__type_sizeof_;
d26154 1
a26154 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d26162 2
a26163 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26170 4
a26173 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26178 2
a26179 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26188 6
a26193 6
	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
d26195 1
a26195 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d26201 1
a26201 1
	cat >conftest.$ac_ext <<_ACEOF
a26208 1
		   typedef unsigned int ac__type_sizeof_;
d26212 1
a26212 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d26220 2
a26221 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26228 4
a26231 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26236 2
a26237 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a26250 1
		   typedef unsigned int ac__type_sizeof_;
d26254 1
a26254 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d26262 2
a26263 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26270 4
a26273 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26278 2
a26279 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26288 6
a26293 6
	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
d26295 1
a26295 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d26301 1
a26301 1
	ac_lo= ac_hi=
d26303 1
a26303 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d26305 1
a26305 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a26316 1
		   typedef unsigned int ac__type_sizeof_;
d26320 1
a26320 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d26328 2
a26329 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26336 4
a26339 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26344 2
a26345 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26354 1
a26354 1
	ac_lo=`expr '(' $ac_mid ')' + 1`
d26356 1
a26356 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d26360 1
a26360 1
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
d26362 1
a26362 1
echo "$as_me: error: cannot compute sizeof (unsigned int)
d26364 1
a26364 1
   { (exit 77); exit 77; }; } ;;
d26367 7
d26382 2
a26383 3
		   typedef unsigned int ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d26392 2
a26393 2
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d26395 3
a26397 3
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d26402 3
a26404 3
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d26407 1
a26407 1
  return ferror (f) || fclose (f) != 0;
d26414 2
a26415 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d26419 2
a26420 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26431 1
a26431 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
d26433 1
a26433 1
echo "$as_me: error: cannot compute sizeof (unsigned int)
d26435 3
a26437 1
   { (exit 77); exit 77; }; }
a26438 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d26445 2
a26446 2
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
d26452 2
a26453 2
{ echo "$as_me:$LINENO: checking for long" >&5
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
a26464 1
typedef long ac__type_new_;
d26468 1
a26468 1
if ((ac__type_new_ *) 0)
d26470 1
a26470 1
if (sizeof (ac__type_new_))
d26477 2
a26478 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26485 4
a26488 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26493 2
a26494 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26503 1
a26503 1
	ac_cv_type_long=no
d26505 1
a26505 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d26507 2
a26508 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
echo "${ECHO_T}$ac_cv_type_long" >&6; }
d26510 2
a26511 2
{ echo "$as_me:$LINENO: checking size of long" >&5
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
d26516 1
a26516 1
  # The cast to long int works around a bug in the HP C Compiler
a26529 1
		   typedef long ac__type_sizeof_;
d26533 1
a26533 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d26541 2
a26542 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26549 4
a26552 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26557 2
a26558 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a26571 1
		   typedef long ac__type_sizeof_;
d26575 1
a26575 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d26583 2
a26584 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26591 4
a26594 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26599 2
a26600 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26609 6
a26614 6
	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
d26616 1
a26616 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d26622 1
a26622 1
	cat >conftest.$ac_ext <<_ACEOF
a26629 1
		   typedef long ac__type_sizeof_;
d26633 1
a26633 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d26641 2
a26642 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26649 4
a26652 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26657 2
a26658 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a26671 1
		   typedef long ac__type_sizeof_;
d26675 1
a26675 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d26683 2
a26684 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26691 4
a26694 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26699 2
a26700 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26709 6
a26714 6
	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
d26716 1
a26716 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d26722 1
a26722 1
	ac_lo= ac_hi=
d26724 1
a26724 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d26726 1
a26726 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a26737 1
		   typedef long ac__type_sizeof_;
d26741 1
a26741 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d26749 2
a26750 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26757 4
a26760 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26765 2
a26766 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26775 1
a26775 1
	ac_lo=`expr '(' $ac_mid ')' + 1`
d26777 1
a26777 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d26781 1
a26781 1
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
d26783 1
a26783 1
echo "$as_me: error: cannot compute sizeof (long)
d26785 1
a26785 1
   { (exit 77); exit 77; }; } ;;
d26788 7
d26803 2
a26804 3
		   typedef long ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d26813 2
a26814 2
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d26816 3
a26818 3
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d26823 3
a26825 3
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d26828 1
a26828 1
  return ferror (f) || fclose (f) != 0;
d26835 2
a26836 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d26840 2
a26841 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26852 1
a26852 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
d26854 1
a26854 1
echo "$as_me: error: cannot compute sizeof (long)
d26856 3
a26858 1
   { (exit 77); exit 77; }; }
a26859 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d26866 2
a26867 2
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
d26873 2
a26874 2
{ echo "$as_me:$LINENO: checking for unsigned long" >&5
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
a26885 1
typedef unsigned long ac__type_new_;
d26889 1
a26889 1
if ((ac__type_new_ *) 0)
d26891 1
a26891 1
if (sizeof (ac__type_new_))
d26898 2
a26899 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26906 4
a26909 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26914 2
a26915 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26924 1
a26924 1
	ac_cv_type_unsigned_long=no
d26926 1
a26926 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d26928 2
a26929 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
d26931 2
a26932 2
{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
d26937 1
a26937 1
  # The cast to long int works around a bug in the HP C Compiler
a26950 1
		   typedef unsigned long ac__type_sizeof_;
d26954 1
a26954 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d26962 2
a26963 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26970 4
a26973 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d26978 2
a26979 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a26992 1
		   typedef unsigned long ac__type_sizeof_;
d26996 1
a26996 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d27004 2
a27005 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27012 4
a27015 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27020 2
a27021 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27030 6
a27035 6
	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
d27037 1
a27037 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d27043 1
a27043 1
	cat >conftest.$ac_ext <<_ACEOF
a27050 1
		   typedef unsigned long ac__type_sizeof_;
d27054 1
a27054 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d27062 2
a27063 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27070 4
a27073 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27078 2
a27079 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a27092 1
		   typedef unsigned long ac__type_sizeof_;
d27096 1
a27096 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d27104 2
a27105 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27112 4
a27115 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27120 2
a27121 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27130 6
a27135 6
	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
d27137 1
a27137 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d27143 1
a27143 1
	ac_lo= ac_hi=
d27145 1
a27145 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d27147 1
a27147 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a27158 1
		   typedef unsigned long ac__type_sizeof_;
d27162 1
a27162 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d27170 2
a27171 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27178 4
a27181 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27186 2
a27187 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27196 1
a27196 1
	ac_lo=`expr '(' $ac_mid ')' + 1`
d27198 1
a27198 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d27202 1
a27202 1
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
d27204 1
a27204 1
echo "$as_me: error: cannot compute sizeof (unsigned long)
d27206 1
a27206 1
   { (exit 77); exit 77; }; } ;;
d27209 7
d27224 2
a27225 3
		   typedef unsigned long ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d27234 2
a27235 2
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d27237 3
a27239 3
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d27244 3
a27246 3
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d27249 1
a27249 1
  return ferror (f) || fclose (f) != 0;
d27256 2
a27257 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d27261 2
a27262 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27273 1
a27273 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
d27275 1
a27275 1
echo "$as_me: error: cannot compute sizeof (unsigned long)
d27277 3
a27279 1
   { (exit 77); exit 77; }; }
a27280 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d27287 2
a27288 2
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
d27294 2
a27295 2
{ echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
a27306 1
typedef long long ac__type_new_;
d27310 1
a27310 1
if ((ac__type_new_ *) 0)
d27312 1
a27312 1
if (sizeof (ac__type_new_))
d27319 2
a27320 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27327 4
a27330 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27335 2
a27336 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27345 1
a27345 1
	ac_cv_type_long_long=no
d27347 1
a27347 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d27349 2
a27350 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
d27352 2
a27353 2
{ echo "$as_me:$LINENO: checking size of long long" >&5
echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
d27358 1
a27358 1
  # The cast to long int works around a bug in the HP C Compiler
a27371 1
		   typedef long long ac__type_sizeof_;
d27375 1
a27375 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d27383 2
a27384 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27391 4
a27394 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27399 2
a27400 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a27413 1
		   typedef long long ac__type_sizeof_;
d27417 1
a27417 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d27425 2
a27426 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27433 4
a27436 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27441 2
a27442 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27451 6
a27456 6
	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
d27458 1
a27458 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d27464 1
a27464 1
	cat >conftest.$ac_ext <<_ACEOF
a27471 1
		   typedef long long ac__type_sizeof_;
d27475 1
a27475 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d27483 2
a27484 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27491 4
a27494 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27499 2
a27500 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a27513 1
		   typedef long long ac__type_sizeof_;
d27517 1
a27517 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d27525 2
a27526 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27533 4
a27536 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27541 2
a27542 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27551 6
a27556 6
	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
d27558 1
a27558 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d27564 1
a27564 1
	ac_lo= ac_hi=
d27566 1
a27566 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d27568 1
a27568 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a27579 1
		   typedef long long ac__type_sizeof_;
d27583 1
a27583 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d27591 2
a27592 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27599 4
a27602 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27607 2
a27608 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27617 1
a27617 1
	ac_lo=`expr '(' $ac_mid ')' + 1`
d27619 1
a27619 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d27623 1
a27623 1
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
d27625 1
a27625 1
echo "$as_me: error: cannot compute sizeof (long long)
d27627 1
a27627 1
   { (exit 77); exit 77; }; } ;;
d27630 7
d27645 2
a27646 3
		   typedef long long ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d27655 2
a27656 2
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d27658 3
a27660 3
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d27665 3
a27667 3
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d27670 1
a27670 1
  return ferror (f) || fclose (f) != 0;
d27677 2
a27678 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d27682 2
a27683 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27694 1
a27694 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
d27696 1
a27696 1
echo "$as_me: error: cannot compute sizeof (long long)
d27698 3
a27700 1
   { (exit 77); exit 77; }; }
a27701 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d27708 2
a27709 2
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
d27715 2
a27716 2
{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
a27727 1
typedef unsigned long long ac__type_new_;
d27731 1
a27731 1
if ((ac__type_new_ *) 0)
d27733 1
a27733 1
if (sizeof (ac__type_new_))
d27740 2
a27741 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27748 4
a27751 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27756 2
a27757 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27766 1
a27766 1
	ac_cv_type_unsigned_long_long=no
d27768 1
a27768 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d27770 2
a27771 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
d27773 2
a27774 2
{ echo "$as_me:$LINENO: checking size of unsigned long long" >&5
echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
d27779 1
a27779 1
  # The cast to long int works around a bug in the HP C Compiler
a27792 1
		   typedef unsigned long long ac__type_sizeof_;
d27796 1
a27796 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d27804 2
a27805 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27812 4
a27815 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27820 2
a27821 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a27834 1
		   typedef unsigned long long ac__type_sizeof_;
d27838 1
a27838 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d27846 2
a27847 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27854 4
a27857 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27862 2
a27863 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27872 6
a27877 6
	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
d27879 1
a27879 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d27885 1
a27885 1
	cat >conftest.$ac_ext <<_ACEOF
a27892 1
		   typedef unsigned long long ac__type_sizeof_;
d27896 1
a27896 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d27904 2
a27905 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27912 4
a27915 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27920 2
a27921 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a27934 1
		   typedef unsigned long long ac__type_sizeof_;
d27938 1
a27938 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d27946 2
a27947 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d27954 4
a27957 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27962 2
a27963 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d27972 6
a27977 6
	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
d27979 1
a27979 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d27985 1
a27985 1
	ac_lo= ac_hi=
d27987 1
a27987 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d27989 1
a27989 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a28000 1
		   typedef unsigned long long ac__type_sizeof_;
d28004 1
a28004 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d28012 2
a28013 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28020 4
a28023 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28028 2
a28029 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28038 1
a28038 1
	ac_lo=`expr '(' $ac_mid ')' + 1`
d28040 1
a28040 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d28044 1
a28044 1
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
d28046 1
a28046 1
echo "$as_me: error: cannot compute sizeof (unsigned long long)
d28048 1
a28048 1
   { (exit 77); exit 77; }; } ;;
d28051 7
d28066 2
a28067 3
		   typedef unsigned long long ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d28076 2
a28077 2
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d28079 3
a28081 3
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d28086 3
a28088 3
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d28091 1
a28091 1
  return ferror (f) || fclose (f) != 0;
d28098 2
a28099 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d28103 2
a28104 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28115 1
a28115 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
d28117 1
a28117 1
echo "$as_me: error: cannot compute sizeof (unsigned long long)
d28119 3
a28121 1
   { (exit 77); exit 77; }; }
a28122 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d28129 2
a28130 2
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
d28136 2
a28137 2
{ echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
a28148 1
typedef size_t ac__type_new_;
d28152 1
a28152 1
if ((ac__type_new_ *) 0)
d28154 1
a28154 1
if (sizeof (ac__type_new_))
d28161 2
a28162 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28169 4
a28172 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28177 2
a28178 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28187 1
a28187 1
	ac_cv_type_size_t=no
d28189 1
a28189 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d28191 2
a28192 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
d28194 2
a28195 2
{ echo "$as_me:$LINENO: checking size of size_t" >&5
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
d28200 1
a28200 1
  # The cast to long int works around a bug in the HP C Compiler
a28213 1
		   typedef size_t ac__type_sizeof_;
d28217 1
a28217 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d28225 2
a28226 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28233 4
a28236 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28241 2
a28242 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a28255 1
		   typedef size_t ac__type_sizeof_;
d28259 1
a28259 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d28267 2
a28268 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28275 4
a28278 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28283 2
a28284 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28293 6
a28298 6
	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
d28300 1
a28300 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d28306 1
a28306 1
	cat >conftest.$ac_ext <<_ACEOF
a28313 1
		   typedef size_t ac__type_sizeof_;
d28317 1
a28317 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d28325 2
a28326 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28333 4
a28336 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28341 2
a28342 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a28355 1
		   typedef size_t ac__type_sizeof_;
d28359 1
a28359 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d28367 2
a28368 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28375 4
a28378 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28383 2
a28384 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28393 6
a28398 6
	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
d28400 1
a28400 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d28406 1
a28406 1
	ac_lo= ac_hi=
d28408 1
a28408 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d28410 1
a28410 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a28421 1
		   typedef size_t ac__type_sizeof_;
d28425 1
a28425 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d28433 2
a28434 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28441 4
a28444 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28449 2
a28450 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28459 1
a28459 1
	ac_lo=`expr '(' $ac_mid ')' + 1`
d28461 1
a28461 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d28465 1
a28465 1
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
d28467 1
a28467 1
echo "$as_me: error: cannot compute sizeof (size_t)
d28469 1
a28469 1
   { (exit 77); exit 77; }; } ;;
d28472 7
d28487 2
a28488 3
		   typedef size_t ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d28497 2
a28498 2
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d28500 3
a28502 3
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d28507 3
a28509 3
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d28512 1
a28512 1
  return ferror (f) || fclose (f) != 0;
d28519 2
a28520 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d28524 2
a28525 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28536 1
a28536 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
d28538 1
a28538 1
echo "$as_me: error: cannot compute sizeof (size_t)
d28540 3
a28542 1
   { (exit 77); exit 77; }; }
a28543 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d28550 2
a28551 2
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
d28557 2
a28558 2
{ echo "$as_me:$LINENO: checking for char *" >&5
echo $ECHO_N "checking for char *... $ECHO_C" >&6; }
a28569 1
typedef char * ac__type_new_;
d28573 1
a28573 1
if ((ac__type_new_ *) 0)
d28575 1
a28575 1
if (sizeof (ac__type_new_))
d28582 2
a28583 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28590 4
a28593 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28598 2
a28599 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28608 1
a28608 1
	ac_cv_type_char_p=no
d28610 1
a28610 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d28612 2
a28613 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
echo "${ECHO_T}$ac_cv_type_char_p" >&6; }
d28615 2
a28616 2
{ echo "$as_me:$LINENO: checking size of char *" >&5
echo $ECHO_N "checking size of char *... $ECHO_C" >&6; }
d28621 1
a28621 1
  # The cast to long int works around a bug in the HP C Compiler
a28634 1
		   typedef char * ac__type_sizeof_;
d28638 1
a28638 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d28646 2
a28647 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28654 4
a28657 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28662 2
a28663 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a28676 1
		   typedef char * ac__type_sizeof_;
d28680 1
a28680 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d28688 2
a28689 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28696 4
a28699 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28704 2
a28705 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28714 6
a28719 6
	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
d28721 1
a28721 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d28727 1
a28727 1
	cat >conftest.$ac_ext <<_ACEOF
a28734 1
		   typedef char * ac__type_sizeof_;
d28738 1
a28738 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d28746 2
a28747 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28754 4
a28757 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28762 2
a28763 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a28776 1
		   typedef char * ac__type_sizeof_;
d28780 1
a28780 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d28788 2
a28789 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28796 4
a28799 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28804 2
a28805 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28814 6
a28819 6
	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
d28821 1
a28821 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d28827 1
a28827 1
	ac_lo= ac_hi=
d28829 1
a28829 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d28831 1
a28831 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a28842 1
		   typedef char * ac__type_sizeof_;
d28846 1
a28846 1
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d28854 2
a28855 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28862 4
a28865 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28870 2
a28871 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28880 1
a28880 1
	ac_lo=`expr '(' $ac_mid ')' + 1`
d28882 1
a28882 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d28886 1
a28886 1
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
d28888 1
a28888 1
echo "$as_me: error: cannot compute sizeof (char *)
d28890 1
a28890 1
   { (exit 77); exit 77; }; } ;;
d28893 7
d28908 2
a28909 3
		   typedef char * ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d28918 2
a28919 2
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d28921 3
a28923 3
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d28928 3
a28930 3
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
d28933 1
a28933 1
  return ferror (f) || fclose (f) != 0;
d28940 2
a28941 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d28945 2
a28946 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28957 1
a28957 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
d28959 1
a28959 1
echo "$as_me: error: cannot compute sizeof (char *)
d28961 3
a28963 1
   { (exit 77); exit 77; }; }
a28964 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d28971 2
a28972 2
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6; }
d28982 2
a28983 2
{ echo "$as_me:$LINENO: checking for u_char" >&5
echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
a28994 1
typedef u_char ac__type_new_;
d28998 1
a28998 1
if ((ac__type_new_ *) 0)
d29000 1
a29000 1
if (sizeof (ac__type_new_))
d29007 2
a29008 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29015 4
a29018 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29023 2
a29024 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29033 1
a29033 1
	ac_cv_type_u_char=no
d29035 1
a29035 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29037 2
a29038 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
echo "${ECHO_T}$ac_cv_type_u_char" >&6; }
d29047 2
a29048 2
{ echo "$as_me:$LINENO: checking for u_short" >&5
echo $ECHO_N "checking for u_short... $ECHO_C" >&6; }
a29059 1
typedef u_short ac__type_new_;
d29063 1
a29063 1
if ((ac__type_new_ *) 0)
d29065 1
a29065 1
if (sizeof (ac__type_new_))
d29072 2
a29073 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29080 4
a29083 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29088 2
a29089 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29098 1
a29098 1
	ac_cv_type_u_short=no
d29100 1
a29100 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29102 2
a29103 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
echo "${ECHO_T}$ac_cv_type_u_short" >&6; }
d29112 2
a29113 2
{ echo "$as_me:$LINENO: checking for u_int" >&5
echo $ECHO_N "checking for u_int... $ECHO_C" >&6; }
a29124 1
typedef u_int ac__type_new_;
d29128 1
a29128 1
if ((ac__type_new_ *) 0)
d29130 1
a29130 1
if (sizeof (ac__type_new_))
d29137 2
a29138 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29145 4
a29148 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29153 2
a29154 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29163 1
a29163 1
	ac_cv_type_u_int=no
d29165 1
a29165 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29167 2
a29168 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
echo "${ECHO_T}$ac_cv_type_u_int" >&6; }
d29177 2
a29178 2
{ echo "$as_me:$LINENO: checking for u_long" >&5
echo $ECHO_N "checking for u_long... $ECHO_C" >&6; }
a29189 1
typedef u_long ac__type_new_;
d29193 1
a29193 1
if ((ac__type_new_ *) 0)
d29195 1
a29195 1
if (sizeof (ac__type_new_))
d29202 2
a29203 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29210 4
a29213 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29218 2
a29219 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29228 1
a29228 1
	ac_cv_type_u_long=no
d29230 1
a29230 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29232 2
a29233 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
echo "${ECHO_T}$ac_cv_type_u_long" >&6; }
d29243 2
a29244 2
{ echo "$as_me:$LINENO: checking for u_int8_t" >&5
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
a29255 1
typedef u_int8_t ac__type_new_;
d29259 1
a29259 1
if ((ac__type_new_ *) 0)
d29261 1
a29261 1
if (sizeof (ac__type_new_))
d29268 2
a29269 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29276 4
a29279 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29284 2
a29285 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29294 1
a29294 1
	ac_cv_type_u_int8_t=no
d29296 1
a29296 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29298 2
a29299 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
d29326 2
a29327 2
{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
a29338 1
typedef u_int16_t ac__type_new_;
d29342 1
a29342 1
if ((ac__type_new_ *) 0)
d29344 1
a29344 1
if (sizeof (ac__type_new_))
d29351 2
a29352 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29359 4
a29362 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29367 2
a29368 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29377 1
a29377 1
	ac_cv_type_u_int16_t=no
d29379 1
a29379 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29381 2
a29382 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
d29409 2
a29410 2
{ echo "$as_me:$LINENO: checking for int16_t" >&5
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
a29421 1
typedef int16_t ac__type_new_;
d29425 1
a29425 1
if ((ac__type_new_ *) 0)
d29427 1
a29427 1
if (sizeof (ac__type_new_))
d29434 2
a29435 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29442 4
a29445 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29450 2
a29451 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29460 1
a29460 1
	ac_cv_type_int16_t=no
d29462 1
a29462 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29464 2
a29465 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
d29492 2
a29493 2
{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
a29504 1
typedef u_int32_t ac__type_new_;
d29508 1
a29508 1
if ((ac__type_new_ *) 0)
d29510 1
a29510 1
if (sizeof (ac__type_new_))
d29517 2
a29518 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29525 4
a29528 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29533 2
a29534 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29543 1
a29543 1
	ac_cv_type_u_int32_t=no
d29545 1
a29545 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29547 2
a29548 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
d29575 2
a29576 2
{ echo "$as_me:$LINENO: checking for int32_t" >&5
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
a29587 1
typedef int32_t ac__type_new_;
d29591 1
a29591 1
if ((ac__type_new_ *) 0)
d29593 1
a29593 1
if (sizeof (ac__type_new_))
d29600 2
a29601 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29608 4
a29611 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29616 2
a29617 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29626 1
a29626 1
	ac_cv_type_int32_t=no
d29628 1
a29628 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29630 2
a29631 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
d29658 2
a29659 2
{ echo "$as_me:$LINENO: checking for u_int64_t" >&5
echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
a29670 1
typedef u_int64_t ac__type_new_;
d29674 1
a29674 1
if ((ac__type_new_ *) 0)
d29676 1
a29676 1
if (sizeof (ac__type_new_))
d29683 2
a29684 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29691 4
a29694 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29699 2
a29700 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29709 1
a29709 1
	ac_cv_type_u_int64_t=no
d29711 1
a29711 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29713 2
a29714 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
d29741 2
a29742 2
{ echo "$as_me:$LINENO: checking for int64_t" >&5
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
a29753 1
typedef int64_t ac__type_new_;
d29757 1
a29757 1
if ((ac__type_new_ *) 0)
d29759 1
a29759 1
if (sizeof (ac__type_new_))
d29766 2
a29767 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29774 4
a29777 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29782 2
a29783 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29792 1
a29792 1
	ac_cv_type_int64_t=no
d29794 1
a29794 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29796 2
a29797 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
d29826 2
a29827 2
{ echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
a29838 1
typedef ssize_t ac__type_new_;
d29842 1
a29842 1
if ((ac__type_new_ *) 0)
d29844 1
a29844 1
if (sizeof (ac__type_new_))
d29851 2
a29852 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29859 4
a29862 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29867 2
a29868 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29877 1
a29877 1
	ac_cv_type_ssize_t=no
d29879 1
a29879 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29881 2
a29882 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
d29914 2
a29915 2
{ echo "$as_me:$LINENO: checking for uintmax_t" >&5
echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
a29925 1
typedef uintmax_t ac__type_new_;
d29929 1
a29929 1
if ((ac__type_new_ *) 0)
d29931 1
a29931 1
if (sizeof (ac__type_new_))
d29938 2
a29939 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29946 4
a29949 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29954 2
a29955 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d29964 1
a29964 1
	ac_cv_type_uintmax_t=no
d29966 1
a29966 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29968 2
a29969 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
d29973 2
a29974 2
  { echo "$as_me:$LINENO: checking for unsigned long long" >&5
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
a29985 1
typedef unsigned long long ac__type_new_;
d29989 1
a29989 1
if ((ac__type_new_ *) 0)
d29991 1
a29991 1
if (sizeof (ac__type_new_))
d29998 2
a29999 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d30006 4
a30009 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30014 2
a30015 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30024 1
a30024 1
	ac_cv_type_unsigned_long_long=no
d30026 1
a30026 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d30028 2
a30029 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
d30042 2
a30043 2
{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
a30053 1
typedef uintptr_t ac__type_new_;
d30057 1
a30057 1
if ((ac__type_new_ *) 0)
d30059 1
a30059 1
if (sizeof (ac__type_new_))
d30066 2
a30067 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d30074 4
a30077 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30082 2
a30083 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30092 1
a30092 1
	ac_cv_type_uintptr_t=no
d30094 1
a30094 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d30096 2
a30097 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
d30124 2
a30125 2
{ echo "$as_me:$LINENO: checking for ANSI C exit success/failure values" >&5
echo $ECHO_N "checking for ANSI C exit success/failure values... $ECHO_C" >&6; }
d30146 2
a30147 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d30154 4
a30157 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30162 2
a30163 285
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_exit_defines=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	db_cv_exit_defines=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $db_cv_exit_defines" >&5
echo "${ECHO_T}$db_cv_exit_defines" >&6; }
if test "$db_cv_exit_defines" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_EXIT_SUCCESS 1
_ACEOF



fi

# Check for mutexes.
# We do this first because it changes $LIBSO_LIBS.


# Mutexes we don't test for, but want the #defines to exist for
# other ports.





{ echo "$as_me:$LINENO: checking for mutexes" >&5
echo $ECHO_N "checking for mutexes... $ECHO_C" >&6; }
if test "${db_cv_mutex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

db_cv_mutex=no

orig_libs=$LIBS

# User-specified POSIX or UI mutexes.
#
# There are two different reasons to specify mutexes: First, the application
# is already using one type of mutex and doesn't want to mix-and-match (for
# example, on Solaris, which has POSIX, UI and LWP mutexes).  Second, the
# applications POSIX pthreads mutexes don't support inter-process locking,
# but the application wants to use them anyway (for example, some Linux and
# *BSD systems).
#
# Test for LWP threads before testing for UI/POSIX threads, we prefer them
# on Solaris, for two reasons: a bug in SunOS 5.7 causes applications to
# get pwrite, not pwrite64, if they load the C library before the appropriate
# threads library, e.g., tclsh using dlopen to load the DB library.  Second,
# LWP mutexes are faster than POSIX pthread mutexes by some amount.
#
# Otherwise, test for POSIX threads before UI threads.  There are Linux systems
# that support a UI compatibility mode, and applications are more likely to be
# written for POSIX threads than UI threads.
if test "$db_cv_posixmutexes" = yes; then
	db_cv_mutex="posix_only";
fi
if test "$db_cv_uimutexes" = yes; then
	db_cv_mutex="ui_only";
fi

# User-specified Win32 mutexes (MinGW build)
if test "$db_cv_mingw" = "yes"; then
	db_cv_mutex=win32/gcc
fi

# LWP threads: _lwp_XXX
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <synch.h>
int
main ()
{

	static lwp_mutex_t mi = SHAREDMUTEX;
	static lwp_cond_t ci = SHAREDCV;
	lwp_mutex_t mutex = mi;
	lwp_cond_t cond = ci;
	exit (
	_lwp_mutex_lock(&mutex) ||
	_lwp_mutex_unlock(&mutex));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="Solaris/lwp"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi

# POSIX.1 pthreads: pthread_XXX
#
# If the user specified we use POSIX pthreads mutexes, and we fail to find the
# full interface, try and configure for just intra-process support.
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
	LIBS="$LIBS -lpthread"

if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <pthread.h>
int
main ()
{

	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex=""POSIX/pthreads/library""
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30167 1
a30167 1
  db_cv_mutex=""POSIX/pthreads/library""
d30169 1
a30169 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d30172 1
d30174 1
a30174 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d30176 7
a30184 1
	LIBS="$orig_libs"
a30185 1
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
d30187 14
a30200 2
if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
d30207 7
a30213 1
#include <pthread.h>
d30217 1
a30217 19

	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));

d30223 2
a30224 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30231 4
a30234 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30239 2
a30240 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30244 1
a30244 1
  db_cv_mutex=""POSIX/pthreads""
a30248 1

d30250 1
a30250 2

rm -f core conftest.err conftest.$ac_objext \
d30252 4
a30255 2
else
  cat >conftest.$ac_ext <<_ACEOF
d30262 13
a30274 19
#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d30277 13
a30289 8
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d30292 4
a30295 7
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30299 2
a30300 1
  db_cv_mutex=""POSIX/pthreads""
d30302 1
a30302 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d30306 13
a30318 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d30322 10
a30331 5
fi
if test "$db_cv_mutex" = "posix_only"; then

if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
d30338 7
a30344 1
#include <pthread.h>
d30348 1
a30348 17

	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));

d30354 2
a30355 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30362 4
a30365 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30370 2
a30371 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30375 1
a30375 1
  db_cv_mutex=""POSIX/pthreads/private""
a30379 1

d30381 1
a30381 2

rm -f core conftest.err conftest.$ac_objext \
d30383 4
a30386 2
else
  cat >conftest.$ac_ext <<_ACEOF
d30393 13
a30405 17
#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d30408 13
a30420 8
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d30423 4
a30426 7
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30430 2
a30431 1
  db_cv_mutex=""POSIX/pthreads/private""
d30433 1
a30433 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d30437 5
a30441 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d30443 4
d30448 1
a30449 3
fi
if test "$db_cv_mutex" = "posix_only"; then
	LIBS="$LIBS -lpthread"
d30451 16
a30466 2
if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
d30473 1
a30473 1
#include <pthread.h>
d30477 1
a30477 17

	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));

d30483 2
a30484 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30491 4
a30494 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30499 2
a30500 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30504 1
a30504 1
  db_cv_mutex=""POSIX/pthreads/library/private""
d30509 1
a30509 1

d30511 1
a30511 2

rm -f core conftest.err conftest.$ac_objext \
d30513 1
a30513 53
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex=""POSIX/pthreads/library/private""
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

d30515 4
a30518 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d30520 1
d30523 10
a30532 11
	LIBS="$orig_libs"
fi
if test "$db_cv_mutex" = "posix_only"; then
	{ { echo "$as_me:$LINENO: error: unable to find POSIX 1003.1 mutex interfaces" >&5
echo "$as_me: error: unable to find POSIX 1003.1 mutex interfaces" >&2;}
   { (exit 1); exit 1; }; }
fi

# UI threads: thr_XXX
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
LIBS="$LIBS -lthread"
d30540 1
a30540 2
#include <thread.h>
#include <synch.h>
d30544 1
a30544 10

	mutex_t mutex;
	cond_t cond;
	int type = USYNC_PROCESS;
	exit (
	mutex_init(&mutex, type, NULL) ||
	cond_init(&cond, type, NULL) ||
	mutex_lock(&mutex) ||
	mutex_unlock(&mutex));

d30550 2
a30551 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30558 4
a30561 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30566 2
a30567 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30571 1
a30571 1
  db_cv_mutex="UI/threads/library"
d30576 1
a30576 1

d30578 1
a30578 2

rm -f core conftest.err conftest.$ac_objext \
d30580 6
a30585 1
LIBS="$orig_libs"
d30587 9
a30595 1
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
d30603 1
a30603 2
#include <thread.h>
#include <synch.h>
d30607 1
a30607 10

	mutex_t mutex;
	cond_t cond;
	int type = USYNC_PROCESS;
	exit (
	mutex_init(&mutex, type, NULL) ||
	cond_init(&cond, type, NULL) ||
	mutex_lock(&mutex) ||
	mutex_unlock(&mutex));

d30613 2
a30614 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30621 4
a30624 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30629 2
a30630 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30634 1
a30634 1
  db_cv_mutex="UI/threads"
d30639 1
a30639 1

d30641 1
a30641 2

rm -f core conftest.err conftest.$ac_objext \
d30643 1
d30645 4
a30648 4
if test "$db_cv_mutex" = "ui_only"; then
	{ { echo "$as_me:$LINENO: error: unable to find UI mutex interfaces" >&5
echo "$as_me: error: unable to find UI mutex interfaces" >&2;}
   { (exit 1); exit 1; }; }
d30650 1
d30652 7
a30658 3
# msemaphore: HPPA only
# Try HPPA before general msem test, it needs special alignment.
if test "$db_cv_mutex" = no; then
d30666 1
a30666 1
#include <sys/mman.h>
d30670 1
a30670 12

#if defined(__hppa)
	typedef msemaphore tsl_t;
	msemaphore x;
	msem_init(&x, 0);
	msem_lock(&x, 0);
	msem_unlock(&x, 0);
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

d30676 2
a30677 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30684 4
a30687 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30692 2
a30693 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30697 1
a30697 1
  db_cv_mutex="HP/msem_init"
d30702 34
d30737 27
d30766 3
a30768 2
rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30771 1
a30771 1
# msemaphore: AIX, OSF/1
d30780 1
a30780 2
#include <sys/types.h>
#include <sys/mman.h>
d30785 7
a30791 6
	typedef msemaphore tsl_t;
	msemaphore x;
	msem_init(&x, 0);
	msem_lock(&x, 0);
	msem_unlock(&x, 0);
	exit(0);
d30798 2
a30799 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30806 4
a30809 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30813 3
a30815 7
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30819 1
a30819 1
  db_cv_mutex="UNIX/msem_init"
a30823 1

d30825 1
a30825 2

rm -f core conftest.err conftest.$ac_objext \
d30829 9
a30837 4
# ReliantUNIX
if test "$db_cv_mutex" = no; then
LIBS="$LIBS -lmproc"
cat >conftest.$ac_ext <<_ACEOF
d30844 1
a30844 1
#include <ulocks.h>
d30849 17
a30865 5
	typedef spinlock_t tsl_t;
	spinlock_t x;
	initspin(&x, 1);
	cspinlock(&x);
	spinunlock(&x);
d30872 2
a30873 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30880 4
a30883 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30888 2
a30889 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30893 1
a30893 1
  db_cv_mutex="ReliantUNIX/initspin"
a30897 1

d30899 1
a30899 2

rm -f core conftest.err conftest.$ac_objext \
d30901 2
a30902 6
LIBS="$orig_libs"
fi

# SCO: UnixWare has threads in libthread, but OpenServer doesn't.
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
d30909 19
a30927 12
int
main ()
{

#if defined(__USLC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
d30930 3
a30932 8
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
a30933 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d30935 3
a30937 18
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d30941 1
a30941 1
  db_cv_mutex="SCO/x86/cc-assembly"
d30943 2
a30944 1
  echo "$as_me: failed program was:" >&5
a30946 1

d30948 3
a30950 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d30952 1
d30954 2
a30955 3
# abilock_t: SGI
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
d30962 1
a30962 1
#include <abi_mutex.h>
d30967 17
a30983 5
	typedef abilock_t tsl_t;
	abilock_t x;
	init_lock(&x);
	acquire_lock(&x);
	release_lock(&x);
d30990 2
a30991 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30998 4
a31001 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31006 2
a31007 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31011 1
a31011 1
  db_cv_mutex="SGI/init_lock"
a31015 1

d31017 1
a31017 2

rm -f core conftest.err conftest.$ac_objext \
d31019 2
a31020 8
fi

# sema_t: Solaris
# The sema_XXX calls do not work on Solaris 5.5.  I see no reason to ever
# turn this test on, unless we find some other platform that uses the old
# POSIX.1 interfaces.  (I plan to move directly to pthreads on Solaris.)
if test "$db_cv_mutex" = DOESNT_WORK; then
cat >conftest.$ac_ext <<_ACEOF
d31027 19
a31045 13
#include <synch.h>
int
main ()
{

	typedef sema_t tsl_t;
	sema_t x;
	sema_init(&x, 1, USYNC_PROCESS, NULL);
	sema_wait(&x);
	sema_post(&x);

  ;
  return 0;
d31048 3
a31050 21
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31053 3
a31055 8
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31059 1
a31059 1
  db_cv_mutex="UNIX/sema_init"
d31061 2
a31062 1
  echo "$as_me: failed program was:" >&5
a31064 1

d31066 2
a31067 3

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d31069 1
d31071 2
a31072 7
# _lock_try/_lock_clear: Solaris
# On Solaris systems without Pthread or UI mutex interfaces, DB uses the
# undocumented _lock_try _lock_clear function calls instead of either the
# sema_trywait(3T) or sema_wait(3T) function calls.  This is because of
# problems in those interfaces in some releases of the Solaris C library.
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
d31079 1
a31079 1
#include <sys/machlock.h>
d31084 16
a31099 5
	typedef lock_t tsl_t;
	lock_t x;
	_lock_try(&x);
	_lock_clear(&x);

d31105 2
a31106 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d31113 4
a31116 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31121 2
a31122 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31126 1
a31126 1
  db_cv_mutex="Solaris/_lock_try"
d31131 46
d31179 2
a31180 3

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d31182 2
d31185 2
a31186 3
# _check_lock/_clear_lock: AIX
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
d31193 1
a31193 1
#include <sys/atomic_op.h>
d31198 15
a31212 3
	int x;
	_check_lock(&x,0,1);
	_clear_lock(&x,0);
d31219 2
a31220 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d31227 4
a31230 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31235 2
a31236 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31240 1
a31240 1
  db_cv_mutex="AIX/_check_lock"
a31244 1

d31246 1
a31246 2

rm -f core conftest.err conftest.$ac_objext \
d31248 2
a31249 5
fi

# _spin_lock_try/_spin_unlock: Apple/Darwin
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
d31256 17
a31272 10
int
main ()
{

	int x;
	_spin_lock_try(&x);
	_spin_unlock(&x);

  ;
  return 0;
d31275 3
a31277 8
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
a31278 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d31280 3
a31282 18
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31286 1
a31286 1
  db_cv_mutex="Darwin/_spin_lock_try"
d31288 2
a31289 1
  echo "$as_me: failed program was:" >&5
a31291 1

d31293 8
a31300 3

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d31303 3
a31305 2
# Tru64/cc
if test "$db_cv_mutex" = no; then
d31313 2
d31319 8
a31326 5
#if defined(__alpha) && defined(__DECC)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
d31332 3
a31334 8
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d31341 4
a31344 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31348 3
a31350 7
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31354 1
a31354 1
  db_cv_mutex="Tru64/cc-assembly"
a31358 1

d31360 3
a31362 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d31364 1
a31364 3

# Alpha/gcc
if test "$db_cv_mutex" = no; then
d31372 2
d31378 8
a31385 5
#if defined(__alpha) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
d31391 3
a31393 8
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d31400 4
a31403 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31407 3
a31409 7
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31413 1
a31413 1
  db_cv_mutex="ALPHA/gcc-assembly"
a31417 1

d31419 7
a31425 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d31428 2
a31429 1
# ARM/gcc: Linux
d31438 11
a31448 5
int
main ()
{

#if defined(__arm__) && defined(__GNUC__)
d31458 3
a31460 8
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d31467 4
a31470 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31474 3
a31476 7
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31480 1
a31480 1
  db_cv_mutex="ARM/gcc-assembly"
a31484 1

d31486 2
a31487 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d31490 1
a31490 1
# MIPS/gcc: Linux
d31499 2
d31505 5
a31509 1
#if (defined(__mips) || defined(__mips__)) && defined(__GNUC__)
a31510 3
#else
	FAIL TO COMPILE/LINK
#endif
d31516 3
a31518 8
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d31525 4
a31528 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31532 3
a31534 7
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31538 1
a31538 1
  db_cv_mutex="MIPS/gcc-assembly"
a31542 1

d31544 2
a31545 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d31548 1
a31548 1
# MIPS/gcc: Linux
d31550 1
d31558 1
d31563 5
a31567 5
#if (defined(__mips) || defined(__mips__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
d31573 3
a31575 8
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d31582 4
a31585 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31589 3
a31591 7
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31595 1
a31595 1
  db_cv_mutex="MIPS/gcc-assembly"
a31599 1

d31601 3
a31603 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d31606 1
a31606 1
# PaRisc/gcc: HP/UX
d31619 1
a31619 1
#if (defined(__hppa) || defined(__hppa__)) && defined(__GNUC__)
d31630 2
a31631 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d31638 4
a31641 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31646 2
a31647 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31651 1
a31651 1
  db_cv_mutex="HPPA/gcc-assembly"
a31655 1

d31657 1
a31657 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d31660 1
a31660 1
# PPC/gcc:
d31669 1
d31674 5
a31678 5
#if (defined(__powerpc__) || defined(__ppc__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
d31684 3
a31686 8
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d31693 4
a31696 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31700 3
a31702 7
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31706 1
a31706 1
  db_cv_mutex="PPC/gcc-assembly"
a31710 1

d31712 2
a31713 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d31716 5
a31720 2
# Sparc/gcc: SunOS, Solaris
if test "$db_cv_mutex" = no; then
d31728 1
d31733 5
a31737 5
#if defined(__sparc__) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
d31743 3
a31745 8
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d31752 4
a31755 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31759 3
a31761 7
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31765 1
a31765 1
  db_cv_mutex="Sparc/gcc-assembly"
a31769 1

d31771 2
a31772 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d31775 5
a31779 1
# 68K/gcc: SunOS
d31788 1
d31793 4
a31796 5
#if (defined(mc68020) || defined(sun3)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
d31802 3
a31804 8
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d31811 4
a31814 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31818 3
a31820 7
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31824 1
a31824 1
  db_cv_mutex="68K/gcc-assembly"
a31828 1

d31830 2
a31831 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d31834 1
a31834 1
# x86/gcc: FreeBSD, NetBSD, BSD/OS, Linux
d31843 1
d31848 3
a31850 5
#if (defined(i386) || defined(__i386__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
d31856 3
a31858 8
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d31865 4
a31868 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31872 3
a31874 7
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31878 1
a31878 1
  db_cv_mutex="x86/gcc-assembly"
a31882 1

d31884 2
a31885 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d31888 1
a31888 1
# x86_64/gcc: FreeBSD, NetBSD, BSD/OS, Linux
d31901 3
a31903 5
#if (defined(x86_64) || defined(__x86_64__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
d31909 3
a31911 8
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d31918 4
a31921 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31925 3
a31927 7
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31931 1
a31931 1
  db_cv_mutex="x86_64/gcc-assembly"
a31935 1

d31937 2
a31938 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d31941 1
a31941 1
# S390/cc: IBM OS/390 Unix
d31954 1
a31954 1
#if defined(__MVS__) && defined(__IBMC__)
d31965 2
a31966 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d31973 4
a31976 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31981 2
a31982 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d31986 1
a31986 1
  db_cv_mutex="S390/cc-assembly"
a31990 1

d31992 1
a31992 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d31995 1
a31995 1
# S390/gcc: Linux
d32008 1
a32008 1
#if defined(__s390__) && defined(__GNUC__)
d32019 2
a32020 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d32027 4
a32030 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32035 2
a32036 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32040 1
a32040 1
  db_cv_mutex="S390/gcc-assembly"
a32044 1

d32046 1
a32046 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d32049 1
a32049 1
# ia64/gcc: Linux
d32062 1
a32062 1
#if defined(__ia64) && defined(__GNUC__)
d32073 2
a32074 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d32081 4
a32084 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32089 2
a32090 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32094 1
a32094 1
  db_cv_mutex="ia64/gcc-assembly"
a32098 1

d32100 1
a32100 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d32103 1
a32103 1
# uts/cc: UTS
d32116 1
a32116 1
#if defined(_UTS)
d32127 2
a32128 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d32135 4
a32138 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32143 2
a32144 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32148 1
a32148 1
  db_cv_mutex="UTS/cc-assembly"
d32153 3
d32157 4
a32160 219
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

# default to UNIX fcntl system call mutexes.
if test "$db_cv_mutex" = no; then
	db_cv_mutex="UNIX/fcntl"
fi

fi
{ echo "$as_me:$LINENO: result: $db_cv_mutex" >&5
echo "${ECHO_T}$db_cv_mutex" >&6; }



db_threadid_t_decl=notset

case "$db_cv_mutex" in
68K/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_68K_GCC_ASSEMBLY 1
_ACEOF


;;
AIX/_check_lock)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_AIX_CHECK_LOCK 1
_ACEOF


;;
Darwin/_spin_lock_try)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_DARWIN_SPIN_LOCK_TRY 1
_ACEOF


;;
ALPHA/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1
_ACEOF


;;
ARM/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_ARM_GCC_ASSEMBLY 1
_ACEOF


;;
HP/msem_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_HPPA_MSEM_INIT 1
_ACEOF


;;
HPPA/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1
_ACEOF


;;
ia64/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1
_ACEOF


;;
POSIX/pthreads)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF


;;
POSIX/pthreads/private)	ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF



			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_THREAD_ONLY 1
_ACEOF


;;
POSIX/pthreads/library)	ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF


;;
POSIX/pthreads/library/private)
			ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF



			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_THREAD_ONLY 1
_ACEOF


;;
PPC/gcc-assembly)
			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PPC_GCC_ASSEMBLY 1
_ACEOF


;;
ReliantUNIX/initspin)	LIBSO_LIBS="$LIBSO_LIBS -lmproc"
			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1
_ACEOF


;;
S390/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_S390_CC_ASSEMBLY 1
_ACEOF


;;
S390/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_S390_GCC_ASSEMBLY 1
_ACEOF


;;
SCO/x86/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1
_ACEOF


;;
SGI/init_lock)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SGI_INIT_LOCK 1
_ACEOF


;;
Solaris/_lock_try)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1
_ACEOF


;;
Solaris/lwp)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SOLARIS_LWP 1
_ACEOF


;;
Sparc/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1
_ACEOF


;;
Tru64/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_TRU64_CC_ASSEMBLY 1
_ACEOF


;;
UI/threads)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UI_THREADS 1
_ACEOF


;;
UI/threads/library)	ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UI_THREADS 1
_ACEOF


;;
UNIX/msem_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_MSEM_INIT 1
_ACEOF


;;
UNIX/sema_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SEMA_INIT 1
_ACEOF


;;
UTS/cc-assembly)	ADDITIONAL_OBJS="uts4.cc${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UTS_CC_ASSEMBLY 1
d32162 3
d32166 3
d32170 5
a32174 5
;;
win32)			ADDITIONAL_OBJS="mut_win32${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_WIN32 1
_ACEOF
d32176 3
a32178 5

;;
win32/gcc)		ADDITIONAL_OBJS="mut_win32${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_WIN32_GCC 1
d32180 26
d32207 3
d32211 4
a32214 4
;;
MIPS/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_MIPS_GCC_ASSEMBLY 1
d32216 3
d32220 3
d32224 5
a32228 5
;;
x86/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_X86_GCC_ASSEMBLY 1
_ACEOF
d32230 3
a32232 5

;;
x86_64/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_X86_64_GCC_ASSEMBLY 1
d32234 26
d32261 3
d32265 2
a32266 45
;;
UNIX/fcntl)		{ echo "$as_me:$LINENO: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&5
echo "$as_me: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&2;}
			ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_FCNTL 1
_ACEOF


;;
*)			{ { echo "$as_me:$LINENO: error: Unknown mutex interface: $db_cv_mutex" >&5
echo "$as_me: error: Unknown mutex interface: $db_cv_mutex" >&2;}
   { (exit 1); exit 1; }; };;
esac

# The mutex selection may require specific declarations -- we fill in most of
# them above, but here are the common ones.
#
# The mutex selection may tell us what kind of thread package we're using,
# which we use to figure out the thread type.
#
# If we're configured for the POSIX pthread API, then force the thread ID type
# and include function, regardless of the mutex selection.  Ditto for the
# (default) Solaris lwp mutexes, because they don't have a way to return the
# thread ID.
#
# Try and link with a threads library if possible.  The problem is the Solaris
# C library has UI/POSIX interface stubs, but they're broken, configuring them
# for inter-process mutexes doesn't return an error, but it doesn't work either.
# For that reason always add -lpthread if we're using pthread calls or mutexes
# and there's a pthread library.
#
# We can't depend on any specific call existing (pthread_create, for example),
# as it may be #defined in an include file -- OSF/1 (Tru64) has this problem.
case "$db_cv_mutex" in
POSIX/pthread*|Solaris/lwp)
	thread_h_decl="#include <pthread.h>"
	db_threadid_t_decl="typedef pthread_t db_threadid_t;"
	{ echo "$as_me:$LINENO: checking for main in -lpthread" >&5
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
if test "${ac_cv_lib_pthread_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
a32273 1

d32277 7
a32283 1
return main ();
d32288 3
a32290 8
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32297 4
a32300 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32304 3
a32306 7
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32310 1
a32310 1
  ac_cv_lib_pthread_main=yes
d32315 2
a32316 1
	ac_cv_lib_pthread_main=no
d32319 2
a32320 21
rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
if test $ac_cv_lib_pthread_main = yes; then
  LIBSO_LIBS="$LIBSO_LIBS -lpthread"
fi
ac_cv_lib_pthread=ac_cv_lib_pthread_main
;;
UI/threads*)
	thread_h_decl="#include <thread.h>"
	db_threadid_t_decl="typedef thread_t db_threadid_t;"
	{ echo "$as_me:$LINENO: checking for main in -lthread" >&5
echo $ECHO_N "checking for main in -lthread... $ECHO_C" >&6; }
if test "${ac_cv_lib_thread_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lthread  $LIBS"
a32327 1

d32331 7
a32337 1
return main ();
d32342 3
a32344 8
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32351 4
a32354 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32358 3
a32360 7
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32364 1
a32364 1
  ac_cv_lib_thread_main=yes
d32369 2
a32370 1
	ac_cv_lib_thread_main=no
d32373 2
a32374 22
rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_thread_main" >&5
echo "${ECHO_T}$ac_cv_lib_thread_main" >&6; }
if test $ac_cv_lib_thread_main = yes; then
  LIBSO_LIBS="$LIBSO_LIBS -lthread"
fi
ac_cv_lib_thread=ac_cv_lib_thread_main
;;
*)
	if test "$db_cv_pthread_api" = "yes"; then
		thread_h_decl="#include <pthread.h>"
		db_threadid_t_decl="typedef pthread_t db_threadid_t;"
		{ echo "$as_me:$LINENO: checking for main in -lpthread" >&5
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
if test "${ac_cv_lib_pthread_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
a32381 1

d32385 7
a32391 1
return main ();
d32396 3
a32398 8
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32405 4
a32408 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32412 3
a32414 7
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32418 1
a32418 1
  ac_cv_lib_pthread_main=yes
d32423 3
a32425 21
	ac_cv_lib_pthread_main=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
if test $ac_cv_lib_pthread_main = yes; then
  LIBSO_LIBS="$LIBSO_LIBS -lpthread"
fi
ac_cv_lib_pthread=ac_cv_lib_pthread_main

	fi;;
esac

# We need to know if the thread ID type will fit into an integral type and we
# can compare it for equality and generally treat it like an int, or if it's a
# non-integral type and we have to treat it like a structure or other untyped
# block of bytes.  For example, MVS typedef's pthread_t to a structure.
d32427 3
a32429 9

if test "$db_threadid_t_decl" = "notset"; then
	db_threadid_t_decl="typedef uintmax_t db_threadid_t;"
	cat >>confdefs.h <<\_ACEOF
#define HAVE_SIMPLE_THREAD_TYPE 1
_ACEOF

else
	cat >conftest.$ac_ext <<_ACEOF
d32435 1
a32435 2
#include <sys/types.h>
	$thread_h_decl
d32440 5
a32444 3
	$db_threadid_t_decl
	db_threadid_t a;
	a = 0;
d32451 2
a32452 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d32459 4
a32462 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32467 2
a32468 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32472 1
a32472 4
  cat >>confdefs.h <<\_ACEOF
#define HAVE_SIMPLE_THREAD_TYPE 1
_ACEOF

a32476 1

d32478 1
a32478 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d32481 2
a32482 32
# If we're building replication and configured with POSIX pthreads or were
# told to build using the POSIX API, build the replication manager framework.
db_cv_build_replication_mgr="no"
if test "$db_cv_build_replication" = "yes"; then


	case "$db_cv_mutex" in
	POSIX/pthread*|Solaris/lwp)
		db_cv_build_replication_mgr="yes";;
	esac
	if test "$db_cv_pthread_api" = "yes"; then
		db_cv_build_replication_mgr="yes"
	fi

	if test "$db_cv_build_replication_mgr" = "yes"; then
		cat >>confdefs.h <<\_ACEOF
#define HAVE_REPLICATION_THREADS 1
_ACEOF


		# Solaris requires the socket and nsl libraries to build the
		# replication manager.  Don't add nsl regardless of the OS,
		# it causes RPC to fail on AIX 4.3.3.
		case "$host_os" in
		solaris*)
			{ echo "$as_me:$LINENO: checking for main in -lnsl" >&5
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
if test "${ac_cv_lib_nsl_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
a32489 1

d32493 7
a32499 1
return main ();
d32504 3
a32506 8
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32513 4
a32516 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32520 3
a32522 7
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32526 1
a32526 1
  ac_cv_lib_nsl_main=yes
a32530 6
	ac_cv_lib_nsl_main=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d32532 1
a32532 4
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
if test $ac_cv_lib_nsl_main = yes; then
  LIBSO_LIBS="$LIBSO_LIBS -lnsl"
a32533 1
ac_cv_lib_nsl=ac_cv_lib_nsl_main
d32535 2
a32536 7
			{ echo "$as_me:$LINENO: checking for main in -lsocket" >&5
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
if test "${ac_cv_lib_socket_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
a32543 1

d32547 7
a32553 1
return main ();
d32558 3
a32560 8
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32567 4
a32570 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32574 3
a32576 7
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32580 1
a32580 1
  ac_cv_lib_socket_main=yes
a32584 11
	ac_cv_lib_socket_main=no
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
if test $ac_cv_lib_socket_main = yes; then
  LIBSO_LIBS="$LIBSO_LIBS -lsocket"
d32586 1
a32586 4
ac_cv_lib_socket=ac_cv_lib_socket_main
;;
		esac
	fi
d32589 2
a32590 44
# There are 3 classes of mutexes:
#
# 1: Mutexes requiring no cleanup, for example, test-and-set mutexes.
# 2: Mutexes that must be destroyed, but which don't hold permanent system
#    resources, for example, pthread mutexes on MVS aka OS/390 aka z/OS.
# 3: Mutexes that must be destroyed, even after the process is gone, for
#    example, pthread mutexes on QNX and binary semaphores on VxWorks.
#
# DB cannot currently distinguish between #2 and #3 because DB does not know
# if the application is running environment recovery as part of startup and
# does not need to do cleanup, or if the environment is being removed and/or
# recovered in a loop in the application, and so does need to clean up.  If
# we get it wrong, we're going to call the mutex destroy routine on a random
# piece of memory, which usually works, but just might drop core.  For now,
# we group #2 and #3 into the HAVE_MUTEX_SYSTEM_RESOURCES define, until we
# have a better solution or reason to solve this in a general way -- so far,
# the places we've needed to handle this are few.



case "$host_os$db_cv_mutex" in
*qnx*POSIX/pthread*|openedition*POSIX/pthread*)
	cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SYSTEM_RESOURCES 1
_ACEOF
;;
esac

# Test for various functions/libraries -- do tests that change library values
# first.
#
# The yield function on Solaris is almost certainly pthread_yield (LWP threads
# or POSIX pthreads), or thr_yield (UI threads).  There's an outside chance it
# is sched_yield() though, only available in -lrt on Solaris.
#
# The Berkeley DB library calls fdatasync, only available in -lrt on Solaris.
# See if we can find either without additional libraries or in -lrt.  If found
# in -lrt and we haven't yet added -lrt,  add it to the shared library list.
{ echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
if test "${ac_cv_search_fdatasync+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
a32597 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fdatasync ();
d32601 7
a32607 1
return fdatasync ();
d32612 3
a32614 15
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32621 4
a32624 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32628 3
a32630 7
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32634 1
a32634 1
  ac_cv_search_fdatasync=$ac_res
d32639 2
a32640 1

d32643 2
a32644 29
rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext
  if test "${ac_cv_search_fdatasync+set}" = set; then
  break
fi
done
if test "${ac_cv_search_fdatasync+set}" = set; then
  :
else
  ac_cv_search_fdatasync=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
ac_res=$ac_cv_search_fdatasync
if test "$ac_res" != no; then
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
      if test "$ac_cv_search_fdatasync" != "none required" ; then
	LIBSO_LIBS="$LIBSO_LIBS -lrt";
    fi
else
      { echo "$as_me:$LINENO: checking for library containing sched_yield" >&5
echo $ECHO_N "checking for library containing sched_yield... $ECHO_C" >&6; }
if test "${ac_cv_search_sched_yield+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
a32651 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_yield ();
d32655 7
a32661 1
return sched_yield ();
d32666 3
a32668 15
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32675 4
a32678 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32682 3
a32684 7
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32688 1
a32688 1
  ac_cv_search_sched_yield=$ac_res
a32692 25

fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext
  if test "${ac_cv_search_sched_yield+set}" = set; then
  break
fi
done
if test "${ac_cv_search_sched_yield+set}" = set; then
  :
else
  ac_cv_search_sched_yield=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_search_sched_yield" >&5
echo "${ECHO_T}$ac_cv_search_sched_yield" >&6; }
ac_res=$ac_cv_search_sched_yield
if test "$ac_res" != no; then
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
      if test "$ac_cv_search_sched_yield" != "none required" ; then
	LIBSO_LIBS="$LIBSO_LIBS -lrt";
    fi
d32694 1
a32694 1

d32697 2
a32698 11

# !!!
# We could be more exact about whether these libraries are needed, but don't
# bother -- if they exist, we load them, it's only the test programs anyway.
{ echo "$as_me:$LINENO: checking for main in -lm" >&5
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
if test "${ac_cv_lib_m_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
a32705 1

d32709 7
a32715 1
return main ();
d32720 3
a32722 8
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32729 4
a32732 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32736 3
a32738 7
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d32742 1
a32742 1
  ac_cv_lib_m_main=yes
d32747 253
a32999 2
	ac_cv_lib_m_main=no
fi
a33000 10
rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
if test $ac_cv_lib_m_main = yes; then
  TEST_LIBS="$TEST_LIBS -lm"
fi
ac_cv_lib_m=ac_cv_lib_m_main
d33002 4
a33005 9
{ echo "$as_me:$LINENO: checking for main in -lnsl" >&5
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
if test "${ac_cv_lib_nsl_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
a33006 3
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d33009 4
a33012 7
int
main ()
{
return main ();
  ;
  return 0;
}
a33013 38
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_nsl_main=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a33014 2
	ac_cv_lib_nsl_main=no
fi
d33016 6
a33021 10
rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
if test $ac_cv_lib_nsl_main = yes; then
  TEST_LIBS="$TEST_LIBS -lnsl"
fi
ac_cv_lib_nsl=ac_cv_lib_nsl_main
d33023 6
a33028 9
{ echo "$as_me:$LINENO: checking for main in -lpthread" >&5
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
if test "${ac_cv_lib_pthread_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
a33029 3
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d33032 4
a33035 13
int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
a33036 32
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_pthread_main=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d33038 6
a33043 2
	ac_cv_lib_pthread_main=no
fi
d33045 5
a33049 10
rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
if test $ac_cv_lib_pthread_main = yes; then
  TEST_LIBS="$TEST_LIBS -lpthread"
fi
ac_cv_lib_pthread=ac_cv_lib_pthread_main
a33050 4
{ echo "$as_me:$LINENO: checking for main in -lsocket" >&5
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
if test "${ac_cv_lib_socket_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d33052 1
a33052 3
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
d33058 2
a33059 2


d33063 5
a33067 1
return main ();
d33072 3
a33074 8
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33081 4
a33084 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33088 3
a33090 7
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33094 4
a33097 1
  ac_cv_lib_socket_main=yes
a33101 1
	ac_cv_lib_socket_main=no
d33103 20
a33123 10
rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
if test $ac_cv_lib_socket_main = yes; then
  TEST_LIBS="$TEST_LIBS -lsocket"
fi
ac_cv_lib_socket=ac_cv_lib_socket_main
d33126 7
a33132 3
# Update LIBS so that the rest of our tests are run with the libraries we'll
# load against.
LIBS="$LIBSO_LIBS"
d33136 1
d33146 1
a33146 25





















for ac_func in \
	abort atoi atol getcwd getenv getopt isalpha isdigit isprint isspace\
	memcmp memcpy memmove printf raise rand strcasecmp strcat strchr\
	strdup strerror strncat strncmp strrchr strsep strtol strtoul
d33149 3
a33151 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d33177 1
a33177 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33180 1
d33182 2
d33188 1
a33188 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d33190 5
d33200 1
a33200 1
return $ac_func ();
d33206 2
a33207 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33214 4
a33217 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33222 2
a33223 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33232 1
a33232 1
	eval "$as_ac_var=no"
d33234 1
a33234 2

rm -f core conftest.err conftest.$ac_objext \
d33237 2
a33238 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d33244 8
a33251 25
else
  case " $LIBOBJS " in
  *" $ac_func.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 ;;
esac

fi
done



# Check for system functions we optionally use.












d33253 2
d33262 1
a33262 7


for ac_func in \
   _fstati64 clock_gettime directio fchmod fcntl fdatasync getaddrinfo\
   getrusage gettimeofday getuid mprotect pstat_getdynamic pthread_yield\
   sched_yield select sigaction snprintf stat strftime sysconf vsnprintf\
   yield
d33265 3
a33267 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d33293 1
a33293 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33296 1
d33298 2
d33304 1
a33304 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d33306 5
d33316 1
a33316 1
return $ac_func ();
d33322 2
a33323 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33330 4
a33333 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33338 2
a33339 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33348 1
a33348 1
	eval "$as_ac_var=no"
d33350 1
a33350 2

rm -f core conftest.err conftest.$ac_objext \
d33353 2
a33354 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d33360 9
a33372 1
# Replication can't run correctly if ftruncate isn't available.
d33374 24
a33397 1
for ac_func in ftruncate
d33400 3
a33402 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d33428 1
a33428 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33431 1
d33433 2
d33439 1
a33439 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d33441 5
d33451 1
a33451 1
return $ac_func ();
d33457 2
a33458 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33465 4
a33468 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33473 2
a33474 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33483 1
a33483 1
	eval "$as_ac_var=no"
d33485 1
a33485 2

rm -f core conftest.err conftest.$ac_objext \
d33488 2
a33489 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
a33497 6
if test \
    "$db_cv_build_replication" = "yes" -a "$ac_cv_func_ftruncate" = "no"; then
	db_cv_build_replication=no
	{ echo "$as_me:$LINENO: WARNING: replication requires ftruncate, replication disabled." >&5
echo "$as_me: WARNING: replication requires ftruncate, replication disabled." >&2;}
fi
d33499 3
a33501 5
# ctime_r --
#
# There are two versions of ctime_r, one of which takes a buffer length as a
# third argument, and one which only takes two arguments.  (There is also a
# difference in return values, but we handle that in the code itself.)
d33503 1
a33503 1
for ac_func in ctime_r
d33506 3
a33508 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d33534 1
a33534 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33537 1
d33539 2
d33545 1
a33545 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d33547 5
d33557 1
a33557 1
return $ac_func ();
d33563 2
a33564 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33571 4
a33574 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33579 2
a33580 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33589 1
a33589 1
	eval "$as_ac_var=no"
d33591 1
a33591 2

rm -f core conftest.err conftest.$ac_objext \
d33594 2
a33595 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
a33603 80
if test "$ac_cv_func_ctime_r" = "yes"; then
{ echo "$as_me:$LINENO: checking for 2 or 3 argument version of ctime_r" >&5
echo $ECHO_N "checking for 2 or 3 argument version of ctime_r... $ECHO_C" >&6; }
if test "${db_cv_ctime_r_3arg+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <time.h>
int
main ()
{

	ctime_r(NULL, NULL, 100);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_ctime_r_3arg="3-argument"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	db_cv_ctime_r_3arg="2-argument"
fi

rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $db_cv_ctime_r_3arg" >&5
echo "${ECHO_T}$db_cv_ctime_r_3arg" >&6; }
fi
if test "$db_cv_ctime_r_3arg" = "3-argument"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_CTIME_R_3ARG 1
_ACEOF



d33619 3
a33621 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d33647 1
a33647 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33650 1
d33652 2
d33658 1
a33658 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d33660 5
d33670 1
a33670 1
return $ac_func ();
d33676 2
a33677 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33684 4
a33687 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33692 2
a33693 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33702 1
a33702 1
	eval "$as_ac_var=no"
d33704 1
a33704 2

rm -f core conftest.err conftest.$ac_objext \
d33707 2
a33708 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d33720 2
a33721 2
{ echo "$as_me:$LINENO: checking for fcntl/F_SETFD" >&5
echo $ECHO_N "checking for fcntl/F_SETFD... $ECHO_C" >&6; }
d33746 2
a33747 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33754 4
a33757 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33762 2
a33763 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33772 1
a33772 1
	db_cv_fcntl_f_setfd=no
d33774 1
a33774 2

rm -f core conftest.err conftest.$ac_objext \
d33777 2
a33778 2
{ echo "$as_me:$LINENO: result: $db_cv_fcntl_f_setfd" >&5
echo "${ECHO_T}$db_cv_fcntl_f_setfd" >&6; }
d33790 4
a33793 1
aux*)	case " $LIBOBJS " in
d33795 1
a33795 2
  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
 ;;
d33804 2
a33805 2
	{ echo "$as_me:$LINENO: checking for open/O_DIRECT" >&5
echo $ECHO_N "checking for open/O_DIRECT... $ECHO_C" >&6; }
d33830 2
a33831 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33838 4
a33841 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33846 2
a33847 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d33856 1
a33856 1
	db_cv_open_o_direct=no
d33858 1
a33858 2

rm -f core conftest.err conftest.$ac_objext \
d33861 2
a33862 2
{ echo "$as_me:$LINENO: result: $db_cv_open_o_direct" >&5
echo "${ECHO_T}$db_cv_open_o_direct" >&6; }
d33871 109
a33979 1
	fi
d33981 5
d33987 3
a33989 11
# Check for largefile support.
# Check whether --enable-largefile was given.
if test "${enable_largefile+set}" = set; then
  enableval=$enable_largefile;
fi

if test "$enable_largefile" != no; then

  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
if test "${ac_cv_sys_largefile_CC+set}" = set; then
d33992 3
a33994 7
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
	 # IRIX 6.2 and later do not support large files by default,
	 # so use the C compiler's -n32 option if that helps.
	 cat >conftest.$ac_ext <<_ACEOF
d34017 3
a34019 8
	 rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d34026 4
a34029 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34034 2
a34035 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a34043 1

d34045 20
d34066 7
a34072 10
rm -f core conftest.err conftest.$ac_objext
	 CC="$CC -n32"
	 rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d34079 4
a34082 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34087 2
a34088 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34092 1
a34092 1
  ac_cv_sys_largefile_CC=' -n32'; break
d34097 8
d34106 3
a34108 1
fi
a34109 6
rm -f core conftest.err conftest.$ac_objext
	 break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
d34111 4
a34114 9
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi

  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
d34118 1
a34118 1
  ac_cv_sys_file_offset_bits=no
d34143 2
a34144 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d34151 4
a34154 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34159 2
a34160 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
a34168 1

d34170 1
a34170 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d34177 1
a34177 1
#define _FILE_OFFSET_BITS 64
d34196 2
a34197 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d34204 4
a34207 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34212 2
a34213 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34217 1
a34217 1
  ac_cv_sys_file_offset_bits=64; break
a34221 1

d34223 1
a34223 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d34227 3
a34229 3
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
if test "$ac_cv_sys_file_offset_bits" != no; then
d34232 1
a34232 1
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
d34237 28
a34264 3
  { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
if test "${ac_cv_sys_large_files+set}" = set; then
a34266 2
  while :; do
  ac_cv_sys_large_files=no
d34273 37
a34309 9
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
d34313 1
a34313 1

d34318 3
a34320 8
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d34327 4
a34330 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34334 3
a34336 7
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34340 1
a34340 1
  break
d34345 11
d34357 2
d34360 8
d34369 8
a34376 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d34383 37
a34419 10
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
d34423 1
a34423 1

d34428 3
a34430 8
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d34437 4
a34440 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34444 3
a34446 7
	 { ac_try='test -s conftest.$ac_objext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34450 1
a34450 1
  ac_cv_sys_large_files=1; break
d34455 1
a34455 1

d34457 2
a34458 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  break
done
d34460 5
a34464 6
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
if test "$ac_cv_sys_large_files" != no; then

cat >>confdefs.h <<_ACEOF
#define _LARGE_FILES $ac_cv_sys_large_files
d34468 1
a34468 3
rm -f conftest*
fi

a34469 17
# Figure out how to create shared regions.
#
# First, we look for mmap.
#
# BSD/OS has mlock(2), but it doesn't work until the 4.1 release.
#
# Nextstep (version 3.3) apparently supports mmap(2) (the mmap symbol
# is defined in the C library) but does not support munmap(2).  Don't
# try to use mmap if we can't find munmap.
#
# Ultrix has mmap(2), but it doesn't work.
mmap_ok=no
case "$host_os" in
bsdi3*|bsdi4.0)
	{ echo "$as_me:$LINENO: WARNING: mlock(2) interface ignored on $host_os-$host_vendor." >&5
echo "$as_me: WARNING: mlock(2) interface ignored on $host_os-$host_vendor." >&2;}
	mmap_ok=yes
d34475 3
a34477 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d34503 1
a34503 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d34506 1
d34508 2
d34514 1
a34514 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d34516 5
d34526 1
a34526 1
return $ac_func ();
d34532 2
a34533 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d34540 4
a34543 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34548 2
a34549 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34558 1
a34558 1
	eval "$as_ac_var=no"
d34560 1
a34560 2

rm -f core conftest.err conftest.$ac_objext \
d34563 2
a34564 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d34575 11
a34585 3
ultrix*)
	{ echo "$as_me:$LINENO: WARNING: mmap(2) interface ignored on $host_os-$host_vendor." >&5
echo "$as_me: WARNING: mmap(2) interface ignored on $host_os-$host_vendor." >&2;};;
d34587 1
a34587 1
	mmap_ok=yes
d34589 1
a34589 2

for ac_func in mlock munlock
d34592 3
a34594 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d34620 1
a34620 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d34623 1
d34625 2
d34631 1
a34631 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d34633 5
d34643 1
a34643 1
return $ac_func ();
d34649 2
a34650 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d34657 4
a34660 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34665 2
a34666 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34675 1
a34675 1
	eval "$as_ac_var=no"
d34677 1
a34677 2

rm -f core conftest.err conftest.$ac_objext \
d34680 2
a34681 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d34687 2
d34691 22
d34714 42
d34757 25
d34783 5
a34787 6
for ac_func in mmap munmap
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d34796 1
a34796 1
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
d34798 1
a34798 1
#define $ac_func innocuous_$ac_func
d34801 1
a34801 1
    which can conflict with char $ac_func (); below.
d34811 1
a34811 1
#undef $ac_func
d34813 1
a34813 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d34816 1
d34818 3
a34820 1
char $ac_func ();
d34824 1
a34824 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d34826 5
d34836 1
a34836 1
return $ac_func ();
d34842 2
a34843 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d34850 4
a34853 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34858 2
a34859 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34863 1
a34863 1
  eval "$as_ac_var=yes"
d34868 1
a34868 1
	eval "$as_ac_var=no"
d34870 1
a34870 2

rm -f core conftest.err conftest.$ac_objext \
d34873 4
a34876 8
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

d34878 3
a34880 24
  mmap_ok=no
fi
done
;;
esac

# Second, we look for shmget.
#
# SunOS has the shmget(2) interfaces, but there appears to be a missing
# #include <debug/debug.h> file, so we ignore them.
shmget_ok=no
case "$host_os" in
sunos*)
	{ echo "$as_me:$LINENO: WARNING: shmget(2) interface ignored on $host_os-$host_vendor." >&5
echo "$as_me: WARNING: shmget(2) interface ignored on $host_os-$host_vendor." >&2;};;
*)
	shmget_ok=yes

for ac_func in shmget
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d34883 3
a34885 1
  cat >conftest.$ac_ext <<_ACEOF
a34890 8
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
d34892 1
a34892 11
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d34896 3
a34898 8
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

d34902 1
a34902 1
return $ac_func ();
d34908 2
a34909 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d34916 4
a34919 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34924 2
a34925 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d34929 1
a34929 1
  eval "$as_ac_var=yes"
d34934 1
a34934 1
	eval "$as_ac_var=no"
d34936 1
a34936 2

rm -f core conftest.err conftest.$ac_objext \
d34938 7
a34945 7
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a34946 2
else
  shmget_ok=no
a34947 1
done
d34949 3
a34951 93
esac

# We require either mmap/munmap(2) or shmget(2).
if test "$mmap_ok" = "no" -a "$shmget_ok" = "no"; then
	{ echo "$as_me:$LINENO: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
echo "$as_me: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&2;}
fi

# Optional RPC client/server.
if test "$db_cv_rpc" = "yes"; then

	cat >>confdefs.h <<\_ACEOF
#define HAVE_RPC 1
_ACEOF




	# We use the target's rpcgen utility because it may be architecture
	# specific, for example, 32- or 64-bit specific.
	XDR_FILE=$srcdir/../rpc_server/db_server.x

	# Prefer the -C option to rpcgen which generates ANSI C-conformant
	# code.
	RPCGEN="rpcgen -C"
	{ echo "$as_me:$LINENO: checking \"$RPCGEN\" build of db_server.h" >&5
echo $ECHO_N "checking \"$RPCGEN\" build of db_server.h... $ECHO_C" >&6; }
	$RPCGEN -h $XDR_FILE > db_server.h 2>/dev/null
	if test $? -ne 0; then
		{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }

		# Try rpcgen without the -C option.
		RPCGEN="rpcgen"
		{ echo "$as_me:$LINENO: checking \"$RPCGEN\" build of db_server.h" >&5
echo $ECHO_N "checking \"$RPCGEN\" build of db_server.h... $ECHO_C" >&6; }
		$RPCGEN -h $XDR_FILE > db_server.h 2>/dev/null
		if test $? -ne 0; then
			{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
			{ { echo "$as_me:$LINENO: error: Unable to build RPC support: $RPCGEN failed." >&5
echo "$as_me: error: Unable to build RPC support: $RPCGEN failed." >&2;}
   { (exit 1); exit 1; }; }
		fi
	fi

	# Some rpcgen programs generate a set of client stubs called something
	# like __db_env_create_4003 and functions on the server to handle the
	# request called something like __db_env_create_4003_svc.  Others
	# expect client and server stubs to both be called __db_env_create_4003.
	#
	# We have to generate code in whichever format rpcgen expects, and the
	# only reliable way to do that is to check what is in the db_server.h
	# file we just created.
	if grep "env_create_[0-9]*_svc" db_server.h >/dev/null 2>&1 ; then
		sed 's/__SVCSUFFIX__/_svc/' \
		    < $srcdir/../rpc_server/c/gen_db_server.c > gen_db_server.c
	else
		sed 's/__SVCSUFFIX__//' \
		    < $srcdir/../rpc_server/c/gen_db_server.c > gen_db_server.c
	fi

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }

	$RPCGEN -l $XDR_FILE |
	sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \
	    -e '1,/^#include/s/^#include/#include "db_config.h"\
&/' > db_server_clnt.c

	$RPCGEN -s tcp $XDR_FILE |
	sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \
	    -e 's/^main *()/__dbsrv_main()/' \
	    -e 's/^main *(.*argc.*argv.*)/__dbsrv_main(int argc, char *argv)/' \
	    -e '/^db_rpc_serverprog/,/^}/{' \
	    -e 's/return;//' \
	    -e 's/^}/__dbsrv_timeout(0);}/' \
	    -e '}' \
	    -e '1,/^#include/s/^#include/#include "db_config.h"\
&/' > db_server_svc.c

	$RPCGEN -c $XDR_FILE |
	sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \
	    -e '1,/^#include/s/^#include/#include "db_config.h"\
&/' > db_server_xdr.c

	RPC_SERVER_H=db_server.h
	RPC_CLIENT_OBJS="\$(RPC_CLIENT_OBJS)"
	ADDITIONAL_PROGS="berkeley_db_svc $ADDITIONAL_PROGS"

	# Solaris and HPUX need the nsl library to build RPC.
	{ echo "$as_me:$LINENO: checking for svc_run" >&5
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6; }
d34978 1
a34978 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d34981 1
d34983 2
d34989 1
a34989 1
#if defined __stub_svc_run || defined __stub___svc_run
d34991 5
d35001 1
a35001 1
return svc_run ();
d35007 2
a35008 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d35015 4
a35018 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d35023 2
a35024 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d35033 1
a35033 1
	ac_cv_func_svc_run=no
d35035 1
a35035 2

rm -f core conftest.err conftest.$ac_objext \
d35038 2
a35039 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_svc_run" >&5
echo "${ECHO_T}$ac_cv_func_svc_run" >&6; }
d35043 4
a35046 3
  { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
if test "${ac_cv_lib_nsl_main+set}" = set; then
d35058 7
a35064 1

d35068 1
a35068 1
return main ();
d35074 2
a35075 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d35082 4
a35085 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d35090 2
a35091 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d35095 1
a35095 1
  ac_cv_lib_nsl_main=yes
d35100 1
a35100 1
	ac_cv_lib_nsl_main=no
d35102 1
a35102 2

rm -f core conftest.err conftest.$ac_objext \
d35106 9
a35114 4
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
if test $ac_cv_lib_nsl_main = yes; then
  LIBSO_LIBS="$LIBSO_LIBS -lnsl"
a35115 1
ac_cv_lib_nsl=ac_cv_lib_nsl_main
d35118 2
a35119 1

d35173 2
a35174 2
	{ echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6; }
d35177 2
a35178 2
		{ echo "$as_me:$LINENO: result: loading" >&5
echo "${ECHO_T}loading" >&6; }
d35181 2
a35182 2
		{ echo "$as_me:$LINENO: result: file not found" >&5
echo "${ECHO_T}file not found" >&6; }
d35228 2
a35229 3
	{ echo "$as_me:$LINENO: checking for 64-bit integral type support for sequences" >&5
echo $ECHO_N "checking for 64-bit integral type support for sequences... $ECHO_C" >&6; }

d35300 2
a35301 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d35308 4
a35311 7
	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d35316 2
a35317 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d35326 1
a35326 1
	db_cv_build_sequence="no"
d35328 1
a35328 2

rm -f core conftest.err conftest.$ac_objext \
d35356 2
a35357 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d35361 2
a35362 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d35375 1
a35375 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d35377 7
a35385 2
	fi
	if test "$db_cv_build_sequence" = "yes"; then
d35399 2
a35400 2
	{ echo "$as_me:$LINENO: result: $db_cv_build_sequence" >&5
echo "${ECHO_T}$db_cv_build_sequence" >&6; }
a35461 4

	if test "$db_cv_build_replication_mgr" = "yes"; then
		ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(REPMGR_OBJS)"
	fi
a35529 1
    clib_port.h:$srcdir/../dist/clib_port.h
d35573 1
a35573 1
ac_config_files="$ac_config_files $CREATE_LIST"
d35593 1
a35593 1
# So, we kill variables containing newlines.
d35596 1
a35596 16
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done

d35598 2
a35599 2
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
d35605 1
a35605 1
      ;; #(
d35608 2
a35609 1
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d35611 2
a35612 3
    esac |
    sort
) |
a35613 1
     /^ac_cv_env_/b end
d35615 1
a35615 1
     :clear
d35618 5
a35622 7
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
echo "$as_me: updating cache $cache_file" >&6;}
d35625 1
a35625 2
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d35634 15
d35655 5
a35659 6
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d35697 2
a35698 3
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
a35699 1
BIN_SH=xpg4; export BIN_SH # for Tru64
a35701 22

# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi

a35709 33
# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
as_nl='
'
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

d35711 1
a35711 3
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
d35725 1
a35725 1
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d35730 1
a35730 2
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
d35736 1
a35736 1
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d35744 1
a35744 1
as_me=`$as_basename -- "$0" ||
d35747 2
a35748 1
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d35750 13
a35762 13
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
d35764 12
a35775 2
# CDPATH.
$as_unset CDPATH
d35778 16
d35795 23
d35820 1
d35822 12
a35833 1
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d35837 4
a35840 5
  # line-number line after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, and appends
  # trailing '-' during substitution so that $LINENO is not a special
  # case at line end.
d35842 2
a35843 6
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
a35844 4
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
d35846 3
a35848 2
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d35850 2
a35851 1
      s/-\n.*//
d35853 3
a35855 2
  chmod +x "$as_me.lineno" ||
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d35860 2
a35861 2
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
d35867 5
a35871 15
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
d35874 1
a35874 2
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
a35880 6
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir
fi
d35883 4
a35886 6
  as_ln_s='ln -s'
  # ... but there are two gotchas:
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  # In both cases, we have to default to `cp -p'.
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d35888 3
d35896 1
a35896 2
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
d35905 1
a35905 13
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
# systems may use methods other than mode bits to determine executability.
cat >conf$$.file <<_ASEOF
#! /bin/sh
exit 0
_ASEOF
chmod +x conf$$.file
if test -x conf$$.file >/dev/null 2>&1; then
  as_executable_p="test -x"
else
  as_executable_p=:
fi
rm -f conf$$.file
d35914 9
d35925 1
a35925 1
# Save the log message, to keep $[0] and so on meaningful, and to
d35927 12
a35938 4
# values after options handling.
ac_log="
This file was extended by Berkeley DB $as_me 4.5.20, which was
generated by GNU Autoconf 2.60.  Invocation command line was
d35946 3
a35948 3
on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

a35950 1
cat >>$CONFIG_STATUS <<_ACEOF
d35952 3
a35954 2
config_files="$ac_config_files"
config_headers="$ac_config_headers"
d35956 11
a35966 1
_ACEOF
d35969 1
d35993 1
a35994 1
_ACEOF
d35997 3
a35999 3
Berkeley DB config.status 4.5.20
configured by $0, generated by GNU Autoconf 2.60,
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d36001 1
a36001 1
Copyright (C) 2006 Free Software Foundation, Inc.
d36004 2
a36005 4

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
d36016 2
a36017 2
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d36020 1
a36020 1
  *)
d36025 4
d36033 2
d36037 12
a36048 3
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    echo "$ac_cs_version"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
a36057 7
  --he | --h)
    # Conflict between --help and --header
    { echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit ;;
d36063 4
a36066 2
  -*) { echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2
d36069 1
a36069 2
  *) ac_config_targets="$ac_config_targets $1"
     ac_need_defaults=false ;;
d36085 2
a36086 4
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  CONFIG_SHELL=$SHELL
  export CONFIG_SHELL
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a36089 9
cat >>$CONFIG_STATUS <<\_ACEOF
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  echo "$ac_log"
} >&5
d36091 3
a36093 3
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
_ACEOF
a36095 2

# Handling of arguments.
d36098 4
a36101 4
  case $ac_config_target in
    "db_config.h") CONFIG_HEADERS="$CONFIG_HEADERS db_config.h:config.hin" ;;
    "$CREATE_LIST") CONFIG_FILES="$CONFIG_FILES $CREATE_LIST" ;;

a36107 1

d36118 1
a36118 1
# simply because there is no reason against having it here, and in addition,
d36120 1
a36120 3
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
d36123 1
a36123 4
  tmp=
  trap 'exit_status=$?
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
d36126 1
d36130 1
a36130 1
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d36134 2
a36135 2
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
d36142 4
d36147 1
a36147 1
# Set up the sed scripts for CONFIG_FILES section.
d36152 224
a36375 116
if test -n "$CONFIG_FILES"; then

_ACEOF



ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
SHELL!$SHELL$ac_delim
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
exec_prefix!$exec_prefix$ac_delim
prefix!$prefix$ac_delim
program_transform_name!$program_transform_name$ac_delim
bindir!$bindir$ac_delim
sbindir!$sbindir$ac_delim
libexecdir!$libexecdir$ac_delim
datarootdir!$datarootdir$ac_delim
datadir!$datadir$ac_delim
sysconfdir!$sysconfdir$ac_delim
sharedstatedir!$sharedstatedir$ac_delim
localstatedir!$localstatedir$ac_delim
includedir!$includedir$ac_delim
oldincludedir!$oldincludedir$ac_delim
docdir!$docdir$ac_delim
infodir!$infodir$ac_delim
htmldir!$htmldir$ac_delim
dvidir!$dvidir$ac_delim
pdfdir!$pdfdir$ac_delim
psdir!$psdir$ac_delim
libdir!$libdir$ac_delim
localedir!$localedir$ac_delim
mandir!$mandir$ac_delim
DEFS!$DEFS$ac_delim
ECHO_C!$ECHO_C$ac_delim
ECHO_N!$ECHO_N$ac_delim
ECHO_T!$ECHO_T$ac_delim
LIBS!$LIBS$ac_delim
build_alias!$build_alias$ac_delim
host_alias!$host_alias$ac_delim
target_alias!$target_alias$ac_delim
build!$build$ac_delim
build_cpu!$build_cpu$ac_delim
build_vendor!$build_vendor$ac_delim
build_os!$build_os$ac_delim
host!$host$ac_delim
host_cpu!$host_cpu$ac_delim
host_vendor!$host_vendor$ac_delim
host_os!$host_os$ac_delim
ADDITIONAL_INCS!$ADDITIONAL_INCS$ac_delim
ADDITIONAL_LANG!$ADDITIONAL_LANG$ac_delim
ADDITIONAL_OBJS!$ADDITIONAL_OBJS$ac_delim
ADDITIONAL_PROGS!$ADDITIONAL_PROGS$ac_delim
BUILD_TARGET!$BUILD_TARGET$ac_delim
CFLAGS!$CFLAGS$ac_delim
CONFIGURATION_ARGS!$CONFIGURATION_ARGS$ac_delim
CONFIGURATION_PATH!$CONFIGURATION_PATH$ac_delim
CPPFLAGS!$CPPFLAGS$ac_delim
CRYPTO_OBJS!$CRYPTO_OBJS$ac_delim
CXX!$CXX$ac_delim
CXXFLAGS!$CXXFLAGS$ac_delim
DB_PROTO1!$DB_PROTO1$ac_delim
DB_PROTO2!$DB_PROTO2$ac_delim
DEFAULT_LIB!$DEFAULT_LIB$ac_delim
DEFAULT_LIB_CXX!$DEFAULT_LIB_CXX$ac_delim
INSTALLER!$INSTALLER$ac_delim
INSTALL_LIBS!$INSTALL_LIBS$ac_delim
INSTALL_TARGET!$INSTALL_TARGET$ac_delim
JAR!$JAR$ac_delim
JAVACFLAGS!$JAVACFLAGS$ac_delim
LDFLAGS!$LDFLAGS$ac_delim
LIBCSO_LIBS!$LIBCSO_LIBS$ac_delim
LIBJSO_LIBS!$LIBJSO_LIBS$ac_delim
LIBSO_LIBS!$LIBSO_LIBS$ac_delim
LIBTOOL!$LIBTOOL$ac_delim
LIBTSO_LIBS!$LIBTSO_LIBS$ac_delim
LIBTSO_MODSUFFIX!$LIBTSO_MODSUFFIX$ac_delim
LIBTSO_MODULE!$LIBTSO_MODULE$ac_delim
LIBXSO_LIBS!$LIBXSO_LIBS$ac_delim
MAKEFILE_CC!$MAKEFILE_CC$ac_delim
MAKEFILE_CCLINK!$MAKEFILE_CCLINK$ac_delim
MAKEFILE_CXX!$MAKEFILE_CXX$ac_delim
MAKEFILE_CXXLINK!$MAKEFILE_CXXLINK$ac_delim
MAKEFILE_SOLINK!$MAKEFILE_SOLINK$ac_delim
MAKEFILE_XSOLINK!$MAKEFILE_XSOLINK$ac_delim
OSDIR!$OSDIR$ac_delim
POSTLINK!$POSTLINK$ac_delim
REPLACEMENT_OBJS!$REPLACEMENT_OBJS$ac_delim
RPC_CLIENT_OBJS!$RPC_CLIENT_OBJS$ac_delim
RPC_SERVER_H!$RPC_SERVER_H$ac_delim
SOFLAGS!$SOFLAGS$ac_delim
SWIGCFLAGS!$SWIGCFLAGS$ac_delim
TEST_LIBS!$TEST_LIBS$ac_delim
db_int_def!$db_int_def$ac_delim
o!$o$ac_delim
platform_header!$platform_header$ac_delim
platform_footer!$platform_footer$ac_delim
DB_VERSION_MAJOR!$DB_VERSION_MAJOR$ac_delim
DB_VERSION_MINOR!$DB_VERSION_MINOR$ac_delim
DB_VERSION_PATCH!$DB_VERSION_PATCH$ac_delim
DB_VERSION_STRING!$DB_VERSION_STRING$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d36377 1
a36377 118
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g
s/^/s,@@/; s/!/@@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF


ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
DB_VERSION_UNIQUE_NAME!$DB_VERSION_UNIQUE_NAME$ac_delim
AR!$AR$ac_delim
CHMOD!$CHMOD$ac_delim
CP!$CP$ac_delim
KILL!$KILL$ac_delim
LN!$LN$ac_delim
MKDIR!$MKDIR$ac_delim
RANLIB!$RANLIB$ac_delim
RM!$RM$ac_delim
RPCGEN!$RPCGEN$ac_delim
db_cv_path_sh!$db_cv_path_sh$ac_delim
STRIP!$STRIP$ac_delim
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
INSTALL_DATA!$INSTALL_DATA$ac_delim
CC!$CC$ac_delim
ac_ct_CC!$ac_ct_CC$ac_delim
EXEEXT!$EXEEXT$ac_delim
OBJEXT!$OBJEXT$ac_delim
DB_CONST!$DB_CONST$ac_delim
CCC!$CCC$ac_delim
ac_ct_CXX!$ac_ct_CXX$ac_delim
CXXCPP!$CXXCPP$ac_delim
cxx_have_stdheaders!$cxx_have_stdheaders$ac_delim
GREP!$GREP$ac_delim
EGREP!$EGREP$ac_delim
LN_S!$LN_S$ac_delim
ECHO!$ECHO$ac_delim
CPP!$CPP$ac_delim
F77!$F77$ac_delim
FFLAGS!$FFLAGS$ac_delim
ac_ct_F77!$ac_ct_F77$ac_delim
SOSUFFIX!$SOSUFFIX$ac_delim
MODSUFFIX!$MODSUFFIX$ac_delim
JMODSUFFIX!$JMODSUFFIX$ac_delim
JAVAC!$JAVAC$ac_delim
JAVA!$JAVA$ac_delim
uudecode!$uudecode$ac_delim
_ACJNI_JAVAC!$_ACJNI_JAVAC$ac_delim
inttypes_h_decl!$inttypes_h_decl$ac_delim
stdint_h_decl!$stdint_h_decl$ac_delim
stddef_h_decl!$stddef_h_decl$ac_delim
unistd_h_decl!$unistd_h_decl$ac_delim
u_char_decl!$u_char_decl$ac_delim
u_short_decl!$u_short_decl$ac_delim
u_int_decl!$u_int_decl$ac_delim
u_long_decl!$u_long_decl$ac_delim
u_int8_decl!$u_int8_decl$ac_delim
u_int16_decl!$u_int16_decl$ac_delim
int16_decl!$int16_decl$ac_delim
u_int32_decl!$u_int32_decl$ac_delim
int32_decl!$int32_decl$ac_delim
u_int64_decl!$u_int64_decl$ac_delim
int64_decl!$int64_decl$ac_delim
ssize_t_decl!$ssize_t_decl$ac_delim
pid_t_decl!$pid_t_decl$ac_delim
uintmax_t_decl!$uintmax_t_decl$ac_delim
uintptr_t_decl!$uintptr_t_decl$ac_delim
thread_h_decl!$thread_h_decl$ac_delim
db_threadid_t_decl!$db_threadid_t_decl$ac_delim
LIBOBJS!$LIBOBJS$ac_delim
TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
TCL_TCLSH!$TCL_TCLSH$ac_delim
INT64_FMT!$INT64_FMT$ac_delim
UINT64_FMT!$UINT64_FMT$ac_delim
db_seq_decl!$db_seq_decl$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 70; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi
a36378 18
cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b end
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g
s/^/s,@@/; s/!/@@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
:end
s/|#_!!_#|//g
CEOF$ac_eof
a36379 17


# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@@srcdir@@:*/:/
s/^\([^=]*=[	 ]*\):*/\1/
s/:*$//
s/^[^=]*=[	 ]*$//
}'
fi

d36381 10
a36390 62
fi # test -n "$CONFIG_FILES"


for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   { (exit 1); exit 1; }; };;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   { (exit 1); exit 1; }; };;
      esac
      ac_file_inputs="$ac_file_inputs $ac_f"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input="Generated from "`IFS=:
	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    fi

    case $ac_tag in
    *:-:* | *:-) cat >"$tmp/stdin";;
    esac
    ;;
d36393 2
a36394 1
  ac_dir=`$as_dirname -- "$ac_file" ||
d36398 2
a36399 1
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d36401 9
a36409 22
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  { as_dir="$ac_dir"
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d36411 3
a36413 7
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
d36417 2
a36418 1
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d36420 5
a36424 18
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
d36426 3
a36428 3
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&2;}
d36430 1
d36433 1
a36433 3
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
d36435 5
a36439 11
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
d36442 1
a36442 1
  .)  # We are building in place.
d36444 6
a36449 3
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
d36451 4
a36454 6
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a36455 1
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d36457 38
a36495 5
  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #
d36499 1
a36499 1
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a36500 1
_ACEOF
d36502 43
a36544 29
cat >>$CONFIG_STATUS <<\_ACEOF
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=

case `sed -n '/datarootdir/ {
  p
  q
}
/@@datadir@@/p
/@@docdir@@/p
/@@infodir@@/p
/@@localedir@@/p
/@@mandir@@/p
' $ac_file_inputs` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@@datadir@@*|*@@docdir@@*|*@@infodir@@*|*@@localedir@@*|*@@mandir@@*)
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
  ac_datarootdir_hack='
  s&@@datadir@@&$datadir&g
  s&@@docdir@@&$docdir&g
  s&@@infodir@@&$infodir&g
  s&@@localedir@@&$localedir&g
  s&@@mandir@@&$mandir&g
    s&\\\${datarootdir}&$datarootdir&g' ;;
esac
a36545 4

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
d36553 26
a36578 20
s&@@configure_input@@&$configure_input&;t t
s&@@top_builddir@@&$ac_top_builddir_sub&;t t
s&@@srcdir@@&$ac_srcdir&;t t
s&@@abs_srcdir@@&$ac_abs_srcdir&;t t
s&@@top_srcdir@@&$ac_top_srcdir&;t t
s&@@abs_top_srcdir@@&$ac_abs_top_srcdir&;t t
s&@@builddir@@&$ac_builddir&;t t
s&@@abs_builddir@@&$ac_abs_builddir&;t t
s&@@abs_top_builddir@@&$ac_abs_top_builddir&;t t
s&@@INSTALL@@&$ac_INSTALL&;t t
$ac_datarootdir_hack
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&5
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&2;}
d36580 16
a36595 1
  rm -f "$tmp/stdin"
d36597 7
a36603 2
  -) cat "$tmp/out"; rm -f "$tmp/out";;
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d36605 35
a36639 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
d36642 30
a36671 19
# Transform confdefs.h into a sed script `conftest.defines', that
# substitutes the proper values into config.h.in to produce config.h.
rm -f conftest.defines conftest.tail
# First, append a space to every undef/define line, to ease matching.
echo 's/$/ /' >conftest.defines
# Then, protect against being on the right side of a sed subst, or in
# an unquoted here document, in config.status.  If some macros were
# called several times there might be several #defines for the same
# symbol, which is useless.  But do not sort them, since the last
# AC_DEFINE must be honored.
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
# NAME is the cpp macro being defined, VALUE is the value it is being given.
# PARAMS is the parameter list in the macro definition--in most cases, it's
# just an empty string.
ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
ac_dB='\\)[	 (].*,\\1define\\2'
ac_dC=' '
ac_dD=' ,'
d36673 1
a36673 15
uniq confdefs.h |
  sed -n '
	t rset
	:rset
	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
	t ok
	d
	:ok
	s/[\\&,]/\\&/g
	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  ' >>conftest.defines

# Remove the space that was appended to ease matching.
# Then replace #undef with comments.  This is necessary, for
d36676 2
a36677 25
# (The regexp can be short, since the line contains either #define or #undef.)
echo 's/ $//
s,^[	 #]*u.*,/* & */,' >>conftest.defines

# Break up conftest.defines:
ac_max_sed_lines=50

# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
# et cetera.
ac_in='$ac_file_inputs'
ac_out='"$tmp/out1"'
ac_nxt='"$tmp/out2"'

while :
do
  # Write a here document:
    cat >>$CONFIG_STATUS <<_ACEOF
    # First, check the format of the line:
    cat >"\$tmp/defines.sed" <<\\CEOF
/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
b
:def
d36679 18
a36696 1
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d36698 5
a36702 4
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  grep . conftest.tail >/dev/null || break
d36706 28
a36733 1
rm -f conftest.defines conftest.tail
a36734 1
echo "ac_result=$ac_in" >>$CONFIG_STATUS
d36736 10
d36747 1
a36747 3
    echo "/* $configure_input  */" >"$tmp/config.h"
    cat "$ac_result" >>"$tmp/config.h"
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d36751 37
d36789 1
a36789 1
      mv "$tmp/config.h" $ac_file
d36792 2
a36793 2
    echo "/* $configure_input  */"
    cat "$ac_result"
d36795 2
a36796 7
  rm -f "$tmp/out12"
 ;;


  esac

done # for ac_tag
d36798 1
@


1.6
log
@Upgrade to db-4.3.21.
@
text
@d2157 5
a2161 5
	if test "$db_cv_rpc" = "yes"; then
		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-rpc" >&5
echo "$as_me: error: --with-uniquename is not compatible with --enable-rpc" >&2;}
   { (exit 1); exit 1; }; }
	fi
d33803 1
a33803 1
	    -e '1,/^#include/s/^#include/#include "db_config.h"\
@


1.5
log
@Add #include "db_int_def.h" to generated db_server_svc.c (pnasrat).
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.59 for Berkeley DB 4.3.14.
d425 3
a427 3
PACKAGE_TARNAME='db-4.3.14'
PACKAGE_VERSION='4.3.14'
PACKAGE_STRING='Berkeley DB 4.3.14'
d958 1
a958 1
\`configure' configures Berkeley DB 4.3.14 to adapt to many kinds of systems.
d1024 1
a1024 1
     short | recursive ) echo "Configuration of Berkeley DB 4.3.14:";;
d1191 1
a1191 1
Berkeley DB configure 4.3.14
d1205 1
a1205 1
It was created by Berkeley DB $as_me 4.3.14, which was
d1709 1
a1709 1
DB_VERSION_PATCH="14"
d1711 1
a1711 1
DB_VERSION_STRING='"Sleepycat Software: Berkeley DB 4.3.14: (October 14, 2004)"'
d2157 5
a2161 5
#	if test "$db_cv_rpc" = "yes"; then
#		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-rpc" >&5
#echo "$as_me: error: --with-uniquename is not compatible with --enable-rpc" >&2;}
#   { (exit 1); exit 1; }; }
#	fi
d28511 2
a28512 1
		{ { echo "$as_me:$LINENO: error: No unsigned 1-byte integral type" >&5
d28514 2
a28515 1
   { (exit 1); exit 1; }; };;
d28594 2
a28595 1
		{ { echo "$as_me:$LINENO: error: No unsigned 2-byte integral type" >&5
d28597 2
a28598 1
   { (exit 1); exit 1; }; };;
d28677 2
a28678 1
		{ { echo "$as_me:$LINENO: error: No signed 2-byte integral type" >&5
d28680 2
a28681 1
   { (exit 1); exit 1; }; };;
d28760 2
a28761 1
		{ { echo "$as_me:$LINENO: error: No unsigned 4-byte integral type" >&5
d28763 2
a28764 1
   { (exit 1); exit 1; }; };;
d28843 2
a28844 1
		{ { echo "$as_me:$LINENO: error: No signed 4-byte integral type" >&5
d28846 2
a28847 1
   { (exit 1); exit 1; }; };;
d28915 10
a28924 10
	"$ac_cv_sizeof_int")
		u_int64_decl="typedef int u_int64_t;";;
	"$ac_cv_sizeof_char")
		u_int64_decl="typedef char u_int64_t;";;
	"$ac_cv_sizeof_short")
		u_int64_decl="typedef short u_int64_t;";;
	"$ac_cv_sizeof_long")
		u_int64_decl="typedef long u_int64_t;";;
	"$ac_cv_sizeof_long_long")
		u_int64_decl="typedef long long u_int64_t;";;
d28926 5
a28930 3
		{ { echo "$as_me:$LINENO: error: No signed 8-byte integral type" >&5
echo "$as_me: error: No signed 8-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
d29009 2
a29010 1
		{ { echo "$as_me:$LINENO: error: No signed 8-byte integral type" >&5
d29012 2
a29013 1
   { (exit 1); exit 1; }; };;
d29094 2
a29095 1
		{ { echo "$as_me:$LINENO: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&5
d29097 2
a29098 1
   { (exit 1); exit 1; }; };;
d29306 2
a29307 1
		{ { echo "$as_me:$LINENO: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&5
d29309 2
a29310 1
   { (exit 1); exit 1; }; };;
d32203 3
a32205 1
for ac_func in strcasecmp strdup strerror
d32537 1
a32537 2

for ac_func in select snprintf srand strtoul sysconf vsnprintf yield
d33803 1
a33803 1
	    -e '1,/^#include/s/^#include/#include "db_config.h"\n#include "db_int_def.h"\
d34270 9
d34948 1
a34948 1
This file was extended by Berkeley DB $as_me 4.3.14, which was
d35008 1
a35008 1
Berkeley DB config.status 4.3.14
@


1.4
log
@Upgrade to db-4.3.14 internal.
@
text
@d33784 1
a33784 1
	    -e '1,/^#include/s/^#include/#include "db_config.h"\
@


1.3
log
@... and in with the New ...
@
text
@d2157 5
a2161 5
	if test "$db_cv_rpc" = "yes"; then
		{ { echo "$as_me:$LINENO: error: --with-uniquename is not compatible with --enable-rpc" >&5
echo "$as_me: error: --with-uniquename is not compatible with --enable-rpc" >&2;}
   { (exit 1); exit 1; }; }
	fi
@


1.2
log
@- upgrade to db-4.2.52.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.57 for Berkeley DB 4.2.52.
d7 1
a7 2
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
d24 1
d27 1
a27 1
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
d46 1
a46 1
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
d223 1
d230 1
a230 1
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
d233 1
a233 1
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
d283 1
a283 1
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
d396 1
a396 1
tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
d398 1
a398 1
tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
d425 3
a427 3
PACKAGE_TARNAME='db-4.2.52'
PACKAGE_VERSION='4.2.52'
PACKAGE_STRING='Berkeley DB 4.2.52'
d431 1
a431 1
ac_default_prefix=/usr/local/BerkeleyDB.4.2
d469 1
a469 1
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os ADDITIONAL_INCS ADDITIONAL_LANG ADDITIONAL_OBJS ADDITIONAL_PROGS BUILD_TARGET CFLAGS CONFIGURATION_ARGS CONFIGURATION_PATH CPPFLAGS CRYPTO_OBJS CXX CXXFLAGS DEFAULT_LIB DEFAULT_LIB_CXX INSTALLER INSTALL_LIBS INSTALL_TARGET JAR JAVACFLAGS LDFLAGS LIBJSO_LIBS LIBSO_LIBS LIBTOOL LIBTSO_LIBS LIBTSO_MODSUFFIX LIBTSO_MODULE LIBXSO_LIBS LOAD_LIBS MAKEFILE_CC MAKEFILE_CCLINK MAKEFILE_CXX MAKEFILE_CXXLINK MAKEFILE_SOLINK MAKEFILE_XSOLINK OSDIR POSTLINK REPLACEMENT_OBJS RPC_CLIENT_OBJS RPM_BUILD RPM_POST_INSTALL RPM_POST_UNINSTALL SOFLAGS db_cv_path_rpm_archive db_int_def o DB_VERSION_MAJOR DB_VERSION_MINOR DB_VERSION_PATCH DB_VERSION_STRING DB_VERSION_UNIQUE_NAME db_cv_path_ar ac_ct_db_cv_path_ar db_cv_path_chmod ac_ct_db_cv_path_chmod db_cv_path_cp ac_ct_db_cv_path_cp path_ldconfig ac_ct_path_ldconfig db_cv_path_ldconfig db_cv_path_ln ac_ct_db_cv_path_ln db_cv_path_mkdir ac_ct_db_cv_path_mkdir path_ranlib ac_ct_path_ranlib db_cv_path_ranlib db_cv_path_rm ac_ct_db_cv_path_rm db_cv_path_rpm ac_ct_db_cv_path_rpm path_sh ac_ct_path_sh db_cv_path_sh path_strip ac_ct_path_strip db_cv_path_strip db_cv_path_kill ac_ct_db_cv_path_kill INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA db_cv_build_type CC ac_ct_CC EXEEXT OBJEXT DB_PROTO1 DB_PROTO2 DB_CONST CCC ac_ct_CCC ac_ct_CXX CXXCPP cxx_have_stdheaders EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP F77 FFLAGS ac_ct_F77 SOSUFFIX MODSUFFIX JMODSUFFIX JAVAC JAVA uudecode _ACJNI_JAVAC TCFLAGS TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_TCLSH inttypes_decl u_char_decl u_short_decl u_int_decl u_long_decl u_int8_decl u_int16_decl int16_decl u_int32_decl int32_decl ssize_t_decl db_align_t_decl db_alignp_t_decl LIBOBJS LTLIBOBJS'
d828 1
a828 1
              localstatedir libdir includedir oldincludedir infodir mandir
d868 4
a871 4
         X"$0" : 'X\(//\)[^/]' \| \
         X"$0" : 'X\(//\)$' \| \
         X"$0" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
d958 1
a958 1
\`configure' configures Berkeley DB 4.2.52 to adapt to many kinds of systems.
d983 1
a983 1
                          [$ac_default_prefix]
d985 1
a985 1
                          [PREFIX]
d1024 1
a1024 1
     short | recursive ) echo "Configuration of Berkeley DB 4.2.52:";;
d1036 1
d1047 1
d1054 1
a1054 1
  --enable-umrw           Mask harmless unitialized memory read/writes.
a1069 1
  --with-rpm=ARCHIVE      Path of RPM archive.
d1129 39
a1167 6
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
d1178 1
a1178 1
           test -f $ac_srcdir/configure.in; then
d1191 2
a1192 2
Berkeley DB configure 4.2.52
generated by GNU Autoconf 2.57
d1194 1
a1194 2
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Free Software Foundation, Inc.
d1205 2
a1206 2
It was created by Berkeley DB $as_me 4.2.52, which was
generated by GNU Autoconf 2.57.  Invocation command line was
d1283 1
a1283 1
        ac_must_keep_next=false # Got value, back to normal.
d1285 11
a1295 11
        case $ac_arg in
          *=* | --config-cache | -C | -disable-* | --disable-* \
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
          | -with-* | --with-* | -without-* | --without-* | --x)
            case "$ac_configure_args0 " in
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
            esac
            ;;
          -* ) ac_must_keep_next=true ;;
        esac
d1329 2
a1330 2
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
d1334 1
a1334 1
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
d1363 1
a1363 1
        echo "$ac_var='"'"'$ac_val'"'"'"
d1382 1
a1382 1
  rm -f core core.* *.core &&
d1462 1
a1462 1
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
d1479 1
a1479 1
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
d1481 1
a1481 1
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
d1483 1
a1483 1
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
d1485 1
a1485 1
        ac_cache_corrupted=:
a1699 7

# RPM needs the current absolute path.
# RPM needs the list of original arguments, but we don't include the RPM
# option itself.
CONFIGURATION_PATH=${PWD-`pwd`}
CONFIGURATION_ARGS=`echo "$*" | sed -e 's/--with-rpm[^ ]*//'`

d1707 1
a1707 1
DB_VERSION_MINOR="2"
d1709 1
a1709 1
DB_VERSION_PATCH="52"
d1711 1
a1711 1
DB_VERSION_STRING='"Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)"'
d1795 17
d1953 12
d2003 1
a2103 25
echo "$as_me:$LINENO: checking if --with-rpm=ARCHIVE option specified" >&5
echo $ECHO_N "checking if --with-rpm=ARCHIVE option specified... $ECHO_C" >&6

# Check whether --with-rpm or --without-rpm was given.
if test "${with_rpm+set}" = set; then
  withval="$with_rpm"
  with_rpm="$withval"
else
  with_rpm="no"
fi;
if test "$with_rpm" = "no"; then
	db_cv_rpm="no"
	db_cv_path_rpm_archive="Not-configured-with-rpm=ARCHIVE"
else
	if test "$with_rpm" = "yes"; then
		{ { echo "$as_me:$LINENO: error: --with-rpm requires an archive path argument" >&5
echo "$as_me: error: --with-rpm requires an archive path argument" >&2;}
   { (exit 1); exit 1; }; }
	fi
	db_cv_rpm="yes"
	db_cv_path_rpm_archive="$with_rpm"
fi
echo "$as_me:$LINENO: result: $with_rpm" >&5
echo "${ECHO_T}$with_rpm" >&6

d2138 1
a2138 1
		DB_VERSION_UNIQUE_NAME="_4002"
d2155 19
a2477 127
if test "$db_cv_rpm" = "yes"; then
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ldconfig", so it can be a program name with args.
set dummy ${ac_tool_prefix}ldconfig; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_path_ldconfig+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$path_ldconfig"; then
  ac_cv_prog_path_ldconfig="$path_ldconfig" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_path_ldconfig="${ac_tool_prefix}ldconfig"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
path_ldconfig=$ac_cv_prog_path_ldconfig
if test -n "$path_ldconfig"; then
  echo "$as_me:$LINENO: result: $path_ldconfig" >&5
echo "${ECHO_T}$path_ldconfig" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_path_ldconfig"; then
  ac_ct_path_ldconfig=$path_ldconfig
  # Extract the first word of "ldconfig", so it can be a program name with args.
set dummy ldconfig; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_path_ldconfig+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_path_ldconfig"; then
  ac_cv_prog_ac_ct_path_ldconfig="$ac_ct_path_ldconfig" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_path_ldconfig="ldconfig"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_prog_ac_ct_path_ldconfig" && ac_cv_prog_ac_ct_path_ldconfig="missing_ldconfig"
fi
fi
ac_ct_path_ldconfig=$ac_cv_prog_ac_ct_path_ldconfig
if test -n "$ac_ct_path_ldconfig"; then
  echo "$as_me:$LINENO: result: $ac_ct_path_ldconfig" >&5
echo "${ECHO_T}$ac_ct_path_ldconfig" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  path_ldconfig=$ac_ct_path_ldconfig
else
  path_ldconfig="$ac_cv_prog_path_ldconfig"
fi

	# Extract the first word of "$path_ldconfig", so it can be a program name with args.
set dummy $path_ldconfig; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_db_cv_path_ldconfig+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $db_cv_path_ldconfig in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_db_cv_path_ldconfig="$db_cv_path_ldconfig" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_db_cv_path_ldconfig="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_db_cv_path_ldconfig" && ac_cv_path_db_cv_path_ldconfig="missing_ldconfig"
  ;;
esac
fi
db_cv_path_ldconfig=$ac_cv_path_db_cv_path_ldconfig

if test -n "$db_cv_path_ldconfig"; then
  echo "$as_me:$LINENO: result: $db_cv_path_ldconfig" >&5
echo "${ECHO_T}$db_cv_path_ldconfig" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

	if test "$db_cv_path_ldconfig" != missing_ldconfig; then
		RPM_POST_INSTALL="%post -p $db_cv_path_ldconfig"
		RPM_POST_UNINSTALL="%postun -p $db_cv_path_ldconfig"
	fi
fi

d2859 1
a2859 1
if test "$db_cv_rpm" = "yes"; then
d2861 2
a2862 2
  # Extract the first word of "${ac_tool_prefix}rpm", so it can be a program name with args.
set dummy ${ac_tool_prefix}rpm; ac_word=$2
d2865 1
a2865 1
if test "${ac_cv_prog_db_cv_path_rpm+set}" = set; then
d2868 2
a2869 2
  if test -n "$db_cv_path_rpm"; then
  ac_cv_prog_db_cv_path_rpm="$db_cv_path_rpm" # Let the user override the test.
d2878 1
a2878 1
    ac_cv_prog_db_cv_path_rpm="${ac_tool_prefix}rpm"
d2887 4
a2890 4
db_cv_path_rpm=$ac_cv_prog_db_cv_path_rpm
if test -n "$db_cv_path_rpm"; then
  echo "$as_me:$LINENO: result: $db_cv_path_rpm" >&5
echo "${ECHO_T}$db_cv_path_rpm" >&6
d2897 4
a2900 4
if test -z "$ac_cv_prog_db_cv_path_rpm"; then
  ac_ct_db_cv_path_rpm=$db_cv_path_rpm
  # Extract the first word of "rpm", so it can be a program name with args.
set dummy rpm; ac_word=$2
d2903 1
a2903 1
if test "${ac_cv_prog_ac_ct_db_cv_path_rpm+set}" = set; then
d2906 2
a2907 2
  if test -n "$ac_ct_db_cv_path_rpm"; then
  ac_cv_prog_ac_ct_db_cv_path_rpm="$ac_ct_db_cv_path_rpm" # Let the user override the test.
d2916 1
a2916 1
    ac_cv_prog_ac_ct_db_cv_path_rpm="rpm"
d2923 1
a2923 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_rpm" && ac_cv_prog_ac_ct_db_cv_path_rpm="missing_rpm"
d2926 4
a2929 4
ac_ct_db_cv_path_rpm=$ac_cv_prog_ac_ct_db_cv_path_rpm
if test -n "$ac_ct_db_cv_path_rpm"; then
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_rpm" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_rpm" >&6
d2935 1
a2935 1
  db_cv_path_rpm=$ac_ct_db_cv_path_rpm
d2937 1
a2937 1
  db_cv_path_rpm="$ac_cv_prog_db_cv_path_rpm"
d2940 3
a2942 3
	if test "$db_cv_path_rpm" = missing_rpm; then
		{ { echo "$as_me:$LINENO: error: No rpm utility found." >&5
echo "$as_me: error: No rpm utility found." >&2;}
d3301 1
d3318 1
d3326 14
a3339 14
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
          if test $ac_prog = install &&
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
            # AIX install.  It has an incompatible calling convention.
            :
          elif test $ac_prog = install &&
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
            # program-specific install script used by HP pwplus--don't use.
            :
          else
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
            break 3
          fi
        fi
d3370 2
a3371 18
# RPM support: change the standard make and install targets
if test "$db_cv_rpm" = "yes"; then
	BUILD_TARGET="rpm_build"

	# Check if we are running RPM version 3 or 4.
	case "`rpm --version`" in
	*version\ 4*)
		RPM_BUILD="rpmbuild"
		echo "_topdir $CONFIGURATION_PATH" > rpm-macro-defines;;
	*version\ 3*)
		RPM_BUILD="rpm"
		echo "topdir: $CONFIGURATION_PATH" > rpm-macro-defines;;
	esac
	INSTALL_TARGET="rpm_install"
else
	BUILD_TARGET="library_build"
	INSTALL_TARGET="library_install"
fi
d3375 1
a3375 4
# look for.  The default optimization is -O.  We would like to set the
# default optimization for systems using gcc to -O2, but we can't.  By
# the time we know we're using gcc, it's too late to set optimization
# flags.
a3385 1
# XXX
d3394 1
a3394 2
bsdi3*)	optimize_def="-O2"
	CC=${CC-"shlicc2"}
a3395 1
bsdi*)	optimize_def="-O2";;
a3396 1
	optimize_def="-O2"
a3398 1
	optimize_def="-O2"
a3401 1
	optimize_def="-O2"
a3567 1
#line $LINENO "configure"
d3587 2
a3588 2
echo "$as_me:$LINENO: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
d3608 1
a3608 1
        ;;
d3610 2
a3611 2
        # This is the source file.
        ;;
d3613 3
a3615 3
        # We found the default executable, but exeext='' is most
        # certainly right.
        break;;
d3617 6
a3622 6
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
        # FIXME: I believe we export ac_cv_exeext for Libtool,
        # but it would be cool to find out if it's true.  Does anybody
        # maintain Libtool? --akim.
        export ac_cv_exeext
        break;;
d3624 1
a3624 1
        break;;
d3698 2
a3699 2
          export ac_cv_exeext
          break;;
a3723 1
#line $LINENO "configure"
a3773 1
#line $LINENO "configure"
d3793 1
a3793 1
  (eval $ac_compile) 2>&5
d3795 3
d3800 8
a3807 1
         { ac_try='test -s conftest.$ac_objext'
d3820 1
a3820 1
rm -f conftest.$ac_objext conftest.$ac_ext
a3835 1
#line $LINENO "configure"
d3852 1
a3852 1
  (eval $ac_compile) 2>&5
d3854 3
d3859 8
a3866 1
         { ac_try='test -s conftest.$ac_objext'
d3879 1
a3879 1
rm -f conftest.$ac_objext conftest.$ac_ext
a3905 1
#line $LINENO "configure"
d3933 10
d3969 1
a3969 1
  (eval $ac_compile) 2>&5
d3971 3
d3976 8
a3983 1
         { ac_try='test -s conftest.$ac_objext'
d3996 1
a3996 1
rm -f conftest.$ac_objext
d4024 1
a4024 1
  (eval $ac_compile) 2>&5
d4026 3
d4031 8
a4038 1
         { ac_try='test -s conftest.$ac_objext'
a4052 1
#line $LINENO "configure"
d4070 1
a4070 1
  (eval $ac_compile) 2>&5
d4072 3
d4077 8
a4084 1
         { ac_try='test -s conftest.$ac_objext'
d4097 1
a4097 1
rm -f conftest.$ac_objext conftest.$ac_ext
a4098 1
#line $LINENO "configure"
d4115 1
a4115 1
  (eval $ac_compile) 2>&5
d4117 3
d4122 8
a4129 1
         { ac_try='test -s conftest.$ac_objext'
d4141 1
a4141 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4155 1
a4155 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4163 12
a4175 3



a4192 1
#line $LINENO "configure"
d4255 1
a4255 1
  (eval $ac_compile) 2>&5
d4257 3
d4262 8
a4269 1
         { ac_try='test -s conftest.$ac_objext'
d4282 1
a4282 1
rm -f conftest.$ac_objext conftest.$ac_ext
a4834 1
#line $LINENO "configure"
d4854 1
a4854 1
  (eval $ac_compile) 2>&5
d4856 3
d4861 8
a4868 1
         { ac_try='test -s conftest.$ac_objext'
d4881 1
a4881 1
rm -f conftest.$ac_objext conftest.$ac_ext
a4896 1
#line $LINENO "configure"
d4913 1
a4913 1
  (eval $ac_compile) 2>&5
d4915 3
d4920 8
a4927 1
         { ac_try='test -s conftest.$ac_objext'
d4940 1
a4940 1
rm -f conftest.$ac_objext conftest.$ac_ext
a4967 1
#line $LINENO "configure"
d4985 1
a4985 1
  (eval $ac_compile) 2>&5
d4987 3
d4992 8
a4999 1
         { ac_try='test -s conftest.$ac_objext'
d5012 1
a5012 1
rm -f conftest.$ac_objext conftest.$ac_ext
a5013 1
#line $LINENO "configure"
d5030 1
a5030 1
  (eval $ac_compile) 2>&5
d5032 3
d5037 8
a5044 1
         { ac_try='test -s conftest.$ac_objext'
d5056 1
a5056 1
rm -f conftest.$ac_objext conftest.$ac_ext
a5095 1
#line $LINENO "configure"
d5106 1
a5106 1
                     Syntax error
d5118 1
a5138 1
#line $LINENO "configure"
d5156 1
a5202 1
#line $LINENO "configure"
d5213 1
a5213 1
                     Syntax error
d5225 1
a5245 1
#line $LINENO "configure"
d5263 1
a5319 1
#line $LINENO "configure"
d5337 1
a5337 1
  (eval $ac_compile) 2>&5
d5339 3
d5344 8
a5351 1
         { ac_try='test -s conftest.$ac_objext'
d5364 1
a5364 1
rm -f conftest.$ac_objext conftest.$ac_ext
a5571 1
SED=$lt_cv_path_SED
d5575 1
d5618 1
a5618 1
      # Canonicalize the path of ld
d5687 1
a5687 1
case `"$LD" -v 2>&1 </dev/null` in
d5716 9
d5811 1
a5811 1
bsdi4*)
d5817 2
a5818 2
cygwin* | mingw* | pw32*)
  # win32_libid is a shell function defined in ltmain.sh
d5820 8
a5827 1
  lt_cv_file_magic_cmd='win32_libid'
a5830 11
  # this will be overwritten by pass_all, but leave it in just in case
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  case "$host_os" in
  rhapsody* | darwin1.[012])
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
    ;;
  *) # Darwin 1.3 on
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
    ;;
  esac
d5834 1
a5834 1
freebsd*)
d5873 5
a5877 15
  case $host_os in
  irix5* | nonstopux*)
    # this will be overridden with pass_all, but let us keep it just in case
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
    ;;
  *)
    case $LD in
    *-32|*"-32 ") libmagic=32-bit;;
    *-n32|*"-n32 ") libmagic=N32;;
    *-64|*"-64 ") libmagic=64-bit;;
    *) libmagic=never-match;;
    esac
    # this will be overridden with pass_all, but let us keep it just in case
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
    ;;
a5878 1
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
d5885 1
a5885 1
  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
d5889 1
d5893 1
d5910 1
a5910 1
nto-qnx | nto-qnx6*)
a5914 2
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
d5916 1
a5916 1
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
d5918 1
a5918 1
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
a5922 3
  # this will be overridden with pass_all, but let us keep it just in case
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  lt_cv_file_magic_test_file=/shlib/libc.so
a5931 1
  lt_cv_file_magic_test_file=/lib/libc.so
d6010 1
a6010 1
  echo '#line 5993 "configure"' > conftest.$ac_ext
d6059 1
a6059 1
        ppc64-*linux*)
a6106 1
#line $LINENO "configure"
d6123 1
a6123 1
  (eval $ac_link) 2>&5
d6125 3
d6130 8
a6137 1
         { ac_try='test -s conftest$ac_exeext'
d6150 2
a6151 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a6199 1
#line $LINENO "configure"
d6210 1
a6210 1
                     Syntax error
d6222 1
a6242 1
#line $LINENO "configure"
d6260 1
a6306 1
#line $LINENO "configure"
d6317 1
a6317 1
                     Syntax error
d6329 1
a6349 1
#line $LINENO "configure"
d6367 1
a6412 1
#line $LINENO "configure"
d6433 1
a6433 1
  (eval $ac_compile) 2>&5
d6435 3
d6440 8
a6447 1
         { ac_try='test -s conftest.$ac_objext'
d6460 1
a6460 1
rm -f conftest.$ac_objext conftest.$ac_ext
a6464 1
#line $LINENO "configure"
a6485 1
#line $LINENO "configure"
a6509 1
#line $LINENO "configure"
d6521 3
a6523 3
                   (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
d6534 1
a6534 1
        || toupper (i) != TOUPPER (i))
d6559 1
a6559 1
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d6584 1
a6584 1
                  inttypes.h stdint.h unistd.h
a6592 1
#line $LINENO "configure"
d6604 1
a6604 1
  (eval $ac_compile) 2>&5
d6606 3
d6611 8
a6618 1
         { ac_try='test -s conftest.$ac_objext'
d6631 1
a6631 1
rm -f conftest.$ac_objext conftest.$ac_ext
a6661 1
#line $LINENO "configure"
d6672 1
a6672 1
  (eval $ac_compile) 2>&5
d6674 3
d6679 8
a6686 1
         { ac_try='test -s conftest.$ac_objext'
d6699 1
a6699 1
rm -f conftest.$ac_objext conftest.$ac_ext
a6706 1
#line $LINENO "configure"
d6724 1
d6744 2
a6745 2
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
d6748 3
a6750 10
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
d6752 1
a6752 1
  no:yes )
d6755 6
a6760 2
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
d6763 2
d6768 1
a6768 1
## Report this to bug-autoconf@@gnu.org. ##
d6780 1
a6780 1
  eval "$as_ac_Header=$ac_header_preproc"
d6800 1
a6800 1
  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
d6842 1
a6842 1
  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
d6887 1
a6887 1
echo "$as_me:6837:" \
d6905 1
d6908 1
a6908 1
# input file.
d6926 1
a6926 1
  (eval $ac_compile) 2>&5
d6928 3
d6933 8
a6940 1
         { ac_try='test -s conftest.$ac_objext'
d6953 1
a6953 1
rm -f conftest.$ac_objext conftest.$ac_ext
a6959 1
G77=`test $ac_compiler_gnu = yes && echo yes`
d6976 1
a6976 1
  (eval $ac_compile) 2>&5
d6978 3
d6983 8
a6990 1
         { ac_try='test -s conftest.$ac_objext'
d7003 1
a7003 1
rm -f conftest.$ac_objext conftest.$ac_ext
d7011 1
a7011 1
  if test "$G77" = yes; then
d7017 1
a7017 1
  if test "$G77" = yes; then
d7023 2
d7042 1
a7042 1
  testring="ABCD"
d7071 19
d7094 4
a7097 3
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
	       = "XX$testring") >/dev/null 2>&1 &&
	    new_result=`expr "X$testring" : ".*" 2>&1` &&
d7102 1
a7102 1
      testring=$testring$testring
d7104 1
a7104 1
    testring=
d7172 1
a7172 1
  symcode='[BDT]'
d7190 1
a7190 1
  symcode='[ABCDGISTW]' ;;
d7664 2
d7922 2
a7923 1
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
d7941 1
a7941 1
   (eval echo "\"\$as_me:7846: $lt_compile\"" >&5)
d7945 1
a7945 1
   echo "$as_me:7850: \$? = $ac_status" >&5
d8052 10
d8098 1
a8098 1
      icc|ecc)
d8103 1
a8103 1
      ccc)
d8165 2
a8166 1
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
d8184 1
a8184 1
   (eval echo "\"\$as_me:8078: $lt_compile\"" >&5)
d8188 1
a8188 1
   echo "$as_me:8082: \$? = $ac_status" >&5
a8234 7
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   # that will create temporary files in the current directory regardless of
   # the output directory.  Thus, making CWD read-only will cause this test
   # to fail, enabling locking or at least warning the user not to do parallel
   # builds.
   chmod -w .

d8244 1
a8244 1
   (eval echo "\"\$as_me:8145: $lt_compile\"" >&5)
d8248 1
a8248 1
   echo "$as_me:8149: \$? = $ac_status" >&5
d8258 5
a8262 2
   $rm conftest* out/*
   rmdir out
d8459 25
a8611 1
#line $LINENO "configure"
d8628 1
a8628 1
  (eval $ac_link) 2>&5
d8630 3
d8635 8
a8642 1
         { ac_try='test -s conftest$ac_exeext'
d8659 2
a8660 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a8672 1
#line $LINENO "configure"
d8689 1
a8689 1
  (eval $ac_link) 2>&5
d8691 3
d8696 8
a8703 1
         { ac_try='test -s conftest$ac_exeext'
d8720 2
a8721 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8748 1
a8748 1
    bsdi4*)
d8762 1
a8762 1
      shrext=".dll"
a8773 2
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
      archive_cmds_need_lc=no
d8775 17
a8791 6
      rhapsody* | darwin1.[012])
	allow_undefined_flag='-undefined suppress'
	;;
      *) # Darwin 1.3 on
	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
	;;
d8793 1
a8793 22
      # FIXME: Relying on posixy $() will cause problems for
      #        cross-compilation, but unfortunately the echo tests do not
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
      #	       `"' quotes if we put them in here... so don't!
    	lt_int_apple_cc_single_mod=no
    	output_verbose_link_cmd='echo'
    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    	  lt_int_apple_cc_single_mod=yes
    	fi
    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    	else
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      fi
      module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
        else
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
        fi
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d8797 1
a8797 1
      whole_archive_flag_spec='-all_load $convenience'
d8799 21
d8853 1
a8853 1
    freebsd*)
d8964 1
a9213 66
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" || \
   test -n "$runpath_var " || \
   test "X$hardcode_automatic"="Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action" >&5
echo "${ECHO_T}$hardcode_action" >&6

if test "$hardcode_action" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
       else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
       ;;
   *)
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    ;;
  esac
fi

d9219 1
a9219 1
shrext=".so"
d9307 1
a9307 1
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
d9316 1
a9316 1
bsdi4*)
d9332 1
a9332 1
  shrext=".dll"
d9354 1
a9354 1
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
a9392 3
  # FIXME: Relying on posixy $() will cause problems for
  #        cross-compilation, but unfortunately the echo tests do not
  #        yet detect zsh echo's removal of \ escapes.
d9397 1
a9397 1
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
d9399 4
a9402 2
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
d9420 12
d9480 1
a9480 1
    shrext='.so'
d9495 1
a9495 1
     shrext='.sl'
d9506 1
a9506 1
    shrext='.sl'
d9575 6
d9590 12
d9611 1
a9611 1
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
d9627 1
a9627 1
nto-qnx | nto-qnx6*)
d9660 1
a9660 1
  shrext=".dll"
d9758 73
a9830 7
if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=
a9858 1
#line $LINENO "configure"
d9882 1
a9882 1
  (eval $ac_link) 2>&5
d9884 3
d9889 8
a9896 1
         { ac_try='test -s conftest$ac_exeext'
d9909 2
a9910 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a9933 1
#line $LINENO "configure"
d9939 4
d9947 1
d9953 3
d9986 1
a9986 1
  (eval $ac_link) 2>&5
d9988 3
d9993 8
a10000 1
         { ac_try='test -s conftest$ac_exeext'
d10013 2
a10014 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a10028 1
#line $LINENO "configure"
d10052 1
a10052 1
  (eval $ac_link) 2>&5
d10054 3
d10059 8
a10066 1
         { ac_try='test -s conftest$ac_exeext'
d10079 2
a10080 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a10093 1
#line $LINENO "configure"
d10099 4
d10107 1
d10113 3
d10146 1
a10146 1
  (eval $ac_link) 2>&5
d10148 3
d10153 8
a10160 1
         { ac_try='test -s conftest$ac_exeext'
d10173 2
a10174 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a10188 1
#line $LINENO "configure"
d10212 1
a10212 1
  (eval $ac_link) 2>&5
d10214 3
d10219 8
a10226 1
         { ac_try='test -s conftest$ac_exeext'
d10239 2
a10240 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a10255 1
#line $LINENO "configure"
d10279 1
a10279 1
  (eval $ac_link) 2>&5
d10281 3
d10286 8
a10293 1
         { ac_try='test -s conftest$ac_exeext'
d10306 2
a10307 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a10322 1
#line $LINENO "configure"
d10346 1
a10346 1
  (eval $ac_link) 2>&5
d10348 3
d10353 8
a10360 1
         { ac_try='test -s conftest$ac_exeext'
d10373 2
a10374 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10429 1
a10429 1
#line 10157 "configure"
d10527 1
a10527 1
#line 10255 "configure"
d10652 1
a10652 1
aix4*)
a10655 28
  ;;
  darwin* | rhapsody*)
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
    archive_cmds_need_lc=no
    case "$host_os" in
    rhapsody* | darwin1.[012])
      allow_undefined_flag='-undefined suppress'
      ;;
    *) # Darwin 1.3 on
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
      ;;
    esac
    # FIXME: Relying on posixy $() will cause problems for
    #        cross-compilation, but unfortunately the echo tests do not
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
    #	       `"' quotes if we put them in here... so don't!
		output_verbose_link_cmd='echo'
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
    module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
		  archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
		  module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    hardcode_direct=no
    hardcode_automatic=yes
    hardcode_shlibpath_var=unsupported
    whole_archive_flag_spec='-all_load $convenience'
    link_all_deplibs=yes
    fi
d10681 2
a10682 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
d10800 1
a10800 1
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
d10860 1
a10860 1
STRIP=$STRIP
d10891 1
a10891 1
shrext='$shrext'
d11133 4
a11136 1
  test -f Makefile && make "$ltmain"
d11317 1
a11317 1
      # Canonicalize the path of ld
d11386 1
a11386 1
case `"$LD" -v 2>&1 </dev/null` in
d11431 1
a11431 1
    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
a11538 1
#line $LINENO "configure"
d11555 1
a11555 1
  (eval $ac_link) 2>&5
d11557 3
d11562 8
a11569 1
         { ac_try='test -s conftest$ac_exeext'
d11586 2
a11587 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a11600 1
#line $LINENO "configure"
d11617 1
a11617 1
  (eval $ac_link) 2>&5
d11619 3
d11624 8
a11631 1
         { ac_try='test -s conftest$ac_exeext'
d11648 2
a11649 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d11676 1
d11700 32
a11731 21

  darwin* | rhapsody*)
   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
    archive_cmds_need_lc_CXX=no
    case "$host_os" in
    rhapsody* | darwin1.[012])
      allow_undefined_flag_CXX='-undefined suppress'
      ;;
    *) # Darwin 1.3 on
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
      ;;
    esac
    	lt_int_apple_cc_single_mod=no
    	output_verbose_link_cmd='echo'
    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    	  lt_int_apple_cc_single_mod=yes
    	fi
    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    	  archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    	else
        archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
a11732 3
      module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'

    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
d11734 12
a11745 1
        archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d11747 13
a11759 1
        archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d11761 1
a11761 8
        module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    hardcode_direct_CXX=no
    hardcode_automatic_CXX=yes
    hardcode_shlibpath_var_CXX=unsupported
    whole_archive_flag_spec_CXX='-all_load $convenience'
    link_all_deplibs_CXX=yes
   fi
    ;;
d11787 1
a11787 1
  freebsd*)
d11818 1
a11818 1
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
d11967 13
a11980 2
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d12037 14
d12510 10
d12533 1
a12533 1
      freebsd*)
d12701 2
a12702 1
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
d12720 1
a12720 1
   (eval echo "\"\$as_me:12391: $lt_compile\"" >&5)
d12724 1
a12724 1
   echo "$as_me:12395: \$? = $ac_status" >&5
a12770 7
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   # that will create temporary files in the current directory regardless of
   # the output directory.  Thus, making CWD read-only will cause this test
   # to fail, enabling locking or at least warning the user not to do parallel
   # builds.
   chmod -w .

d12780 1
a12780 1
   (eval echo "\"\$as_me:12458: $lt_compile\"" >&5)
d12784 1
a12784 1
   echo "$as_me:12462: \$? = $ac_status" >&5
d12794 5
a12798 2
   $rm conftest* out/*
   rmdir out
a12925 66
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" || \
   test -n "$runpath_var CXX" || \
   test "X$hardcode_automatic_CXX"="Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
echo "${ECHO_T}$hardcode_action_CXX" >&6

if test "$hardcode_action_CXX" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
       else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
       ;;
   *)
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    ;;
  esac
fi

d12931 1
a12931 1
shrext=".so"
d13019 1
a13019 1
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
d13028 1
a13028 1
bsdi4*)
d13044 1
a13044 1
  shrext=".dll"
d13066 1
a13066 1
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
a13104 3
  # FIXME: Relying on posixy $() will cause problems for
  #        cross-compilation, but unfortunately the echo tests do not
  #        yet detect zsh echo's removal of \ escapes.
d13109 1
a13109 1
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
d13111 4
a13114 2
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
d13132 12
d13192 1
a13192 1
    shrext='.so'
d13207 1
a13207 1
     shrext='.sl'
d13218 1
a13218 1
    shrext='.sl'
d13287 6
d13302 12
d13323 1
a13323 1
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
d13339 1
a13339 1
nto-qnx | nto-qnx6*)
d13372 1
a13372 1
  shrext=".dll"
d13470 66
a13570 1
#line $LINENO "configure"
d13594 1
a13594 1
  (eval $ac_link) 2>&5
d13596 3
d13601 8
a13608 1
         { ac_try='test -s conftest$ac_exeext'
d13621 2
a13622 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a13645 1
#line $LINENO "configure"
d13651 4
d13659 1
d13665 3
d13698 1
a13698 1
  (eval $ac_link) 2>&5
d13700 3
d13705 8
a13712 1
         { ac_try='test -s conftest$ac_exeext'
d13725 2
a13726 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a13740 1
#line $LINENO "configure"
d13764 1
a13764 1
  (eval $ac_link) 2>&5
d13766 3
d13771 8
a13778 1
         { ac_try='test -s conftest$ac_exeext'
d13791 2
a13792 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a13805 1
#line $LINENO "configure"
d13811 4
d13819 1
d13825 3
d13858 1
a13858 1
  (eval $ac_link) 2>&5
d13860 3
d13865 8
a13872 1
         { ac_try='test -s conftest$ac_exeext'
d13885 2
a13886 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a13900 1
#line $LINENO "configure"
d13924 1
a13924 1
  (eval $ac_link) 2>&5
d13926 3
d13931 8
a13938 1
         { ac_try='test -s conftest$ac_exeext'
d13951 2
a13952 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a13967 1
#line $LINENO "configure"
d13991 1
a13991 1
  (eval $ac_link) 2>&5
d13993 3
d13998 8
a14005 1
         { ac_try='test -s conftest$ac_exeext'
d14018 2
a14019 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a14034 1
#line $LINENO "configure"
d14058 1
a14058 1
  (eval $ac_link) 2>&5
d14060 3
d14065 8
a14072 1
         { ac_try='test -s conftest$ac_exeext'
d14085 2
a14086 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14141 1
a14141 1
#line 13701 "configure"
d14239 1
a14239 1
#line 13799 "configure"
d14356 2
a14357 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
d14487 1
a14487 1
STRIP=$STRIP
d14518 1
a14518 1
shrext='$shrext'
d14735 4
a14738 1
  test -f Makefile && make "$ltmain"
d14840 1
a14840 1
aix4*)
d14944 10
d14990 1
a14990 1
      icc|ecc)
d14995 1
a14995 1
      ccc)
d15057 2
a15058 1
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
d15076 1
a15076 1
   (eval echo "\"\$as_me:14621: $lt_compile\"" >&5)
d15080 1
a15080 1
   echo "$as_me:14625: \$? = $ac_status" >&5
a15126 7
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   # that will create temporary files in the current directory regardless of
   # the output directory.  Thus, making CWD read-only will cause this test
   # to fail, enabling locking or at least warning the user not to do parallel
   # builds.
   chmod -w .

d15136 1
a15136 1
   (eval echo "\"\$as_me:14688: $lt_compile\"" >&5)
d15140 1
a15140 1
   echo "$as_me:14692: \$? = $ac_status" >&5
d15150 5
a15154 2
   $rm conftest* out/*
   rmdir out
d15351 25
d15510 1
a15510 1
  (eval $ac_link) 2>&5
d15512 3
d15517 8
a15524 1
         { ac_try='test -s conftest$ac_exeext'
d15541 2
a15542 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15561 1
a15561 1
  (eval $ac_link) 2>&5
d15563 3
d15568 8
a15575 1
         { ac_try='test -s conftest$ac_exeext'
d15592 2
a15593 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15620 1
a15620 1
    bsdi4*)
d15634 1
a15634 1
      shrext=".dll"
a15645 2
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
      archive_cmds_need_lc_F77=no
d15647 17
a15663 6
      rhapsody* | darwin1.[012])
	allow_undefined_flag_F77='-undefined suppress'
	;;
      *) # Darwin 1.3 on
	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
	;;
d15665 1
a15665 22
      # FIXME: Relying on posixy $() will cause problems for
      #        cross-compilation, but unfortunately the echo tests do not
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
      #	       `"' quotes if we put them in here... so don't!
    	lt_int_apple_cc_single_mod=no
    	output_verbose_link_cmd='echo'
    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    	  lt_int_apple_cc_single_mod=yes
    	fi
    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    	else
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      fi
      module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
        else
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
        fi
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d15669 1
a15669 1
      whole_archive_flag_spec_F77='-all_load $convenience'
d15671 21
d15725 1
a15725 1
    freebsd*)
d15836 1
a16085 66
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action_F77=
if test -n "$hardcode_libdir_flag_spec_F77" || \
   test -n "$runpath_var F77" || \
   test "X$hardcode_automatic_F77"="Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_F77" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
     test "$hardcode_minus_L_F77" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_F77=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_F77=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_F77=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
echo "${ECHO_T}$hardcode_action_F77" >&6

if test "$hardcode_action_F77" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
       else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
       ;;
   *)
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    ;;
  esac
fi

d16091 1
a16091 1
shrext=".so"
d16179 1
a16179 1
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
d16188 1
a16188 1
bsdi4*)
d16204 1
a16204 1
  shrext=".dll"
d16226 1
a16226 1
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
a16264 3
  # FIXME: Relying on posixy $() will cause problems for
  #        cross-compilation, but unfortunately the echo tests do not
  #        yet detect zsh echo's removal of \ escapes.
d16269 1
a16269 1
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
d16271 4
a16274 2
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
d16292 12
d16352 1
a16352 1
    shrext='.so'
d16367 1
a16367 1
     shrext='.sl'
d16378 1
a16378 1
    shrext='.sl'
d16447 6
d16462 12
d16483 1
a16483 1
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
d16499 1
a16499 1
nto-qnx | nto-qnx6*)
d16532 1
a16532 1
  shrext=".dll"
d16630 67
d16711 2
a16712 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
d16842 1
a16842 1
STRIP=$STRIP
d16873 1
a16873 1
shrext='$shrext'
d17090 4
a17093 1
  test -f Makefile && make "$ltmain"
d17156 2
a17157 1
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
d17175 1
a17175 1
   (eval echo "\"\$as_me:16632: $lt_compile\"" >&5)
d17179 1
a17179 1
   echo "$as_me:16636: \$? = $ac_status" >&5
d17286 10
d17332 1
a17332 1
      icc|ecc)
d17337 1
a17337 1
      ccc)
d17399 2
a17400 1
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
d17418 1
a17418 1
   (eval echo "\"\$as_me:16864: $lt_compile\"" >&5)
d17422 1
a17422 1
   echo "$as_me:16868: \$? = $ac_status" >&5
a17468 7
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   # that will create temporary files in the current directory regardless of
   # the output directory.  Thus, making CWD read-only will cause this test
   # to fail, enabling locking or at least warning the user not to do parallel
   # builds.
   chmod -w .

d17478 1
a17478 1
   (eval echo "\"\$as_me:16931: $lt_compile\"" >&5)
d17482 1
a17482 1
   echo "$as_me:16935: \$? = $ac_status" >&5
d17492 5
a17496 2
   $rm conftest* out/*
   rmdir out
d17693 25
a17845 1
#line $LINENO "configure"
d17862 1
a17862 1
  (eval $ac_link) 2>&5
d17864 3
d17869 8
a17876 1
         { ac_try='test -s conftest$ac_exeext'
d17893 2
a17894 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a17906 1
#line $LINENO "configure"
d17923 1
a17923 1
  (eval $ac_link) 2>&5
d17925 3
d17930 8
a17937 1
         { ac_try='test -s conftest$ac_exeext'
d17954 2
a17955 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17982 1
a17982 1
    bsdi4*)
d17996 1
a17996 1
      shrext=".dll"
a18007 2
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
      archive_cmds_need_lc_GCJ=no
d18009 17
a18025 6
      rhapsody* | darwin1.[012])
	allow_undefined_flag_GCJ='-undefined suppress'
	;;
      *) # Darwin 1.3 on
	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
	;;
d18027 1
a18027 22
      # FIXME: Relying on posixy $() will cause problems for
      #        cross-compilation, but unfortunately the echo tests do not
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
      #	       `"' quotes if we put them in here... so don't!
    	lt_int_apple_cc_single_mod=no
    	output_verbose_link_cmd='echo'
    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    	  lt_int_apple_cc_single_mod=yes
    	fi
    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    	else
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      fi
      module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
        else
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
        fi
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d18031 1
a18031 1
      whole_archive_flag_spec_GCJ='-all_load $convenience'
d18033 21
d18087 1
a18087 1
    freebsd*)
d18198 1
a18447 66
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action_GCJ=
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
   test -n "$runpath_var GCJ" || \
   test "X$hardcode_automatic_GCJ"="Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_GCJ" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
     test "$hardcode_minus_L_GCJ" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_GCJ=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_GCJ=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_GCJ=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
echo "${ECHO_T}$hardcode_action_GCJ" >&6

if test "$hardcode_action_GCJ" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
       else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
       ;;
   *)
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    ;;
  esac
fi

d18453 1
a18453 1
shrext=".so"
d18541 1
a18541 1
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
d18550 1
a18550 1
bsdi4*)
d18566 1
a18566 1
  shrext=".dll"
d18588 1
a18588 1
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
a18626 3
  # FIXME: Relying on posixy $() will cause problems for
  #        cross-compilation, but unfortunately the echo tests do not
  #        yet detect zsh echo's removal of \ escapes.
d18631 1
a18631 1
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
d18633 4
a18636 2
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
d18654 12
d18714 1
a18714 1
    shrext='.so'
d18729 1
a18729 1
     shrext='.sl'
d18740 1
a18740 1
    shrext='.sl'
d18809 6
d18824 12
d18845 1
a18845 1
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
d18861 1
a18861 1
nto-qnx | nto-qnx6*)
d18894 1
a18894 1
  shrext=".dll"
d18992 20
a19011 4
if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
d19013 52
a19064 2
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=
a19092 1
#line $LINENO "configure"
d19116 1
a19116 1
  (eval $ac_link) 2>&5
d19118 3
d19123 8
a19130 1
         { ac_try='test -s conftest$ac_exeext'
d19143 2
a19144 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a19167 1
#line $LINENO "configure"
d19173 4
d19181 1
d19187 3
d19220 1
a19220 1
  (eval $ac_link) 2>&5
d19222 3
d19227 8
a19234 1
         { ac_try='test -s conftest$ac_exeext'
d19247 2
a19248 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a19262 1
#line $LINENO "configure"
d19286 1
a19286 1
  (eval $ac_link) 2>&5
d19288 3
d19293 8
a19300 1
         { ac_try='test -s conftest$ac_exeext'
d19313 2
a19314 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a19327 1
#line $LINENO "configure"
d19333 4
d19341 1
d19347 3
d19380 1
a19380 1
  (eval $ac_link) 2>&5
d19382 3
d19387 8
a19394 1
         { ac_try='test -s conftest$ac_exeext'
d19407 2
a19408 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a19422 1
#line $LINENO "configure"
d19446 1
a19446 1
  (eval $ac_link) 2>&5
d19448 3
d19453 8
a19460 1
         { ac_try='test -s conftest$ac_exeext'
d19473 2
a19474 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a19489 1
#line $LINENO "configure"
d19513 1
a19513 1
  (eval $ac_link) 2>&5
d19515 3
d19520 8
a19527 1
         { ac_try='test -s conftest$ac_exeext'
d19540 2
a19541 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a19556 1
#line $LINENO "configure"
d19580 1
a19580 1
  (eval $ac_link) 2>&5
d19582 3
d19587 8
a19594 1
         { ac_try='test -s conftest$ac_exeext'
d19607 2
a19608 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d19663 1
a19663 1
#line 18943 "configure"
d19761 1
a19761 1
#line 19041 "configure"
d19878 2
a19879 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
d20009 1
a20009 1
STRIP=$STRIP
d20040 1
a20040 1
shrext='$shrext'
d20257 4
a20260 1
  test -f Makefile && make "$ltmain"
d20323 2
a20324 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
d20454 1
a20454 1
STRIP=$STRIP
d20485 1
a20485 1
shrext='$shrext'
d20702 4
a20705 1
  test -f Makefile && make "$ltmain"
d20788 2
a20789 2
	eval _SOSUFFIX=\"$shrext\"
	if test "X$_SOSUFFIX" = "" ; then
d20792 1
a20792 1
			if test "X$_SOSUFFIX_MESSAGE" = "X"; then
d20815 2
a20816 2
	eval _SOSUFFIX=\"$shrext\"
	if test "X$_SOSUFFIX" = "" ; then
d20819 1
a20819 1
			if test "X$_SOSUFFIX_MESSAGE" = "X"; then
d20842 2
a20843 2
	eval _SOSUFFIX=\"$shrext\"
	if test "X$_SOSUFFIX" = "" ; then
d20846 1
a20846 1
			if test "X$_SOSUFFIX_MESSAGE" = "X"; then
d20878 1
a20878 1
cygwin*)
d20901 11
d21051 1
a21051 1
/* #line 20312 "configure" */
d21310 1
a21310 1
        echo "configure: 20571: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
d21428 1
a21428 1
/* #line 20689 "configure" */
d21465 1
a21465 1
/* [#]line 20726 "configure" */
d21683 8
a21690 4
# Optional RPC client/server.
if test "$db_cv_rpc" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_RPC 1
d21692 23
d21716 14
d21731 4
d21736 3
d21740 1
a21740 2
	RPC_CLIENT_OBJS="\$(RPC_CLIENT_OBJS)"
	ADDITIONAL_PROGS="berkeley_db_svc $ADDITIONAL_PROGS"
d21742 3
a21744 5
	case "$host_os" in
	hpux*)
		echo "$as_me:$LINENO: checking for svc_run" >&5
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
if test "${ac_cv_func_svc_run+set}" = set; then
a21747 1
#line $LINENO "configure"
d21753 3
a21755 28
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char svc_run (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char svc_run ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_svc_run) || defined (__stub___svc_run)
choke me
#else
char (*f) () = svc_run;
#endif
#ifdef __cplusplus
}
#endif
d21760 2
a21761 1
return f != svc_run;
d21766 3
a21768 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21770 3
d21775 8
a21782 1
         { ac_try='test -s conftest$ac_exeext'
d21788 1
a21788 1
  ac_cv_func_svc_run=yes
d21793 1
a21793 1
ac_cv_func_svc_run=no
d21795 1
a21795 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21797 94
a21890 15
echo "$as_me:$LINENO: result: $ac_cv_func_svc_run" >&5
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
if test $ac_cv_func_svc_run = yes; then
  :
else
  echo "$as_me:$LINENO: checking for svc_run in -lnsl" >&5
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
d21902 1
a21902 1
char svc_run ();
d21906 1
a21906 1
svc_run ();
d21913 1
a21913 1
  (eval $ac_link) 2>&5
d21915 3
d21920 8
a21927 1
         { ac_try='test -s conftest$ac_exeext'
d21933 1
a21933 1
  ac_cv_lib_nsl_svc_run=yes
a21937 1
ac_cv_lib_nsl_svc_run=no
d21939 6
a21944 20
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_svc_run" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
if test $ac_cv_lib_nsl_svc_run = yes; then
  LIBS="-lnsl $LIBS"; LIBTSO_LIBS="-lnsl $LIBTSO_LIBS";
		    LIBJSO_LIBS="-lnsl $LIBJSO_LIBS"
fi

fi
;;
	solaris*)
		echo "$as_me:$LINENO: checking for svc_run" >&5
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
if test "${ac_cv_func_svc_run+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d21950 1
a21950 9
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char svc_run (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
a21953 1
{
d21957 1
a21957 13
char svc_run ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_svc_run) || defined (__stub___svc_run)
choke me
#else
char (*f) () = svc_run;
#endif
#ifdef __cplusplus
}
#endif

d21961 1
a21961 1
return f != svc_run;
d21968 1
a21968 1
  (eval $ac_link) 2>&5
d21970 3
d21975 8
a21982 1
         { ac_try='test -s conftest$ac_exeext'
d21988 2
a21989 1
  ac_cv_func_svc_run=yes
a21993 1
ac_cv_func_svc_run=no
d21995 11
a22005 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d22007 1
a22007 4
echo "$as_me:$LINENO: result: $ac_cv_func_svc_run" >&5
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
if test $ac_cv_func_svc_run = yes; then
  :
d22009 3
a22011 4

echo "$as_me:$LINENO: checking for svc_run in -lnsl" >&5
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
d22014 2
a22015 2
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
a22016 1
#line $LINENO "configure"
d22029 1
a22029 1
char svc_run ();
d22033 1
a22033 1
svc_run ();
d22040 1
a22040 1
  (eval $ac_link) 2>&5
d22042 3
d22047 8
a22054 1
         { ac_try='test -s conftest$ac_exeext'
d22060 1
a22060 1
  ac_cv_lib_nsl_svc_run=yes
a22064 1
ac_cv_lib_nsl_svc_run=no
d22066 7
a22072 8
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_svc_run" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
if test $ac_cv_lib_nsl_svc_run = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBNSL 1
d22074 3
d22078 42
a22119 1
  LIBS="-lnsl $LIBS"
d22122 3
a22124 1

d22126 1
a22126 2
;;
	esac
d22128 4
d22133 1
a22133 10
case "$host_os" in
    darwin*)
        LIBTSO_MODULE=""
        LIBTSO_MODSUFFIX=".dylib"
    ;;
    *)
        LIBTSO_MODULE="-module"
        LIBTSO_MODSUFFIX=@@MODSUFFIX@@
    ;;
esac
d22135 1
a22135 7

if test "$db_cv_tcl" = "yes"; then
	if test `$LIBTOOL_PROG --config | grep build_libtool_libs | grep no` 2>/dev/null; then
		{ { echo "$as_me:$LINENO: error: Tcl requires shared libraries" >&5
echo "$as_me: error: Tcl requires shared libraries" >&2;}
   { (exit 1); exit 1; }; }
	fi
d22140 7
a22146 1
	if test "${ac_cv_c_tclconfig+set}" = set; then
d22148 3
d22152 44
d22197 33
d22231 5
a22235 10
	    # First check to see if --with-tclconfig was specified.
	    if test "${with_tclconfig}" != no; then
		if test -f "${with_tclconfig}/tclConfig.sh" ; then
		    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
		else
		    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
   { (exit 1); exit 1; }; }
		fi
	    fi
d22237 41
a22277 9
	    # check in a few common install locations
	    if test x"${ac_cv_c_tclconfig}" = x ; then
		for i in `ls -d /usr/local/lib 2>/dev/null` ; do
		    if test -f "$i/tclConfig.sh" ; then
			ac_cv_c_tclconfig=`(cd $i; pwd)`
			break
		    fi
		done
	    fi
d22279 5
d22287 1
d22289 48
a22336 8
	if test x"${ac_cv_c_tclconfig}" = x ; then
	    TCL_BIN_DIR="# no Tcl configs found"
	    { { echo "$as_me:$LINENO: error: can't find Tcl configuration definitions" >&5
echo "$as_me: error: can't find Tcl configuration definitions" >&2;}
   { (exit 1); exit 1; }; }
	else
	    TCL_BIN_DIR=${ac_cv_c_tclconfig}
	fi
d22338 43
d22382 9
a22390 2
	echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
d22392 20
a22411 8
	if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
		echo "$as_me:$LINENO: result: loading" >&5
echo "${ECHO_T}loading" >&6
		. $TCL_BIN_DIR/tclConfig.sh
	else
		echo "$as_me:$LINENO: result: file not found" >&5
echo "${ECHO_T}file not found" >&6
	fi
d22413 47
a22459 7
	# DB requires at least version 8.4.
	if test ${TCL_MAJOR_VERSION} -lt 8 \
	    -o ${TCL_MAJOR_VERSION} -eq 8 -a ${TCL_MINOR_VERSION} -lt 4; then
		{ { echo "$as_me:$LINENO: error: Berkeley DB requires Tcl version 8.4 or better." >&5
echo "$as_me: error: Berkeley DB requires Tcl version 8.4 or better." >&2;}
   { (exit 1); exit 1; }; }
	fi
d22461 5
a22465 7
	#
	# The eval is required to do the TCL_DBGX substitution in the
	# TCL_LIB_FILE variable
	#
	eval TCL_LIB_FILE="${TCL_LIB_FILE}"
	eval TCL_LIB_FLAG="${TCL_LIB_FLAG}"
	eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
d22467 33
a22499 13
	#
	# If the DB Tcl library isn't loaded with the Tcl spec and library
	# flags on AIX, the resulting libdb_tcl-X.Y.so.0 will drop core at
	# load time. [#4843]  Furthermore, with Tcl 8.3, the link flags
	# given by the Tcl spec are insufficient for our use.  [#5779]
	#
	case "$host_os" in
	aix4.[2-9].*)
		LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG"
		LIBTSO_LIBS="$LIBTSO_LIBS -L$TCL_EXEC_PREFIX/lib -ltcl$TCL_VERSION";;
	aix*)
		LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG";;
	esac
d22501 5
d22507 41
d22549 2
d22552 4
a22556 1
	TCL_TCLSH="${TCL_PREFIX}/bin/tclsh${TCL_VERSION}"
d22559 47
a22605 3
	if test x"$TCL_PREFIX" != x && test -f "$TCL_PREFIX/include/tcl.h"; then
		TCFLAGS="-I$TCL_PREFIX/include"
	fi
d22607 1
a22607 1
	INSTALL_LIBS="${INSTALL_LIBS} \$(libtso_target)"
d22609 3
d22613 33
a22645 3
# Optional DB 1.85 compatibility API.
if test "$db_cv_compat185" = "yes"; then
	ADDITIONAL_INCS="db_185.h $ADDITIONAL_INCS"
d22647 1
a22647 1
	ADDITIONAL_OBJS="db185${o} $ADDITIONAL_OBJS"
d22649 3
d22653 1655
a24307 10
# You can disable pieces of functionality to save space.
#
# Btree is always configured: it is the standard method, and Hash off-page
# duplicates require it.
ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(BTREE_OBJS)"

# Hash can be disabled.
if test "$db_cv_build_hash" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_HASH 1
d24309 4
d24314 7
d24322 18
d24341 16
a24356 4
	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(HASH_OBJS)"
	if test "$db_cv_build_verify" = "yes"; then
		ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(HASH_VRFY_OBJS)"
	fi
d24358 13
a24370 1
	ADDITIONAL_OBJS="$ADDITIONAL_OBJS hash_stub${o}"
d24372 1
a24372 13

# Queue can be disabled.
if test "$db_cv_build_queue" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_QUEUE 1
_ACEOF



	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(QUEUE_OBJS)"
	if test "$db_cv_build_verify" = "yes"; then
		ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(QUEUE_VRFY_OBJS)"
	fi
d24374 2
a24375 1
	ADDITIONAL_OBJS="$ADDITIONAL_OBJS qam_stub${o}"
d24377 4
a24380 5

# The replication code.
if test "$db_cv_build_replication" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_REPLICATION 1
d24384 4
a24387 2

	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(REP_OBJS)"
d24389 7
a24395 2
	ADDITIONAL_OBJS="$ADDITIONAL_OBJS rep_stub${o}"
fi
d24397 10
a24406 4
# The verification code.
if test "$db_cv_build_verify" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_VERIFY 1
d24408 23
a24430 4



	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(BTREE_VRFY_OBJS)"
d24432 2
a24433 2
	ADDITIONAL_OBJS="$ADDITIONAL_OBJS db_vrfy_stub${o}"
fi
d24435 1
a24435 12
# The crypto support.
if test -d "$srcdir/../crypto" -a "$db_cv_build_cryptography" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_CRYPTO 1
_ACEOF




	CRYPTO_OBJS="\$(CRYPTO_OBJS)"
else
	CRYPTO_OBJS="crypto_stub${o}"
d24437 1
a24437 4

# Optional utilities.
if test "$db_cv_dump185" = "yes"; then
	ADDITIONAL_PROGS="db_dump185 $ADDITIONAL_PROGS"
d24439 2
d24442 3
a24444 4
# Checks for include files, structures, C types.
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
if test "${ac_cv_header_stat_broken+set}" = set; then
d24447 50
a24496 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d24502 1
a24502 2
#include <sys/types.h>
#include <sys/stat.h>
d24504 5
a24508 5
#if defined(S_ISBLK) && defined(S_IFDIR)
# if S_ISBLK (S_IFDIR)
You lose.
# endif
#endif
d24510 27
a24536 22
#if defined(S_ISBLK) && defined(S_IFCHR)
# if S_ISBLK (S_IFCHR)
You lose.
# endif
#endif

#if defined(S_ISLNK) && defined(S_IFREG)
# if S_ISLNK (S_IFREG)
You lose.
# endif
#endif

#if defined(S_ISSOCK) && defined(S_IFREG)
# if S_ISSOCK (S_IFREG)
You lose.
# endif
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "You lose" >/dev/null 2>&1; then
  ac_cv_header_stat_broken=yes
d24538 2
a24539 3
  ac_cv_header_stat_broken=no
fi
rm -f conftest*
d24541 6
d24548 5
a24552 3
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
if test $ac_cv_header_stat_broken = yes; then
d24554 2
a24555 2
cat >>confdefs.h <<\_ACEOF
#define STAT_MACROS_BROKEN 1
d24557 4
d24562 5
a24566 1
fi
d24568 29
a24596 7
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d24602 1
a24602 3
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
d24607 3
a24609 2
if ((struct tm *) 0)
return 0;
d24616 1
a24616 1
  (eval $ac_compile) 2>&5
d24618 3
d24623 8
a24630 1
         { ac_try='test -s conftest.$ac_objext'
d24636 1
a24636 1
  ac_cv_header_time=yes
d24641 6
a24646 1
ac_cv_header_time=no
d24648 7
a24654 1
rm -f conftest.$ac_objext conftest.$ac_ext
d24656 1
a24656 8
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\_ACEOF
#define TIME_WITH_SYS_TIME 1
_ACEOF

d24658 4
a24661 14






ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
a24662 1
#line $LINENO "configure"
d24668 1
a24668 2
#include <sys/types.h>
#include <$ac_hdr>
d24673 3
a24675 2
if ((DIR *) 0)
return 0;
d24682 1
a24682 1
  (eval $ac_compile) 2>&5
d24684 3
d24689 8
a24696 1
         { ac_try='test -s conftest.$ac_objext'
d24702 1
a24702 1
  eval "$as_ac_Header=yes"
d24707 1
a24707 12
eval "$as_ac_Header=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
d24709 1
a24709 1

d24711 15
a24725 6
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
if test "${ac_cv_search_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d24727 1
a24727 4
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_opendir=no
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d24733 1
d24735 4
a24738 7
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
d24742 20
a24761 1
opendir ();
d24766 1
a24766 1
rm -f conftest.$ac_objext conftest$ac_exeext
d24771 1
a24771 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
d24777 1
a24777 1
  ac_cv_search_opendir="none required"
d24779 2
a24780 1
  echo "$as_me: failed program was:" >&5
d24782 29
a24810 8

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_opendir" = no; then
  for ac_lib in dir; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d24816 1
a24817 7
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
d24821 4
a24824 1
opendir ();
d24829 3
a24831 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d24833 3
d24838 8
a24845 1
         { ac_try='test -s conftest$ac_exeext'
d24851 1
a24851 2
  ac_cv_search_opendir="-l$ac_lib"
break
d24856 1
d24858 1
a24858 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done
fi
LIBS=$ac_func_search_save_LIBS
d24860 2
a24861 4
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
echo "${ECHO_T}$ac_cv_search_opendir" >&6
if test "$ac_cv_search_opendir" != no; then
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d24863 3
a24865 6
fi

else
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
if test "${ac_cv_search_opendir+set}" = set; then
d24868 7
a24874 2
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_opendir=no
a24875 1
#line $LINENO "configure"
d24881 1
a24882 7
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
d24886 3
a24888 1
opendir ();
d24893 3
a24895 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d24897 3
d24902 8
a24909 1
         { ac_try='test -s conftest$ac_exeext'
d24915 2
a24916 10
  ac_cv_search_opendir="none required"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_opendir" = no; then
  for ac_lib in x; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
a24917 1
#line $LINENO "configure"
d24923 1
a24924 7
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
d24928 3
a24930 1
opendir ();
d24935 3
a24937 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d24939 3
d24944 2
a24945 1
         { ac_try='test -s conftest$ac_exeext'
d24950 2
a24951 57
  (exit $ac_status); }; }; then
  ac_cv_search_opendir="-l$ac_lib"
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done
fi
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
echo "${ECHO_T}$ac_cv_search_opendir" >&6
if test "$ac_cv_search_opendir" != no; then
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"

fi

fi




for ac_header in sys/select.h sys/time.h sys/fcntl.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
d24957 1
a24957 1
  ac_header_compiler=yes
d24962 6
a24967 1
ac_header_compiler=no
d24969 2
a24970 34
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
d24975 1
a24975 66
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d24981 2
a24982 1
$ac_includes_default
d24986 3
a24988 3
static struct stat ac_aggr;
if (ac_aggr.st_blksize)
return 0;
d24995 1
a24995 1
  (eval $ac_compile) 2>&5
d24997 3
d25002 8
a25009 1
         { ac_try='test -s conftest.$ac_objext'
d25015 3
a25017 7
  ac_cv_member_struct_stat_st_blksize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d25023 2
a25024 1
$ac_includes_default
d25028 3
a25030 3
static struct stat ac_aggr;
if (sizeof ac_aggr.st_blksize)
return 0;
d25037 1
a25037 1
  (eval $ac_compile) 2>&5
d25039 3
d25044 8
a25051 1
         { ac_try='test -s conftest.$ac_objext'
d25057 1
a25057 1
  ac_cv_member_struct_stat_st_blksize=yes
d25062 6
a25067 1
ac_cv_member_struct_stat_st_blksize=no
d25069 5
a25073 12
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
if test $ac_cv_member_struct_stat_st_blksize = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
_ACEOF

d25075 1
d25077 1
a25077 16



# db.h includes <sys/types.h> and <stdio.h>, not the other default includes
# autoconf usually includes.  For that reason, we specify a set of includes
# for all type checking tests. [#5060]
#
# IBM's OS/390 and z/OS releases have types in <inttypes.h> not also found
# in <sys/types.h>.  Include <inttypes.h> as well, if it exists.

db_includes="#include <sys/types.h>"
if test "${ac_cv_header_inttypes_h+set}" = set; then
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
if test "${ac_cv_header_inttypes_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d25079 5
a25083 8
echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking inttypes.h usability" >&5
echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d25089 11
a25099 2
$ac_includes_default
#include <inttypes.h>
d25103 1
a25103 1
  (eval $ac_compile) 2>&5
d25105 3
d25110 8
a25117 1
         { ac_try='test -s conftest.$ac_objext'
d25123 1
a25123 1
  ac_header_compiler=yes
d25128 1
a25128 1
ac_header_compiler=no
d25130 19
a25148 9
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking inttypes.h presence" >&5
echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d25154 32
a25185 1
#include <inttypes.h>
d25187 8
a25194 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a25195 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25197 2
a25198 6
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d25200 2
a25201 6
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
d25204 9
a25212 1
  ac_header_preproc=no
d25214 1
a25214 41
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for inttypes.h" >&5
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
if test "${ac_cv_header_inttypes_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d25216 1
a25216 1
  ac_cv_header_inttypes_h=$ac_header_preproc
a25217 3
echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6

d25219 5
a25223 1
if test $ac_cv_header_inttypes_h = yes; then
a25224 4
	inttypes_decl="#include <inttypes.h>"
	db_includes="$db_includes
#include <inttypes.h>"
fi
d25226 3
a25228 9

db_includes="$db_includes
#include <stdio.h>"

# We need to know the sizes of various objects on this system.
# We don't use the SIZEOF_XXX values created by autoconf.
echo "$as_me:$LINENO: checking for char" >&5
echo $ECHO_N "checking for char... $ECHO_C" >&6
if test "${ac_cv_type_char+set}" = set; then
a25231 1
#line $LINENO "configure"
d25242 1
a25242 1
if ((char *) 0)
d25244 1
a25244 1
if (sizeof (char))
d25252 1
a25252 1
  (eval $ac_compile) 2>&5
d25254 3
d25259 8
a25266 1
         { ac_try='test -s conftest.$ac_objext'
d25272 1
a25272 1
  ac_cv_type_char=yes
d25277 1
a25277 1
ac_cv_type_char=no
d25279 1
a25279 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25281 2
a25282 2
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
echo "${ECHO_T}$ac_cv_type_char" >&6
d25284 3
a25286 3
echo "$as_me:$LINENO: checking size of char" >&5
echo $ECHO_N "checking size of char... $ECHO_C" >&6
if test "${ac_cv_sizeof_char+set}" = set; then
d25289 1
a25289 1
  if test "$ac_cv_type_char" = yes; then
a25296 1
#line $LINENO "configure"
d25307 1
a25307 1
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
d25316 1
a25316 1
  (eval $ac_compile) 2>&5
d25318 3
d25323 8
a25330 1
         { ac_try='test -s conftest.$ac_objext'
a25338 1
#line $LINENO "configure"
d25349 1
a25349 1
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
d25358 1
a25358 1
  (eval $ac_compile) 2>&5
d25360 3
d25365 8
a25372 1
         { ac_try='test -s conftest.$ac_objext'
d25384 5
a25388 5
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
d25390 1
a25390 1
rm -f conftest.$ac_objext conftest.$ac_ext
a25396 1
#line $LINENO "configure"
d25407 1
a25407 1
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
d25416 1
a25416 1
  (eval $ac_compile) 2>&5
d25418 3
d25423 8
a25430 1
         { ac_try='test -s conftest.$ac_objext'
a25438 1
#line $LINENO "configure"
d25449 1
a25449 1
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
d25458 1
a25458 1
  (eval $ac_compile) 2>&5
d25460 3
d25465 8
a25472 1
         { ac_try='test -s conftest.$ac_objext'
d25484 5
a25488 5
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
d25490 1
a25490 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25498 1
a25498 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25500 1
a25500 1
rm -f conftest.$ac_objext conftest.$ac_ext
a25504 1
#line $LINENO "configure"
d25515 1
a25515 1
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
d25524 1
a25524 1
  (eval $ac_compile) 2>&5
d25526 3
d25531 8
a25538 1
         { ac_try='test -s conftest.$ac_objext'
d25551 1
a25551 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25554 2
a25555 2
?*) ac_cv_sizeof_char=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
d25557 1
a25557 1
echo "$as_me: error: cannot compute sizeof (char), 77
a25569 1
#line $LINENO "configure"
d25577 2
a25578 2
long longval () { return (long) (sizeof (char)); }
unsigned long ulongval () { return (long) (sizeof (char)); }
d25588 1
a25588 1
  if (((long) (sizeof (char))) < 0)
d25591 1
a25591 1
      if (i != ((long) (sizeof (char))))
d25598 1
a25598 1
      if (i != ((long) (sizeof (char))))
d25619 1
a25619 1
  ac_cv_sizeof_char=`cat conftest.val`
d25626 1
a25626 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
d25628 1
a25628 1
echo "$as_me: error: cannot compute sizeof (char), 77
d25632 1
a25632 1
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d25637 1
a25637 1
  ac_cv_sizeof_char=0
d25640 2
a25641 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
d25643 1
a25643 1
#define SIZEOF_CHAR $ac_cv_sizeof_char
d25647 3
a25649 3
echo "$as_me:$LINENO: checking for unsigned char" >&5
echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_char+set}" = set; then
a25652 1
#line $LINENO "configure"
d25663 1
a25663 1
if ((unsigned char *) 0)
d25665 1
a25665 1
if (sizeof (unsigned char))
d25673 1
a25673 1
  (eval $ac_compile) 2>&5
d25675 3
d25680 8
a25687 1
         { ac_try='test -s conftest.$ac_objext'
d25693 1
a25693 1
  ac_cv_type_unsigned_char=yes
d25698 1
a25698 1
ac_cv_type_unsigned_char=no
d25700 1
a25700 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25702 2
a25703 2
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6
d25705 3
a25707 3
echo "$as_me:$LINENO: checking size of unsigned char" >&5
echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6
if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
d25710 1
a25710 1
  if test "$ac_cv_type_unsigned_char" = yes; then
a25717 1
#line $LINENO "configure"
d25728 1
a25728 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= 0)];
d25737 1
a25737 1
  (eval $ac_compile) 2>&5
d25739 3
d25744 8
a25751 1
         { ac_try='test -s conftest.$ac_objext'
a25759 1
#line $LINENO "configure"
d25770 1
a25770 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
d25779 1
a25779 1
  (eval $ac_compile) 2>&5
d25781 3
d25786 8
a25793 1
         { ac_try='test -s conftest.$ac_objext'
d25805 5
a25809 5
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
d25811 1
a25811 1
rm -f conftest.$ac_objext conftest.$ac_ext
a25817 1
#line $LINENO "configure"
d25828 1
a25828 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) < 0)];
d25837 1
a25837 1
  (eval $ac_compile) 2>&5
d25839 3
d25844 8
a25851 1
         { ac_try='test -s conftest.$ac_objext'
a25859 1
#line $LINENO "configure"
d25870 1
a25870 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= $ac_mid)];
d25879 1
a25879 1
  (eval $ac_compile) 2>&5
d25881 3
d25886 8
a25893 1
         { ac_try='test -s conftest.$ac_objext'
d25905 5
a25909 5
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
d25911 1
a25911 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25919 1
a25919 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25921 1
a25921 1
rm -f conftest.$ac_objext conftest.$ac_ext
a25925 1
#line $LINENO "configure"
d25936 1
a25936 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
d25945 1
a25945 1
  (eval $ac_compile) 2>&5
d25947 3
d25952 8
a25959 1
         { ac_try='test -s conftest.$ac_objext'
d25972 1
a25972 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25975 2
a25976 2
?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
d25978 1
a25978 1
echo "$as_me: error: cannot compute sizeof (unsigned char), 77
a25990 1
#line $LINENO "configure"
d25998 2
a25999 2
long longval () { return (long) (sizeof (unsigned char)); }
unsigned long ulongval () { return (long) (sizeof (unsigned char)); }
d26009 1
a26009 1
  if (((long) (sizeof (unsigned char))) < 0)
d26012 1
a26012 1
      if (i != ((long) (sizeof (unsigned char))))
d26019 1
a26019 1
      if (i != ((long) (sizeof (unsigned char))))
d26040 1
a26040 1
  ac_cv_sizeof_unsigned_char=`cat conftest.val`
d26047 1
a26047 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
d26049 1
a26049 1
echo "$as_me: error: cannot compute sizeof (unsigned char), 77
d26053 1
a26053 1
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d26058 1
a26058 1
  ac_cv_sizeof_unsigned_char=0
d26061 2
a26062 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
d26064 1
a26064 1
#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
d26068 3
a26070 3
echo "$as_me:$LINENO: checking for short" >&5
echo $ECHO_N "checking for short... $ECHO_C" >&6
if test "${ac_cv_type_short+set}" = set; then
a26073 1
#line $LINENO "configure"
d26084 1
a26084 1
if ((short *) 0)
d26086 1
a26086 1
if (sizeof (short))
d26094 1
a26094 1
  (eval $ac_compile) 2>&5
d26096 3
d26101 8
a26108 1
         { ac_try='test -s conftest.$ac_objext'
d26114 1
a26114 1
  ac_cv_type_short=yes
d26119 1
a26119 1
ac_cv_type_short=no
d26121 1
a26121 1
rm -f conftest.$ac_objext conftest.$ac_ext
d26123 2
a26124 2
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
echo "${ECHO_T}$ac_cv_type_short" >&6
d26126 3
a26128 3
echo "$as_me:$LINENO: checking size of short" >&5
echo $ECHO_N "checking size of short... $ECHO_C" >&6
if test "${ac_cv_sizeof_short+set}" = set; then
d26131 1
a26131 1
  if test "$ac_cv_type_short" = yes; then
a26138 1
#line $LINENO "configure"
d26149 1
a26149 1
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
d26158 1
a26158 1
  (eval $ac_compile) 2>&5
d26160 3
d26165 8
a26172 1
         { ac_try='test -s conftest.$ac_objext'
a26180 1
#line $LINENO "configure"
d26191 1
a26191 1
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
d26200 1
a26200 1
  (eval $ac_compile) 2>&5
d26202 3
d26207 8
a26214 1
         { ac_try='test -s conftest.$ac_objext'
d26226 5
a26230 5
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
d26232 1
a26232 1
rm -f conftest.$ac_objext conftest.$ac_ext
a26238 1
#line $LINENO "configure"
d26249 1
a26249 1
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
d26258 1
a26258 1
  (eval $ac_compile) 2>&5
d26260 3
d26265 8
a26272 1
         { ac_try='test -s conftest.$ac_objext'
a26280 1
#line $LINENO "configure"
d26291 1
a26291 1
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
d26300 1
a26300 1
  (eval $ac_compile) 2>&5
d26302 3
d26307 8
a26314 1
         { ac_try='test -s conftest.$ac_objext'
d26326 5
a26330 5
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
d26332 1
a26332 1
rm -f conftest.$ac_objext conftest.$ac_ext
d26340 1
a26340 1
rm -f conftest.$ac_objext conftest.$ac_ext
d26342 1
a26342 1
rm -f conftest.$ac_objext conftest.$ac_ext
a26346 1
#line $LINENO "configure"
d26357 1
a26357 1
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
d26366 1
a26366 1
  (eval $ac_compile) 2>&5
d26368 3
d26373 8
a26380 1
         { ac_try='test -s conftest.$ac_objext'
d26393 1
a26393 1
rm -f conftest.$ac_objext conftest.$ac_ext
d26396 2
a26397 2
?*) ac_cv_sizeof_short=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
d26399 1
a26399 1
echo "$as_me: error: cannot compute sizeof (short), 77
a26411 1
#line $LINENO "configure"
d26419 2
a26420 2
long longval () { return (long) (sizeof (short)); }
unsigned long ulongval () { return (long) (sizeof (short)); }
d26430 1
a26430 1
  if (((long) (sizeof (short))) < 0)
d26433 1
a26433 1
      if (i != ((long) (sizeof (short))))
d26440 1
a26440 1
      if (i != ((long) (sizeof (short))))
d26461 1
a26461 1
  ac_cv_sizeof_short=`cat conftest.val`
d26468 1
a26468 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
d26470 1
a26470 1
echo "$as_me: error: cannot compute sizeof (short), 77
d26474 1
a26474 1
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d26479 1
a26479 1
  ac_cv_sizeof_short=0
d26482 2
a26483 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
d26485 1
a26485 1
#define SIZEOF_SHORT $ac_cv_sizeof_short
d26489 3
a26491 3
echo "$as_me:$LINENO: checking for unsigned short" >&5
echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_short+set}" = set; then
a26494 1
#line $LINENO "configure"
d26505 1
a26505 1
if ((unsigned short *) 0)
d26507 1
a26507 1
if (sizeof (unsigned short))
d26515 1
a26515 1
  (eval $ac_compile) 2>&5
d26517 3
d26522 8
a26529 1
         { ac_try='test -s conftest.$ac_objext'
d26535 1
a26535 1
  ac_cv_type_unsigned_short=yes
d26540 1
a26540 1
ac_cv_type_unsigned_short=no
d26542 1
a26542 1
rm -f conftest.$ac_objext conftest.$ac_ext
d26544 2
a26545 2
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
d26547 3
a26549 3
echo "$as_me:$LINENO: checking size of unsigned short" >&5
echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
d26552 1
a26552 1
  if test "$ac_cv_type_unsigned_short" = yes; then
a26559 1
#line $LINENO "configure"
d26570 1
a26570 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
d26579 1
a26579 1
  (eval $ac_compile) 2>&5
d26581 3
d26586 8
a26593 1
         { ac_try='test -s conftest.$ac_objext'
a26601 1
#line $LINENO "configure"
d26612 1
a26612 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
d26621 1
a26621 1
  (eval $ac_compile) 2>&5
d26623 3
d26628 8
a26635 1
         { ac_try='test -s conftest.$ac_objext'
d26647 5
a26651 5
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
d26653 1
a26653 1
rm -f conftest.$ac_objext conftest.$ac_ext
a26659 1
#line $LINENO "configure"
d26670 1
a26670 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
d26679 1
a26679 1
  (eval $ac_compile) 2>&5
d26681 3
d26686 8
a26693 1
         { ac_try='test -s conftest.$ac_objext'
a26701 1
#line $LINENO "configure"
d26712 1
a26712 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
d26721 1
a26721 1
  (eval $ac_compile) 2>&5
d26723 3
d26728 8
a26735 1
         { ac_try='test -s conftest.$ac_objext'
d26747 5
a26751 5
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
d26753 1
a26753 1
rm -f conftest.$ac_objext conftest.$ac_ext
d26761 1
a26761 1
rm -f conftest.$ac_objext conftest.$ac_ext
d26763 1
a26763 1
rm -f conftest.$ac_objext conftest.$ac_ext
a26767 1
#line $LINENO "configure"
d26778 1
a26778 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
d26787 1
a26787 1
  (eval $ac_compile) 2>&5
d26789 3
d26794 8
a26801 1
         { ac_try='test -s conftest.$ac_objext'
d26814 1
a26814 1
rm -f conftest.$ac_objext conftest.$ac_ext
d26817 2
a26818 2
?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
d26820 1
a26820 1
echo "$as_me: error: cannot compute sizeof (unsigned short), 77
a26832 1
#line $LINENO "configure"
d26840 2
a26841 2
long longval () { return (long) (sizeof (unsigned short)); }
unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
d26851 1
a26851 1
  if (((long) (sizeof (unsigned short))) < 0)
d26854 1
a26854 1
      if (i != ((long) (sizeof (unsigned short))))
d26861 1
a26861 1
      if (i != ((long) (sizeof (unsigned short))))
d26882 1
a26882 1
  ac_cv_sizeof_unsigned_short=`cat conftest.val`
d26889 1
a26889 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
d26891 1
a26891 1
echo "$as_me: error: cannot compute sizeof (unsigned short), 77
d26895 1
a26895 1
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d26900 1
a26900 1
  ac_cv_sizeof_unsigned_short=0
d26903 2
a26904 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
d26906 1
a26906 1
#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
d26910 3
a26912 3
echo "$as_me:$LINENO: checking for int" >&5
echo $ECHO_N "checking for int... $ECHO_C" >&6
if test "${ac_cv_type_int+set}" = set; then
a26915 1
#line $LINENO "configure"
d26926 1
a26926 1
if ((int *) 0)
d26928 1
a26928 1
if (sizeof (int))
d26936 1
a26936 1
  (eval $ac_compile) 2>&5
d26938 3
d26943 8
a26950 1
         { ac_try='test -s conftest.$ac_objext'
d26956 1
a26956 1
  ac_cv_type_int=yes
d26961 1
a26961 1
ac_cv_type_int=no
d26963 1
a26963 1
rm -f conftest.$ac_objext conftest.$ac_ext
d26965 2
a26966 2
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
echo "${ECHO_T}$ac_cv_type_int" >&6
d26968 3
a26970 3
echo "$as_me:$LINENO: checking size of int" >&5
echo $ECHO_N "checking size of int... $ECHO_C" >&6
if test "${ac_cv_sizeof_int+set}" = set; then
d26973 1
a26973 1
  if test "$ac_cv_type_int" = yes; then
a26980 1
#line $LINENO "configure"
d26991 1
a26991 1
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
d27000 1
a27000 1
  (eval $ac_compile) 2>&5
d27002 3
d27007 8
a27014 1
         { ac_try='test -s conftest.$ac_objext'
a27022 1
#line $LINENO "configure"
d27033 1
a27033 1
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
d27042 1
a27042 1
  (eval $ac_compile) 2>&5
d27044 3
d27049 8
a27056 1
         { ac_try='test -s conftest.$ac_objext'
d27068 5
a27072 5
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
d27074 1
a27074 1
rm -f conftest.$ac_objext conftest.$ac_ext
a27080 1
#line $LINENO "configure"
d27091 1
a27091 1
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
d27100 1
a27100 1
  (eval $ac_compile) 2>&5
d27102 3
d27107 8
a27114 1
         { ac_try='test -s conftest.$ac_objext'
a27122 1
#line $LINENO "configure"
d27133 1
a27133 1
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
d27142 11
a27152 1
  (eval $ac_compile) 2>&5
d27155 2
a27156 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
d27168 5
a27172 5
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
d27174 1
a27174 1
rm -f conftest.$ac_objext conftest.$ac_ext
d27182 1
a27182 1
rm -f conftest.$ac_objext conftest.$ac_ext
d27184 1
a27184 1
rm -f conftest.$ac_objext conftest.$ac_ext
a27188 1
#line $LINENO "configure"
d27199 1
a27199 1
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
d27208 1
a27208 1
  (eval $ac_compile) 2>&5
d27210 3
d27215 8
a27222 1
         { ac_try='test -s conftest.$ac_objext'
d27235 1
a27235 1
rm -f conftest.$ac_objext conftest.$ac_ext
d27238 2
a27239 2
?*) ac_cv_sizeof_int=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
d27241 1
a27241 1
echo "$as_me: error: cannot compute sizeof (int), 77
a27253 1
#line $LINENO "configure"
d27261 2
a27262 2
long longval () { return (long) (sizeof (int)); }
unsigned long ulongval () { return (long) (sizeof (int)); }
d27272 1
a27272 1
  if (((long) (sizeof (int))) < 0)
d27275 1
a27275 1
      if (i != ((long) (sizeof (int))))
d27282 1
a27282 1
      if (i != ((long) (sizeof (int))))
d27303 1
a27303 1
  ac_cv_sizeof_int=`cat conftest.val`
d27310 1
a27310 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
d27312 1
a27312 1
echo "$as_me: error: cannot compute sizeof (int), 77
d27316 1
a27316 1
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d27321 1
a27321 1
  ac_cv_sizeof_int=0
d27324 2
a27325 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
d27327 1
a27327 1
#define SIZEOF_INT $ac_cv_sizeof_int
d27331 3
a27333 3
echo "$as_me:$LINENO: checking for unsigned int" >&5
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_int+set}" = set; then
a27336 1
#line $LINENO "configure"
d27347 1
a27347 1
if ((unsigned int *) 0)
d27349 1
a27349 1
if (sizeof (unsigned int))
d27357 1
a27357 1
  (eval $ac_compile) 2>&5
d27359 3
d27364 8
a27371 1
         { ac_try='test -s conftest.$ac_objext'
d27377 1
a27377 1
  ac_cv_type_unsigned_int=yes
d27382 1
a27382 1
ac_cv_type_unsigned_int=no
d27384 1
a27384 1
rm -f conftest.$ac_objext conftest.$ac_ext
d27386 2
a27387 2
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
d27389 3
a27391 3
echo "$as_me:$LINENO: checking size of unsigned int" >&5
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
d27394 1
a27394 1
  if test "$ac_cv_type_unsigned_int" = yes; then
a27401 1
#line $LINENO "configure"
d27412 1
a27412 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
d27421 1
a27421 1
  (eval $ac_compile) 2>&5
d27423 3
d27428 8
a27435 1
         { ac_try='test -s conftest.$ac_objext'
a27443 1
#line $LINENO "configure"
d27454 1
a27454 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
d27463 1
a27463 1
  (eval $ac_compile) 2>&5
d27465 3
d27470 8
a27477 1
         { ac_try='test -s conftest.$ac_objext'
d27489 5
a27493 5
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
d27495 1
a27495 1
rm -f conftest.$ac_objext conftest.$ac_ext
a27501 1
#line $LINENO "configure"
d27512 1
a27512 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
d27521 1
a27521 1
  (eval $ac_compile) 2>&5
d27523 3
d27528 8
a27535 1
         { ac_try='test -s conftest.$ac_objext'
a27543 1
#line $LINENO "configure"
d27554 1
a27554 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
d27563 1
a27563 1
  (eval $ac_compile) 2>&5
d27565 3
d27570 8
a27577 1
         { ac_try='test -s conftest.$ac_objext'
d27589 5
a27593 5
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
d27595 1
a27595 1
rm -f conftest.$ac_objext conftest.$ac_ext
d27603 1
a27603 1
rm -f conftest.$ac_objext conftest.$ac_ext
d27605 1
a27605 1
rm -f conftest.$ac_objext conftest.$ac_ext
a27609 1
#line $LINENO "configure"
d27620 1
a27620 1
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
d27629 1
a27629 1
  (eval $ac_compile) 2>&5
d27631 3
d27636 8
a27643 1
         { ac_try='test -s conftest.$ac_objext'
d27656 1
a27656 1
rm -f conftest.$ac_objext conftest.$ac_ext
d27659 2
a27660 2
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
d27662 1
a27662 1
echo "$as_me: error: cannot compute sizeof (unsigned int), 77
a27674 1
#line $LINENO "configure"
d27682 2
a27683 2
long longval () { return (long) (sizeof (unsigned int)); }
unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
d27693 1
a27693 1
  if (((long) (sizeof (unsigned int))) < 0)
d27696 1
a27696 1
      if (i != ((long) (sizeof (unsigned int))))
d27703 1
a27703 1
      if (i != ((long) (sizeof (unsigned int))))
d27724 1
a27724 1
  ac_cv_sizeof_unsigned_int=`cat conftest.val`
d27731 1
a27731 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
d27733 1
a27733 1
echo "$as_me: error: cannot compute sizeof (unsigned int), 77
d27737 1
a27737 1
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d27742 1
a27742 1
  ac_cv_sizeof_unsigned_int=0
d27745 2
a27746 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
d27748 1
a27748 1
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
d27752 3
a27754 3
echo "$as_me:$LINENO: checking for long" >&5
echo $ECHO_N "checking for long... $ECHO_C" >&6
if test "${ac_cv_type_long+set}" = set; then
a27757 1
#line $LINENO "configure"
d27768 1
a27768 1
if ((long *) 0)
d27770 1
a27770 1
if (sizeof (long))
d27778 1
a27778 1
  (eval $ac_compile) 2>&5
d27780 3
d27785 8
a27792 1
         { ac_try='test -s conftest.$ac_objext'
d27798 1
a27798 1
  ac_cv_type_long=yes
d27803 1
a27803 1
ac_cv_type_long=no
d27805 1
a27805 1
rm -f conftest.$ac_objext conftest.$ac_ext
d27807 2
a27808 2
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
echo "${ECHO_T}$ac_cv_type_long" >&6
d27810 3
a27812 3
echo "$as_me:$LINENO: checking size of long" >&5
echo $ECHO_N "checking size of long... $ECHO_C" >&6
if test "${ac_cv_sizeof_long+set}" = set; then
d27815 1
a27815 1
  if test "$ac_cv_type_long" = yes; then
a27822 1
#line $LINENO "configure"
d27833 1
a27833 1
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
d27842 1
a27842 1
  (eval $ac_compile) 2>&5
d27844 3
d27849 8
a27856 1
         { ac_try='test -s conftest.$ac_objext'
a27864 1
#line $LINENO "configure"
d27875 1
a27875 1
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
d27884 1
a27884 1
  (eval $ac_compile) 2>&5
d27886 3
d27891 8
a27898 1
         { ac_try='test -s conftest.$ac_objext'
d27910 5
a27914 5
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
d27916 1
a27916 1
rm -f conftest.$ac_objext conftest.$ac_ext
a27922 1
#line $LINENO "configure"
d27933 1
a27933 1
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
d27942 1
a27942 1
  (eval $ac_compile) 2>&5
d27944 3
d27949 8
a27956 1
         { ac_try='test -s conftest.$ac_objext'
a27964 1
#line $LINENO "configure"
d27975 1
a27975 1
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
d27984 1
a27984 1
  (eval $ac_compile) 2>&5
d27986 3
d27991 8
a27998 1
         { ac_try='test -s conftest.$ac_objext'
d28010 5
a28014 5
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
d28016 1
a28016 1
rm -f conftest.$ac_objext conftest.$ac_ext
d28024 1
a28024 1
rm -f conftest.$ac_objext conftest.$ac_ext
d28026 1
a28026 1
rm -f conftest.$ac_objext conftest.$ac_ext
a28030 1
#line $LINENO "configure"
d28041 1
a28041 1
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
d28050 1
a28050 1
  (eval $ac_compile) 2>&5
d28052 3
d28057 8
a28064 1
         { ac_try='test -s conftest.$ac_objext'
d28077 1
a28077 1
rm -f conftest.$ac_objext conftest.$ac_ext
d28080 2
a28081 2
?*) ac_cv_sizeof_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
d28083 1
a28083 1
echo "$as_me: error: cannot compute sizeof (long), 77
a28095 1
#line $LINENO "configure"
d28103 2
a28104 2
long longval () { return (long) (sizeof (long)); }
unsigned long ulongval () { return (long) (sizeof (long)); }
d28114 1
a28114 1
  if (((long) (sizeof (long))) < 0)
d28117 1
a28117 1
      if (i != ((long) (sizeof (long))))
d28124 1
a28124 1
      if (i != ((long) (sizeof (long))))
d28145 1
a28145 1
  ac_cv_sizeof_long=`cat conftest.val`
d28152 1
a28152 1
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
d28154 1
a28154 1
echo "$as_me: error: cannot compute sizeof (long), 77
d28158 1
a28158 1
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d28163 1
a28163 1
  ac_cv_sizeof_long=0
d28166 2
a28167 2
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
d28169 1
a28169 1
#define SIZEOF_LONG $ac_cv_sizeof_long
d28173 7
a28179 3
echo "$as_me:$LINENO: checking for unsigned long" >&5
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_long+set}" = set; then
a28182 1
#line $LINENO "configure"
d28193 1
a28193 1
if ((unsigned long *) 0)
d28195 1
a28195 1
if (sizeof (unsigned long))
d28203 1
a28203 1
  (eval $ac_compile) 2>&5
d28205 3
d28210 8
a28217 1
         { ac_try='test -s conftest.$ac_objext'
d28223 1
a28223 1
  ac_cv_type_unsigned_long=yes
d28228 3
a28230 1
ac_cv_type_unsigned_long=no
d28232 6
a28237 1
rm -f conftest.$ac_objext conftest.$ac_ext
a28238 2
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
d28240 5
a28244 3
echo "$as_me:$LINENO: checking size of unsigned long" >&5
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
d28247 1
a28247 9
  if test "$ac_cv_type_unsigned_long" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d28258 4
a28261 3
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
test_array [0] = 0

d28268 1
a28268 1
  (eval $ac_compile) 2>&5
d28270 3
d28275 8
a28282 1
         { ac_try='test -s conftest.$ac_objext'
d28288 25
a28312 4
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d28323 4
a28326 3
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
test_array [0] = 0

d28333 1
a28333 1
  (eval $ac_compile) 2>&5
d28335 3
d28340 8
a28347 1
         { ac_try='test -s conftest.$ac_objext'
d28353 1
a28353 1
  ac_hi=$ac_mid; break
d28358 3
a28360 6
ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
d28362 4
a28365 2
rm -f conftest.$ac_objext conftest.$ac_ext
  done
d28367 4
a28370 2
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d28372 6
a28377 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d28388 4
a28391 3
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
test_array [0] = 0

d28398 1
a28398 1
  (eval $ac_compile) 2>&5
d28400 3
d28405 2
a28406 1
         { ac_try='test -s conftest.$ac_objext'
d28411 2
a28412 29
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes

int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
d28418 1
a28418 1
  ac_lo=$ac_mid; break
d28423 3
a28425 6
ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
d28427 4
a28430 2
rm -f conftest.$ac_objext conftest.$ac_ext
  done
d28432 5
a28436 2
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d28438 5
a28442 8
ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
a28443 1
#line $LINENO "configure"
d28454 4
a28457 3
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
test_array [0] = 0

d28464 1
a28464 1
  (eval $ac_compile) 2>&5
d28466 3
d28471 8
a28478 1
         { ac_try='test -s conftest.$ac_objext'
d28484 1
a28484 1
  ac_hi=$ac_mid
d28489 3
a28491 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d28493 4
a28496 10
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } ;;
esac
d28498 25
a28522 6
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
a28524 1
#line $LINENO "configure"
a28531 4
long longval () { return (long) (sizeof (unsigned long)); }
unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
#include <stdio.h>
#include <stdlib.h>
d28535 4
a28538 20

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (unsigned long))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (unsigned long))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (unsigned long))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

d28543 13
a28555 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d28558 2
a28559 1
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
d28565 1
a28565 1
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
d28567 1
a28567 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d28570 1
a28570 6
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
d28572 1
a28572 1
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d28574 4
a28577 2
fi
rm -f conftest.val
d28579 17
a28595 1
  ac_cv_sizeof_unsigned_long=0
a28596 6
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
_ACEOF
d28599 4
a28602 3
echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
a28605 1
#line $LINENO "configure"
d28616 1
a28616 1
if ((size_t *) 0)
d28618 1
a28618 1
if (sizeof (size_t))
d28626 1
a28626 1
  (eval $ac_compile) 2>&5
d28628 3
d28633 8
a28640 1
         { ac_try='test -s conftest.$ac_objext'
d28646 1
a28646 1
  ac_cv_type_size_t=yes
d28651 3
a28653 1
ac_cv_type_size_t=no
d28655 22
a28676 1
rm -f conftest.$ac_objext conftest.$ac_ext
a28677 2
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
d28679 5
a28683 3
echo "$as_me:$LINENO: checking size of size_t" >&5
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
if test "${ac_cv_sizeof_size_t+set}" = set; then
d28686 1
a28686 9
  if test "$ac_cv_type_size_t" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d28697 4
a28700 3
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
test_array [0] = 0

d28707 1
a28707 1
  (eval $ac_compile) 2>&5
d28709 3
d28714 8
a28721 1
         { ac_try='test -s conftest.$ac_objext'
d28727 41
a28767 4
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d28778 4
a28781 3
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
test_array [0] = 0

d28788 1
a28788 1
  (eval $ac_compile) 2>&5
d28790 3
d28795 8
a28802 1
         { ac_try='test -s conftest.$ac_objext'
d28808 1
a28808 1
  ac_hi=$ac_mid; break
d28813 3
a28815 6
ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
d28817 4
a28820 2
rm -f conftest.$ac_objext conftest.$ac_ext
  done
a28821 2
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d28823 26
a28848 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d28858 5
a28862 4
{
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
test_array [0] = 0

d28869 1
a28869 1
  (eval $ac_compile) 2>&5
d28871 3
d28876 8
a28883 1
         { ac_try='test -s conftest.$ac_objext'
d28889 41
a28929 4
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d28940 4
a28943 3
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
test_array [0] = 0

d28950 1
a28950 1
  (eval $ac_compile) 2>&5
d28952 3
d28957 8
a28964 1
         { ac_try='test -s conftest.$ac_objext'
d28970 1
a28970 1
  ac_lo=$ac_mid; break
d28975 3
a28977 6
ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
d28979 4
a28982 2
rm -f conftest.$ac_objext conftest.$ac_ext
  done
a28983 2
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d28985 16
a29000 1
ac_lo= ac_hi=
d29002 10
a29011 6
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
a29012 1
#line $LINENO "configure"
d29023 4
a29026 3
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
test_array [0] = 0

d29033 1
a29033 1
  (eval $ac_compile) 2>&5
d29035 3
d29040 8
a29047 1
         { ac_try='test -s conftest.$ac_objext'
d29053 1
a29053 1
  ac_hi=$ac_mid
d29058 3
a29060 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d29062 4
a29065 10
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_size_t=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (size_t), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } ;;
esac
d29067 27
a29093 6
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
a29095 1
#line $LINENO "configure"
d29101 1
a29101 6
$db_includes

long longval () { return (long) (sizeof (size_t)); }
unsigned long ulongval () { return (long) (sizeof (size_t)); }
#include <stdio.h>
#include <stdlib.h>
d29105 4
a29108 20

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (size_t))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (size_t))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (size_t))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

d29113 13
a29125 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d29128 2
a29129 1
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
d29135 1
a29135 1
  ac_cv_sizeof_size_t=`cat conftest.val`
d29137 1
a29137 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d29140 1
a29140 6
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (size_t), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
d29142 1
a29142 1
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d29144 4
a29147 2
fi
rm -f conftest.val
d29149 3
a29151 13
  ac_cv_sizeof_size_t=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
_ACEOF


echo "$as_me:$LINENO: checking for char *" >&5
echo $ECHO_N "checking for char *... $ECHO_C" >&6
if test "${ac_cv_type_char_p+set}" = set; then
a29154 1
#line $LINENO "configure"
d29165 1
a29165 1
if ((char * *) 0)
d29167 1
a29167 1
if (sizeof (char *))
d29175 1
a29175 1
  (eval $ac_compile) 2>&5
d29177 3
d29182 8
a29189 1
         { ac_try='test -s conftest.$ac_objext'
d29195 1
a29195 1
  ac_cv_type_char_p=yes
d29200 10
a29209 1
ac_cv_type_char_p=no
d29211 1
a29211 1
rm -f conftest.$ac_objext conftest.$ac_ext
a29212 2
echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
echo "${ECHO_T}$ac_cv_type_char_p" >&6
d29214 7
a29220 3
echo "$as_me:$LINENO: checking size of char *" >&5
echo $ECHO_N "checking size of char *... $ECHO_C" >&6
if test "${ac_cv_sizeof_char_p+set}" = set; then
d29223 1
a29223 9
  if test "$ac_cv_type_char_p" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d29229 1
a29229 2
$db_includes

d29233 4
a29236 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
test_array [0] = 0

d29243 1
a29243 1
  (eval $ac_compile) 2>&5
d29245 3
d29250 8
a29257 1
         { ac_try='test -s conftest.$ac_objext'
d29263 42
a29304 4
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d29310 1
a29310 2
$db_includes

d29314 1
a29314 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
test_array [0] = 0

d29321 1
a29321 1
  (eval $ac_compile) 2>&5
d29323 3
d29328 8
a29335 1
         { ac_try='test -s conftest.$ac_objext'
d29341 1
a29341 1
  ac_hi=$ac_mid; break
d29346 13
a29358 6
ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
d29360 12
a29371 2
rm -f conftest.$ac_objext conftest.$ac_ext
  done
d29373 2
a29374 3
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

a29375 1
#line $LINENO "configure"
a29380 1
$db_includes
d29382 7
d29392 1
a29392 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
test_array [0] = 0

d29397 3
a29399 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d29401 3
d29406 8
a29413 1
         { ac_try='test -s conftest.$ac_objext'
d29419 11
a29429 2
  ac_hi=-1 ac_mid=-1
  while :; do
a29430 1
#line $LINENO "configure"
a29435 1
$db_includes
d29437 7
d29447 1
a29447 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
test_array [0] = 0

d29452 3
a29454 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d29456 3
d29461 8
a29468 1
         { ac_try='test -s conftest.$ac_objext'
d29474 2
a29475 1
  ac_lo=$ac_mid; break
a29479 6
ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
d29481 2
a29482 1
rm -f conftest.$ac_objext conftest.$ac_ext
a29483 5
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo= ac_hi=
d29485 10
a29494 1
rm -f conftest.$ac_objext conftest.$ac_ext
d29496 12
a29507 6
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a29512 1
$db_includes
d29514 7
d29524 1
a29524 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
test_array [0] = 0

d29529 3
a29531 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d29533 3
d29538 8
a29545 1
         { ac_try='test -s conftest.$ac_objext'
d29551 1
a29551 1
  ac_hi=$ac_mid
a29555 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d29557 6
a29562 20
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_char_p=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char *), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a29567 1
$db_includes
d29569 7
a29575 4
long longval () { return (long) (sizeof (char *)); }
unsigned long ulongval () { return (long) (sizeof (char *)); }
#include <stdio.h>
#include <stdlib.h>
d29579 1
a29579 20

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (char *))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (char *))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (char *))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

d29584 1
a29584 1
rm -f conftest$ac_exeext
d29586 11
a29596 1
  (eval $ac_link) 2>&5
d29599 2
a29600 1
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
d29606 2
a29607 1
  ac_cv_sizeof_char_p=`cat conftest.val`
d29609 1
a29609 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
a29611 6
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char *), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
d29613 3
a29615 1
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d29617 1
d29619 5
a29623 4
rm -f conftest.val
else
  ac_cv_sizeof_char_p=0
fi
a29624 5
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
_ACEOF
d29627 11
a29637 6

# We require off_t and size_t, and we don't try to substitute our own
# if we can't find them.
echo "$as_me:$LINENO: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
if test "${ac_cv_type_off_t+set}" = set; then
d29640 3
a29642 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d29648 1
a29648 1
$db_includes
d29653 1
a29653 4
if ((off_t *) 0)
  return 0;
if (sizeof (off_t))
  return 0;
d29658 3
a29660 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d29662 3
d29667 8
a29674 1
         { ac_try='test -s conftest.$ac_objext'
d29680 1
a29680 1
  ac_cv_type_off_t=yes
d29685 1
a29685 1
ac_cv_type_off_t=no
d29687 3
a29689 1
rm -f conftest.$ac_objext conftest.$ac_ext
d29691 4
a29694 8
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6
if test $ac_cv_type_off_t = yes; then
  :
else
  { { echo "$as_me:$LINENO: error: No off_t type." >&5
echo "$as_me: error: No off_t type." >&2;}
   { (exit 1); exit 1; }; }
d29696 2
d29699 6
a29704 3
echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
d29707 3
a29709 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d29715 1
a29715 1
$db_includes
d29720 1
a29720 4
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
d29725 3
a29727 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d29729 3
d29734 8
a29741 1
         { ac_try='test -s conftest.$ac_objext'
d29747 1
a29747 1
  ac_cv_type_size_t=yes
d29752 1
a29752 1
ac_cv_type_size_t=no
d29754 3
a29756 1
rm -f conftest.$ac_objext conftest.$ac_ext
d29758 4
a29761 8
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
else
  { { echo "$as_me:$LINENO: error: No size_t type." >&5
echo "$as_me: error: No size_t type." >&2;}
   { (exit 1); exit 1; }; }
d29763 1
d29765 3
a29767 7

# We look for u_char, u_short, u_int, u_long -- if we can't find them,
# we create our own.

echo "$as_me:$LINENO: checking for u_char" >&5
echo $ECHO_N "checking for u_char... $ECHO_C" >&6
if test "${ac_cv_type_u_char+set}" = set; then
d29770 3
a29772 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d29778 1
a29778 1
$db_includes
d29783 1
a29783 4
if ((u_char *) 0)
  return 0;
if (sizeof (u_char))
  return 0;
d29788 3
a29790 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d29792 3
d29797 8
a29804 1
         { ac_try='test -s conftest.$ac_objext'
d29810 1
a29810 1
  ac_cv_type_u_char=yes
d29815 1
a29815 1
ac_cv_type_u_char=no
d29817 3
a29819 1
rm -f conftest.$ac_objext conftest.$ac_ext
d29821 4
a29824 6
echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
echo "${ECHO_T}$ac_cv_type_u_char" >&6
if test $ac_cv_type_u_char = yes; then
  :
else
  u_char_decl="typedef unsigned char u_char;"
d29826 1
d29828 3
a29830 5


echo "$as_me:$LINENO: checking for u_short" >&5
echo $ECHO_N "checking for u_short... $ECHO_C" >&6
if test "${ac_cv_type_u_short+set}" = set; then
d29833 3
a29835 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d29841 1
a29841 1
$db_includes
d29846 1
a29846 4
if ((u_short *) 0)
  return 0;
if (sizeof (u_short))
  return 0;
d29851 3
a29853 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d29855 3
d29860 8
a29867 1
         { ac_try='test -s conftest.$ac_objext'
d29870 67
a29936 9
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_short=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_u_short=no
d29938 2
a29939 1
rm -f conftest.$ac_objext conftest.$ac_ext
d29941 4
a29944 6
echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
echo "${ECHO_T}$ac_cv_type_u_short" >&6
if test $ac_cv_type_u_short = yes; then
  :
else
  u_short_decl="typedef unsigned short u_short;"
d29947 3
a29949 9


echo "$as_me:$LINENO: checking for u_int" >&5
echo $ECHO_N "checking for u_int... $ECHO_C" >&6
if test "${ac_cv_type_u_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a29954 1
$db_includes
d29956 1
d29960 9
a29968 4
if ((u_int *) 0)
  return 0;
if (sizeof (u_int))
  return 0;
d29973 3
a29975 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d29977 3
d29982 8
a29989 1
         { ac_try='test -s conftest.$ac_objext'
d29995 1
a29995 1
  ac_cv_type_u_int=yes
a29999 3
ac_cv_type_u_int=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
d30001 2
a30002 6
echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
echo "${ECHO_T}$ac_cv_type_u_int" >&6
if test $ac_cv_type_u_int = yes; then
  :
else
  u_int_decl="typedef unsigned int u_int;"
d30005 6
d30012 1
a30012 6

echo "$as_me:$LINENO: checking for u_long" >&5
echo $ECHO_N "checking for u_long... $ECHO_C" >&6
if test "${ac_cv_type_u_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
a30013 1
#line $LINENO "configure"
a30018 1
$db_includes
d30020 1
d30024 19
a30042 4
if ((u_long *) 0)
  return 0;
if (sizeof (u_long))
  return 0;
d30047 3
a30049 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d30051 3
d30056 8
a30063 1
         { ac_try='test -s conftest.$ac_objext'
d30069 1
a30069 1
  ac_cv_type_u_long=yes
a30073 3
ac_cv_type_u_long=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
d30075 2
a30076 14
echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
echo "${ECHO_T}$ac_cv_type_u_long" >&6
if test $ac_cv_type_u_long = yes; then
  :
else
  u_long_decl="typedef unsigned long u_long;"
fi



echo "$as_me:$LINENO: checking for u_int8_t" >&5
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int8_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
a30078 1
#line $LINENO "configure"
a30083 1
$db_includes
d30085 19
a30103 9
int
main ()
{
if ((u_int8_t *) 0)
  return 0;
if (sizeof (u_int8_t))
  return 0;
  ;
  return 0;
d30106 3
a30108 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d30111 1
a30111 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
d30117 1
a30117 1
  ac_cv_type_u_int8_t=yes
d30119 2
a30120 1
  echo "$as_me: failed program was:" >&5
a30122 1
ac_cv_type_u_int8_t=no
d30124 1
a30124 1
rm -f conftest.$ac_objext conftest.$ac_ext
d30126 1
a30126 20
echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
if test $ac_cv_type_u_int8_t = yes; then
  :
else

	case "1" in
	"$ac_cv_sizeof_unsigned_int")
		u_int8_decl="typedef unsigned int u_int8_t;";;
	"$ac_cv_sizeof_unsigned_char")
		u_int8_decl="typedef unsigned char u_int8_t;";;
	"$ac_cv_sizeof_unsigned_short")
		u_int8_decl="typedef unsigned short u_int8_t;";;
	"$ac_cv_sizeof_unsigned_long")
		u_int8_decl="typedef unsigned long u_int8_t;";;
	*)
		{ { echo "$as_me:$LINENO: error: No unsigned 1-byte integral type" >&5
echo "$as_me: error: No unsigned 1-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
	esac
d30128 1
d30130 1
a30130 7


echo "$as_me:$LINENO: checking for u_int16_t" >&5
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int16_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
a30131 1
#line $LINENO "configure"
a30136 1
$db_includes
d30138 1
d30142 19
a30160 4
if ((u_int16_t *) 0)
  return 0;
if (sizeof (u_int16_t))
  return 0;
d30165 3
a30167 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d30169 3
d30174 8
a30181 1
         { ac_try='test -s conftest.$ac_objext'
d30187 1
a30187 1
  ac_cv_type_u_int16_t=yes
a30191 24
ac_cv_type_u_int16_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
if test $ac_cv_type_u_int16_t = yes; then
  :
else

	case "2" in
	"$ac_cv_sizeof_unsigned_int")
		u_int16_decl="typedef unsigned int u_int16_t;";;
	"$ac_cv_sizeof_unsigned_char")
		u_int16_decl="typedef unsigned char u_int16_t;";;
	"$ac_cv_sizeof_unsigned_short")
		u_int16_decl="typedef unsigned short u_int16_t;";;
	"$ac_cv_sizeof_unsigned_long")
		u_int16_decl="typedef unsigned long u_int16_t;";;
	*)
		{ { echo "$as_me:$LINENO: error: No unsigned 2-byte integral type" >&5
echo "$as_me: error: No unsigned 2-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
	esac
d30193 2
a30194 7



echo "$as_me:$LINENO: checking for int16_t" >&5
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
if test "${ac_cv_type_int16_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
a30196 1
#line $LINENO "configure"
a30201 1
$db_includes
d30203 19
a30221 9
int
main ()
{
if ((int16_t *) 0)
  return 0;
if (sizeof (int16_t))
  return 0;
  ;
  return 0;
d30224 3
a30226 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d30229 1
a30229 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
d30235 1
a30235 1
  ac_cv_type_int16_t=yes
d30237 2
a30238 1
  echo "$as_me: failed program was:" >&5
a30240 1
ac_cv_type_int16_t=no
d30242 1
a30242 1
rm -f conftest.$ac_objext conftest.$ac_ext
a30243 20
echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_int16_t" >&6
if test $ac_cv_type_int16_t = yes; then
  :
else

	case "2" in
	"$ac_cv_sizeof_int")
		int16_decl="typedef int int16_t;";;
	"$ac_cv_sizeof_char")
		int16_decl="typedef char int16_t;";;
	"$ac_cv_sizeof_short")
		int16_decl="typedef short int16_t;";;
	"$ac_cv_sizeof_long")
		int16_decl="typedef long int16_t;";;
	*)
		{ { echo "$as_me:$LINENO: error: No signed 2-byte integral type" >&5
echo "$as_me: error: No signed 2-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
	esac
d30245 1
d30247 1
a30247 7


echo "$as_me:$LINENO: checking for u_int32_t" >&5
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int32_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
a30248 1
#line $LINENO "configure"
a30253 1
$db_includes
d30255 1
d30259 17
a30275 4
if ((u_int32_t *) 0)
  return 0;
if (sizeof (u_int32_t))
  return 0;
d30280 3
a30282 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d30284 3
d30289 8
a30296 1
         { ac_try='test -s conftest.$ac_objext'
d30302 1
a30302 1
  ac_cv_type_u_int32_t=yes
a30306 24
ac_cv_type_u_int32_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
if test $ac_cv_type_u_int32_t = yes; then
  :
else

	case "4" in
	"$ac_cv_sizeof_unsigned_int")
		u_int32_decl="typedef unsigned int u_int32_t;";;
	"$ac_cv_sizeof_unsigned_char")
		u_int32_decl="typedef unsigned char u_int32_t;";;
	"$ac_cv_sizeof_unsigned_short")
		u_int32_decl="typedef unsigned short u_int32_t;";;
	"$ac_cv_sizeof_unsigned_long")
		u_int32_decl="typedef unsigned long u_int32_t;";;
	*)
		{ { echo "$as_me:$LINENO: error: No unsigned 4-byte integral type" >&5
echo "$as_me: error: No unsigned 4-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
	esac
d30308 2
a30309 7



echo "$as_me:$LINENO: checking for int32_t" >&5
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
if test "${ac_cv_type_int32_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
a30311 1
#line $LINENO "configure"
a30316 1
$db_includes
d30318 17
a30334 9
int
main ()
{
if ((int32_t *) 0)
  return 0;
if (sizeof (int32_t))
  return 0;
  ;
  return 0;
d30337 3
a30339 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d30342 1
a30342 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
d30348 1
a30348 1
  ac_cv_type_int32_t=yes
d30350 2
a30351 1
  echo "$as_me: failed program was:" >&5
a30353 1
ac_cv_type_int32_t=no
d30355 1
a30355 1
rm -f conftest.$ac_objext conftest.$ac_ext
a30356 20
echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_int32_t" >&6
if test $ac_cv_type_int32_t = yes; then
  :
else

	case "4" in
	"$ac_cv_sizeof_int")
		int32_decl="typedef int int32_t;";;
	"$ac_cv_sizeof_char")
		int32_decl="typedef char int32_t;";;
	"$ac_cv_sizeof_short")
		int32_decl="typedef short int32_t;";;
	"$ac_cv_sizeof_long")
		int32_decl="typedef long int32_t;";;
	*)
		{ { echo "$as_me:$LINENO: error: No signed 4-byte integral type" >&5
echo "$as_me: error: No signed 4-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
	esac
d30358 2
d30361 1
a30361 9

# Check for ssize_t -- if none exists, find a signed integral type that's
# the same size as a size_t.

echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
a30362 1
#line $LINENO "configure"
d30365 24
a30388 4
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$db_includes
a30389 7
int
main ()
{
if ((ssize_t *) 0)
  return 0;
if (sizeof (ssize_t))
  return 0;
d30394 3
a30396 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d30398 3
d30403 8
a30410 1
         { ac_try='test -s conftest.$ac_objext'
d30416 1
a30416 1
  ac_cv_type_ssize_t=yes
a30420 24
ac_cv_type_ssize_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = yes; then
  :
else

	case "$ac_cv_sizeof_size_t" in
	"$ac_cv_sizeof_int")
		ssize_t_decl="typedef int ssize_t;";;
	"$ac_cv_sizeof_char")
		ssize_t_decl="typedef char ssize_t;";;
	"$ac_cv_sizeof_short")
		ssize_t_decl="typedef short ssize_t;";;
	"$ac_cv_sizeof_long")
		ssize_t_decl="typedef long ssize_t;";;
	*)
		{ { echo "$as_me:$LINENO: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&5
echo "$as_me: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
	esac
d30422 2
a30423 8


# Find the largest integral type.

echo "$as_me:$LINENO: checking for unsigned long long" >&5
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
a30425 1
#line $LINENO "configure"
a30430 1
$db_includes
d30432 17
a30448 9
int
main ()
{
if ((unsigned long long *) 0)
  return 0;
if (sizeof (unsigned long long))
  return 0;
  ;
  return 0;
d30451 3
a30453 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d30456 1
a30456 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
d30462 1
a30462 1
  ac_cv_type_unsigned_long_long=yes
d30464 2
a30465 1
  echo "$as_me: failed program was:" >&5
a30467 1
ac_cv_type_unsigned_long_long=no
d30469 3
a30471 1
rm -f conftest.$ac_objext conftest.$ac_ext
d30473 4
a30476 6
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
if test $ac_cv_type_unsigned_long_long = yes; then
  db_align_t_decl="typedef unsigned long long db_align_t;"
else
  db_align_t_decl="typedef unsigned long db_align_t;"
d30479 3
a30481 26

# Find an integral type which is the same size as a pointer.


	case "$ac_cv_sizeof_char_p" in
	"$ac_cv_sizeof_unsigned_int")
		db_alignp_t_decl="typedef unsigned int db_alignp_t;";;
	"$ac_cv_sizeof_unsigned_char")
		db_alignp_t_decl="typedef unsigned char db_alignp_t;";;
	"$ac_cv_sizeof_unsigned_short")
		db_alignp_t_decl="typedef unsigned short db_alignp_t;";;
	"$ac_cv_sizeof_unsigned_long")
		db_alignp_t_decl="typedef unsigned long db_alignp_t;";;
	*)
		{ { echo "$as_me:$LINENO: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&5
echo "$as_me: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
	esac


echo "$as_me:$LINENO: checking for ANSI C exit success/failure values" >&5
echo $ECHO_N "checking for ANSI C exit success/failure values... $ECHO_C" >&6
if test "${db_cv_exit_defines+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

a30482 1
#line $LINENO "configure"
d30488 3
a30490 1
#include <stdlib.h>
d30494 10
a30503 1
return (EXIT_SUCCESS);
d30508 3
a30510 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d30512 3
d30517 8
a30524 1
         { ac_try='test -s conftest.$ac_objext'
d30530 1
a30530 1
  db_cv_exit_defines=yes
a30534 1
db_cv_exit_defines=no
d30536 3
a30538 1
rm -f conftest.$ac_objext conftest.$ac_ext
d30540 2
a30541 21
echo "$as_me:$LINENO: result: $db_cv_exit_defines" >&5
echo "${ECHO_T}$db_cv_exit_defines" >&6
if test "$db_cv_exit_defines" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_EXIT_SUCCESS 1
_ACEOF



fi

# Test for various functions/libraries that the test and example programs use:
#	sched_yield function
#	pthreads, socket and math libraries
echo "$as_me:$LINENO: checking for sched_yield" >&5
echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
if test "${ac_cv_func_sched_yield+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a30546 28
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sched_yield (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
choke me
#else
char (*f) () = sched_yield;
#endif
#ifdef __cplusplus
}
#endif
d30548 2
d30553 10
a30562 1
return f != sched_yield;
d30569 1
a30569 1
  (eval $ac_link) 2>&5
d30571 3
d30576 8
a30583 1
         { ac_try='test -s conftest$ac_exeext'
d30589 1
a30589 1
  ac_cv_func_sched_yield=yes
a30593 1
ac_cv_func_sched_yield=no
d30595 7
a30601 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d30603 4
a30606 12
echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
if test $ac_cv_func_sched_yield = yes; then
  :
else
  echo "$as_me:$LINENO: checking for library containing sched_yield" >&5
echo $ECHO_N "checking for library containing sched_yield... $ECHO_C" >&6
if test "${ac_cv_search_sched_yield+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_sched_yield=no
a30607 1
#line $LINENO "configure"
d30612 17
a30628 1
/* end confdefs.h.  */
a30629 11
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
int
main ()
{
sched_yield ();
d30636 1
a30636 1
  (eval $ac_link) 2>&5
d30638 3
d30643 8
a30650 1
         { ac_try='test -s conftest$ac_exeext'
d30656 1
a30656 1
  ac_cv_search_sched_yield="none required"
d30662 7
a30668 6
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_sched_yield" = no; then
  for ac_lib in rt; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d30675 2
a30676 7
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
d30680 8
a30687 1
sched_yield ();
d30694 1
a30694 1
  (eval $ac_link) 2>&5
d30696 3
d30701 8
a30708 1
         { ac_try='test -s conftest$ac_exeext'
d30714 1
a30714 2
  ac_cv_search_sched_yield="-l$ac_lib"
break
d30720 2
a30721 10
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done
fi
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_sched_yield" >&5
echo "${ECHO_T}$ac_cv_search_sched_yield" >&6
if test "$ac_cv_search_sched_yield" != no; then
  test "$ac_cv_search_sched_yield" = "none required" || LIBS="$ac_cv_search_sched_yield $LIBS"
  LOAD_LIBS="$LOAD_LIBS -lrt"
d30724 3
a30726 17
fi


# XXX
# We can't check for pthreads in the same way we did the test for sched_yield
# because the Solaris C library includes pthread interfaces which are not
# thread-safe.  For that reason we always add -lpthread if we find a pthread
# library.  Also we can't depend on any specific call existing (pthread_create,
# for example), as it may be #defined in an include file -- OSF/1 (Tru64) has
# this problem.
echo "$as_me:$LINENO: checking for main in -lpthread" >&5
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
if test "${ac_cv_lib_pthread_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
a30727 1
#line $LINENO "configure"
d30734 1
a30734 1

d30738 7
a30744 1
main ();
d30751 1
a30751 1
  (eval $ac_link) 2>&5
d30753 3
d30758 8
a30765 1
         { ac_try='test -s conftest$ac_exeext'
d30771 1
a30771 1
  ac_cv_lib_pthread_main=yes
a30775 1
ac_cv_lib_pthread_main=no
d30777 3
a30779 7
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
if test $ac_cv_lib_pthread_main = yes; then
  LOAD_LIBS="$LOAD_LIBS -lpthread"
a30780 1
ac_cv_lib_pthread=ac_cv_lib_pthread_main
d30782 2
a30783 11

# XXX
# We could be more exact about whether these libraries are needed, but we don't
# bother -- if they exist, we load them.
echo "$as_me:$LINENO: checking for main in -lm" >&5
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
if test "${ac_cv_lib_m_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
a30784 1
#line $LINENO "configure"
a30790 1

d30794 7
a30800 1
main ();
d30805 3
a30807 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d30809 3
d30814 8
a30821 1
         { ac_try='test -s conftest$ac_exeext'
d30827 1
a30827 1
  ac_cv_lib_m_main=yes
a30831 4
ac_cv_lib_m_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d30833 1
a30833 4
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
if test $ac_cv_lib_m_main = yes; then
  LOAD_LIBS="$LOAD_LIBS -lm"
a30834 1
ac_cv_lib_m=ac_cv_lib_m_main
d30836 2
a30837 7
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
a30838 1
#line $LINENO "configure"
d30845 1
a30845 1

d30849 7
a30855 1
main ();
d30862 1
a30862 1
  (eval $ac_link) 2>&5
d30864 3
d30869 8
a30876 1
         { ac_try='test -s conftest$ac_exeext'
d30882 1
a30882 1
  ac_cv_lib_socket_main=yes
a30886 4
ac_cv_lib_socket_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d30888 2
a30889 4
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
if test $ac_cv_lib_socket_main = yes; then
  LOAD_LIBS="$LOAD_LIBS -lsocket"
a30890 1
ac_cv_lib_socket=ac_cv_lib_socket_main
d30892 5
a30896 7
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
a30897 1
#line $LINENO "configure"
d30904 1
a30904 1

d30908 7
a30914 1
main ();
d30921 1
a30921 1
  (eval $ac_link) 2>&5
d30923 3
d30928 8
a30935 1
         { ac_try='test -s conftest$ac_exeext'
d30941 1
a30941 1
  ac_cv_lib_nsl_main=yes
a30945 71
ac_cv_lib_nsl_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
if test $ac_cv_lib_nsl_main = yes; then
  LOAD_LIBS="$LOAD_LIBS -lnsl"
fi
ac_cv_lib_nsl=ac_cv_lib_nsl_main


# Check for mutexes.
# We do this here because it changes $LIBS.


# Mutexes we don't test for, but want the #defines to exist for
# other ports.





echo "$as_me:$LINENO: checking for mutexes" >&5
echo $ECHO_N "checking for mutexes... $ECHO_C" >&6
if test "${db_cv_mutex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

db_cv_mutex=no

orig_libs=$LIBS

# User-specified POSIX or UI mutexes.
#
# There are two different reasons to specify mutexes: First, the application
# is already using one type of mutex and doesn't want to mix-and-match (for
# example, on Solaris, which has POSIX, UI and LWP mutexes).  Second, the
# applications POSIX pthreads mutexes don't support inter-process locking,
# but the application wants to use them anyway (for example, current Linux
# and *BSD systems).
#
# If we're on Solaris, we insist that -lthread or -lpthread be used.  The
# problem is the Solaris C library has UI/POSIX interface stubs, but they're
# broken, configuring them for inter-process mutexes doesn't return an error,
# but it doesn't work either.   Otherwise, we try first without the library
# and then with it: there's some information that SCO/UnixWare/OpenUNIX needs
# this. [#4950]
#
# Test for LWP threads before testing for UI/POSIX threads, we prefer them
# on Solaris.  There's a bug in SunOS 5.7 where applications get pwrite, not
# pwrite64, if they load the C library before the appropriate threads library,
# e.g., tclsh using dlopen to load the DB library.  By using LWP threads we
# avoid answering lots of user questions, not to mention the bugs.
if test "$db_cv_posixmutexes" = yes; then
	case "$host_os" in
	solaris*)
		db_cv_mutex="posix_library_only";;
	*)
		db_cv_mutex="posix_only";;
	esac
fi

if test "$db_cv_uimutexes" = yes; then
	case "$host_os" in
	solaris*)
		db_cv_mutex="ui_library_only";;
	*)
		db_cv_mutex="ui_only";;
	esac
d30947 2
a30948 4

# User-specified Win32 mutexes (MinGW build)
if test "$db_cv_mingw" = "yes"; then
	db_cv_mutex=win32/gcc
d30951 5
a30955 1
# LWP threads: _lwp_XXX
a30957 1
#line $LINENO "configure"
d30964 1
a30964 1
#include <synch.h>
d30969 4
a30972 7
	static lwp_mutex_t mi = SHAREDMUTEX;
	static lwp_cond_t ci = SHAREDCV;
	lwp_mutex_t mutex = mi;
	lwp_cond_t cond = ci;
	exit (
	_lwp_mutex_lock(&mutex) ||
	_lwp_mutex_unlock(&mutex));
d30980 1
a30980 1
  (eval $ac_link) 2>&5
d30982 3
d30987 8
a30994 1
         { ac_try='test -s conftest$ac_exeext'
d31000 1
a31000 1
  db_cv_mutex="Solaris/lwp"
d31006 2
a31007 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d31010 2
a31011 4
# UI threads: thr_XXX
#
# Try with and without the -lthread library.
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
a31012 1
#line $LINENO "configure"
d31019 1
a31019 2
#include <thread.h>
#include <synch.h>
d31024 3
a31026 8
	mutex_t mutex;
	cond_t cond;
	int type = USYNC_PROCESS;
	exit (
	mutex_init(&mutex, type, NULL) ||
	cond_init(&cond, type, NULL) ||
	mutex_lock(&mutex) ||
	mutex_unlock(&mutex));
d31034 1
a31034 1
  (eval $ac_link) 2>&5
d31036 3
d31041 8
a31048 1
         { ac_try='test -s conftest$ac_exeext'
d31054 1
a31054 1
  db_cv_mutex="UI/threads"
d31060 2
a31061 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d31063 3
a31065 3
if test "$db_cv_mutex" = no -o \
    "$db_cv_mutex" = "ui_only" -o "$db_cv_mutex" = "ui_library_only"; then
LIBS="$LIBS -lthread"
a31066 1
#line $LINENO "configure"
a31072 2
#include <thread.h>
#include <synch.h>
d31077 3
a31079 8
	mutex_t mutex;
	cond_t cond;
	int type = USYNC_PROCESS;
	exit (
	mutex_init(&mutex, type, NULL) ||
	cond_init(&cond, type, NULL) ||
	mutex_lock(&mutex) ||
	mutex_unlock(&mutex));
d31087 1
a31087 1
  (eval $ac_link) 2>&5
d31089 3
d31094 8
a31101 1
         { ac_try='test -s conftest$ac_exeext'
d31107 1
a31107 1
  db_cv_mutex="UI/threads/library"
d31113 2
a31114 7
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS="$orig_libs"
fi
if test "$db_cv_mutex" = "ui_only" -o "$db_cv_mutex" = "ui_library_only"; then
	{ { echo "$as_me:$LINENO: error: unable to find UI mutex interfaces" >&5
echo "$as_me: error: unable to find UI mutex interfaces" >&2;}
   { (exit 1); exit 1; }; }
d31117 3
a31119 12
# POSIX.1 pthreads: pthread_XXX
#
# Try with and without the -lpthread library.  If the user specified we use
# POSIX pthreads mutexes, and we fail to find the full interface, try and
# configure for just intra-process support.
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then

if test "$cross_compiling" = yes; then
  db_cv_mutex="no"
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d31126 12
a31137 19
#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d31140 13
a31152 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d31155 2
a31156 1
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
d31162 1
a31162 1
  db_cv_mutex=""POSIX/pthreads""
d31164 1
a31164 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d31168 1
a31168 1
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a31169 4
fi
if test "$db_cv_mutex" = no -o \
    "$db_cv_mutex" = "posix_only" -o "$db_cv_mutex" = "posix_library_only"; then
	LIBS="$LIBS -lpthread"
d31171 3
a31173 5
if test "$cross_compiling" = yes; then
  db_cv_mutex="no"
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d31180 12
a31191 19
#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d31194 13
a31206 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d31209 2
a31210 1
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
d31216 1
a31216 1
  db_cv_mutex=""POSIX/pthreads/library""
d31218 1
a31218 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d31222 1
a31222 3
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
	LIBS="$orig_libs"
a31223 1
if test "$db_cv_mutex" = "posix_only"; then
d31225 3
a31227 3
if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a31233 1
#include <pthread.h>
d31238 5
a31242 15
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d31248 3
a31250 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d31252 3
d31257 8
a31264 1
         { ac_try='test -s conftest$ac_exeext'
d31270 1
a31270 1
  db_cv_mutex=""POSIX/pthreads/private""
d31276 6
a31281 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d31288 12
a31299 17
#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d31302 13
a31314 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d31317 2
a31318 1
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
d31324 1
a31324 1
  db_cv_mutex=""POSIX/pthreads/private""
d31326 1
a31326 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d31330 1
a31330 1
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a31331 4
fi
if test "$db_cv_mutex" = "posix_only" -o \
    "$db_cv_mutex" = "posix_library_only"; then
	LIBS="$LIBS -lpthread"
d31333 3
a31335 3
if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a31341 1
#include <pthread.h>
d31346 5
a31350 15
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d31356 3
a31358 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d31360 3
d31365 8
a31372 1
         { ac_try='test -s conftest$ac_exeext'
d31378 1
a31378 1
  db_cv_mutex=""POSIX/pthreads/library/private""
d31384 6
a31389 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d31396 12
a31407 17
#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d31410 13
a31422 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d31425 2
a31426 1
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
d31432 1
a31432 1
  db_cv_mutex=""POSIX/pthreads/library/private""
d31434 1
a31434 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d31438 1
a31438 3
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
	LIBS="$orig_libs"
d31441 1
a31441 9
if test "$db_cv_mutex" = "posix_only" -o \
    "$db_cv_mutex" = "posix_library_only"; then
	{ { echo "$as_me:$LINENO: error: unable to find POSIX 1003.1 mutex interfaces" >&5
echo "$as_me: error: unable to find POSIX 1003.1 mutex interfaces" >&2;}
   { (exit 1); exit 1; }; }
fi

# msemaphore: HPPA only
# Try HPPA before general msem test, it needs special alignment.
a31443 1
#line $LINENO "configure"
a31449 1
#include <sys/mman.h>
d31454 1
a31454 6
#if defined(__hppa)
	typedef msemaphore tsl_t;
	msemaphore x;
	msem_init(&x, 0);
	msem_lock(&x, 0);
	msem_unlock(&x, 0);
d31464 3
a31466 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d31468 3
d31473 8
a31480 1
         { ac_try='test -s conftest$ac_exeext'
d31486 1
a31486 1
  db_cv_mutex="HP/msem_init"
d31492 1
a31492 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d31495 1
a31495 1
# msemaphore: AIX, OSF/1
a31497 1
#line $LINENO "configure"
a31503 2
#include <sys/types.h>
#include <sys/mman.h>
d31508 1
a31508 5
	typedef msemaphore tsl_t;
	msemaphore x;
	msem_init(&x, 0);
	msem_lock(&x, 0);
	msem_unlock(&x, 0);
d31510 3
d31518 3
a31520 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d31522 3
d31527 8
a31534 1
         { ac_try='test -s conftest$ac_exeext'
d31540 1
a31540 1
  db_cv_mutex="UNIX/msem_init"
d31546 1
a31546 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d31549 1
a31549 1
# ReliantUNIX
a31550 1
LIBS="$LIBS -lmproc"
a31551 1
#line $LINENO "configure"
a31557 1
#include <ulocks.h>
d31562 5
a31566 5
	typedef spinlock_t tsl_t;
	spinlock_t x;
	initspin(&x, 1);
	cspinlock(&x);
	spinunlock(&x);
d31571 14
a31584 4
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d31587 2
a31588 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
d31594 1
a31594 1
  db_cv_mutex="ReliantUNIX/initspin"
d31600 1
a31600 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS="$orig_libs"
d31603 1
a31603 1
# SCO: UnixWare has threads in libthread, but OpenServer doesn't.
a31605 1
#line $LINENO "configure"
d31616 1
a31616 1
#if defined(__USLC__)
d31628 1
a31628 1
  (eval $ac_compile) 2>&5
d31630 3
d31635 8
a31642 1
         { ac_try='test -s conftest.$ac_objext'
d31648 1
a31648 1
  db_cv_mutex="SCO/x86/cc-assembly"
d31654 1
a31654 1
rm -f conftest.$ac_objext conftest.$ac_ext
d31657 1
a31657 1
# abilock_t: SGI
a31659 1
#line $LINENO "configure"
a31665 1
#include <abi_mutex.h>
d31670 5
a31674 5
	typedef abilock_t tsl_t;
	abilock_t x;
	init_lock(&x);
	acquire_lock(&x);
	release_lock(&x);
d31680 3
a31682 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d31684 3
d31689 8
a31696 1
         { ac_try='test -s conftest$ac_exeext'
d31702 1
a31702 1
  db_cv_mutex="SGI/init_lock"
d31708 1
a31708 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d31711 2
a31712 5
# sema_t: Solaris
# The sema_XXX calls do not work on Solaris 5.5.  I see no reason to ever
# turn this test on, unless we find some other platform that uses the old
# POSIX.1 interfaces.  (I plan to move directly to pthreads on Solaris.)
if test "$db_cv_mutex" = DOESNT_WORK; then
a31713 1
#line $LINENO "configure"
a31719 1
#include <synch.h>
d31724 5
a31728 5
	typedef sema_t tsl_t;
	sema_t x;
	sema_init(&x, 1, USYNC_PROCESS, NULL);
	sema_wait(&x);
	sema_post(&x);
d31734 3
a31736 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d31738 3
d31743 8
a31750 1
         { ac_try='test -s conftest$ac_exeext'
d31756 1
a31756 1
  db_cv_mutex="UNIX/sema_init"
d31761 180
a31940 3
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
d31942 4
a31945 9
# _lock_try/_lock_clear: Solaris
# On Solaris systems without Pthread or UI mutex interfaces, DB uses the
# undocumented _lock_try _lock_clear function calls instead of either the
# sema_trywait(3T) or sema_wait(3T) function calls.  This is because of
# problems in those interfaces in some releases of the Solaris C library.
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
a31946 3
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
a31947 4
#include <sys/machlock.h>
int
main ()
{
d31949 7
a31955 4
	typedef lock_t tsl_t;
	lock_t x;
	_lock_try(&x);
	_lock_clear(&x);
d31957 5
a31961 3
  ;
  return 0;
}
a31962 16
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="Solaris/_lock_try"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a31963 3
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
d31965 4
a31968 5
# _check_lock/_clear_lock: AIX
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
a31969 3
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
a31970 4
#include <sys/atomic_op.h>
int
main ()
{
d31972 6
a31977 3
	int x;
	_check_lock(&x,0,1);
	_clear_lock(&x,0);
d31979 4
a31982 3
  ;
  return 0;
}
a31983 16
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="AIX/_check_lock"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a31984 3
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
d31986 4
a31989 5
# _spin_lock_try/_spin_unlock: Apple/Darwin
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
a31990 3
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
a31991 3
int
main ()
{
d31993 6
a31998 3
	int x;
	_spin_lock_try(&x);
	_spin_unlock(&x);
d32000 4
a32003 3
  ;
  return 0;
}
a32004 16
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="Darwin/_spin_lock_try"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a32005 3
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
d32007 6
a32012 5
# Tru64/cc
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
a32013 3
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
a32014 3
int
main ()
{
d32016 5
a32020 5
#if defined(__alpha) && defined(__DECC)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
d32022 3
a32024 3
  ;
  return 0;
}
a32025 16
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="Tru64/cc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d32027 2
a32028 2
fi
rm -f conftest.$ac_objext conftest.$ac_ext
d32031 17
a32047 9
# Alpha/gcc
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
a32048 3
int
main ()
{
a32049 5
#if defined(__alpha) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
d32051 4
a32054 3
  ;
  return 0;
}
d32056 2
a32057 16
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="ALPHA/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d32059 6
a32064 3
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
a32065 9
# ARM/gcc: Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
a32066 3
int
main ()
{
a32067 5
#if defined(__arm__) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
a32068 20
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="ARM/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a32069 3
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
d32071 9
a32079 4
# PaRisc/gcc: HP/UX
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d32085 3
d32089 4
a32092 3
int
main ()
{
d32094 2
a32095 2
#if (defined(__hppa) || defined(__hppa__)) && defined(__GNUC__)
	exit(0);
d32097 1
a32097 1
	FAIL TO COMPILE/LINK
d32100 19
a32118 2
  ;
  return 0;
d32120 1
a32120 31
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="HPPA/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# PPC/gcc:
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d32125 1
a32125 7

#if (defined(__powerpc__) || defined(__ppc__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

d32130 3
a32132 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d32134 3
d32139 8
a32146 1
         { ac_try='test -s conftest.$ac_objext'
d32152 1
a32152 1
  db_cv_mutex="PPC/gcc-assembly"
d32157 1
d32159 2
a32160 1
rm -f conftest.$ac_objext conftest.$ac_ext
d32162 15
d32178 2
a32179 9
# Sparc/gcc: SunOS, Solaris
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
a32180 3
int
main ()
{
a32181 5
#if defined(__sparc__) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif
a32182 20
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="Sparc/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a32183 3
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
d32185 9
a32193 4
# 68K/gcc: SunOS
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d32199 3
d32203 4
a32206 3
int
main ()
{
d32208 2
a32209 2
#if (defined(mc68020) || defined(sun3)) && defined(__GNUC__)
	exit(0);
d32211 1
a32211 1
	FAIL TO COMPILE/LINK
d32214 19
a32232 2
  ;
  return 0;
d32234 1
a32234 31
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="68K/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# x86/gcc: FreeBSD, NetBSD, BSD/OS, Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d32239 1
a32239 7

#if (defined(i386) || defined(__i386__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

d32244 3
a32246 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d32248 3
d32253 8
a32260 1
         { ac_try='test -s conftest.$ac_objext'
d32266 1
a32266 1
  db_cv_mutex="x86/gcc-assembly"
d32271 1
d32273 2
a32274 1
rm -f conftest.$ac_objext conftest.$ac_ext
d32276 22
d32299 14
a32312 4
# S390/cc: IBM OS/390 Unix
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d32318 3
d32322 16
a32337 2
int
main ()
d32339 9
a32347 3

#if defined(__MVS__) && defined(__IBMC__)
	exit(0);
d32349 4
a32352 1
	FAIL TO COMPILE/LINK
d32355 4
d32363 3
a32365 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d32367 3
d32372 8
a32379 1
         { ac_try='test -s conftest.$ac_objext'
d32385 1
a32385 1
  db_cv_mutex="S390/cc-assembly"
d32390 4
d32395 7
a32401 1
rm -f conftest.$ac_objext conftest.$ac_ext
d32403 3
d32407 12
a32418 4
# S390/gcc: Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d32424 16
d32441 3
a32443 2
int
main ()
d32445 9
a32453 3

#if defined(__s390__) && defined(__GNUC__)
	exit(0);
d32455 4
a32458 1
	FAIL TO COMPILE/LINK
d32461 4
d32469 3
a32471 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d32473 3
d32478 8
a32485 1
         { ac_try='test -s conftest.$ac_objext'
d32491 1
a32491 1
  db_cv_mutex="S390/gcc-assembly"
d32496 4
d32501 7
a32507 1
rm -f conftest.$ac_objext conftest.$ac_ext
d32509 5
d32515 12
a32526 4
# ia86/gcc: Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d32532 16
d32549 3
a32551 2
int
main ()
d32553 9
a32561 3

#if defined(__ia64) && defined(__GNUC__)
	exit(0);
d32563 4
a32566 1
	FAIL TO COMPILE/LINK
d32569 4
d32577 3
a32579 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d32581 3
d32586 8
a32593 1
         { ac_try='test -s conftest.$ac_objext'
d32599 1
a32599 1
  db_cv_mutex="ia64/gcc-assembly"
d32604 4
d32609 7
a32615 1
rm -f conftest.$ac_objext conftest.$ac_ext
d32617 11
d32629 10
a32638 4
# uts/cc: UTS
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d32644 8
d32653 11
a32663 2
int
main ()
d32665 9
a32673 3

#if defined(_UTS)
	exit(0);
d32675 4
a32678 1
	FAIL TO COMPILE/LINK
d32681 4
d32689 3
a32691 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d32693 3
d32698 8
a32705 1
         { ac_try='test -s conftest.$ac_objext'
d32711 1
a32711 1
  db_cv_mutex="UTS/cc-assembly"
d32716 1
d32718 2
a32719 1
rm -f conftest.$ac_objext conftest.$ac_ext
d32721 5
a32725 150

# default to UNIX fcntl system call mutexes.
if test "$db_cv_mutex" = no; then
	db_cv_mutex="UNIX/fcntl"
fi

fi
echo "$as_me:$LINENO: result: $db_cv_mutex" >&5
echo "${ECHO_T}$db_cv_mutex" >&6

case "$db_cv_mutex" in
68K/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_68K_GCC_ASSEMBLY 1
_ACEOF


;;
AIX/_check_lock)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_AIX_CHECK_LOCK 1
_ACEOF


;;
Darwin/_spin_lock_try)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_DARWIN_SPIN_LOCK_TRY 1
_ACEOF


;;
ALPHA/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1
_ACEOF


;;
ARM/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_ARM_GCC_ASSEMBLY 1
_ACEOF


;;
HP/msem_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_HPPA_MSEM_INIT 1
_ACEOF


;;
HPPA/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1
_ACEOF


;;
ia64/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1
_ACEOF


;;
POSIX/pthreads)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF


;;
POSIX/pthreads/private)	ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF



			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_THREAD_ONLY 1
_ACEOF


;;
POSIX/pthreads/library)	LIBS="$LIBS -lpthread"
			ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF


;;
POSIX/pthreads/library/private)
			LIBS="$LIBS -lpthread"
			ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF



			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_THREAD_ONLY 1
_ACEOF


;;
PPC/gcc-assembly)
			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PPC_GCC_ASSEMBLY 1
_ACEOF


;;
ReliantUNIX/initspin)	LIBS="$LIBS -lmproc"
			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1
_ACEOF


;;
S390/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_S390_CC_ASSEMBLY 1
_ACEOF


;;
S390/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_S390_GCC_ASSEMBLY 1
_ACEOF


;;
SCO/x86/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1
_ACEOF


;;
SGI/init_lock)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SGI_INIT_LOCK 1
d32728 2
a32729 1

d32731 1
a32731 4
Solaris/_lock_try)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1
_ACEOF
d32733 6
d32740 2
a32741 4
;;
Solaris/lwp)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SOLARIS_LWP 1
d32743 9
d32753 1
d32755 3
a32757 4
;;
Sparc/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1
d32759 26
d32786 10
a32795 5

;;
Tru64/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_TRU64_CC_ASSEMBLY 1
a32798 6
;;

UI/threads)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UI_THREADS 1
_ACEOF
d32800 1
d32802 9
d32812 1
a32812 5
UI/threads/library)	LIBS="$LIBS -lthread"
			ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UI_THREADS 1
_ACEOF
d32814 9
d32824 2
a32825 4
;;
UNIX/msem_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_MSEM_INIT 1
d32827 9
d32837 1
d32839 3
a32841 4
;;
UNIX/sema_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SEMA_INIT 1
d32843 26
d32870 11
a32880 5

;;
UTS/cc-assembly)	ADDITIONAL_OBJS="uts4.cc${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UTS_CC_ASSEMBLY 1
a32883 5
;;
win32)			ADDITIONAL_OBJS="mut_win32${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_WIN32 1
_ACEOF
d32885 2
d32888 4
a32891 5
;;
win32/gcc)		ADDITIONAL_OBJS="mut_win32${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_WIN32_GCC 1
_ACEOF
d32893 2
d32896 13
a32908 4
;;
x86/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_X86_GCC_ASSEMBLY 1
d32910 15
d32926 3
a32928 7

;;
UNIX/fcntl)		{ echo "$as_me:$LINENO: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&5
echo "$as_me: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&2;}
			ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_FCNTL 1
d32930 26
d32957 29
a32985 13

;;
*)			{ { echo "$as_me:$LINENO: error: Unknown mutex interface: $db_cv_mutex" >&5
echo "$as_me: error: Unknown mutex interface: $db_cv_mutex" >&2;}
   { (exit 1); exit 1; }; };;
esac

if test "$db_cv_mutex" != "UNIX/fcntl"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_THREADS 1
_ACEOF


d32988 12
d33001 3
a33003 46
# There are 3 classes of mutexes:
#
# 1: Mutexes requiring no cleanup, for example, test-and-set mutexes.
# 2: Mutexes that must be destroyed, but which don't hold permanent system
#    resources, for example, pthread mutexes on MVS aka OS/390 aka z/OS.
# 3: Mutexes that must be destroyed, even after the process is gone, for
#    example, pthread mutexes on QNX and binary semaphores on VxWorks.
#
# DB cannot currently distinguish between #2 and #3 because DB does not know
# if the application is running environment recovery as part of startup and
# does not need to do cleanup, or if the environment is being removed and/or
# recovered in a loop in the application, and so does need to clean up.  If
# we get it wrong, we're going to call the mutex destroy routine on a random
# piece of memory, which usually works, but just might drop core.  For now,
# we group #2 and #3 into the HAVE_MUTEX_SYSTEM_RESOURCES define, until we
# have a better solution or reason to solve this in a general way -- so far,
# the places we've needed to handle this are few.



case "$host_os$db_cv_mutex" in
*qnx*POSIX/pthread*|openedition*POSIX/pthread*)
	cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SYSTEM_RESOURCES 1
_ACEOF
;;
esac

# Checks for system functions for which we have replacements.
#
# XXX
# The only portable getcwd call is getcwd(char *, size_t), where the
# buffer is non-NULL -- Solaris can't handle a NULL buffer, and they
# deleted getwd().






for ac_func in getcwd getopt memcmp memcpy memmove raise
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d33006 2
a33008 1
#line $LINENO "configure"
d33014 9
a33022 29
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

d33026 1
a33026 1
return f != $ac_func;
d33031 3
a33033 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d33035 3
d33040 8
a33047 1
         { ac_try='test -s conftest$ac_exeext'
d33053 1
a33053 1
  eval "$as_ac_var=yes"
a33057 13
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
d33059 1
a33059 16
done







for ac_func in snprintf strcasecmp strdup strerror vsnprintf
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
a33060 1
#line $LINENO "configure"
d33066 10
a33075 29
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

d33079 1
a33079 1
return f != $ac_func;
d33084 3
a33086 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d33088 3
d33093 8
a33100 1
         { ac_try='test -s conftest$ac_exeext'
d33106 1
a33106 1
  eval "$as_ac_var=yes"
a33110 1
eval "$as_ac_var=no"
d33112 3
a33114 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d33116 3
a33118 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d33120 2
a33121 25
else
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
fi
done



# Check for system functions we optionally use.






for ac_func in _fstati64 clock_gettime directio getrusage gettimeofday getuid
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
a33122 31
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif
d33124 24
d33151 1
a33151 1
return f != $ac_func;
d33156 3
a33158 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d33160 3
d33165 8
a33172 1
         { ac_try='test -s conftest$ac_exeext'
d33178 1
a33178 1
  eval "$as_ac_var=yes"
a33182 11
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

d33184 1
a33184 16
done







for ac_func in pstat_getdynamic sched_yield select strtoul sysconf yield
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
a33185 1
#line $LINENO "configure"
d33191 10
a33200 29
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

d33204 1
a33204 1
return f != $ac_func;
d33209 3
a33211 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d33213 3
d33218 8
a33225 1
         { ac_try='test -s conftest$ac_exeext'
d33231 1
a33231 1
  eval "$as_ac_var=yes"
a33235 1
eval "$as_ac_var=no"
d33237 3
a33239 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d33241 6
a33246 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d33250 2
a33251 1
done
d33254 17
a33270 8
# Pread/pwrite.
# HP-UX has pread/pwrite, but it doesn't work with largefile support.
# NCR's version of System V R 4.3 has pread/pwrite symbols, but no support.
case "$host_os-$host_vendor" in
hpux*|sysv4.3*-ncr)
	{ echo "$as_me:$LINENO: WARNING: pread/pwrite interfaces ignored on $host_os-$host_vendor." >&5
echo "$as_me: WARNING: pread/pwrite interfaces ignored on $host_os-$host_vendor." >&2;};;
*)
d33273 1
a33273 1
for ac_func in pread pwrite
a33281 1
#line $LINENO "configure"
d33287 4
d33295 1
d33301 3
d33334 1
a33334 1
  (eval $ac_link) 2>&5
d33336 3
d33341 8
a33348 1
         { ac_try='test -s conftest$ac_exeext'
d33361 2
a33362 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d33371 2
d33376 5
a33380 60
esac

# Check for fcntl(2) to deny child process access to file descriptors.
echo "$as_me:$LINENO: checking for fcntl/F_SETFD" >&5
echo $ECHO_N "checking for fcntl/F_SETFD... $ECHO_C" >&6
if test "${db_cv_fcntl_f_setfd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#include <fcntl.h>
int
main ()
{

	fcntl(1, F_SETFD, 1);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_fcntl_f_setfd=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

db_cv_fcntl_f_setfd=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $db_cv_fcntl_f_setfd" >&5
echo "${ECHO_T}$db_cv_fcntl_f_setfd" >&6
if test "$db_cv_fcntl_f_setfd" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_FCNTL_F_SETFD 1
_ACEOF



fi
a33381 4
# A/UX has a broken getopt(3).
case "$host_os" in
aux*)	LIBOBJS="$LIBOBJS getopt.$ac_objext";;
esac
d33383 6
a33388 6
# Linux has a broken O_DIRECT flag, but we allow people to override it from
# the command line.
test_host_prw=yes
echo "$as_me:$LINENO: checking for open/O_DIRECT" >&5
echo $ECHO_N "checking for open/O_DIRECT... $ECHO_C" >&6
if test "${db_cv_open_o_direct+set}" = set; then
d33391 1
a33391 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d33397 36
a33433 2
#include <sys/types.h>
#include <fcntl.h>
d33437 1
a33437 3

	open("a", O_RDONLY | O_DIRECT, 0);

d33444 1
a33444 1
  (eval $ac_link) 2>&5
d33446 3
d33451 8
a33458 1
         { ac_try='test -s conftest$ac_exeext'
d33464 1
a33464 1
  db_cv_open_o_direct=yes; test_host_prw=no
d33469 1
a33469 1
db_cv_open_o_direct=no
d33471 2
a33472 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d33474 5
a33478 13
echo "$as_me:$LINENO: result: $db_cv_open_o_direct" >&5
echo "${ECHO_T}$db_cv_open_o_direct" >&6
if test "$test_host_prw" = "no" -a "$db_cv_open_o_direct" = "yes"; then
	case "$host_os" in
	linux*)
		db_cv_open_o_direct=no;
		{ echo "$as_me:$LINENO: WARNING: O_DIRECT interface ignored on $host_os-$host_vendor." >&5
echo "$as_me: WARNING: O_DIRECT interface ignored on $host_os-$host_vendor." >&2;};;
	esac
fi
if test "$db_cv_open_o_direct" = "yes"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_O_DIRECT 1
a33480 2


d33482 1
a33483 4
# Check for largefile support.
# Check whether --enable-largefile or --disable-largefile was given.
if test "${enable_largefile+set}" = set; then
  enableval="$enable_largefile"
a33484 2
fi;
if test "$enable_largefile" != no; then
d33486 6
a33491 3
  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_CC+set}" = set; then
d33494 1
a33494 8
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
     	 # IRIX 6.2 and later do not support large files by default,
     	 # so use the C compiler's -n32 option if that helps.
         cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d33500 37
a33536 9
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
d33540 1
a33540 1

d33545 3
a33547 3
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d33549 3
d33554 2
a33555 1
         { ac_try='test -s conftest.$ac_objext'
d33560 2
a33561 16
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext
     	 CC="$CC -n32"
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
d33567 1
a33567 1
  ac_cv_sys_largefile_CC=' -n32'; break
d33572 1
d33574 12
a33585 6
rm -f conftest.$ac_objext
         break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
d33587 15
a33601 5
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi
d33603 6
a33608 3
  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
a33610 2
  while :; do
  ac_cv_sys_file_offset_bits=no
a33611 1
#line $LINENO "configure"
d33617 37
a33653 9
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
d33657 1
a33657 1

d33662 3
a33664 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d33666 3
d33671 8
a33678 1
         { ac_try='test -s conftest.$ac_objext'
d33684 1
a33684 1
  break
d33689 4
d33694 5
a33698 4
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
a33699 16
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{
a33700 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_file_offset_bits=64; break
d33702 1
a33702 3
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

a33703 2
rm -f conftest.$ac_objext conftest.$ac_ext
  break
d33705 7
a33712 3
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
if test "$ac_cv_sys_file_offset_bits" != no; then
d33714 5
a33718 2
cat >>confdefs.h <<_ACEOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
d33721 80
a33800 5
fi
rm -f conftest*
  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_large_files+set}" = set; then
a33802 2
  while :; do
  ac_cv_sys_large_files=no
a33803 1
#line $LINENO "configure"
d33809 37
a33845 9
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
d33849 1
a33849 1

d33854 3
a33856 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d33858 3
d33863 8
a33870 1
         { ac_try='test -s conftest.$ac_objext'
d33876 1
a33876 1
  break
d33881 4
d33886 13
a33898 3
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d33904 8
a33911 10
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
d33915 1
a33915 1

d33920 3
a33922 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d33924 3
d33929 8
a33936 1
         { ac_try='test -s conftest.$ac_objext'
d33942 1
a33942 1
  ac_cv_sys_large_files=1; break
d33947 1
d33949 3
a33951 3
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
d33953 5
a33957 10
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
if test "$ac_cv_sys_large_files" != no; then

cat >>confdefs.h <<_ACEOF
#define _LARGE_FILES $ac_cv_sys_large_files
_ACEOF

fi
rm -f conftest*
d33960 6
a33965 26

# Figure out how to create shared regions.
#
# First, we look for mmap.
#
# BSD/OS has mlock(2), but it doesn't work until the 4.1 release.
#
# Nextstep (version 3.3) apparently supports mmap(2) (the mmap symbol
# is defined in the C library) but does not support munmap(2).  Don't
# try to use mmap if we can't find munmap.
#
# Ultrix has mmap(2), but it doesn't work.
mmap_ok=no
case "$host_os" in
bsdi3*|bsdi4.0)
	{ echo "$as_me:$LINENO: WARNING: mlock(2) interface ignored on $host_os-$host_vendor." >&5
echo "$as_me: WARNING: mlock(2) interface ignored on $host_os-$host_vendor." >&2;}
	mmap_ok=yes


for ac_func in mmap munmap
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
a33968 1
#line $LINENO "configure"
d33974 4
d33979 1
a33979 1
    which can conflict with char $ac_func (); below.
d33982 1
d33988 3
d33998 1
a33998 1
char $ac_func ();
d34002 1
a34002 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d34005 1
a34005 1
char (*f) () = $ac_func;
d34014 1
a34014 1
return f != $ac_func;
d34021 1
a34021 1
  (eval $ac_link) 2>&5
d34023 3
d34028 8
a34035 1
         { ac_try='test -s conftest$ac_exeext'
d34041 1
a34041 1
  eval "$as_ac_var=yes"
d34046 1
a34046 1
eval "$as_ac_var=no"
d34048 2
a34049 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d34051 4
a34054 7
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

a34055 9
  mmap_ok=no
fi
done
;;
ultrix*)
	{ echo "$as_me:$LINENO: WARNING: mmap(2) interface ignored on $host_os-$host_vendor." >&5
echo "$as_me: WARNING: mmap(2) interface ignored on $host_os-$host_vendor." >&2;};;
*)
	mmap_ok=yes
d34057 3
a34059 7

for ac_func in mlock munlock
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d34062 3
a34064 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d34070 1
a34070 9
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
a34073 1
{
d34077 1
a34077 13
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

d34081 1
a34081 1
return f != $ac_func;
d34088 1
a34088 1
  (eval $ac_link) 2>&5
d34090 3
d34095 8
a34102 1
         { ac_try='test -s conftest$ac_exeext'
d34108 1
a34108 1
  eval "$as_ac_var=yes"
d34113 1
a34113 1
eval "$as_ac_var=no"
d34115 3
a34117 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d34119 3
a34121 3
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d34123 1
a34123 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d34126 8
d34135 10
a34144 1
done
d34148 1
a34148 6
for ac_func in mmap munmap
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d34151 114
a34265 1
#line $LINENO "configure"
a34270 28
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif
d34275 16
a34290 1
return f != $ac_func;
d34297 1
a34297 1
  (eval $ac_link) 2>&5
d34299 3
d34304 8
a34311 1
         { ac_try='test -s conftest$ac_exeext'
d34317 1
a34317 1
  eval "$as_ac_var=yes"
d34322 1
a34322 13
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  mmap_ok=no
d34324 2
a34325 23
done
;;
esac

# Second, we look for shmget.
#
# SunOS has the shmget(2) interfaces, but there appears to be a missing
# #include <debug/debug.h> file, so we ignore them.
shmget_ok=no
case "$host_os" in
sunos*)
	{ echo "$as_me:$LINENO: WARNING: shmget(2) interface ignored on $host_os-$host_vendor." >&5
echo "$as_me: WARNING: shmget(2) interface ignored on $host_os-$host_vendor." >&2;};;
*)
	shmget_ok=yes

for ac_func in shmget
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
a34327 1
#line $LINENO "configure"
a34332 28
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif
d34334 16
a34349 7
int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
d34351 1
a34351 1
rm -f conftest.$ac_objext conftest$ac_exeext
d34356 1
a34356 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
d34362 1
a34362 1
  eval "$as_ac_var=yes"
d34364 2
a34365 1
  echo "$as_me: failed program was:" >&5
d34368 85
a34452 1
eval "$as_ac_var=no"
d34454 9
a34462 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d34464 5
a34468 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d34471 3
d34475 1
a34475 1
  shmget_ok=no
a34476 3
done
;;
esac
d34478 12
a34489 4
# We require either mmap/munmap(2) or shmget(2).
if test "$mmap_ok" = "no" -a "$shmget_ok" = "no"; then
	{ echo "$as_me:$LINENO: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
echo "$as_me: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&2;}
d34526 1
a34526 1
	db.h:$srcdir/../dbinc/db.in:$srcdir/../dbinc_auto/rpc_defs.in:$srcdir/../dbinc_auto/ext_def.in:$srcdir/../dbinc_auto/ext_prot.in"
d34529 1
a34529 1
	db.h:$srcdir/../dbinc/db.in:$srcdir/../dbinc_auto/rpc_defs.in:$srcdir/../dbinc_auto/ext_prot.in"
a34555 4
if test "$db_cv_rpm" = "yes"; then
	CREATE_LIST="$CREATE_LIST db.spec:../dist/db.spec.in"
fi

d34586 2
a34587 2
        "s/'/'\\\\''/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
d34592 1
a34592 1
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
d34622 1
a34622 1
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
d34626 1
a34626 1
s/^\([^=]*=[ 	]*\):*/\1/;
d34628 1
a34628 1
s/^[^=]*=[ 	]*$//;
d34639 1
a34639 1
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
d34683 1
d34686 1
a34686 1
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
d34705 1
a34705 1
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
d34884 1
d34891 1
a34891 1
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
d34894 1
a34894 1
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
d34920 2
a34921 2
This file was extended by Berkeley DB $as_me 4.2.52, which was
generated by GNU Autoconf 2.57.  Invocation command line was
d34965 1
a34965 1
                   instantiate the configuration file FILE
d34967 1
a34967 1
                   instantiate the configuration header FILE
d34980 2
a34981 2
Berkeley DB config.status 4.2.52
configured by $0, generated by GNU Autoconf 2.57,
d34984 1
a34984 2
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
d35189 2
a35205 1
s,@@LOAD_LIBS@@,$LOAD_LIBS,;t t
d35216 1
a35216 3
s,@@RPM_BUILD@@,$RPM_BUILD,;t t
s,@@RPM_POST_INSTALL@@,$RPM_POST_INSTALL,;t t
s,@@RPM_POST_UNINSTALL@@,$RPM_POST_UNINSTALL,;t t
d35218 1
a35218 1
s,@@db_cv_path_rpm_archive@@,$db_cv_path_rpm_archive,;t t
a35231 3
s,@@path_ldconfig@@,$path_ldconfig,;t t
s,@@ac_ct_path_ldconfig@@,$ac_ct_path_ldconfig,;t t
s,@@db_cv_path_ldconfig@@,$db_cv_path_ldconfig,;t t
d35241 2
a35242 2
s,@@db_cv_path_rpm@@,$db_cv_path_rpm,;t t
s,@@ac_ct_db_cv_path_rpm@@,$ac_ct_db_cv_path_rpm,;t t
a35258 2
s,@@DB_PROTO1@@,$DB_PROTO1,;t t
s,@@DB_PROTO2@@,$DB_PROTO2,;t t
d35285 3
a35287 6
s,@@TCFLAGS@@,$TCFLAGS,;t t
s,@@TCL_BIN_DIR@@,$TCL_BIN_DIR,;t t
s,@@TCL_SRC_DIR@@,$TCL_SRC_DIR,;t t
s,@@TCL_LIB_FILE@@,$TCL_LIB_FILE,;t t
s,@@TCL_TCLSH@@,$TCL_TCLSH,;t t
s,@@inttypes_decl@@,$inttypes_decl,;t t
d35297 2
d35300 2
a35301 2
s,@@db_align_t_decl@@,$db_align_t_decl,;t t
s,@@db_alignp_t_decl@@,$db_alignp_t_decl,;t t
d35303 6
d35339 1
a35339 1
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
d35341 1
a35341 1
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
d35359 3
a35361 3
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
d35363 1
a35363 1
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
d35370 4
a35373 4
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
d35389 4
a35392 4
         X"$as_dir" : 'X\(//\)[^/]' \| \
         X"$as_dir" : 'X\(//\)$' \| \
         X"$as_dir" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
d35430 39
a35468 6
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
d35490 1
a35490 1
                                     sed 's,.*/,,'` by configure."
d35499 2
a35500 2
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d35503 1
a35503 1
         echo $f;;
d35505 9
a35513 9
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d35516 1
a35516 1
         fi;;
d35558 2
a35559 2
ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='[ 	].*$,\1#\2'
d35563 1
a35563 1
ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
d35572 3
a35574 3
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
d35576 1
a35576 1
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
d35590 2
a35591 2
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d35594 2
a35595 1
         echo $f;;
d35597 9
a35605 9
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d35608 1
a35608 1
         fi;;
d35612 1
a35612 1
  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
d35635 1
a35635 1
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
d35637 1
a35637 1
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
d35651 1
a35651 1
s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
d35657 1
a35657 1
echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
d35666 1
a35666 1
  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
d35693 1
a35693 1
  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
d35727 4
a35730 4
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
d35746 4
a35749 4
         X"$as_dir" : 'X\(//\)[^/]' \| \
         X"$as_dir" : 'X\(//\)$' \| \
         X"$as_dir" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
@


1.1
log
@Initial revision
@
text
@a1 1

d3 3
a5 2
# Generated automatically using autoconf version 2.13 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
d7 2
d11 382
d394 15
a408 2
# Defaults:
ac_help=
d410 60
a469 38
# Any additions from configure.in:
ac_default_prefix=/usr/local/BerkeleyDB.@@DB_VERSION_MAJOR@@.@@DB_VERSION_MINOR@@
ac_help="$ac_help
  --disable-bigfile       Disable AIX, HP/UX, Solaris big files."
ac_help="$ac_help
  --enable-compat185      Build DB 1.85 compatibility API."
ac_help="$ac_help
  --enable-cxx            Build C++ API."
ac_help="$ac_help
  --enable-debug          Build a debugging version."
ac_help="$ac_help
  --enable-debug_rop      Build a version that logs read operations."
ac_help="$ac_help
  --enable-debug_wop      Build a version that logs write operations."
ac_help="$ac_help
  --enable-diagnostic     Build a version with run-time diagnostics."
ac_help="$ac_help
  --enable-dump185        Build db_dump185(1) to dump 1.85 databases."
ac_help="$ac_help
  --enable-dynamic        Build with dynamic libraries."
ac_help="$ac_help
  --enable-java           Build Java API."
ac_help="$ac_help
  --enable-posixmutexes   Force use of POSIX standard mutexes."
ac_help="$ac_help
  --enable-rpc            Build RPC client/server."
ac_help="$ac_help
  --enable-shared         Build with dynamic libraries."
ac_help="$ac_help
  --enable-tcl            Build Tcl API."
ac_help="$ac_help
  --enable-test           Configure to run the test suite."
ac_help="$ac_help
  --enable-uimutexes      Force use of Unix International mutexes."
ac_help="$ac_help
  --enable-umrw           Mask harmless unitialized memory read/writes."
ac_help="$ac_help
  --with-tcl=DIR          Directory location of tclConfig.sh."
d472 2
d476 1
a476 2
build=NONE
cache_file=./config.cache
a477 1
host=NONE
a478 1
nonopt=NONE
a486 1
target=NONE
d490 6
a508 7
# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12

a511 1

d519 1
a519 4
  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac
d523 1
a523 1
  case "$ac_option" in
d528 1
a528 1
    bindir="$ac_optarg" ;;
d531 1
a531 1
    ac_prev=build ;;
d533 1
a533 1
    build="$ac_optarg" ;;
d540 4
a543 1
    cache_file="$ac_optarg" ;;
d549 1
a549 1
    datadir="$ac_optarg" ;;
d552 1
a552 1
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
d554 5
a558 5
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;
d561 1
a561 1
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
d563 6
a568 6
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
d571 1
a571 1
    eval "enable_${ac_feature}='$ac_optarg'" ;;
d580 1
a580 1
    exec_prefix="$ac_optarg" ;;
d586 6
a591 54
  -help | --help | --hel | --he)
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
EOF
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
    exit 0 ;;
d594 1
a594 1
    ac_prev=host ;;
d596 1
a596 1
    host="$ac_optarg" ;;
d603 1
a603 1
    includedir="$ac_optarg" ;;
d608 1
a608 1
    infodir="$ac_optarg" ;;
d613 1
a613 1
    libdir="$ac_optarg" ;;
d620 1
a620 1
    libexecdir="$ac_optarg" ;;
d629 1
a629 1
    localstatedir="$ac_optarg" ;;
d634 1
a634 1
    mandir="$ac_optarg" ;;
d641 1
a641 1
  | --no-cr | --no-c)
d655 1
a655 1
    oldincludedir="$ac_optarg" ;;
d660 1
a660 1
    prefix="$ac_optarg" ;;
d667 1
a667 1
    program_prefix="$ac_optarg" ;;
d674 1
a674 1
    program_suffix="$ac_optarg" ;;
d691 1
a691 1
    program_transform_name="$ac_optarg" ;;
d701 1
a701 1
    sbindir="$ac_optarg" ;;
d712 1
a712 1
    sharedstatedir="$ac_optarg" ;;
d717 1
a717 1
    site="$ac_optarg" ;;
d722 1
a722 1
    srcdir="$ac_optarg" ;;
d729 1
a729 1
    sysconfdir="$ac_optarg" ;;
d732 1
a732 1
    ac_prev=target ;;
d734 1
a734 1
    target="$ac_optarg" ;;
d739 2
a740 3
  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;
d743 1
a743 1
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
d745 3
a747 3
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
d749 2
a750 2
    case "$ac_option" in
      *=*) ;;
d753 1
a753 1
    eval "with_${ac_package}='$ac_optarg'" ;;
d756 1
a756 1
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
d758 5
a762 5
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;
d773 1
a773 1
    x_includes="$ac_optarg" ;;
d780 1
a780 1
    x_libraries="$ac_optarg" ;;
d782 3
a784 1
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
d787 10
d798 5
a802 7
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    if test "x$nonopt" != xNONE; then
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    fi
    nonopt="$ac_option"
d809 3
a811 1
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
d814 10
a823 21
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
fi
exec 5>./config.log

echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5
d825 3
a827 4
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
d829 5
a833 8
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
d837 20
a856 9
# NLS nuisances.
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
d858 1
a858 4
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
a859 3
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=../db/db.c
d865 12
a876 3
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
d886 2
a887 1
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
d889 2
a890 1
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
d893 379
a1271 1
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
d1273 117
d1400 3
a1402 1
    echo "loading site script $ac_site_file"
d1408 10
a1417 2
  echo "loading cache $cache_file"
  . $cache_file
d1419 54
a1472 2
  echo "creating cache $cache_file"
  > $cache_file
a1475 1
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
d1477 29
a1505 17
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

ac_exeext=
ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t='	'
  else
    ac_n=-n ac_c= ac_t=
  fi
else
  ac_n= ac_c='\c' ac_t=
fi
d1508 1
d1511 1
d1522 4
d1529 74
a1602 5
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
a1603 42
# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:595: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
        if test -f $ac_dir/$ac_prog; then
	  if test $ac_prog = install &&
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
  done
  IFS="$ac_save_IFS"
d1605 9
d1615 4
a1618 11
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL="$ac_cv_path_install"
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
    INSTALL="$ac_install_sh"
  fi
fi
echo "$ac_t""$INSTALL" 1>&6
a1619 3
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
a1620 1
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
a1621 1
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
a1623 4
# Make sure we can run config.sub.
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi
a1624 2
echo $ac_n "checking host system type""... $ac_c" 1>&6
echo "configure:654: checking host system type" >&5
a1625 11
host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
  *) host_alias=$nonopt ;;
  esac ;;
esac
a1626 21
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6

if test "$program_transform_name" = s,x,x,; then
  program_transform_name=
else
  # Double any \ or $.  echo might interpret backslashes.
  cat <<\EOF_SED > conftestsed
s,\\,\\\\,g; s,\$,$$,g
EOF_SED
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  rm -f conftestsed
fi
test "$program_prefix" != NONE &&
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
a1627 2
# sed with no file args requires a program.
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
a1629 5
echo $ac_n "checking if building in the top-level directory""... $ac_c" 1>&6
echo "configure:695: checking if building in the top-level directory" >&5
 test -d db_archive  && { echo "configure: error: 
Berkeley DB cannot be built in the top-level distribution directory." 1>&2; exit 1; }
echo "$ac_t""no" 1>&6
a1665 4
o=.o
INSTALLER="\$(cp)"
DEFAULT_LIB="\$(libdb)"
DEFAULT_INSTALL="install_static"
d1667 5
d1673 1
a1674 1
DB_VERSION_MAJOR=3
d1676 1
a1676 1
DB_VERSION_MINOR=2
d1678 1
a1678 1
DB_VERSION_PATCH=9
d1680 1
a1680 1
DB_VERSION_STRING="\"Sleepycat Software: Berkeley DB 3.2.9: (January 24, 2001)\""
d1682 1
d1684 1
d1687 1
d1690 2
a1691 2
echo $ac_n "checking if --disable-bigfile option specified""... $ac_c" 1>&6
echo "configure:756: checking if --disable-bigfile option specified" >&5
d1695 62
a1756 1
  db_cv_bigfile="yes"
d1758 15
a1772 2
  db_cv_bigfile="no"
fi
d1774 10
a1783 1
echo "$ac_t""$db_cv_bigfile" 1>&6
d1785 2
a1786 2
echo $ac_n "checking if --enable-compat185 option specified""... $ac_c" 1>&6
echo "configure:768: checking if --enable-compat185 option specified" >&5
d1793 3
a1795 1
fi
d1797 2
a1798 4
echo "$ac_t""$db_cv_compat185" 1>&6

echo $ac_n "checking if --enable-cxx option specified""... $ac_c" 1>&6
echo "configure:780: checking if --enable-cxx option specified" >&5
d1805 3
a1807 1
fi
d1809 2
a1810 4
echo "$ac_t""$db_cv_cxx" 1>&6

echo $ac_n "checking if --enable-debug option specified""... $ac_c" 1>&6
echo "configure:792: checking if --enable-debug option specified" >&5
d1817 3
a1819 1
fi
d1821 2
a1822 4
echo "$ac_t""$db_cv_debug" 1>&6

echo $ac_n "checking if --enable-debug_rop option specified""... $ac_c" 1>&6
echo "configure:804: checking if --enable-debug_rop option specified" >&5
d1829 3
a1831 1
fi
d1833 2
a1834 4
echo "$ac_t""$db_cv_debug_rop" 1>&6

echo $ac_n "checking if --enable-debug_wop option specified""... $ac_c" 1>&6
echo "configure:816: checking if --enable-debug_wop option specified" >&5
d1841 3
a1843 1
fi
d1845 2
a1846 4
echo "$ac_t""$db_cv_debug_wop" 1>&6

echo $ac_n "checking if --enable-diagnostic option specified""... $ac_c" 1>&6
echo "configure:828: checking if --enable-diagnostic option specified" >&5
d1853 18
d1873 2
a1874 4
echo "$ac_t""$db_cv_diagnostic" 1>&6

echo $ac_n "checking if --enable-dump185 option specified""... $ac_c" 1>&6
echo "configure:840: checking if --enable-dump185 option specified" >&5
d1881 3
a1883 15
fi

echo "$ac_t""$db_cv_dump185" 1>&6

echo $ac_n "checking if --enable-dynamic option specified""... $ac_c" 1>&6
echo "configure:852: checking if --enable-dynamic option specified" >&5
# Check whether --enable-dynamic or --disable-dynamic was given.
if test "${enable_dynamic+set}" = set; then
  enableval="$enable_dynamic"
  db_cv_dynamic="$enable_dynamic"
else
  db_cv_dynamic="no"
fi

echo "$ac_t""$db_cv_dynamic" 1>&6
d1885 2
a1886 2
echo $ac_n "checking if --enable-java option specified""... $ac_c" 1>&6
echo "configure:864: checking if --enable-java option specified" >&5
d1893 15
a1907 3
fi

echo "$ac_t""$db_cv_java" 1>&6
d1909 2
a1910 2
echo $ac_n "checking if --enable-posixmutexes option specified""... $ac_c" 1>&6
echo "configure:876: checking if --enable-posixmutexes option specified" >&5
d1917 3
a1919 3
fi

echo "$ac_t""$db_cv_posixmutexes" 1>&6
d1921 2
a1922 2
echo $ac_n "checking if --enable-rpc option specified""... $ac_c" 1>&6
echo "configure:888: checking if --enable-rpc option specified" >&5
d1929 19
d1949 2
d1952 2
a1953 19
echo "$ac_t""$db_cv_rpc" 1>&6

echo $ac_n "checking if --enable-shared option specified""... $ac_c" 1>&6
echo "configure:900: checking if --enable-shared option specified" >&5
# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
  enableval="$enable_shared"
  db_cv_shared="$enable_shared"
else
  db_cv_shared="no"
fi

echo "$ac_t""$db_cv_shared" 1>&6
if test "$db_cv_shared" != "no"; then
	db_cv_dynamic="yes"
fi

echo $ac_n "checking if --enable-tcl option specified""... $ac_c" 1>&6
echo "configure:915: checking if --enable-tcl option specified" >&5
d1960 3
a1962 1
fi
d1964 2
a1965 4
echo "$ac_t""$db_cv_tcl" 1>&6

echo $ac_n "checking if --enable-test option specified""... $ac_c" 1>&6
echo "configure:927: checking if --enable-test option specified" >&5
d1972 3
a1974 1
fi
d1976 2
a1977 4
echo "$ac_t""$db_cv_test" 1>&6

echo $ac_n "checking if --enable-uimutexes option specified""... $ac_c" 1>&6
echo "configure:939: checking if --enable-uimutexes option specified" >&5
d1984 3
a1986 1
fi
d1988 2
a1989 4
echo "$ac_t""$db_cv_uimutexes" 1>&6

echo $ac_n "checking if --enable-umrw option specified""... $ac_c" 1>&6
echo "configure:951: checking if --enable-umrw option specified" >&5
d1996 72
d2069 2
d2072 2
a2073 1
echo "$ac_t""$db_cv_umrw" 1>&6
a2074 2
echo $ac_n "checking if --with-tcl option specified""... $ac_c" 1>&6
echo "configure:963: checking if --with-tcl option specified" >&5
d2078 1
a2078 1
  with_tclconfig=${withval}
d2081 58
d2140 6
a2146 3
echo "$ac_t""$with_tclconfig" 1>&6
if test "$with_tclconfig" != "no"; then
	db_cv_tcl="yes"
d2148 4
a2153 32
optimize_def="-O"
case "$host_os" in
aix4.*)	   optimize_def="-O2"
	   CC=${CC-"xlc_r"}
	   CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
	   LIBTSO_LIBS="\$(LIBS)";;
bsdi3*)	   CC=${CC-"shlicc2"}
	   optimize_def="-O2"
	   LIBS="-lipc $LIBS";;
bsdi*)	   optimize_def="-O2";;
freebsd*)  optimize_def="-O2"
	   CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
           LIBS="-pthread";;
hpux*)	   CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
irix*)	   optimize_def="-O2"
	   CPPFLAGS="-D_SGI_MP_SOURCE $CPPFLAGS";;
linux*)	   optimize_def="-O2"
	   CFLAGS="-D_GNU_SOURCE"
	   CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
mpeix*)	   CPPFLAGS="-D_POSIX_SOURCE -D_SOCKET_SOURCE $CPPFLAGS"
	   LIBS="-lsocket -lsvipc $LIBS";;
osf*)	   CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
*qnx)	   cat >> confdefs.h <<\EOF
#define HAVE_QNX 1
EOF
;;
sco3.2v4*) CC=${CC-"cc -belf"}
	   LIBS="-lsocket -lnsl_s $LIBS";;
sco*)	   CC=${CC-"cc -belf"}
	   LIBS="-lsocket -lnsl $LIBS";;
solaris*)  CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
esac
a2154 2
CFLAGS=${CFLAGS-$optimize_def}
CXXFLAGS=${CXXFLAGS-"$CFLAGS"}
d2156 7
a2162 4
if test "$db_cv_debug" = yes; then
	cat >> confdefs.h <<\EOF
#define DEBUG 1
EOF
a2163 2
	CFLAGS="$CFLAGS -g"
	CXXFLAGS="$CXXFLAGS -g"
d2166 10
a2175 6
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1026: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2177 2
a2178 2
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
d2180 14
a2193 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2196 4
a2199 3
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
d2201 2
a2202 1
  echo "$ac_t""no" 1>&6
d2205 9
a2213 6
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1055: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2215 2
a2216 2
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
d2218 16
a2233 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2235 7
d2243 2
a2244 3
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
d2246 1
a2246 1
  echo "$ac_t""no" 1>&6
d2249 13
a2261 6
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1084: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2263 2
a2264 2
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
d2266 14
a2279 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2282 4
a2285 3
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
d2287 2
a2288 1
  echo "$ac_t""no" 1>&6
d2291 9
a2299 7
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1114: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2301 2
a2302 2
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
d2304 10
a2313 27
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_prog_rejected=no
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
	continue
      fi
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_save_ifs"
if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# -gt 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    set dummy "$ac_dir/$ac_word" "$@@"
    shift
    ac_cv_prog_CC="$@@"
d2315 4
d2321 7
d2329 2
a2330 3
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
d2332 1
a2332 1
  echo "$ac_t""no" 1>&6
d2335 16
a2350 9
  if test -z "$CC"; then
    case "`uname -s`" in
    *win32* | *WIN32*)
      # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1165: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2352 20
a2371 2
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
d2373 2
a2374 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="cl"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2376 1
d2378 11
a2388 3
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
d2390 10
a2399 4
  echo "$ac_t""no" 1>&6
fi
 ;;
    esac
d2401 4
a2404 1
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
a2405 30

echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:1197: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

cat > conftest.$ac_ext << EOF

#line 1208 "configure"
#include "confdefs.h"

main(){return(0);}
EOF
if { (eval echo configure:1213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
d2407 4
a2410 29
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1239: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:1244: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.c <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gcc=yes
d2412 2
a2413 2
  ac_cv_prog_gcc=no
fi
d2416 1
a2416 4
echo "$ac_t""$ac_cv_prog_gcc" 1>&6

if test $ac_cv_prog_gcc = yes; then
  GCC=yes
d2418 1
a2418 1
  GCC=
d2421 14
a2434 7
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:1272: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2436 2
a2437 3
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  ac_cv_prog_cc_g=yes
d2439 23
a2461 1
  ac_cv_prog_cc_g=no
a2462 1
rm -f conftest*
d2465 25
d2491 7
a2497 9
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
if test "$ac_test_CFLAGS" = set; then
  CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
d2499 2
a2500 5
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
d2503 3
a2505 10

MAKEFILE_CC=${CC}
MAKEFILE_CCLINK="\$(CC)"
MAKEFILE_CXX="nocxx"

if test "$db_cv_diagnostic" = yes; then
	cat >> confdefs.h <<\EOF
#define DIAGNOSTIC 1
EOF

a2506 4
if test "$db_cv_debug_rop" = yes; then
	cat >> confdefs.h <<\EOF
#define DEBUG_ROP 1
EOF
d2508 25
a2532 5
fi
if test "$db_cv_debug_wop" = yes; then
	cat >> confdefs.h <<\EOF
#define DEBUG_WOP 1
EOF
d2534 3
d2538 1
a2538 4
if test "$db_cv_umrw" = yes; then
	cat >> confdefs.h <<\EOF
#define UMRW 1
EOF
d2540 6
a2546 4
if test "$db_cv_test" = yes; then
	cat >> confdefs.h <<\EOF
#define CONFIG_TEST 1
EOF
d2548 4
d2554 7
a2560 9
if test "$db_cv_cxx" = "yes"; then
	if test "$GCC" != "yes"; then
		case "$host_os" in
		aix*)		# Extract the first word of "xlC_r", so it can be a program name with args.
set dummy xlC_r; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1345: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CCC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2562 2
a2563 2
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
d2565 14
a2578 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CCC="xlC_r"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2581 4
a2584 3
CCC="$ac_cv_prog_CCC"
if test -n "$CCC"; then
  echo "$ac_t""$CCC" 1>&6
d2586 2
a2587 1
  echo "$ac_t""no" 1>&6
d2589 10
a2598 7
;;
		hpux*)		# Extract the first word of "aCC", so it can be a program name with args.
set dummy aCC; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1374: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CCC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2600 2
a2601 2
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
d2603 16
a2618 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CCC="aCC"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2620 7
d2628 2
a2629 3
CCC="$ac_cv_prog_CCC"
if test -n "$CCC"; then
  echo "$ac_t""$CCC" 1>&6
d2631 1
a2631 1
  echo "$ac_t""no" 1>&6
d2633 14
a2646 7
;;
		osf*)		# Extract the first word of "cxx", so it can be a program name with args.
set dummy cxx; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1403: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CCC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2648 2
a2649 2
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
d2651 14
a2664 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CCC="cxx"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2667 4
a2670 3
CCC="$ac_cv_prog_CCC"
if test -n "$CCC"; then
  echo "$ac_t""$CCC" 1>&6
d2672 4
a2675 1
  echo "$ac_t""no" 1>&6
d2677 8
a2684 7
;;
		solaris*)	# Extract the first word of "CC", so it can be a program name with args.
set dummy CC; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1432: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CCC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2686 2
a2687 2
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
d2689 16
a2704 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CCC="CC"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2706 7
d2714 2
a2715 3
CCC="$ac_cv_prog_CCC"
if test -n "$CCC"; then
  echo "$ac_t""$CCC" 1>&6
d2717 1
a2717 1
  echo "$ac_t""no" 1>&6
d2719 16
a2734 11
;;
		esac
	fi
	for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1465: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2736 2
a2737 2
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
d2739 14
a2752 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CXX="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2755 4
a2758 3
CXX="$ac_cv_prog_CXX"
if test -n "$CXX"; then
  echo "$ac_t""$CXX" 1>&6
d2760 2
a2761 1
  echo "$ac_t""no" 1>&6
d2764 25
a2788 1
test -n "$CXX" && break
a2789 1
test -n "$CXX" || CXX="gcc"
d2791 2
a2792 30

echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:1497: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5

ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross

cat > conftest.$ac_ext << EOF

#line 1508 "configure"
#include "confdefs.h"

int main(){return(0);}
EOF
if { (eval echo configure:1513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_prog_cxx_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cxx_cross=no
  else
    ac_cv_prog_cxx_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cxx_works=no
d2794 4
a2797 29
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
if test $ac_cv_prog_cxx_works = no; then
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1539: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
cross_compiling=$ac_cv_prog_cxx_cross

echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
echo "configure:1544: checking whether we are using GNU C++" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.C <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gxx=yes
d2799 2
a2800 2
  ac_cv_prog_gxx=no
fi
d2803 1
a2803 4
echo "$ac_t""$ac_cv_prog_gxx" 1>&6

if test $ac_cv_prog_gxx = yes; then
  GXX=yes
d2805 1
a2805 1
  GXX=
d2808 6
a2813 7
ac_test_CXXFLAGS="${CXXFLAGS+set}"
ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS=
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
echo "configure:1572: checking whether ${CXX-g++} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2815 18
a2832 7
  echo 'void f(){}' > conftest.cc
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  ac_cv_prog_cxx_g=yes
else
  ac_cv_prog_cxx_g=no
fi
rm -f conftest*
d2834 3
d2838 1
d2840 3
a2842 9
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS="$ac_save_CXXFLAGS"
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
d2844 2
a2845 5
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
a2847 2
	MAKEFILE_CXX=${CXX}
fi
d2849 78
a2926 7
if test "$GXX" = "yes"; then
	CXXVERSION=`${MAKEFILE_CXX} --version`
	case ${CXXVERSION} in
	1.*|2.[01234567].*|*-1.*|*-2.[01234567].* )
		CXXFLAGS="-fhandle-exceptions $CXXFLAGS";;
	* )	CXXFLAGS="-fexceptions $CXXFLAGS";;
	esac
d2929 31
a2959 2
export CC CCC
CCC=CXX
d2961 10
a2970 17
LIBDB_ARGS="libdb.a"
LIBTOOL="nolibtool"
POSTLINK="@@true"
SOSUFFIX="so"
if test "$db_cv_dynamic" = "yes"; then
	SAVE_CC="${MAKEFILE_CC}"
	SAVE_CXX="${MAKEFILE_CXX}"

	# Configure libtool.
	echo $ac_n "checking libtool configuration""... $ac_c" 1>&6
echo "configure:1628: checking libtool configuration" >&5
	echo "$ac_t""" 1>&6
	${CONFIG_SHELL-/bin/sh} $srcdir/ltconfig \
		--no-verify $srcdir/ltmain.sh \
		--output=./libtool $host_os \
		--disable-static \
	|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
d2972 26
a2997 9
	SOSUFFIX=`sed -e '/^library_names_spec=/!d' -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/' ./libtool`
	DEFAULT_LIB="\$(libso_target)"
	DEFAULT_INSTALL="install_dynamic"
	LIBDB_ARGS="\$(libso_linkname)"
	LIBTOOL="\$(SHELL) ./libtool"

	MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${SAVE_CC}"
	MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${SAVE_CXX}"
	MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${SAVE_CC}"
d2999 10
a3008 5
	INSTALLER="\$(LIBTOOL) --mode=install cp"
	POSTLINK="\$(LIBTOOL) --mode=execute true"
	SOLINK="\$(LIBTOOL) --mode=link ${SAVE_CC} -avoid-version"
	SOFLAGS="-rpath \$(libdir)"
	o=".lo"
d3011 3
a3013 8
if test "$db_cv_cxx" = "yes"; then
	if test "$db_cv_dynamic" = "yes"; then
		ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libxso_target)"
		DEFAULT_INSTALL="${DEFAULT_INSTALL} install_dynamic_cxx"
	else
		ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libcxx)"
		DEFAULT_INSTALL="${DEFAULT_INSTALL} install_static_cxx"
	fi
d3016 4
a3019 3
if test "$db_cv_java" = "yes"; then
	if test "$db_cv_dynamic" != "yes"; then
		{ echo "configure: error: --enable-java requires --enable-dynamic" 1>&2; exit 1; }
d3021 1
d3023 9
a3031 6
	# Extract the first word of "javac", so it can be a program name with args.
set dummy javac; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1671: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_JAVAC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3033 2
a3034 2
  if test -n "$JAVAC"; then
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
d3036 14
a3049 11
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_JAVAC="javac"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC="nojavac"
d3052 4
a3055 3
JAVAC="$ac_cv_prog_JAVAC"
if test -n "$JAVAC"; then
  echo "$ac_t""$JAVAC" 1>&6
d3057 2
a3058 1
  echo "$ac_t""no" 1>&6
d3061 9
a3069 9
	if test "$JAVAC" = "nojavac"; then
		{ echo "configure: error: no javac compiler in PATH" 1>&2; exit 1; }
	fi
	# Extract the first word of "jar", so it can be a program name with args.
set dummy jar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1704: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_JAR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3071 2
a3072 2
  if test -n "$JAR"; then
  ac_cv_prog_JAR="$JAR" # Let the user override the test.
d3074 16
a3089 11
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_JAR="jar"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_JAR" && ac_cv_prog_JAR="nojar"
d3091 7
d3099 2
a3100 3
JAR="$ac_cv_prog_JAR"
if test -n "$JAR"; then
  echo "$ac_t""$JAR" 1>&6
d3102 1
a3102 1
  echo "$ac_t""no" 1>&6
d3105 6
a3110 9
	if test "$JAR" = "nojar"; then
		{ echo "configure: error: no jar utility in PATH" 1>&2; exit 1; }
	fi
	# Extract the first word of "javac", so it can be a program name with args.
set dummy javac; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1737: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_JAVACABS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3112 3
a3114 6
  case "$JAVACABS" in
  /*)
  ac_cv_path_JAVACABS="$JAVACABS" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_JAVACABS="$JAVACABS" # Let the user override the test with a dos path.
d3117 15
a3131 11
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_JAVACABS="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_JAVACABS" && ac_cv_path_JAVACABS="nojavac"
d3135 5
a3139 3
JAVACABS="$ac_cv_path_JAVACABS"
if test -n "$JAVACABS"; then
  echo "$ac_t""$JAVACABS" 1>&6
d3141 2
a3142 1
  echo "$ac_t""no" 1>&6
d3145 5
a3149 3
	ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libjso_target)"
	ADDITIONAL_LANG="$ADDITIONAL_LANG java"
	DEFAULT_INSTALL="${DEFAULT_INSTALL} install_java"
d3151 11
a3161 34
	while ls -ld "$JAVACABS" 2>/dev/null | grep " -> " >/dev/null; do
		echo $ac_n "checking symlink for $JAVACABS""... $ac_c" 1>&6
echo "configure:1776: checking symlink for $JAVACABS" >&5
		JAVACLINK=`ls -ld $JAVACABS | sed 's/.* -> //'`
		case "$JAVACLINK" in
		/*) JAVACABS="$JAVACLINK";;
		*) JAVACABS=`echo "X$JAVACABS" | sed -e 's/^X//' -e 's:[^/]*$::'`"$JAVACLINK";;
		esac
		echo "$ac_t""$JAVACABS" 1>&6
	done
	JTOPDIR=`echo "$JAVACABS" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
	if test -f "$JTOPDIR/include/jni.h"; then
		CPPFLAGS="$CPPFLAGSS -I$JTOPDIR/include"
	else
		JTOPDIR=`echo "$JTOPDIR" | sed -e 's:/[^/]*$::'`
		if test -f "$JTOPDIR/include/jni.h"; then
			CPPFLAGS="$CPPFLAGS -I$JTOPDIR/include"
		else
			{ echo "configure: error: cannot find java include files" 1>&2; exit 1; }
		fi
	fi

	case "$host_os" in
	solaris*)	JINCSUBDIRS="solaris";;
	linux*)		JINCSUBDIRS="linux genunix";;
	*)		JINCSUBDIRS="genunix";;
	esac

	for JINCSUBDIR in $JINCSUBDIRS
	do
		if test -d "$JTOPDIR/include/$JINCSUBDIR"; then
			CPPFLAGS="$CPPFLAGS -I$JTOPDIR/include/$JINCSUBDIR"
		fi
	done
d3163 2
a3164 18
	JAVAC=nojavac
fi

if test "$db_cv_rpc" = "yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE_RPC 1
EOF


	RPC_OBJS="\$(RPC_OBJS)"
	ADDITIONAL_PROGS="berkeley_db_svc $ADDITIONAL_PROGS"

	case "$host_os" in
	hpux*)	
		echo $ac_n "checking for svc_run""... $ac_c" 1>&6
echo "configure:1824: checking for svc_run" >&5
if eval "test \"`echo '$''{'ac_cv_func_svc_run'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3166 13
a3178 10
  cat > conftest.$ac_ext <<EOF
#line 1829 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char svc_run(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char svc_run();
d3180 6
a3185 16
int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_svc_run) || defined (__stub___svc_run)
choke me
#else
svc_run();
#endif

; return 0; }
EOF
if { (eval echo configure:1852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_svc_run=yes"
d3187 2
a3188 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_svc_run=no"
d3190 1
a3190 1
rm -f conftest*
d3192 8
a3199 4

if eval "test \"`echo '$ac_cv_func_'svc_run`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
d3201 2
a3202 6
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for svc_run in -lnsl""... $ac_c" 1>&6
echo "configure:1870: checking for svc_run in -lnsl" >&5
ac_lib_var=`echo nsl'_'svc_run | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3204 13
a3216 9
  ac_save_LIBS="$LIBS"
LIBS="-lnsl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1878 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char svc_run();
d3218 7
a3224 7
int main() {
svc_run()
; return 0; }
EOF
if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
d3226 2
a3227 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
a3228 2
rm -f conftest*
LIBS="$ac_save_LIBS"
d3230 1
a3230 4
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="-lnsl $LIBS"; LIBTSO_LIBS="-lnsl $LIBTSO_LIBS"
d3232 1
a3232 1
  echo "$ac_t""no" 1>&6
d3235 6
a3240 7
fi
;;
	solaris*)
		echo $ac_n "checking for svc_run""... $ac_c" 1>&6
echo "configure:1913: checking for svc_run" >&5
if eval "test \"`echo '$''{'ac_cv_func_svc_run'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3242 18
a3259 10
  cat > conftest.$ac_ext <<EOF
#line 1918 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char svc_run(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char svc_run();
d3261 5
a3265 1
int main() {
d3267 3
a3269 14
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_svc_run) || defined (__stub___svc_run)
choke me
#else
svc_run();
#endif

; return 0; }
EOF
if { (eval echo configure:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_svc_run=yes"
d3271 2
a3272 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_svc_run=no"
d3274 1
a3274 1
rm -f conftest*
d3277 8
a3284 3
if eval "test \"`echo '$ac_cv_func_'svc_run`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
d3286 2
a3287 6
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for svc_run in -lnsl""... $ac_c" 1>&6
echo "configure:1959: checking for svc_run in -lnsl" >&5
ac_lib_var=`echo nsl'_'svc_run | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3289 13
a3301 9
  ac_save_LIBS="$LIBS"
LIBS="-lnsl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1967 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char svc_run();
d3303 6
a3308 7
int main() {
svc_run()
; return 0; }
EOF
if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
d3310 2
a3311 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
a3312 2
rm -f conftest*
LIBS="$ac_save_LIBS"
d3315 25
a3339 9
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lnsl $LIBS"
d3341 7
d3349 2
a3350 1
  echo "$ac_t""no" 1>&6
d3353 3
a3355 3
fi
;;
	esac
d3358 4
a3361 4

if test "$db_cv_tcl" != no; then
	if test "$db_cv_dynamic" != "yes"; then
		{ echo "configure: error: --with-tcl requires --enable-dynamic" 1>&2; exit 1; }
d3363 1
a3364 1
	
d3366 17
a3382 3
	
	if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3384 56
a3439 1
  
d3441 1
a3441 8
	    # First check to see if --with-tclconfig was specified.
	    if test "${with_tclconfig}" != no; then
		if test -f "${with_tclconfig}/tclConfig.sh" ; then
		    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
		else
		    { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
		fi
	    fi
a3442 9
	    # check in a few common install locations
	    if test x"${ac_cv_c_tclconfig}" = x ; then
		for i in `ls -d /usr/local/lib 2>/dev/null` ; do
		    if test -f "$i/tclConfig.sh" ; then
			ac_cv_c_tclconfig=`(cd $i; pwd)`
			break
		    fi
		done
	    fi
d3444 17
a3460 1
	
d3463 49
d3513 4
a3516 6
	if test x"${ac_cv_c_tclconfig}" = x ; then
	    TCL_BIN_DIR="# no Tcl configs found"
	    { echo "configure: error: can't find Tcl configuration definitions" 1>&2; exit 1; }
	else
	    TCL_BIN_DIR=${ac_cv_c_tclconfig}
	fi
d3518 5
a3522 3
	
	echo $ac_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh""... $ac_c" 1>&6
echo "configure:2056: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
d3524 9
a3532 6
	if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
		echo "$ac_t""loading" 1>&6
		. $TCL_BIN_DIR/tclConfig.sh
	else
		echo "$ac_t""file not found" 1>&6
	fi
a3533 7
	#
	# The eval is required to do the TCL_DBGX substitution in the
	# TCL_LIB_FILE variable
	#
	eval TCL_LIB_FILE="${TCL_LIB_FILE}"
	eval TCL_LIB_FLAG="${TCL_LIB_FLAG}"
	eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
a3534 3
	
	
	
a3535 2
	
	TCL_TCLSH="${TCL_PREFIX}/bin/tclsh${TCL_VERSION}"
d3537 6
a3543 3
	if test x"$TCL_PREFIX" != x && test -f "$TCL_PREFIX/include/tcl.h"; then
		TCFLAGS="-I$TCL_PREFIX/include"
	fi
d3545 34
a3578 1
	LIBS="$LIBS $TCL_LIB_SPEC $TCL_LIBS"
a3579 2
	ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libtso_target)"
	DEFAULT_INSTALL="${DEFAULT_INSTALL} install_tcl"
d3581 8
a3588 4

if test "$db_cv_compat185" = "yes"; then
	ADDITIONAL_INCS="db_185.h $ADDITIONAL_INCS"
	ADDITIONAL_OBJS="db185${o} $ADDITIONAL_OBJS"
d3591 2
a3592 2
if test "$db_cv_dump185" = "yes"; then
	ADDITIONAL_PROGS="db_dump185 $ADDITIONAL_PROGS"
d3594 13
a3606 6

echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
echo "configure:2101: checking for pthread_create in -lpthread" >&5
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3608 13
a3620 9
  ac_save_LIBS="$LIBS"
LIBS="-lpthread  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2109 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pthread_create();
d3622 6
a3627 7
int main() {
pthread_create()
; return 0; }
EOF
if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
d3629 2
a3630 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
a3631 2
rm -f conftest*
LIBS="$ac_save_LIBS"
d3633 4
d3638 89
a3726 3
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  DBS_LIBS=-lpthread
d3728 41
a3768 1
  echo "$ac_t""no" 1>&6
d3770 2
d3773 61
d3835 17
a3851 4
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
echo "configure:2142: checking whether byte ordering is bigendian" >&5
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3853 2
a3854 8
  ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF
#line 2149 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
d3856 31
a3886 2
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
a3887 11
; return 0; }
EOF
if { (eval echo configure:2160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  # It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF
#line 2164 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
d3889 67
a3955 8
#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#endif
; return 0; }
EOF
if { (eval echo configure:2175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_bigendian=yes
d3957 6
a3962 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_bigendian=no
d3964 10
a3973 1
rm -f conftest*
d3975 5
a3979 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3981 48
a4028 17
rm -f conftest*
if test $ac_cv_c_bigendian = unknown; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2195 "configure"
#include "confdefs.h"
main () {
  /* Are we little or big endian?  From Harbison&Steele.  */
  union
  {
    long l;
    char c[sizeof (long)];
  } u;
  u.l = 1;
  exit (u.c[sizeof (long) - 1] == 1);
d4030 25
a4054 4
EOF
if { (eval echo configure:2208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_c_bigendian=no
d4056 3
a4058 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_c_bigendian=yes
d4060 5
a4064 1
rm -fr conftest*
d4067 74
d4142 34
d4177 7
a4183 7

echo "$ac_t""$ac_cv_c_bigendian" 1>&6
if test $ac_cv_c_bigendian = yes; then
  cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF

a4185 4
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:2232: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4187 2
a4188 3
  cat > conftest.$ac_ext <<EOF
#line 2237 "configure"
#include "confdefs.h"
d4190 86
a4275 1
int main() {
d4277 2
a4278 40
/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
   It does not let you subtract one const X* pointer from another in an arm
   of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;

  *t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25, 17};
  const int *foo = &x[0];
  ++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
d4280 13
a4292 5

; return 0; }
EOF
if { (eval echo configure:2286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
d4295 4
a4298 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_const=no
d4300 1
a4300 1
rm -f conftest*
d4302 3
d4306 3
a4308 5
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
EOF
d4312 3
a4314 5
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:2307: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
d4316 26
a4341 3
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4343 2
a4344 16
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  CPP="${CC-cc} -E"
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
#line 2322 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
d4346 20
a4365 33
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
#line 2339 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <<EOF
#line 2356 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
d4367 2
a4368 5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP=/lib/cpp
d4370 1
a4370 1
rm -f conftest*
d4372 26
a4397 1
rm -f conftest*
a4398 2
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
d4400 4
a4403 1
  CPP="$ac_cv_prog_CPP"
d4405 2
a4406 1
  ac_cv_prog_CPP="$CPP"
a4407 1
echo "$ac_t""$CPP" 1>&6
d4409 1
a4409 4
echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
echo "configure:2387: checking whether stat file-mode macros are broken" >&5
if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4411 2
a4412 5
  cat > conftest.$ac_ext <<EOF
#line 2392 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
d4414 26
a4439 5
#if defined(S_ISBLK) && defined(S_IFDIR)
# if S_ISBLK (S_IFDIR)
You lose.
# endif
#endif
d4441 6
a4446 23
#if defined(S_ISBLK) && defined(S_IFCHR)
# if S_ISBLK (S_IFCHR)
You lose.
# endif
#endif

#if defined(S_ISLNK) && defined(S_IFREG)
# if S_ISLNK (S_IFREG)
You lose.
# endif
#endif

#if defined(S_ISSOCK) && defined(S_IFREG)
# if S_ISSOCK (S_IFREG)
You lose.
# endif
#endif

EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "You lose" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_header_stat_broken=yes
d4448 2
a4449 2
  rm -rf conftest*
  ac_cv_header_stat_broken=no
a4450 1
rm -f conftest*
d4453 25
d4479 10
a4488 5
echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
if test $ac_cv_header_stat_broken = yes; then
  cat >> confdefs.h <<\EOF
#define STAT_MACROS_BROKEN 1
EOF
d4490 3
d4494 8
a4501 5

echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:2443: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4503 2
a4504 13
  cat > conftest.$ac_ext <<EOF
#line 2448 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
EOF
if { (eval echo configure:2457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_header_time=yes
d4506 15
a4520 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_time=no
d4522 7
a4528 1
rm -f conftest*
a4530 6
echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
  cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF

d4532 8
a4539 5

echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
echo "configure:2478: checking for st_blksize in struct stat" >&5
if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4541 2
a4542 12
  cat > conftest.$ac_ext <<EOF
#line 2483 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
int main() {
struct stat s; s.st_blksize;
; return 0; }
EOF
if { (eval echo configure:2491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_struct_st_blksize=yes
d4544 15
a4558 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_struct_st_blksize=no
d4560 7
a4566 1
rm -f conftest*
d4569 3
a4571 6
echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
if test $ac_cv_struct_st_blksize = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ST_BLKSIZE 1
EOF

d4573 8
a4580 5

echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:2512: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4582 2
a4583 14
  cat > conftest.$ac_ext <<EOF
#line 2517 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  ac_cv_header_stdc=yes
d4585 15
a4599 5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_stdc=no
d4601 4
a4604 12
rm -f conftest*

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 2542 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
d4606 2
a4607 2
  rm -rf conftest*
  ac_cv_header_stdc=no
a4608 1
rm -f conftest*
d4611 25
d4637 6
a4642 10
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 2560 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
d4644 2
a4645 2
  rm -rf conftest*
  ac_cv_header_stdc=no
a4646 1
rm -f conftest*
d4648 3
d4652 11
a4662 5

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
  :
d4664 13
a4676 10
  cat > conftest.$ac_ext <<EOF
#line 2581 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
a4677 9
EOF
if { (eval echo configure:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_header_stdc=no
a4678 1
rm -fr conftest*
d4680 7
a4686 1

a4687 7
fi

echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF
d4690 8
a4697 5

echo $ac_n "checking for mode_t""... $ac_c" 1>&6
echo "configure:2616: checking for mode_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4699 2
a4700 13
  cat > conftest.$ac_ext <<EOF
#line 2621 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_mode_t=yes
d4702 14
a4715 2
  rm -rf conftest*
  ac_cv_type_mode_t=no
a4716 2
rm -f conftest*

d4718 7
a4724 6
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
if test $ac_cv_type_mode_t = no; then
  cat >> confdefs.h <<\EOF
#define mode_t int
EOF

d4727 1
a4727 4
echo $ac_n "checking for off_t""... $ac_c" 1>&6
echo "configure:2649: checking for off_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4729 22
a4750 13
  cat > conftest.$ac_ext <<EOF
#line 2654 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_off_t=yes
d4752 15
a4766 2
  rm -rf conftest*
  ac_cv_type_off_t=no
d4768 7
a4774 2
rm -f conftest*

a4775 5
echo "$ac_t""$ac_cv_type_off_t" 1>&6
if test $ac_cv_type_off_t = no; then
  cat >> confdefs.h <<\EOF
#define off_t long
EOF
d4777 2
d4780 10
a4789 5

echo $ac_n "checking for pid_t""... $ac_c" 1>&6
echo "configure:2682: checking for pid_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4791 2
a4792 13
  cat > conftest.$ac_ext <<EOF
#line 2687 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_pid_t=yes
d4794 13
a4806 4
  rm -rf conftest*
  ac_cv_type_pid_t=no
fi
rm -f conftest*
a4808 6
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
if test $ac_cv_type_pid_t = no; then
  cat >> confdefs.h <<\EOF
#define pid_t int
EOF

d4810 4
a4813 19

echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:2715: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2720 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_size_t=yes
d4815 2
a4816 2
  rm -rf conftest*
  ac_cv_type_size_t=no
a4817 1
rm -f conftest*
d4819 3
a4821 6
fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
  cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF
d4823 1
d4827 39
d4867 49
d4917 17
a4933 4
echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
echo "configure:2751: checking for ssize_t" >&5
if eval "test \"`echo '$''{'db_cv_ssize_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4935 17
a4951 11
  cat > conftest.$ac_ext <<EOF
#line 2756 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
ssize_t foo;
; return 0; }
EOF
if { (eval echo configure:2763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_ssize_t=yes
d4953 5
a4957 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  db_cv_ssize_t=no
d4959 43
a5001 1
rm -f conftest*
d5003 33
d5037 8
a5044 3
echo "$ac_t""$db_cv_ssize_t" 1>&6
if test "$db_cv_ssize_t" = no; then
	ssize_t_decl="typedef int ssize_t;"
d5047 5
d5053 51
a5103 4
echo $ac_n "checking for u_char""... $ac_c" 1>&6
echo "configure:2782: checking for u_char" >&5
if eval "test \"`echo '$''{'db_cv_uchar'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d5105 4
a5108 11
  cat > conftest.$ac_ext <<EOF
#line 2787 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
u_char foo;
; return 0; }
EOF
if { (eval echo configure:2794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_uchar=yes
d5110 2
a5111 7
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  db_cv_uchar=no
fi
rm -f conftest*
fi
d5113 2
a5114 3
echo "$ac_t""$db_cv_uchar" 1>&6
if test "$db_cv_uchar" = no; then
	u_char_decl="typedef unsigned char u_char;"
d5116 1
d5118 24
a5141 5

echo $ac_n "checking for u_short""... $ac_c" 1>&6
echo "configure:2813: checking for u_short" >&5
if eval "test \"`echo '$''{'db_cv_ushort'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d5143 5
a5147 11
  cat > conftest.$ac_ext <<EOF
#line 2818 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
u_short foo;
; return 0; }
EOF
if { (eval echo configure:2825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_ushort=yes
d5149 6
a5154 6
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  db_cv_ushort=no
fi
rm -f conftest*
d5156 1
d5158 5
a5162 3
echo "$ac_t""$db_cv_ushort" 1>&6
if test "$db_cv_ushort" = no; then
	u_short_decl="typedef unsigned short u_short;"
d5165 2
d5168 2
a5169 4
echo $ac_n "checking for u_int""... $ac_c" 1>&6
echo "configure:2844: checking for u_int" >&5
if eval "test \"`echo '$''{'db_cv_uint'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d5171 40
a5210 11
  cat > conftest.$ac_ext <<EOF
#line 2849 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
u_int foo;
; return 0; }
EOF
if { (eval echo configure:2856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_uint=yes
d5212 1
a5212 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  db_cv_uint=no
d5214 8
a5221 1
rm -f conftest*
d5223 1
d5225 26
a5250 3
echo "$ac_t""$db_cv_uint" 1>&6
if test "$db_cv_uint" = no; then
	u_int_decl="typedef unsigned int u_int;"
d5252 6
d5259 5
d5265 5
a5269 16
echo $ac_n "checking for u_long""... $ac_c" 1>&6
echo "configure:2875: checking for u_long" >&5
if eval "test \"`echo '$''{'db_cv_ulong'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2880 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
u_long foo;
; return 0; }
EOF
if { (eval echo configure:2887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_ulong=yes
d5271 5
a5275 6
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  db_cv_ulong=no
fi
rm -f conftest*
d5278 8
a5285 4
echo "$ac_t""$db_cv_ulong" 1>&6
if test "$db_cv_ulong" = no; then
	u_long_decl="typedef unsigned long u_long;"
fi
d5288 4
a5291 4
echo $ac_n "checking for u_int8_t""... $ac_c" 1>&6
echo "configure:2906: checking for u_int8_t" >&5
if eval "test \"`echo '$''{'db_cv_uint8'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d5293 38
a5330 11
  cat > conftest.$ac_ext <<EOF
#line 2911 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
u_int8_t foo;
; return 0; }
EOF
if { (eval echo configure:2918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_uint8=yes
d5332 4
a5335 21
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2929 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned char) != 1);}
EOF
if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_uint8="unsigned char"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  db_cv_uint8=no
fi
rm -fr conftest*
d5337 7
d5346 4
a5349 6
rm -f conftest*
fi

echo "$ac_t""$db_cv_uint8" 1>&6
if test "$db_cv_uint8" = no; then
	{ echo "configure: error: No unsigned 8-bit integral type." 1>&2; exit 1; }
d5351 2
a5352 2
if test "$db_cv_uint8" != yes; then
	u_int8_decl="typedef $db_cv_uint8 u_int8_t;"
d5355 1
d5357 4
a5360 4
echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
echo "configure:2959: checking for u_int16_t" >&5
if eval "test \"`echo '$''{'db_cv_uint16'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d5362 8
a5369 46
  cat > conftest.$ac_ext <<EOF
#line 2964 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
u_int16_t foo;
; return 0; }
EOF
if { (eval echo configure:2971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_uint16=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2982 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned short) != 2);}
EOF
if { (eval echo configure:2986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_uint16="unsigned short"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2997 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned int) != 2);}
EOF
if { (eval echo configure:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_uint16="unsigned int"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  db_cv_uint16=no
a5370 1
rm -fr conftest*
d5372 16
d5389 7
a5396 3
rm -fr conftest*
fi

d5398 4
a5401 1
rm -f conftest*
d5404 13
a5416 7
echo "$ac_t""$db_cv_uint16" 1>&6
if test "$db_cv_uint16" = no; then
	{ echo "configure: error: No unsigned 16-bit integral type." 1>&2; exit 1; }
fi
if test "$db_cv_uint16" != yes; then
	u_int16_decl="typedef $db_cv_uint16 u_int16_t;"
fi
d5418 3
d5422 21
a5442 4
echo $ac_n "checking for int16_t""... $ac_c" 1>&6
echo "configure:3031: checking for int16_t" >&5
if eval "test \"`echo '$''{'db_cv_int16'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d5444 16139
a21582 3
  cat > conftest.$ac_ext <<EOF
#line 3036 "configure"
#include "confdefs.h"
d21584 1605
a23188 7
int main() {
int16_t foo;
; return 0; }
EOF
if { (eval echo configure:3043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_int16=yes
d23190 43
a23232 5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d23234 15
a23248 8
  cat > conftest.$ac_ext <<EOF
#line 3054 "configure"
#include "confdefs.h"
main(){exit(sizeof(short) != 2);}
EOF
if { (eval echo configure:3058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_int16="short"
a23249 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d23251 224
a23474 1
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d23476 81
a23556 8
  cat > conftest.$ac_ext <<EOF
#line 3069 "configure"
#include "confdefs.h"
main(){exit(sizeof(int) != 2);}
EOF
if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_int16="int"
d23558 6
a23563 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  db_cv_int16=no
d23565 41
a23605 1
rm -fr conftest*
d23607 205
d23813 27
d23841 81
a23921 1
rm -fr conftest*
d23923 5
d23929 3
d23933 41
a23973 1
rm -f conftest*
d23975 205
d24181 27
a24207 3
echo "$ac_t""$db_cv_int16" 1>&6
if test "$db_cv_int16" = no; then
	{ echo "configure: error: No signed 16-bit integral type." 1>&2; exit 1; }
d24209 81
a24289 2
if test "$db_cv_int16" != yes; then
	int16_decl="typedef $db_cv_int16 int16_t;"
d24291 5
d24297 22
d24320 17
a24336 4
echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
echo "configure:3103: checking for u_int32_t" >&5
if eval "test \"`echo '$''{'db_cv_uint32'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d24338 15
a24352 11
  cat > conftest.$ac_ext <<EOF
#line 3108 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
u_int32_t foo;
; return 0; }
EOF
if { (eval echo configure:3115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_uint32=yes
a24353 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
d24355 350
a24704 1
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d24706 15
a24720 8
  cat > conftest.$ac_ext <<EOF
#line 3126 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned int) != 4);}
EOF
if { (eval echo configure:3130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_uint32="unsigned int"
a24721 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d24723 224
a24946 1
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d24948 81
a25028 8
  cat > conftest.$ac_ext <<EOF
#line 3141 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned long) != 4);}
EOF
if { (eval echo configure:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_uint32="unsigned long"
d25030 6
a25035 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  db_cv_uint32=no
d25037 41
a25077 1
rm -fr conftest*
d25079 138
d25218 1
d25220 1
a25220 1
rm -fr conftest*
d25222 62
d25285 27
d25313 81
a25393 1
rm -f conftest*
d25395 5
d25401 3
a25403 3
echo "$ac_t""$db_cv_uint32" 1>&6
if test "$db_cv_uint32" = no; then
	{ echo "configure: error: No unsigned 32-bit integral type." 1>&2; exit 1; }
d25405 41
a25445 2
if test "$db_cv_uint32" != yes; then
	u_int32_decl="typedef $db_cv_uint32 u_int32_t;"
d25447 172
d25620 32
d25653 30
a25682 4
echo $ac_n "checking for int32_t""... $ac_c" 1>&6
echo "configure:3175: checking for int32_t" >&5
if eval "test \"`echo '$''{'db_cv_int32'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d25684 81
a25764 11
  cat > conftest.$ac_ext <<EOF
#line 3180 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
int32_t foo;
; return 0; }
EOF
if { (eval echo configure:3187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_int32=yes
d25766 43
a25808 5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d25810 15
a25824 8
  cat > conftest.$ac_ext <<EOF
#line 3198 "configure"
#include "confdefs.h"
main(){exit(sizeof(int) != 4);}
EOF
if { (eval echo configure:3202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_int32="int"
a25825 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d25827 126
a25952 1
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d25954 4
a25957 13
  cat > conftest.$ac_ext <<EOF
#line 3213 "configure"
#include "confdefs.h"
main(){exit(sizeof(long) != 4);}
EOF
if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_int32="long"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  db_cv_int32=no
d25959 1
a25959 1
rm -fr conftest*
d25961 51
d26013 1
d26015 10
a26024 1
rm -fr conftest*
d26027 56
d26084 55
a26138 1
rm -f conftest*
d26141 54
a26194 6
echo "$ac_t""$db_cv_int32" 1>&6
if test "$db_cv_int32" = no; then
	{ echo "configure: error: No signed 32-bit integral type." 1>&2; exit 1; }
fi
if test "$db_cv_int32" != yes; then
	int32_decl="typedef $db_cv_int32 int32_t;"
d26198 51
a26248 16
echo $ac_n "checking for largest integral type""... $ac_c" 1>&6
echo "configure:3247: checking for largest integral type" >&5
if eval "test \"`echo '$''{'db_cv_align_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3252 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
long long foo;
; return 0; }
EOF
if { (eval echo configure:3259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_align_t="unsigned long long"
d26250 1
a26250 6
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  db_cv_align_t="unsigned long"
fi
rm -f conftest*
a26252 2
echo "$ac_t""$db_cv_align_t" 1>&6
db_align_t_decl="typedef $db_cv_align_t db_align_t;"
d26255 50
a26304 4
echo $ac_n "checking for integral type equal to pointer size""... $ac_c" 1>&6
echo "configure:3276: checking for integral type equal to pointer size" >&5
if eval "test \"`echo '$''{'db_cv_alignp_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d26306 15
a26320 17
  db_cv_alignp_t=$db_cv_align_t
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 3285 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned int) != sizeof(char *));}
EOF
if { (eval echo configure:3289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_alignp_t="unsigned int"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
d26323 52
a26374 2
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d26376 15
a26390 13
  cat > conftest.$ac_ext <<EOF
#line 3303 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned long) != sizeof(char *));}
EOF
if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_alignp_t="unsigned long"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
d26393 52
a26444 11
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 3321 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned long long) != sizeof(char *));}
EOF
if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_alignp_t="unsigned long long"
a26445 5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi
d26447 14
a26462 2
echo "$ac_t""$db_cv_alignp_t" 1>&6
db_alignp_t_decl="typedef $db_cv_alignp_t db_alignp_t;"
d26465 51
d26517 14
a26530 26
ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
echo "configure:3347: checking for $ac_hdr that defines DIR" >&5
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3352 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_hdr>
int main() {
DIR *dirp = 0;
; return 0; }
EOF
if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_header_dirent_$ac_safe=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_dirent_$ac_safe=no"
d26532 53
a26584 9
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 ac_header_dirent=$ac_hdr; break
d26586 15
a26600 1
  echo "$ac_t""no" 1>&6
d26602 55
a26656 8
done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
echo "configure:3385: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a26657 9
  ac_save_LIBS="$LIBS"
LIBS="-ldir  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3393 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();
d26659 14
a26672 12
int main() {
opendir()
; return 0; }
EOF
if { (eval echo configure:3404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
a26673 2
rm -f conftest*
LIBS="$ac_save_LIBS"
d26675 55
d26731 25
a26755 3
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -ldir"
d26757 47
a26803 1
  echo "$ac_t""no" 1>&6
d26806 77
d26884 15
a26898 11
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
echo "configure:3426: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lx  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3434 "configure"
#include "confdefs.h"
d26900 3
d26904 39
a26942 2
    builtin and then its argument prototype would still apply.  */
char opendir();
d26944 29
a26972 7
int main() {
opendir()
; return 0; }
EOF
if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
d26974 6
a26979 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
d26981 1
a26981 3
rm -f conftest*
LIBS="$ac_save_LIBS"

d26983 5
a26987 5
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -lx"
else
  echo "$ac_t""no" 1>&6
d26992 12
a27003 7
for ac_hdr in sys/select.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:3471: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d27005 162
a27166 11
  cat > conftest.$ac_ext <<EOF
#line 3476 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
d27168 32
a27199 15
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
d27201 2
a27202 3
  echo "$ac_t""no" 1>&6
fi
done
d27204 1
a27204 25
for ac_hdr in sys/time.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:3511: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3516 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
d27206 2
a27207 1
rm -f conftest*
d27209 4
a27212 9
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
d27214 10
a27223 1
done
d27228 4
a27231 4
echo $ac_n "checking for mutexes""... $ac_c" 1>&6
echo "configure:3551: checking for mutexes" >&5
if eval "test \"`echo '$''{'db_cv_mutex'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d27233 2
a27234 1
  db_cv_mutex=no
d27238 21
d27260 6
a27265 1
	db_cv_mutex="posix_only"
d27269 11
a27279 1
	db_cv_mutex="ui_only"
d27282 1
d27284 7
a27290 6
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 3572 "configure"
#include "confdefs.h"
d27293 4
a27296 1
main(){
d27304 3
d27308 13
a27320 3
EOF
if { (eval echo configure:3586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
d27323 3
a27325 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d27327 1
a27327 3
rm -fr conftest*
fi

d27330 3
d27334 7
a27340 7
LIBS="-lthread $LIBS"
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 3604 "configure"
#include "confdefs.h"
d27344 4
a27347 1
main(){
d27356 3
d27360 14
a27373 4
EOF
if { (eval echo configure:3620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="UI/threads/library"
d27375 3
a27377 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
d27379 1
a27379 2

LIBS="$orig_libs"
d27381 10
a27390 7
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 3637 "configure"
#include "confdefs.h"
d27394 4
a27397 1
main(){
d27406 3
d27410 14
a27423 4
EOF
if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="UI/threads"
d27425 3
a27427 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d27429 2
a27430 3
rm -fr conftest*
fi

d27432 4
a27435 2
if test "$db_cv_mutex" = "ui_only"; then
	{ echo "configure: error: unable to find UI mutex interfaces" 1>&2; exit 1; }
d27438 6
a27444 1
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
d27446 1
a27446 1
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d27448 7
a27454 3
  cat > conftest.$ac_ext <<EOF
#line 3674 "configure"
#include "confdefs.h"
d27457 1
a27457 1
main(){
d27476 25
a27500 10
EOF
if { (eval echo configure:3698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="POSIX/pthreads"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi
a27501 3
fi
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
LIBS="-lpthread $LIBS"
d27503 1
a27503 1
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d27505 7
a27511 3
  cat > conftest.$ac_ext <<EOF
#line 3715 "configure"
#include "confdefs.h"
d27514 1
a27514 1
main(){
d27533 18
a27550 7
EOF
if { (eval echo configure:3739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="POSIX/pthreads/library"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d27552 1
a27552 1
rm -fr conftest*
d27554 1
a27554 2

LIBS="$orig_libs"
d27557 216
a27772 1
	{ echo "configure: error: unable to find POSIX mutex interfaces" 1>&2; exit 1; }
d27775 2
d27778 7
a27784 6
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 3760 "configure"
#include "confdefs.h"
d27787 4
a27790 1
main(){
d27799 1
a27799 1
	exit(1);
d27801 3
d27805 13
a27817 3
EOF
if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
d27820 3
a27822 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
d27824 1
a27824 1

d27827 1
d27829 7
a27835 6
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 3794 "configure"
#include "confdefs.h"
d27838 5
a27842 2
#include <sys/mman.h>;
main(){
d27849 3
d27853 13
a27865 3
EOF
if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
d27868 3
a27870 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
d27872 1
a27872 1

d27875 1
d27878 8
a27885 3
cat > conftest.$ac_ext <<EOF
#line 3823 "configure"
#include "confdefs.h"
d27887 26
a27912 7
int main() {
typedef spinlock_t tsl_t;
spinlock_t x; initspin(&x, 1); cspinlock(&x); spinunlock(&x);
; return 0; }
EOF
if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
d27915 3
a27917 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d27919 1
a27919 1
rm -f conftest*
d27923 1
d27925 11
a27935 6
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 3847 "configure"
#include "confdefs.h"
a27936 1
main(){
d27939 2
d27942 3
a27944 1
	exit(1);
d27946 13
a27958 3
EOF
if { (eval echo configure:3857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
d27961 3
a27963 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d27965 1
a27965 1
rm -fr conftest*
d27968 9
a27976 1
fi
a27977 4
if test "$db_cv_mutex" = no; then
cat > conftest.$ac_ext <<EOF
#line 3871 "configure"
#include "confdefs.h"
d27979 26
a28004 7
int main() {
typedef abilock_t tsl_t;
abilock_t x; init_lock(&x); acquire_lock(&x); release_lock(&x);
; return 0; }
EOF
if { (eval echo configure:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
d28007 3
a28009 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d28011 1
a28011 1
rm -f conftest*
d28014 4
d28019 8
a28026 3
cat > conftest.$ac_ext <<EOF
#line 3891 "configure"
#include "confdefs.h"
d28028 26
a28053 8
int main() {
typedef sema_t tsl_t;
 sema_t x;
 sema_init(&x, 1, USYNC_PROCESS, NULL); sema_wait(&x); sema_post(&x);
; return 0; }
EOF
if { (eval echo configure:3900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
d28056 3
a28058 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d28060 1
a28060 1
rm -f conftest*
d28063 5
d28069 8
a28076 3
cat > conftest.$ac_ext <<EOF
#line 3912 "configure"
#include "confdefs.h"
d28078 25
a28102 8
int main() {
typedef lock_t tsl_t;
 lock_t x;
 _lock_try(&x); _lock_clear(&x);
; return 0; }
EOF
if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
d28105 3
a28107 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d28109 1
a28109 1
rm -f conftest*
d28112 1
d28114 8
a28121 3
cat > conftest.$ac_ext <<EOF
#line 3933 "configure"
#include "confdefs.h"
d28123 24
a28146 6
int main() {
int x; _check_lock(&x,0,1); _clear_lock(&x,0);
; return 0; }
EOF
if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
d28149 91
a28239 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d28241 1
a28241 1
rm -f conftest*
d28244 37
a28280 3
if test "$db_cv_mutex" = DOESNT_WORK; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d28282 25
a28306 7
  cat > conftest.$ac_ext <<EOF
#line 3955 "configure"
#include "confdefs.h"
main(){
#if defined(__alpha)
#if defined(__GNUC__)
exit(0);
d28308 18
a28325 6
#endif
exit(1);}
EOF
if { (eval echo configure:3965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="ALPHA/gcc-assembly"
d28327 3
a28329 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
d28331 1
a28331 1

d28334 1
d28336 16
a28351 10
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 3982 "configure"
#include "confdefs.h"
main(){
#if defined(__hppa)
#if defined(__GNUC__)
exit(0);
d28353 17
a28369 5
#endif
exit(1);}
EOF
if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
d28372 3
a28374 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d28376 1
a28376 1
rm -fr conftest*
d28379 13
a28391 1
fi
d28393 4
a28396 11
if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4009 "configure"
#include "confdefs.h"
main(){
#if defined(__powerpc__)
#if defined(__GNUC__)
exit(0);
d28398 17
a28414 5
#endif
exit(1);}
EOF
if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
d28417 3
a28419 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d28421 1
a28421 1
rm -fr conftest*
d28424 13
a28436 1
fi
d28438 1
a28438 10
if test "$db_cv_mutex" = DOESNT_WORK; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4036 "configure"
#include "confdefs.h"
main(){
#if defined(__sparc__)
#if defined(__GNUC__)
d28440 2
d28443 3
a28445 2
#endif
	exit(1);
d28447 13
a28459 3
EOF
if { (eval echo configure:4047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
d28462 3
a28464 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d28466 1
a28466 1
rm -fr conftest*
d28469 13
a28481 1
fi
d28483 1
a28483 10
if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4064 "configure"
#include "confdefs.h"
main(){
#if (defined(mc68020) || defined(sun3))
#if defined(__GNUC__)
d28485 2
d28488 3
a28490 2
#endif
	exit(1);
d28492 13
a28504 3
EOF
if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
d28507 3
a28509 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d28511 1
a28511 1
rm -fr conftest*
d28514 43
d28559 1
d28561 13
a28573 9
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4092 "configure"
#include "confdefs.h"
main(){
#if defined(i386) || defined(__i386__)
#if defined(__GNUC__)
d28575 2
d28578 3
a28580 2
#endif
	exit(1);
d28582 14
a28595 4
EOF
if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="x86/gcc-assembly"
d28597 3
a28599 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d28601 1
a28601 1
rm -fr conftest*
d28604 43
d28649 1
d28651 13
a28663 9
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4120 "configure"
#include "confdefs.h"
main(){
#if defined(__ia64)
#if defined(__GNUC__)
d28665 2
d28668 3
a28670 2
#endif
	exit(1);
d28672 13
a28684 3
EOF
if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
d28687 3
a28689 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d28691 1
a28691 1
rm -fr conftest*
d28694 13
a28706 1
fi
a28707 8
if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4148 "configure"
#include "confdefs.h"
main(){
d28710 2
d28713 3
a28715 1
	exit(1);
d28717 13
a28729 3
EOF
if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
d28732 2
a28733 5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi
d28736 1
a28736 1

d28739 1
a28739 2
echo "$ac_t""$db_cv_mutex" 1>&6

d28741 2
a28742 6
	echo "configure: warning: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." 1>&2
	ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
else
	cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_THREADS 1
EOF
d28745 2
d28750 1
a28750 1
			cat >> confdefs.h <<\EOF
d28752 3
a28754 1
EOF
d28757 1
a28757 1
			cat >> confdefs.h <<\EOF
d28759 10
a28768 1
EOF
d28771 1
a28771 1
			cat >> confdefs.h <<\EOF
d28773 10
a28782 1
EOF
d28785 1
a28785 1
			cat >> confdefs.h <<\EOF
d28787 3
a28789 1
EOF
d28792 1
a28792 1
			cat >> confdefs.h <<\EOF
d28794 3
a28796 1
EOF
d28799 1
a28799 1
			cat >> confdefs.h <<\EOF
d28801 3
a28803 1
EOF
d28806 22
a28827 1
			cat >> confdefs.h <<\EOF
d28829 3
a28831 1
EOF
d28833 2
a28834 1
POSIX/pthreads/library)	LIBS="-lpthread $LIBS"
d28836 1
a28836 1
			cat >> confdefs.h <<\EOF
d28838 9
a28846 1
EOF
d28848 3
a28850 2
PPC/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
d28852 3
a28854 1
EOF
d28858 1
a28858 1
			cat >> confdefs.h <<\EOF
d28860 17
a28876 1
EOF
d28879 1
a28879 1
			cat >> confdefs.h <<\EOF
d28881 3
a28883 1
EOF
d28886 1
a28886 1
			cat >> confdefs.h <<\EOF
d28888 3
a28890 1
EOF
d28893 1
a28893 1
			cat >> confdefs.h <<\EOF
d28895 3
a28897 1
EOF
d28900 1
a28900 1
			cat >> confdefs.h <<\EOF
d28902 3
a28904 1
EOF
d28907 1
a28907 1
			cat >> confdefs.h <<\EOF
d28909 10
a28918 1
EOF
d28920 1
d28922 1
a28922 1
			cat >> confdefs.h <<\EOF
d28924 3
a28926 1
EOF
d28928 1
a28928 1
UI/threads/library)	LIBS="-lthread $LIBS"
d28930 1
a28930 1
			cat >> confdefs.h <<\EOF
d28932 3
a28934 1
EOF
d28937 1
a28937 1
			cat >> confdefs.h <<\EOF
d28939 3
a28941 1
EOF
d28944 1
a28944 1
			cat >> confdefs.h <<\EOF
d28946 80
a29025 11
EOF
;;
UTS/cc-assembly)	ADDITIONAL_OBJS="$ADDITIONAL_OBJS uts4.cc${o}"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_UTS_CC_ASSEMBLY 1
EOF
;;
x86/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_X86_GCC_ASSEMBLY 1
EOF
d29029 10
d29040 2
a29041 1
for ac_func in getcwd getopt memcmp memcpy memmove
d29043 13
a29055 8
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4298: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4303 "configure"
#include "confdefs.h"
d29057 8
a29064 2
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d29066 4
d29071 2
a29072 5
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

d29079 4
a29082 1
$ac_func();
d29085 35
a29119 13
; return 0; }
EOF
if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
a29120 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
d29122 1
a29122 2
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
d29127 6
a29132 1
for ac_func in raise snprintf strcasecmp strerror vsnprintf
d29134 13
a29146 8
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4355: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4360 "configure"
#include "confdefs.h"
d29148 8
a29155 2
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d29157 4
d29162 2
a29163 5
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

d29170 4
a29173 1
$ac_func();
d29176 35
a29210 13
; return 0; }
EOF
if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
a29211 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
d29213 1
a29213 2
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
d29219 3
a29221 2
tmp="`echo \"$LIBOBJS\" | sed \"s/\.o/${o}/g\"`"
LIBOBJS="$tmp"
d29223 4
a29226 1
for ac_func in getuid pstat_getdynamic sysconf sched_yield strtoul yield
d29228 13
a29240 8
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4416: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4421 "configure"
#include "confdefs.h"
d29242 8
a29249 2
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d29251 4
d29256 2
a29257 5
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

d29264 4
a29267 1
$ac_func();
d29270 35
a29304 13
; return 0; }
EOF
if { (eval echo configure:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
a29305 9
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
d29310 20
a29329 13
case "$host_os" in
hpux*)
	echo "configure: warning: pread/pwrite interfaces ignored on $host_os." 1>&2;;
*)	for ac_func in pread pwrite
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4475: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4480 "configure"
#include "confdefs.h"
d29331 8
a29338 2
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d29340 4
d29345 2
a29346 5
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

d29353 4
a29356 1
$ac_func();
d29359 35
a29393 13
; return 0; }
EOF
if { (eval echo configure:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
a29394 9
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
a29397 1
esac
d29399 8
a29406 37
echo $ac_n "checking for fcntl/F_SETFD""... $ac_c" 1>&6
echo "configure:4530: checking for fcntl/F_SETFD" >&5
if eval "test \"`echo '$''{'db_cv_fcntl_f_setfd'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4538 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <fcntl.h>
main(){exit(fcntl(1, F_SETFD, 1) == -1);}
EOF
if { (eval echo configure:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_fcntl_f_setfd=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  db_cv_fcntl_f_setfd=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$db_cv_fcntl_f_setfd" 1>&6
if test "$db_cv_fcntl_f_setfd" = yes; then
	cat >> confdefs.h <<\EOF
#define HAVE_FCNTL_F_SETFD 1
EOF

fi
a29407 3
case "$host_os" in
aux*)	ADDITIONAL_OBJS="getopt${o} $ADDITIONAL_OBJS";;
esac
d29409 1
a29409 2

for ac_func in qsort
d29411 13
a29423 8
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4575: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4580 "configure"
#include "confdefs.h"
d29425 8
a29432 2
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d29434 4
d29439 2
a29440 5
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

d29447 4
a29450 1
$ac_func();
d29453 35
a29487 13
; return 0; }
EOF
if { (eval echo configure:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
a29488 10
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
{ echo "configure: error: No qsort library function." 1>&2; exit 1; }
d29491 2
d29494 5
a29498 6
for ac_func in select
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4631: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a29499 10
  cat > conftest.$ac_ext <<EOF
#line 4636 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
d29501 13
a29513 1
int main() {
d29515 1
a29515 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d29517 17
a29533 5
; return 0; }
EOF
if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d29535 4
a29538 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d29540 1
a29540 1
rm -f conftest*
d29542 8
a29550 10
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
{ echo "configure: error: No select library function." 1>&2; exit 1; }
a29551 1
done
d29553 29
d29583 34
a29616 23
echo $ac_n "checking for int type sprintf return value""... $ac_c" 1>&6
echo "configure:4686: checking for int type sprintf return value" >&5
if eval "test \"`echo '$''{'db_cv_sprintf_count'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4694 "configure"
#include "confdefs.h"
main(){char buf[20]; exit(sprintf(buf, "XXX") != 3);}
EOF
if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_sprintf_count=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  db_cv_sprintf_count=no
fi
rm -fr conftest*
d29618 6
d29627 38
a29664 5
echo "$ac_t""$db_cv_sprintf_count" 1>&6
if test "$db_cv_sprintf_count" = no; then
	cat >> confdefs.h <<\EOF
#define SPRINTF_RET_CHARPNT 1
EOF
d29666 48
d29715 5
d29721 26
a29746 10
if test "$db_cv_bigfile" = no; then
	case "$host_os" in
        solaris2.8|hpux*)
		if test "$db_cv_cxx" = "yes"; then
	echo "configure: warning: Large file and C++ API support are incompatible on HP-UX" 1>&2
	echo "configure: warning: and Solaris 8; large file support has been turned off." 1>&2
		else
			cat >> confdefs.h <<\EOF
#define HAVE_FILE_OFFSET_BITS 1
EOF
d29748 43
a29790 8
		fi;;
	aix*|solaris*|linux*)
		cat >> confdefs.h <<\EOF
#define HAVE_FILE_OFFSET_BITS 1
EOF
;;
	esac
fi
d29792 17
a29808 11
mmap_ok=no
case "$host_os" in
bsdi3*|bsdi4.0)
	echo "configure: warning: mlock(2) interface ignored on BSD/OS 3.X and 4.0." 1>&2
	mmap_ok=yes
	for ac_func in mmap munmap
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4748: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d29810 15
a29824 10
  cat > conftest.$ac_ext <<EOF
#line 4753 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
d29826 28
a29853 1
int main() {
d29855 43
a29897 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d29899 17
a29915 5
; return 0; }
EOF
if { (eval echo configure:4776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d29917 16
a29932 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d29937 12
a29948 9
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
d29950 4
a29953 6
fi
done
;;
ultrix*)
	echo "configure: warning: mmap(2) interface ignored on Ultrix." 1>&2;;
*)
d29955 3
a29957 1
	for ac_func in mlock munlock
d29959 13
a29971 8
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4808: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4813 "configure"
#include "confdefs.h"
d29973 8
a29980 2
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d29982 4
d29987 2
a29988 5
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

d29995 4
a29998 1
$ac_func();
d30001 35
a30035 13
; return 0; }
EOF
if { (eval echo configure:4836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
a30036 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
d30038 1
a30038 1
  echo "$ac_t""no" 1>&6
d30041 6
d30048 2
a30049 1
	for ac_func in mmap munmap
d30051 13
a30063 8
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4863: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4868 "configure"
#include "confdefs.h"
d30065 8
a30072 2
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d30074 4
d30079 2
a30080 5
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

d30087 4
a30090 1
$ac_func();
d30093 35
a30127 13
; return 0; }
EOF
if { (eval echo configure:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
a30128 10
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
mmap_ok=no
a30130 2
;;
esac
d30132 3
a30134 7
shmget_ok=no
case "$host_os" in
sunos*)
	echo "configure: warning: shmget(2) interface ignored on SunOS." 1>&2;;
*)
	shmget_ok=yes
	for ac_func in shmget
d30136 13
a30148 8
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4927: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4932 "configure"
#include "confdefs.h"
d30150 8
a30157 2
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d30159 4
d30164 2
a30165 5
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

d30172 4
a30175 1
$ac_func();
d30178 35
a30212 70
; return 0; }
EOF
if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
shmget_ok=no
fi
done
;;
esac

if test "$mmap_ok" = no -a "$shmget_ok" = no; then
	echo "configure: warning: Neither mmap/munmap(2) or shmget(2) library functions." 1>&2
fi



# Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4991: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_ar'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$db_cv_path_ar" in
  /*)
  ac_cv_path_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_ar="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_ar" && ac_cv_path_db_cv_path_ar="missing_ar"
  ;;
esac
fi
db_cv_path_ar="$ac_cv_path_db_cv_path_ar"
if test -n "$db_cv_path_ar"; then
  echo "$ac_t""$db_cv_path_ar" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
a30213 305
if test "$db_cv_path_ar" = missing_ar; then
	{ echo "configure: error: No ar utility found." 1>&2; exit 1; }
fi
# Extract the first word of "chmod", so it can be a program name with args.
set dummy chmod; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5030: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_chmod'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$db_cv_path_chmod" in
  /*)
  ac_cv_path_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_chmod="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_chmod" && ac_cv_path_db_cv_path_chmod="missing_chmod"
  ;;
esac
fi
db_cv_path_chmod="$ac_cv_path_db_cv_path_chmod"
if test -n "$db_cv_path_chmod"; then
  echo "$ac_t""$db_cv_path_chmod" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test "$db_cv_path_chmod" = missing_chmod; then
	{ echo "configure: error: No chmod utility found." 1>&2; exit 1; }
fi
# Extract the first word of "cp", so it can be a program name with args.
set dummy cp; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5069: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_cp'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$db_cv_path_cp" in
  /*)
  ac_cv_path_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_cp="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_cp" && ac_cv_path_db_cv_path_cp="missing_cp"
  ;;
esac
fi
db_cv_path_cp="$ac_cv_path_db_cv_path_cp"
if test -n "$db_cv_path_cp"; then
  echo "$ac_t""$db_cv_path_cp" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test "$db_cv_path_cp" = missing_cp; then
	{ echo "configure: error: No cp utility found." 1>&2; exit 1; }
fi
# Extract the first word of "ln", so it can be a program name with args.
set dummy ln; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5108: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_ln'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$db_cv_path_ln" in
  /*)
  ac_cv_path_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_ln="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_ln" && ac_cv_path_db_cv_path_ln="missing_ln"
  ;;
esac
fi
db_cv_path_ln="$ac_cv_path_db_cv_path_ln"
if test -n "$db_cv_path_ln"; then
  echo "$ac_t""$db_cv_path_ln" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test "$db_cv_path_ln" = missing_ln; then
	{ echo "configure: error: No ln utility found." 1>&2; exit 1; }
fi
# Extract the first word of "mkdir", so it can be a program name with args.
set dummy mkdir; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5147: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_mkdir'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$db_cv_path_mkdir" in
  /*)
  ac_cv_path_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_mkdir="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_mkdir" && ac_cv_path_db_cv_path_mkdir="missing_mkdir"
  ;;
esac
fi
db_cv_path_mkdir="$ac_cv_path_db_cv_path_mkdir"
if test -n "$db_cv_path_mkdir"; then
  echo "$ac_t""$db_cv_path_mkdir" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test "$db_cv_path_mkdir" = missing_mkdir; then
	{ echo "configure: error: No mkdir utility found." 1>&2; exit 1; }
fi
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5186: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_ranlib'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$db_cv_path_ranlib" in
  /*)
  ac_cv_path_db_cv_path_ranlib="$db_cv_path_ranlib" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_ranlib="$db_cv_path_ranlib" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_ranlib="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_ranlib" && ac_cv_path_db_cv_path_ranlib="missing_ranlib"
  ;;
esac
fi
db_cv_path_ranlib="$ac_cv_path_db_cv_path_ranlib"
if test -n "$db_cv_path_ranlib"; then
  echo "$ac_t""$db_cv_path_ranlib" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "rm", so it can be a program name with args.
set dummy rm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5222: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_rm'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$db_cv_path_rm" in
  /*)
  ac_cv_path_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_rm="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_rm" && ac_cv_path_db_cv_path_rm="missing_rm"
  ;;
esac
fi
db_cv_path_rm="$ac_cv_path_db_cv_path_rm"
if test -n "$db_cv_path_rm"; then
  echo "$ac_t""$db_cv_path_rm" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test "$db_cv_path_rm" = missing_rm; then
	{ echo "configure: error: No rm utility found." 1>&2; exit 1; }
fi
# Extract the first word of "sh", so it can be a program name with args.
set dummy sh; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5261: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_sh'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$db_cv_path_sh" in
  /*)
  ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_sh="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_sh" && ac_cv_path_db_cv_path_sh="missing_sh"
  ;;
esac
fi
db_cv_path_sh="$ac_cv_path_db_cv_path_sh"
if test -n "$db_cv_path_sh"; then
  echo "$ac_t""$db_cv_path_sh" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test "$db_cv_path_sh" = missing_sh; then
	{ echo "configure: error: No sh utility found." 1>&2; exit 1; }
fi
# Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5300: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_strip'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$db_cv_path_strip" in
  /*)
  ac_cv_path_db_cv_path_strip="$db_cv_path_strip" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_strip="$db_cv_path_strip" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_strip="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_strip" && ac_cv_path_db_cv_path_strip="missing_strip"
  ;;
esac
fi
db_cv_path_strip="$ac_cv_path_db_cv_path_strip"
if test -n "$db_cv_path_strip"; then
  echo "$ac_t""$db_cv_path_strip" 1>&6
d30215 1
a30215 1
  echo "$ac_t""no" 1>&6
d30217 59
d30277 35
a30311 3
if test "$db_cv_path_strip" = missing_strip; then
	{ echo "configure: error: No strip utility found." 1>&2; exit 1; }
fi
a30312 33
if test "$db_cv_test" = "yes"; then
	# Extract the first word of "kill", so it can be a program name with args.
set dummy kill; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5341: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_kill'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$db_cv_path_kill" in
  /*)
  ac_cv_path_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_kill="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_kill" && ac_cv_path_db_cv_path_kill="missing_kill"
  ;;
esac
fi
db_cv_path_kill="$ac_cv_path_db_cv_path_kill"
if test -n "$db_cv_path_kill"; then
  echo "$ac_t""$db_cv_path_kill" 1>&6
d30314 1
a30314 1
  echo "$ac_t""no" 1>&6
d30316 3
d30320 4
a30323 3
	if test "$db_cv_path_kill" = missing_kill; then
		{ echo "configure: error: No kill utility found." 1>&2; exit 1; }
	fi
d30326 15
d30343 1
d30345 33
a30377 3
    include.tcl:../test/include.tcl
    db.h:../include/db.src
    db_int.h:../include/db_int.src"
d30379 13
a30391 1
	CREATE_LIST="${CREATE_LIST} db_185.h:../include/db_185.h"
d30393 4
a30396 2
trap '' 1 2 15
cat > confcache <<\EOF
d30399 3
a30401 2
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
d30403 2
a30404 8
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
d30406 6
a30411 1
EOF
d30417 25
a30441 17
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
d30443 2
a30444 2
    echo "updating cache $cache_file"
    cat confcache > $cache_file
a30450 2
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

d30455 4
a30458 3
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
d30460 8
a30467 1
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
d30470 16
a30485 1
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
a30486 1
DEFS=-DHAVE_CONFIG_H
a30487 1
# Without the "./", some shells look in PATH for config.status.
d30489 7
a30495 6

echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
a30496 5
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
d30498 329
a30826 1
# configure, is in ./config.log if it exists.
d30828 5
a30832 2
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
d30834 21
a30854 1
  case "\$ac_option" in
d30856 69
a30924 8
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "\$ac_cs_usage"; exit 0 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
d30928 35
a30962 2
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
d30964 1
a30964 3
trap 'rm -fr `echo "${CREATE_LIST} db_config.h:config.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
d30966 3
a30968 101
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@@/@@@@/; s/@@%/@@@@/; s/%g\$/@@g/; /@@g\$/s/[\\\\&%]/\\\\&/g;
 s/@@@@/%@@/; s/@@@@/@@%/; s/@@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@@SHELL@@%$SHELL%g
s%@@CFLAGS@@%$CFLAGS%g
s%@@CPPFLAGS@@%$CPPFLAGS%g
s%@@CXXFLAGS@@%$CXXFLAGS%g
s%@@FFLAGS@@%$FFLAGS%g
s%@@DEFS@@%$DEFS%g
s%@@LDFLAGS@@%$LDFLAGS%g
s%@@LIBS@@%$LIBS%g
s%@@exec_prefix@@%$exec_prefix%g
s%@@prefix@@%$prefix%g
s%@@program_transform_name@@%$program_transform_name%g
s%@@bindir@@%$bindir%g
s%@@sbindir@@%$sbindir%g
s%@@libexecdir@@%$libexecdir%g
s%@@datadir@@%$datadir%g
s%@@sysconfdir@@%$sysconfdir%g
s%@@sharedstatedir@@%$sharedstatedir%g
s%@@localstatedir@@%$localstatedir%g
s%@@libdir@@%$libdir%g
s%@@includedir@@%$includedir%g
s%@@oldincludedir@@%$oldincludedir%g
s%@@infodir@@%$infodir%g
s%@@mandir@@%$mandir%g
s%@@INSTALL_PROGRAM@@%$INSTALL_PROGRAM%g
s%@@INSTALL_SCRIPT@@%$INSTALL_SCRIPT%g
s%@@INSTALL_DATA@@%$INSTALL_DATA%g
s%@@host@@%$host%g
s%@@host_alias@@%$host_alias%g
s%@@host_cpu@@%$host_cpu%g
s%@@host_vendor@@%$host_vendor%g
s%@@host_os@@%$host_os%g
s%@@ADDITIONAL_INCS@@%$ADDITIONAL_INCS%g
s%@@ADDITIONAL_LANG@@%$ADDITIONAL_LANG%g
s%@@ADDITIONAL_LIBS@@%$ADDITIONAL_LIBS%g
s%@@ADDITIONAL_OBJS@@%$ADDITIONAL_OBJS%g
s%@@ADDITIONAL_PROGS@@%$ADDITIONAL_PROGS%g
s%@@CXX@@%$CXX%g
s%@@DBS_LIBS@@%$DBS_LIBS%g
s%@@DEFAULT_INSTALL@@%$DEFAULT_INSTALL%g
s%@@DEFAULT_LIB@@%$DEFAULT_LIB%g
s%@@INSTALLER@@%$INSTALLER%g
s%@@INSTALL_LIBS@@%$INSTALL_LIBS%g
s%@@JAR@@%$JAR%g
s%@@JAVAC@@%$JAVAC%g
s%@@JAVACFLAGS@@%$JAVACFLAGS%g
s%@@LIBDB_ARGS@@%$LIBDB_ARGS%g
s%@@LIBJSO_LIBS@@%$LIBJSO_LIBS%g
s%@@LIBSO_LIBS@@%$LIBSO_LIBS%g
s%@@LIBTOOL@@%$LIBTOOL%g
s%@@LIBTSO_LIBS@@%$LIBTSO_LIBS%g
s%@@LIBXSO_LIBS@@%$LIBXSO_LIBS%g
s%@@MAKEFILE_CC@@%$MAKEFILE_CC%g
s%@@MAKEFILE_CCLINK@@%$MAKEFILE_CCLINK%g
s%@@MAKEFILE_CXX@@%$MAKEFILE_CXX%g
s%@@POSTLINK@@%$POSTLINK%g
s%@@RPC_OBJS@@%$RPC_OBJS%g
s%@@SOFLAGS@@%$SOFLAGS%g
s%@@SOLINK@@%$SOLINK%g
s%@@SOSUFFIX@@%$SOSUFFIX%g
s%@@o@@%$o%g
s%@@DB_VERSION_MAJOR@@%$DB_VERSION_MAJOR%g
s%@@DB_VERSION_MINOR@@%$DB_VERSION_MINOR%g
s%@@DB_VERSION_PATCH@@%$DB_VERSION_PATCH%g
s%@@DB_VERSION_STRING@@%$DB_VERSION_STRING%g
s%@@CC@@%$CC%g
s%@@CCC@@%$CCC%g
s%@@JAVACABS@@%$JAVACABS%g
s%@@TCFLAGS@@%$TCFLAGS%g
s%@@TCL_BIN_DIR@@%$TCL_BIN_DIR%g
s%@@TCL_SRC_DIR@@%$TCL_SRC_DIR%g
s%@@TCL_LIB_FILE@@%$TCL_LIB_FILE%g
s%@@TCL_TCLSH@@%$TCL_TCLSH%g
s%@@CPP@@%$CPP%g
s%@@ssize_t_decl@@%$ssize_t_decl%g
s%@@u_char_decl@@%$u_char_decl%g
s%@@u_short_decl@@%$u_short_decl%g
s%@@u_int_decl@@%$u_int_decl%g
s%@@u_long_decl@@%$u_long_decl%g
s%@@u_int8_decl@@%$u_int8_decl%g
s%@@u_int16_decl@@%$u_int16_decl%g
s%@@int16_decl@@%$int16_decl%g
s%@@u_int32_decl@@%$u_int32_decl%g
s%@@int32_decl@@%$int32_decl%g
s%@@db_align_t_decl@@%$db_align_t_decl%g
s%@@db_alignp_t_decl@@%$db_alignp_t_decl%g
s%@@LIBOBJS@@%$LIBOBJS%g
s%@@db_cv_path_ar@@%$db_cv_path_ar%g
s%@@db_cv_path_chmod@@%$db_cv_path_chmod%g
s%@@db_cv_path_cp@@%$db_cv_path_cp%g
s%@@db_cv_path_ln@@%$db_cv_path_ln%g
s%@@db_cv_path_mkdir@@%$db_cv_path_mkdir%g
s%@@db_cv_path_ranlib@@%$db_cv_path_ranlib%g
s%@@db_cv_path_rm@@%$db_cv_path_rm%g
s%@@db_cv_path_sh@@%$db_cv_path_sh%g
s%@@db_cv_path_strip@@%$db_cv_path_strip%g
s%@@db_cv_path_kill@@%$db_cv_path_kill%g
d30970 178
a31148 1
EOF
d31150 1
a31150 1
cat >> $CONFIG_STATUS <<\EOF
d31152 17
a31168 20
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
d31170 14
a31183 1
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
d31185 3
a31187 3
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
d31189 1
a31189 5
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF
d31191 13
a31203 1
cat >> $CONFIG_STATUS <<EOF
d31205 59
a31263 30
CONFIG_FILES=\${CONFIG_FILES-"${CREATE_LIST}"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.

  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
d31265 14
a31278 2
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
d31281 77
a31357 23
  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  esac

  echo creating "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  case "$ac_file" in
  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
  *) ac_comsub= ;;
  esac

  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  sed -e "$ac_comsub
s%@@configure_input@@%$configure_input%g
s%@@srcdir@@%$srcdir%g
s%@@top_srcdir@@%$top_srcdir%g
s%@@INSTALL@@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
d31363 7
a31369 7
ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)%\1#\2define\3'
d31371 1
a31371 6
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'
d31373 1
a31373 8
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="db_config.h:config.hin"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
d31375 8
a31382 4
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
d31385 2
a31386 1
  echo creating $ac_file
d31388 62
a31449 20
  rm -f conftest.frag conftest.in conftest.out
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in

EOF

# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h.  And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
d31454 37
a31490 7
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF

# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.

d31492 1
a31492 1
while :
d31494 8
a31501 6
  ac_lines=`grep -c . conftest.vals`
  # grep -c gives empty output for an empty file on some AIX systems.
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  # Write a limited-size here document to conftest.frag.
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
d31503 65
a31567 24
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in
' >> $CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  rm -f conftest.vals
  mv conftest.tail conftest.vals
done
rm -f conftest.vals

cat >> $CONFIG_STATUS <<\EOF
  rm -f conftest.frag conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  cat conftest.in >> conftest.h
  rm -f conftest.in
  if cmp -s $ac_file conftest.h 2>/dev/null; then
    echo "$ac_file is unchanged"
    rm -f conftest.h
  else
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
d31569 3
a31571 2
    rm -f $ac_file
    mv conftest.h $ac_file
d31573 4
a31576 1
fi; done
d31578 4
a31581 2
EOF
cat >> $CONFIG_STATUS <<EOF
a31582 2
EOF
cat >> $CONFIG_STATUS <<\EOF
d31584 20
a31603 5
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
@


1.1.1.1
log
@db-3.2.9
@
text
@@


1.1.1.2
log
@track: auto import
@
text
@a49 4
  --with-embedix=DIR      Embedix install directory location."
ac_help="$ac_help
  --with-rpm=DIR          Directory location of RPM archive."
ac_help="$ac_help
a50 2
ac_help="$ac_help
  --with-uniquename=NAME  Build a uniquely named library."
d594 1
a594 1
echo "configure:601: checking for a BSD compatible install" >&5
d653 1
a653 1
echo "configure:660: checking host system type" >&5
d694 1
a694 1
echo "configure:701: checking if building in the top-level directory" >&5
d734 4
a737 16













CONFIGURATION_PATH=${PWD-`pwd`}
CONFIGURATION_ARGS=`echo "$*" |
    sed -e 's/--with-embedix[^ ]*//' -e 's/--with-rpm[^ ]*//'`
d743 1
a743 1
DB_VERSION_MINOR=3
d745 1
a745 1
DB_VERSION_PATCH=4
d747 1
a747 1
DB_VERSION_UNIQUE_NAME=_3003
a748 1
DB_VERSION_STRING="\"Sleepycat Software: Berkeley DB 3.3.4: (May  9, 2001)\""
d755 1
a755 1
echo "configure:775: checking if --disable-bigfile option specified" >&5
d759 1
a759 1
  :
d761 1
a761 1
  enableval="yes"
a763 5
case "$enableval" in
	yes)	db_cv_bigfile="no";;
	no)	db_cv_bigfile="yes";;
	*)	{ echo "configure: error: 		    illegal argument value for --enable-bigfile option" 1>&2; exit 1; };;
esac
d767 1
a767 1
echo "configure:792: checking if --enable-compat185 option specified" >&5
d779 1
a779 1
echo "configure:804: checking if --enable-cxx option specified" >&5
d791 1
a791 1
echo "configure:816: checking if --enable-debug option specified" >&5
d803 1
a803 1
echo "configure:828: checking if --enable-debug_rop option specified" >&5
d815 1
a815 1
echo "configure:840: checking if --enable-debug_wop option specified" >&5
d827 1
a827 1
echo "configure:852: checking if --enable-diagnostic option specified" >&5
d839 1
a839 1
echo "configure:864: checking if --enable-dump185 option specified" >&5
d851 1
a851 1
echo "configure:876: checking if --enable-dynamic option specified" >&5
d863 1
a863 1
echo "configure:888: checking if --enable-java option specified" >&5
d875 1
a875 1
echo "configure:900: checking if --enable-posixmutexes option specified" >&5
d887 1
a887 1
echo "configure:912: checking if --enable-rpc option specified" >&5
d899 1
a899 1
echo "configure:924: checking if --enable-shared option specified" >&5
d914 1
a914 1
echo "configure:939: checking if --enable-tcl option specified" >&5
d926 1
a926 1
echo "configure:951: checking if --enable-test option specified" >&5
d938 1
a938 1
echo "configure:963: checking if --enable-uimutexes option specified" >&5
d950 1
a950 1
echo "configure:975: checking if --enable-umrw option specified" >&5
d961 2
a962 46
echo $ac_n "checking if --with-embedix=DIR option specified""... $ac_c" 1>&6
echo "configure:987: checking if --with-embedix=DIR option specified" >&5
# Check whether --with-embedix or --without-embedix was given.
if test "${with_embedix+set}" = set; then
  withval="$with_embedix"
  with_embedix="$withval"
else
  with_embedix="no"
fi

if test "$with_embedix" = "no"; then
	db_cv_embedix="no"
	echo "$ac_t""$with_embedix" 1>&6
else
	db_cv_embedix="yes"
	if test "$with_embedix" = "yes"; then
		db_cv_path_embedix_install="/opt/Embedix"
	else
		db_cv_path_embedix_install="$with_embedix"
	fi
	echo "$ac_t""$db_cv_path_embedix_install" 1>&6
fi

echo $ac_n "checking if --with-rpm=DIR option specified""... $ac_c" 1>&6
echo "configure:1010: checking if --with-rpm=DIR option specified" >&5
# Check whether --with-rpm or --without-rpm was given.
if test "${with_rpm+set}" = set; then
  withval="$with_rpm"
  with_rpm="$withval"
else
  with_rpm="no"
fi

if test "$with_rpm" = "no"; then
	db_cv_rpm="no"
else
	if test "$with_rpm" = "yes"; then
		{ echo "configure: error: --with-rpm requires a directory argument" 1>&2; exit 1; }
	fi
	db_cv_rpm="yes"
	db_cv_path_rpm_archive="$with_rpm"
fi
echo "$ac_t""$with_rpm" 1>&6

echo $ac_n "checking if --with-tcl=DIR option specified""... $ac_c" 1>&6
echo "configure:1031: checking if --with-tcl=DIR option specified" >&5
d966 1
a966 1
  with_tclconfig="$withval"
a975 20
echo $ac_n "checking if --with-uniquename=NAME option specified""... $ac_c" 1>&6
echo "configure:1046: checking if --with-uniquename=NAME option specified" >&5
# Check whether --with-uniquename or --without-uniquename was given.
if test "${with_uniquename+set}" = set; then
  withval="$with_uniquename"
  with_uniquename="$withval"
else
  with_uniquename="no"
fi

if test "$with_uniquename" = "no"; then
	db_cv_uniquename="no"
	echo "$ac_t""$with_uniquename" 1>&6
else
	db_cv_uniquename="yes"
	if test "$with_uniquename" != "yes"; then
		DB_VERSION_UNIQUE_NAME="$with_uniquename"
	fi
	echo "$ac_t""$DB_VERSION_UNIQUE_NAME" 1>&6
fi
d977 24
a1000 25
if test "$db_cv_embedix" = "yes"; then
	if test "$db_cv_rpm" = "no"; then
		{ echo "configure: error: --with-embedix requires --with-rpm" 1>&2; exit 1; }
	fi
fi

if test "$db_cv_dynamic" = "no"; then
	if test "$db_cv_java" = "yes"; then
		{ echo "configure: error: --enable-java requires shared libraries" 1>&2; exit 1; }
	fi
	if test "$db_cv_tcl" = "yes"; then
		{ echo "configure: error: --enable-tcl requires shared libraries" 1>&2; exit 1; }
	fi
fi

if test "$db_cv_test" = "yes"; then
	if test "$db_cv_tcl" = "no"; then
		{ echo "configure: error: --enable-test requires --enable-tcl" 1>&2; exit 1; }
	fi
fi


if test "$db_cv_diagnostic" = yes; then
	cat >> confdefs.h <<\EOF
#define DIAGNOSTIC 1
d1002 7
d1010 2
a1011 5
fi
if test "$db_cv_debug_rop" = yes; then
	cat >> confdefs.h <<\EOF
#define DEBUG_ROP 1
EOF
d1013 1
a1013 2
fi
if test "$db_cv_debug_wop" = yes; then
d1015 1
a1015 1
#define DEBUG_WOP 1
d1018 2
a1020 4
if test "$db_cv_umrw" = yes; then
	cat >> confdefs.h <<\EOF
#define UMRW 1
EOF
d1022 2
a1023 36
fi
if test "$db_cv_test" = yes; then
	cat >> confdefs.h <<\EOF
#define CONFIG_TEST 1
EOF

fi

echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:1120: checking build system type" >&5

build_alias=$build
case "$build_alias" in
NONE)
  case $nonopt in
  NONE) build_alias=$host_alias ;;
  *) build_alias=$nonopt ;;
  esac ;;
esac

build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6

if test $host != $build; then
  ac_tool_prefix=${host_alias}-
else
  ac_tool_prefix=
fi



# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
d1025 2
a1026 2
echo "configure:1148: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_ar'+set}'`\" = set"; then
d1029 2
a1030 2
  if test -n "$path_ar"; then
  ac_cv_prog_path_ar="$path_ar" # Let the user override the test.
d1037 1
a1037 1
      ac_cv_prog_path_ar="${ac_tool_prefix}ar"
d1044 3
a1046 3
path_ar="$ac_cv_prog_path_ar"
if test -n "$path_ar"; then
  echo "$ac_t""$path_ar" 1>&6
d1051 2
a1052 5

if test -z "$ac_cv_prog_path_ar"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
d1054 2
a1055 2
echo "configure:1180: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_ar'+set}'`\" = set"; then
d1058 2
a1059 2
  if test -n "$path_ar"; then
  ac_cv_prog_path_ar="$path_ar" # Let the user override the test.
d1066 1
a1066 1
      ac_cv_prog_path_ar="ar"
a1070 1
  test -z "$ac_cv_prog_path_ar" && ac_cv_prog_path_ar="missing_ar"
d1073 3
a1075 3
path_ar="$ac_cv_prog_path_ar"
if test -n "$path_ar"; then
  echo "$ac_t""$path_ar" 1>&6
d1080 2
a1081 7
else
  path_ar="missing_ar"
fi
fi

# Extract the first word of "$path_ar", so it can be a program name with args.
set dummy $path_ar; ac_word=$2
d1083 2
a1084 2
echo "configure:1215: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_ar'+set}'`\" = set"; then
d1087 3
a1089 8
  case "$db_cv_path_ar" in
  /*)
  ac_cv_path_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test with a dos path.
  ;;
  *)
d1092 1
a1092 1
  for ac_dir in $ac_dummy; do 
d1095 1
a1095 1
      ac_cv_path_db_cv_path_ar="$ac_dir/$ac_word"
a1099 3
  test -z "$ac_cv_path_db_cv_path_ar" && ac_cv_path_db_cv_path_ar="missing_ar"
  ;;
esac
d1101 4
a1104 3
db_cv_path_ar="$ac_cv_path_db_cv_path_ar"
if test -n "$db_cv_path_ar"; then
  echo "$ac_t""$db_cv_path_ar" 1>&6
d1109 3
a1111 6
if test "$db_cv_path_ar" = missing_ar; then
	{ echo "configure: error: No ar utility found." 1>&2; exit 1; }
fi

# Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args.
set dummy ${ac_tool_prefix}chmod; ac_word=$2
d1113 2
a1114 2
echo "configure:1255: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_chmod'+set}'`\" = set"; then
d1117 2
a1118 2
  if test -n "$path_chmod"; then
  ac_cv_prog_path_chmod="$path_chmod" # Let the user override the test.
d1121 1
d1126 5
a1130 1
      ac_cv_prog_path_chmod="${ac_tool_prefix}chmod"
d1135 14
d1151 3
a1153 3
path_chmod="$ac_cv_prog_path_chmod"
if test -n "$path_chmod"; then
  echo "$ac_t""$path_chmod" 1>&6
d1158 5
a1162 5

if test -z "$ac_cv_prog_path_chmod"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "chmod", so it can be a program name with args.
set dummy chmod; ac_word=$2
d1164 2
a1165 2
echo "configure:1287: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_chmod'+set}'`\" = set"; then
d1168 2
a1169 2
  if test -n "$path_chmod"; then
  ac_cv_prog_path_chmod="$path_chmod" # Let the user override the test.
d1176 1
a1176 1
      ac_cv_prog_path_chmod="chmod"
a1180 1
  test -z "$ac_cv_prog_path_chmod" && ac_cv_prog_path_chmod="missing_chmod"
d1183 3
a1185 3
path_chmod="$ac_cv_prog_path_chmod"
if test -n "$path_chmod"; then
  echo "$ac_t""$path_chmod" 1>&6
d1189 20
d1210 10
d1221 3
a1223 1
  path_chmod="missing_chmod"
d1225 11
d1237 4
d1242 12
a1253 6
# Extract the first word of "$path_chmod", so it can be a program name with args.
set dummy $path_chmod; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1322: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_chmod'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d1255 1
a1255 21
  case "$db_cv_path_chmod" in
  /*)
  ac_cv_path_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_chmod="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_chmod" && ac_cv_path_db_cv_path_chmod="missing_chmod"
  ;;
esac
a1256 5
db_cv_path_chmod="$ac_cv_path_db_cv_path_chmod"
if test -n "$db_cv_path_chmod"; then
  echo "$ac_t""$db_cv_path_chmod" 1>&6
else
  echo "$ac_t""no" 1>&6
d1259 6
a1264 2
if test "$db_cv_path_chmod" = missing_chmod; then
	{ echo "configure: error: No chmod utility found." 1>&2; exit 1; }
d1267 6
a1272 5
# Extract the first word of "${ac_tool_prefix}cp", so it can be a program name with args.
set dummy ${ac_tool_prefix}cp; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1362: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_cp'+set}'`\" = set"; then
d1275 3
a1277 2
  if test -n "$path_cp"; then
  ac_cv_prog_path_cp="$path_cp" # Let the user override the test.
d1279 1
a1279 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_path_cp="${ac_tool_prefix}cp"
      break
    fi
  done
  IFS="$ac_save_ifs"
d1281 2
d1284 10
a1293 3
path_cp="$ac_cv_prog_path_cp"
if test -n "$path_cp"; then
  echo "$ac_t""$path_cp" 1>&6
d1295 5
a1299 1
  echo "$ac_t""no" 1>&6
d1303 9
a1311 23
if test -z "$ac_cv_prog_path_cp"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "cp", so it can be a program name with args.
set dummy cp; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1394: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_cp'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$path_cp"; then
  ac_cv_prog_path_cp="$path_cp" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_path_cp="cp"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_path_cp" && ac_cv_prog_path_cp="missing_cp"
d1313 5
d1319 4
a1322 6
path_cp="$ac_cv_prog_path_cp"
if test -n "$path_cp"; then
  echo "$ac_t""$path_cp" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
a1323 3
else
  path_cp="missing_cp"
fi
d1325 4
a1329 34
# Extract the first word of "$path_cp", so it can be a program name with args.
set dummy $path_cp; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1429: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_cp'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$db_cv_path_cp" in
  /*)
  ac_cv_path_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_cp="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_cp" && ac_cv_path_db_cv_path_cp="missing_cp"
  ;;
esac
fi
db_cv_path_cp="$ac_cv_path_db_cv_path_cp"
if test -n "$db_cv_path_cp"; then
  echo "$ac_t""$db_cv_path_cp" 1>&6
else
  echo "$ac_t""no" 1>&6
d1331 4
a1335 2
if test "$db_cv_path_cp" = missing_cp; then
	{ echo "configure: error: No cp utility found." 1>&2; exit 1; }
d1338 5
a1342 3
if test "$db_cv_rpm" = "yes"; then
	# Extract the first word of "${ac_tool_prefix}ldconfig", so it can be a program name with args.
set dummy ${ac_tool_prefix}ldconfig; ac_word=$2
d1344 2
a1345 2
echo "configure:1470: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_ldconfig'+set}'`\" = set"; then
d1348 2
a1349 2
  if test -n "$path_ldconfig"; then
  ac_cv_prog_path_ldconfig="$path_ldconfig" # Let the user override the test.
d1356 1
a1356 1
      ac_cv_prog_path_ldconfig="${ac_tool_prefix}ldconfig"
d1363 3
a1365 3
path_ldconfig="$ac_cv_prog_path_ldconfig"
if test -n "$path_ldconfig"; then
  echo "$ac_t""$path_ldconfig" 1>&6
d1369 3
a1371 6


if test -z "$ac_cv_prog_path_ldconfig"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "ldconfig", so it can be a program name with args.
set dummy ldconfig; ac_word=$2
d1373 2
a1374 2
echo "configure:1502: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_ldconfig'+set}'`\" = set"; then
d1377 2
a1378 2
  if test -n "$path_ldconfig"; then
  ac_cv_prog_path_ldconfig="$path_ldconfig" # Let the user override the test.
d1385 1
a1385 1
      ac_cv_prog_path_ldconfig="ldconfig"
a1389 1
  test -z "$ac_cv_prog_path_ldconfig" && ac_cv_prog_path_ldconfig="missing_ldconfig"
d1392 3
a1394 3
path_ldconfig="$ac_cv_prog_path_ldconfig"
if test -n "$path_ldconfig"; then
  echo "$ac_t""$path_ldconfig" 1>&6
d1398 3
a1400 8

else
  path_ldconfig="missing_ldconfig"
fi
fi

	# Extract the first word of "$path_ldconfig", so it can be a program name with args.
set dummy $path_ldconfig; ac_word=$2
d1402 2
a1403 2
echo "configure:1537: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_ldconfig'+set}'`\" = set"; then
d1406 3
a1408 8
  case "$db_cv_path_ldconfig" in
  /*)
  ac_cv_path_db_cv_path_ldconfig="$db_cv_path_ldconfig" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_ldconfig="$db_cv_path_ldconfig" # Let the user override the test with a dos path.
  ;;
  *)
d1411 1
a1411 1
  for ac_dir in $ac_dummy; do 
d1414 1
a1414 1
      ac_cv_path_db_cv_path_ldconfig="$ac_dir/$ac_word"
a1418 3
  test -z "$ac_cv_path_db_cv_path_ldconfig" && ac_cv_path_db_cv_path_ldconfig="missing_ldconfig"
  ;;
esac
d1420 4
a1423 3
db_cv_path_ldconfig="$ac_cv_path_db_cv_path_ldconfig"
if test -n "$db_cv_path_ldconfig"; then
  echo "$ac_t""$db_cv_path_ldconfig" 1>&6
d1427 3
a1429 9

	if test "$db_cv_path_ldconfig" != missing_ldconfig; then
		RPM_POST_INSTALL="%post -p $db_cv_path_ldconfig"
		RPM_POST_UNINSTALL="%postun -p $db_cv_path_ldconfig"
	fi
fi

# Extract the first word of "${ac_tool_prefix}ln", so it can be a program name with args.
set dummy ${ac_tool_prefix}ln; ac_word=$2
d1431 2
a1432 2
echo "configure:1579: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_ln'+set}'`\" = set"; then
d1435 2
a1436 2
  if test -n "$path_ln"; then
  ac_cv_prog_path_ln="$path_ln" # Let the user override the test.
d1443 1
a1443 1
      ac_cv_prog_path_ln="${ac_tool_prefix}ln"
d1450 3
a1452 3
path_ln="$ac_cv_prog_path_ln"
if test -n "$path_ln"; then
  echo "$ac_t""$path_ln" 1>&6
d1456 7
a1462 6


if test -z "$ac_cv_prog_path_ln"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "ln", so it can be a program name with args.
set dummy ln; ac_word=$2
d1464 2
a1465 2
echo "configure:1611: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_ln'+set}'`\" = set"; then
d1468 2
a1469 2
  if test -n "$path_ln"; then
  ac_cv_prog_path_ln="$path_ln" # Let the user override the test.
d1476 1
a1476 1
      ac_cv_prog_path_ln="ln"
a1480 1
  test -z "$ac_cv_prog_path_ln" && ac_cv_prog_path_ln="missing_ln"
d1483 3
a1485 3
path_ln="$ac_cv_prog_path_ln"
if test -n "$path_ln"; then
  echo "$ac_t""$path_ln" 1>&6
d1490 16
a1505 4
else
  path_ln="missing_ln"
fi
fi
d1507 13
a1519 6
# Extract the first word of "$path_ln", so it can be a program name with args.
set dummy $path_ln; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1646: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_ln'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d1521 3
a1523 27
  case "$db_cv_path_ln" in
  /*)
  ac_cv_path_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_ln="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_ln" && ac_cv_path_db_cv_path_ln="missing_ln"
  ;;
esac
fi
db_cv_path_ln="$ac_cv_path_db_cv_path_ln"
if test -n "$db_cv_path_ln"; then
  echo "$ac_t""$db_cv_path_ln" 1>&6
else
  echo "$ac_t""no" 1>&6
d1525 7
d1533 3
a1535 2
if test "$db_cv_path_ln" = missing_ln; then
	{ echo "configure: error: No ln utility found." 1>&2; exit 1; }
d1537 4
d1542 3
a1544 5
# Extract the first word of "${ac_tool_prefix}mkdir", so it can be a program name with args.
set dummy ${ac_tool_prefix}mkdir; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1686: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_mkdir'+set}'`\" = set"; then
d1547 7
a1553 2
  if test -n "$path_mkdir"; then
  ac_cv_prog_path_mkdir="$path_mkdir" # Let the user override the test.
d1555 1
a1555 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_path_mkdir="${ac_tool_prefix}mkdir"
      break
    fi
  done
  IFS="$ac_save_ifs"
d1558 5
a1562 3
path_mkdir="$ac_cv_prog_path_mkdir"
if test -n "$path_mkdir"; then
  echo "$ac_t""$path_mkdir" 1>&6
d1564 1
a1564 1
  echo "$ac_t""no" 1>&6
d1567 6
a1572 8

if test -z "$ac_cv_prog_path_mkdir"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "mkdir", so it can be a program name with args.
set dummy mkdir; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1718: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_mkdir'+set}'`\" = set"; then
d1575 3
a1577 2
  if test -n "$path_mkdir"; then
  ac_cv_prog_path_mkdir="$path_mkdir" # Let the user override the test.
d1579 1
a1579 11
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_path_mkdir="mkdir"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_path_mkdir" && ac_cv_prog_path_mkdir="missing_mkdir"
d1581 2
d1584 10
a1593 3
path_mkdir="$ac_cv_prog_path_mkdir"
if test -n "$path_mkdir"; then
  echo "$ac_t""$path_mkdir" 1>&6
d1595 5
a1599 1
  echo "$ac_t""no" 1>&6
d1602 1
a1602 2
else
  path_mkdir="missing_mkdir"
d1604 8
d1614 36
a1649 28
# Extract the first word of "$path_mkdir", so it can be a program name with args.
set dummy $path_mkdir; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1753: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_mkdir'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$db_cv_path_mkdir" in
  /*)
  ac_cv_path_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_mkdir="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_mkdir" && ac_cv_path_db_cv_path_mkdir="missing_mkdir"
  ;;
esac
d1651 9
a1659 5
db_cv_path_mkdir="$ac_cv_path_db_cv_path_mkdir"
if test -n "$db_cv_path_mkdir"; then
  echo "$ac_t""$db_cv_path_mkdir" 1>&6
else
  echo "$ac_t""no" 1>&6
d1662 4
a1665 3
if test "$db_cv_path_mkdir" = missing_mkdir; then
	{ echo "configure: error: No mkdir utility found." 1>&2; exit 1; }
fi
d1667 2
a1668 2
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
d1670 2
a1671 2
echo "configure:1793: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_ranlib'+set}'`\" = set"; then
d1674 2
a1675 2
  if test -n "$path_ranlib"; then
  ac_cv_prog_path_ranlib="$path_ranlib" # Let the user override the test.
d1682 1
a1682 1
      ac_cv_prog_path_ranlib="${ac_tool_prefix}ranlib"
d1687 1
d1690 3
a1692 3
path_ranlib="$ac_cv_prog_path_ranlib"
if test -n "$path_ranlib"; then
  echo "$ac_t""$path_ranlib" 1>&6
d1697 5
a1701 5

if test -z "$ac_cv_prog_path_ranlib"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
d1703 2
a1704 2
echo "configure:1825: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_ranlib'+set}'`\" = set"; then
d1707 2
a1708 2
  if test -n "$path_ranlib"; then
  ac_cv_prog_path_ranlib="$path_ranlib" # Let the user override the test.
d1715 1
a1715 1
      ac_cv_prog_path_ranlib="ranlib"
d1720 1
a1720 1
  test -z "$ac_cv_prog_path_ranlib" && ac_cv_prog_path_ranlib="missing_ranlib"
d1723 3
a1725 3
path_ranlib="$ac_cv_prog_path_ranlib"
if test -n "$path_ranlib"; then
  echo "$ac_t""$path_ranlib" 1>&6
d1730 5
a1734 7
else
  path_ranlib="missing_ranlib"
fi
fi

# Extract the first word of "$path_ranlib", so it can be a program name with args.
set dummy $path_ranlib; ac_word=$2
d1736 2
a1737 2
echo "configure:1860: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_ranlib'+set}'`\" = set"; then
d1740 1
a1740 1
  case "$db_cv_path_ranlib" in
d1742 1
a1742 1
  ac_cv_path_db_cv_path_ranlib="$db_cv_path_ranlib" # Let the user override the test with a path.
d1745 1
a1745 1
  ac_cv_path_db_cv_path_ranlib="$db_cv_path_ranlib" # Let the user override the test with a dos path.
d1753 1
a1753 1
      ac_cv_path_db_cv_path_ranlib="$ac_dir/$ac_word"
d1758 1
a1758 1
  test -z "$ac_cv_path_db_cv_path_ranlib" && ac_cv_path_db_cv_path_ranlib="missing_ranlib"
d1762 3
a1764 3
db_cv_path_ranlib="$ac_cv_path_db_cv_path_ranlib"
if test -n "$db_cv_path_ranlib"; then
  echo "$ac_t""$db_cv_path_ranlib" 1>&6
d1769 31
d1801 6
a1806 6
# Extract the first word of "${ac_tool_prefix}rm", so it can be a program name with args.
set dummy ${ac_tool_prefix}rm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1897: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_rm'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d1808 1
a1808 20
  if test -n "$path_rm"; then
  ac_cv_prog_path_rm="$path_rm" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_path_rm="${ac_tool_prefix}rm"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
path_rm="$ac_cv_prog_path_rm"
if test -n "$path_rm"; then
  echo "$ac_t""$path_rm" 1>&6
else
  echo "$ac_t""no" 1>&6
d1811 8
d1820 5
a1824 7
if test -z "$ac_cv_prog_path_rm"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "rm", so it can be a program name with args.
set dummy rm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1929: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_rm'+set}'`\" = set"; then
d1827 27
a1853 2
  if test -n "$path_rm"; then
  ac_cv_prog_path_rm="$path_rm" # Let the user override the test.
d1855 4
a1858 11
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_path_rm="rm"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_path_rm" && ac_cv_prog_path_rm="missing_rm"
d1860 1
d1862 4
a1865 3
path_rm="$ac_cv_prog_path_rm"
if test -n "$path_rm"; then
  echo "$ac_t""$path_rm" 1>&6
d1868 15
a1882 1
fi
d1884 7
d1892 4
a1895 2
  path_rm="missing_rm"
fi
d1897 2
a1899 28
# Extract the first word of "$path_rm", so it can be a program name with args.
set dummy $path_rm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1964: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_rm'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$db_cv_path_rm" in
  /*)
  ac_cv_path_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_rm="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_rm" && ac_cv_path_db_cv_path_rm="missing_rm"
  ;;
esac
d1901 3
a1903 3
db_cv_path_rm="$ac_cv_path_db_cv_path_rm"
if test -n "$db_cv_path_rm"; then
  echo "$ac_t""$db_cv_path_rm" 1>&6
a1907 2
if test "$db_cv_path_rm" = missing_rm; then
	{ echo "configure: error: No rm utility found." 1>&2; exit 1; }
d1909 5
a1913 7

if test "$db_cv_rpm" = "yes"; then
	# Extract the first word of "${ac_tool_prefix}rpm", so it can be a program name with args.
set dummy ${ac_tool_prefix}rpm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2005: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_rpm'+set}'`\" = set"; then
d1916 27
a1942 2
  if test -n "$path_rpm"; then
  ac_cv_prog_path_rpm="$path_rpm" # Let the user override the test.
d1944 4
a1947 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_path_rpm="${ac_tool_prefix}rpm"
      break
    fi
  done
  IFS="$ac_save_ifs"
d1949 1
d1951 4
a1954 3
path_rpm="$ac_cv_prog_path_rpm"
if test -n "$path_rpm"; then
  echo "$ac_t""$path_rpm" 1>&6
d1957 4
a1960 10
fi


if test -z "$ac_cv_prog_path_rpm"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "rpm", so it can be a program name with args.
set dummy rpm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2037: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_rpm'+set}'`\" = set"; then
d1963 17
a1979 2
  if test -n "$path_rpm"; then
  ac_cv_prog_path_rpm="$path_rpm" # Let the user override the test.
d1981 4
a1984 11
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_path_rpm="rpm"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_path_rpm" && ac_cv_prog_path_rpm="missing_rpm"
d1986 3
d1990 10
a1999 3
path_rpm="$ac_cv_prog_path_rpm"
if test -n "$path_rpm"; then
  echo "$ac_t""$path_rpm" 1>&6
a2003 2
else
  path_rpm="missing_rpm"
d2005 2
d2009 10
a2018 5
	# Extract the first word of "$path_rpm", so it can be a program name with args.
set dummy $path_rpm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2072: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_rpm'+set}'`\" = set"; then
d2021 67
a2087 21
  case "$db_cv_path_rpm" in
  /*)
  ac_cv_path_db_cv_path_rpm="$db_cv_path_rpm" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_rpm="$db_cv_path_rpm" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_rpm="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_rpm" && ac_cv_path_db_cv_path_rpm="missing_rpm"
  ;;
esac
d2089 4
a2092 5
db_cv_path_rpm="$ac_cv_path_db_cv_path_rpm"
if test -n "$db_cv_path_rpm"; then
  echo "$ac_t""$db_cv_path_rpm" 1>&6
else
  echo "$ac_t""no" 1>&6
d2095 2
a2096 3
	if test "$db_cv_path_rpm" = missing_rpm; then
		{ echo "configure: error: No rpm utility found." 1>&2; exit 1; }
	fi
d2099 4
a2102 5
# Extract the first word of "${ac_tool_prefix}sh", so it can be a program name with args.
set dummy ${ac_tool_prefix}sh; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2113: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_sh'+set}'`\" = set"; then
d2105 17
a2121 2
  if test -n "$path_sh"; then
  ac_cv_prog_path_sh="$path_sh" # Let the user override the test.
d2123 4
a2126 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_path_sh="${ac_tool_prefix}sh"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2128 3
d2132 3
a2134 3
path_sh="$ac_cv_prog_path_sh"
if test -n "$path_sh"; then
  echo "$ac_t""$path_sh" 1>&6
d2140 3
a2142 7
if test -z "$ac_cv_prog_path_sh"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "sh", so it can be a program name with args.
set dummy sh; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2145: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_sh'+set}'`\" = set"; then
d2145 32
a2176 2
  if test -n "$path_sh"; then
  ac_cv_prog_path_sh="$path_sh" # Let the user override the test.
d2178 4
a2181 11
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_path_sh="sh"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_path_sh" && ac_cv_prog_path_sh="missing_sh"
d2183 4
d2188 22
a2209 3
path_sh="$ac_cv_prog_path_sh"
if test -n "$path_sh"; then
  echo "$ac_t""$path_sh" 1>&6
d2211 6
a2216 1
  echo "$ac_t""no" 1>&6
a2218 2
else
  path_sh="missing_sh"
d2222 11
a2232 5
# Extract the first word of "$path_sh", so it can be a program name with args.
set dummy $path_sh; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2180: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_sh'+set}'`\" = set"; then
d2235 58
a2292 21
  case "$db_cv_path_sh" in
  /*)
  ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_sh="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_sh" && ac_cv_path_db_cv_path_sh="missing_sh"
  ;;
esac
d2294 1
a2294 5
db_cv_path_sh="$ac_cv_path_db_cv_path_sh"
if test -n "$db_cv_path_sh"; then
  echo "$ac_t""$db_cv_path_sh" 1>&6
else
  echo "$ac_t""no" 1>&6
d2297 6
a2302 2
if test "$db_cv_path_sh" = missing_sh; then
	{ echo "configure: error: No sh utility found." 1>&2; exit 1; }
d2305 8
a2312 5
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2220: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_strip'+set}'`\" = set"; then
d2315 50
a2364 2
  if test -n "$path_strip"; then
  ac_cv_prog_path_strip="$path_strip" # Let the user override the test.
d2366 9
a2374 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_path_strip="${ac_tool_prefix}strip"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2376 2
d2379 1
a2379 3
path_strip="$ac_cv_prog_path_strip"
if test -n "$path_strip"; then
  echo "$ac_t""$path_strip" 1>&6
d2381 1
a2381 1
  echo "$ac_t""no" 1>&6
d2383 1
d2385 3
a2387 8

if test -z "$ac_cv_prog_path_strip"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2252: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_strip'+set}'`\" = set"; then
d2390 35
a2424 2
  if test -n "$path_strip"; then
  ac_cv_prog_path_strip="$path_strip" # Let the user override the test.
d2426 2
a2427 11
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_path_strip="strip"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_path_strip" && ac_cv_prog_path_strip="missing_strip"
d2429 2
d2432 7
a2438 5
path_strip="$ac_cv_prog_path_strip"
if test -n "$path_strip"; then
  echo "$ac_t""$path_strip" 1>&6
else
  echo "$ac_t""no" 1>&6
d2441 18
d2460 4
a2463 1
  path_strip="missing_strip"
d2465 9
d2476 3
a2478 5
# Extract the first word of "$path_strip", so it can be a program name with args.
set dummy $path_strip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2287: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_strip'+set}'`\" = set"; then
d2481 17
a2497 21
  case "$db_cv_path_strip" in
  /*)
  ac_cv_path_db_cv_path_strip="$db_cv_path_strip" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_strip="$db_cv_path_strip" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_strip="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_strip" && ac_cv_path_db_cv_path_strip="missing_strip"
  ;;
esac
d2499 1
a2499 5
db_cv_path_strip="$ac_cv_path_db_cv_path_strip"
if test -n "$db_cv_path_strip"; then
  echo "$ac_t""$db_cv_path_strip" 1>&6
else
  echo "$ac_t""no" 1>&6
d2502 6
a2507 2
if test "$db_cv_path_strip" = missing_strip; then
	{ echo "configure: error: No strip utility found." 1>&2; exit 1; }
d2510 3
a2512 6
if test "$db_cv_test" = "yes"; then
	# Extract the first word of "${ac_tool_prefix}kill", so it can be a program name with args.
set dummy ${ac_tool_prefix}kill; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2328: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_kill'+set}'`\" = set"; then
d2515 14
a2528 2
  if test -n "$path_kill"; then
  ac_cv_prog_path_kill="$path_kill" # Let the user override the test.
d2530 5
a2534 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_path_kill="${ac_tool_prefix}kill"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2536 12
a2547 4
fi
path_kill="$ac_cv_prog_path_kill"
if test -n "$path_kill"; then
  echo "$ac_t""$path_kill" 1>&6
d2549 2
a2550 1
  echo "$ac_t""no" 1>&6
d2552 1
d2554 1
d2556 10
a2565 8
if test -z "$ac_cv_prog_path_kill"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "kill", so it can be a program name with args.
set dummy kill; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2360: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_path_kill'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2567 2
a2568 14
  if test -n "$path_kill"; then
  ac_cv_prog_path_kill="$path_kill" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_path_kill="kill"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_path_kill" && ac_cv_prog_path_kill="missing_kill"
d2570 2
d2573 5
a2577 3
path_kill="$ac_cv_prog_path_kill"
if test -n "$path_kill"; then
  echo "$ac_t""$path_kill" 1>&6
d2579 10
a2588 2
  echo "$ac_t""no" 1>&6
fi
d2590 4
d2595 4
a2598 1
  path_kill="missing_kill"
d2600 1
a2602 28
	# Extract the first word of "$path_kill", so it can be a program name with args.
set dummy $path_kill; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2395: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_db_cv_path_kill'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$db_cv_path_kill" in
  /*)
  ac_cv_path_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_db_cv_path_kill="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_db_cv_path_kill" && ac_cv_path_db_cv_path_kill="missing_kill"
  ;;
esac
a2603 5
db_cv_path_kill="$ac_cv_path_db_cv_path_kill"
if test -n "$db_cv_path_kill"; then
  echo "$ac_t""$db_cv_path_kill" 1>&6
else
  echo "$ac_t""no" 1>&6
d2606 6
a2611 3
	if test "$db_cv_path_kill" = missing_kill; then
		{ echo "configure: error: No kill utility found." 1>&2; exit 1; }
	fi
d2614 18
a2631 11


if test "$db_cv_rpm" = "yes"; then
	BUILD_TARGET="rpm_build"
	echo "topdir: $CONFIGURATION_PATH" > rpmrc
	if test "$db_cv_embedix" = "yes"; then
		EMBEDIX_ROOT="/usr"
		INSTALL_TARGET="embedix_install"
	else
		INSTALL_TARGET="rpm_install"
	fi
d2633 2
a2634 2
	BUILD_TARGET="library_build"
	INSTALL_TARGET="library_install"
d2636 1
d2638 5
a2642 38
optimize_def="-O"
case "$host_os" in
aix4.*)	   optimize_def="-O2"
	   CC=${CC-"xlc_r"}
	   CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
	   LIBTSO_LIBS="\$(LIBS)";;
bsdi3*)	   CC=${CC-"shlicc2"}
	   optimize_def="-O2"
	   LIBS="-lipc $LIBS";;
bsdi*)	   optimize_def="-O2";;
freebsd*)  optimize_def="-O2"
	   CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
           LIBS="-pthread";;
hpux*)	   CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
irix*)	   optimize_def="-O2"
	   CPPFLAGS="-D_SGI_MP_SOURCE $CPPFLAGS";;
linux*)	   optimize_def="-O2"
	   CPPFLAGS="-D_GNU_SOURCE -D_REENTRANT $CPPFLAGS";;
mpeix*)	   CPPFLAGS="-D_POSIX_SOURCE -D_SOCKET_SOURCE $CPPFLAGS"
	   LIBS="-lsocket -lsvipc $LIBS";;
osf*)	   CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
*qnx)	   cat >> confdefs.h <<\EOF
#define HAVE_QNX 1
EOF
;;
sco3.2v4*) CC=${CC-"cc -belf"}
	   LIBS="-lsocket -lnsl_s $LIBS";;
sco*)	   CC=${CC-"cc -belf"}
	   LIBS="-lsocket -lnsl $LIBS";;
solaris*)  CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
esac

CFLAGS=${CFLAGS-$optimize_def}
CXXFLAGS=${CXXFLAGS-"$CFLAGS"}

if test "$db_cv_debug" = yes; then
	cat >> confdefs.h <<\EOF
#define DEBUG 1
a2644 2
	CFLAGS="$CFLAGS -g"
	CXXFLAGS="$CXXFLAGS -g"
d2647 3
a2649 5
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2496: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
d2652 13
a2664 2
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
d2666 2
a2667 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="${ac_tool_prefix}cc"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2669 2
d2672 6
a2677 5
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
d2680 3
a2682 8

if test -z "$ac_cv_prog_CC"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2528: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
d2685 13
a2697 2
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
d2699 5
a2703 11
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
d2705 6
d2712 19
a2730 3
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
d2732 2
a2733 1
  echo "$ac_t""no" 1>&6
d2735 1
a2736 2
else
  CC="cc"
d2738 6
d2746 6
a2751 5
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2563: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
d2754 11
a2764 2
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
d2766 4
a2769 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="${ac_tool_prefix}gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2771 1
d2773 4
a2776 5
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
d2780 3
a2782 7
if test -z "$ac_cv_prog_CC"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2595: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
d2785 11
a2795 2
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
d2797 4
a2800 11
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
d2802 1
d2804 4
a2807 5
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
d2810 17
d2828 4
a2831 1
  CC="gcc"
d2833 6
d2841 4
a2844 5
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2630: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
d2847 11
a2857 2
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
d2859 4
a2862 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2864 1
d2866 4
a2869 5
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
d2872 4
a2875 6
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2660: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
d2878 11
a2888 2
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
d2890 4
a2893 28
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_prog_rejected=no
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
	continue
      fi
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_save_ifs"
if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# -gt 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    set dummy "$ac_dir/$ac_word" "$@@"
    shift
    ac_cv_prog_CC="$@@"
  fi
d2895 1
d2897 4
a2900 6
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
d2903 4
a2906 8
  if test -z "$CC"; then
    case "`uname -s`" in
    *win32* | *WIN32*)
      # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2711: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
d2909 26
a2934 2
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
d2936 4
a2939 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="cl"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2941 1
d2943 1
a2943 5
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
d2945 1
a2945 4
 ;;
    esac
  fi
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
d2948 7
a2954 9
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:2743: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
a2955 1
cat > conftest.$ac_ext << EOF
d2957 25
a2981 1
#line 2754 "configure"
d2983 1
a2983 2

main(){return(0);}
d2985 3
a2987 8
if { (eval echo configure:2759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
d2991 3
a2993 23
  ac_cv_prog_cc_works=no
fi
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:2785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:2790: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2995 4
a2998 4
  cat > conftest.c <<EOF
#ifdef __GNUC__
  yes;
#endif
d3000 3
a3002 2
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gcc=yes
d3004 4
a3007 1
  ac_cv_prog_gcc=no
d3009 1
d3012 2
a3013 6
echo "$ac_t""$ac_cv_prog_gcc" 1>&6

if test $ac_cv_prog_gcc = yes; then
  GCC=yes
else
  GCC=
a3015 13
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:2818: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  ac_cv_prog_cc_g=yes
else
  ac_cv_prog_cc_g=no
d3018 1
d3020 3
d3024 2
a3025 16

echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
if test "$ac_test_CFLAGS" = set; then
  CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
d3029 3
a3031 13
MAKEFILE_CC=${CC}
MAKEFILE_CCLINK="\$(CC)"
MAKEFILE_CXX="nocxx"
MAKEFILE_CXXLINK="nocxx"

if test "$db_cv_cxx" = "yes"; then
	if test "$GCC" != "yes"; then
		case "$host_os" in
		aix*)		# Extract the first word of "${ac_tool_prefix}xlC_r", so it can be a program name with args.
set dummy ${ac_tool_prefix}xlC_r; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2861: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CCC'+set}'`\" = set"; then
d3034 17
a3050 2
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
d3052 8
a3059 15
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CCC="${ac_tool_prefix}xlC_r"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CCC="$ac_cv_prog_CCC"
if test -n "$CCC"; then
  echo "$ac_t""$CCC" 1>&6
d3061 5
a3065 12
  echo "$ac_t""no" 1>&6
fi


if test -z "$ac_cv_prog_CCC"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "xlC_r", so it can be a program name with args.
set dummy xlC_r; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2893: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CCC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3067 8
a3074 2
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
d3076 6
a3081 11
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CCC="xlC_r"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_CCC" && ac_cv_prog_CCC="xlC_r"
d3083 1
d3085 1
a3085 5
CCC="$ac_cv_prog_CCC"
if test -n "$CCC"; then
  echo "$ac_t""$CCC" 1>&6
else
  echo "$ac_t""no" 1>&6
a3087 2
else
  CCC="xlC_r"
d3089 1
d3091 4
a3094 21
;;
		hpux*)		# Extract the first word of "${ac_tool_prefix}aCC", so it can be a program name with args.
set dummy ${ac_tool_prefix}aCC; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2928: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CCC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CCC="${ac_tool_prefix}aCC"
      break
    fi
  done
  IFS="$ac_save_ifs"
d3096 2
a3097 6
fi
CCC="$ac_cv_prog_CCC"
if test -n "$CCC"; then
  echo "$ac_t""$CCC" 1>&6
else
  echo "$ac_t""no" 1>&6
d3101 3
a3103 7
if test -z "$ac_cv_prog_CCC"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "aCC", so it can be a program name with args.
set dummy aCC; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2960: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CCC'+set}'`\" = set"; then
d3106 11
a3116 2
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
d3118 5
a3122 16
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CCC="aCC"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_CCC" && ac_cv_prog_CCC="aCC"
fi
fi
CCC="$ac_cv_prog_CCC"
if test -n "$CCC"; then
  echo "$ac_t""$CCC" 1>&6
d3124 8
a3131 3
  echo "$ac_t""no" 1>&6
fi

d3133 5
a3137 10
  CCC="aCC"
fi
fi
;;
		osf*)		# Extract the first word of "${ac_tool_prefix}cxx", so it can be a program name with args.
set dummy ${ac_tool_prefix}cxx; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2995: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CCC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3139 8
a3146 2
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
d3148 6
a3153 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CCC="${ac_tool_prefix}cxx"
      break
    fi
  done
  IFS="$ac_save_ifs"
d3155 1
d3157 1
a3157 5
CCC="$ac_cv_prog_CCC"
if test -n "$CCC"; then
  echo "$ac_t""$CCC" 1>&6
else
  echo "$ac_t""no" 1>&6
a3159 24

if test -z "$ac_cv_prog_CCC"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "cxx", so it can be a program name with args.
set dummy cxx; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3027: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CCC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CCC="cxx"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_CCC" && ac_cv_prog_CCC="cxx"
d3161 1
a3161 6
fi
CCC="$ac_cv_prog_CCC"
if test -n "$CCC"; then
  echo "$ac_t""$CCC" 1>&6
else
  echo "$ac_t""no" 1>&6
d3164 3
a3166 2
else
  CCC="cxx"
d3168 2
d3171 5
a3175 6
;;
		solaris*)	# Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
set dummy ${ac_tool_prefix}CC; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3062: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CCC'+set}'`\" = set"; then
d3178 17
a3194 2
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
d3196 30
a3225 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CCC="${ac_tool_prefix}CC"
      break
    fi
  done
  IFS="$ac_save_ifs"
d3227 1
d3229 1
a3229 5
CCC="$ac_cv_prog_CCC"
if test -n "$CCC"; then
  echo "$ac_t""$CCC" 1>&6
else
  echo "$ac_t""no" 1>&6
a3231 24

if test -z "$ac_cv_prog_CCC"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "CC", so it can be a program name with args.
set dummy CC; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3094: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CCC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CCC="CC"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_CCC" && ac_cv_prog_CCC="CC"
d3233 1
a3233 6
fi
CCC="$ac_cv_prog_CCC"
if test -n "$CCC"; then
  echo "$ac_t""$CCC" 1>&6
else
  echo "$ac_t""no" 1>&6
d3236 3
a3238 2
else
  CCC="CC"
d3240 2
d3243 5
a3247 10
;;
		esac
	fi
	for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3133: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
d3250 11
a3260 2
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
d3262 4
a3265 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CXX="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
d3267 1
a3267 6
fi
CXX="$ac_cv_prog_CXX"
if test -n "$CXX"; then
  echo "$ac_t""$CXX" 1>&6
else
  echo "$ac_t""no" 1>&6
d3270 2
a3271 3
test -n "$CXX" && break
done
test -n "$CXX" || CXX="gcc"
d3274 11
a3284 13
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:3165: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5

ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross

cat > conftest.$ac_ext << EOF

#line 3176 "configure"
d3286 1
a3286 2

int main(){return(0);}
d3288 3
a3290 8
if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_prog_cxx_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cxx_cross=no
  else
    ac_cv_prog_cxx_cross=yes
  fi
a3293 1
  ac_cv_prog_cxx_works=no
a3295 10
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
if test $ac_cv_prog_cxx_works = no; then
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
a3296 4
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:3207: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
cross_compiling=$ac_cv_prog_cxx_cross
d3298 2
a3299 4
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
echo "configure:3212: checking whether we are using GNU C++" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3301 4
a3304 4
  cat > conftest.C <<EOF
#ifdef __GNUC__
  yes;
#endif
d3306 3
a3308 2
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:3221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gxx=yes
d3310 2
a3311 1
  ac_cv_prog_gxx=no
d3313 1
d3316 2
a3317 4
echo "$ac_t""$ac_cv_prog_gxx" 1>&6

if test $ac_cv_prog_gxx = yes; then
  GXX=yes
d3319 8
a3326 10
  GXX=
fi

ac_test_CXXFLAGS="${CXXFLAGS+set}"
ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS=
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
echo "configure:3240: checking whether ${CXX-g++} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3328 2
a3329 5
  echo 'void f(){}' > conftest.cc
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  ac_cv_prog_cxx_g=yes
else
  ac_cv_prog_cxx_g=no
d3331 1
a3331 2
rm -f conftest*

a3333 15
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS="$ac_save_CXXFLAGS"
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
d3336 2
a3337 3
	MAKEFILE_CXX=${CXX}
	MAKEFILE_CXXLINK="\$(CXX)"
fi
a3338 8
if test "$GXX" = "yes"; then
	CXXVERSION=`${MAKEFILE_CXX} --version`
	case ${CXXVERSION} in
	1.*|2.[01234567].*|*-1.*|*-2.[01234567].* )
		CXXFLAGS="-fhandle-exceptions $CXXFLAGS";;
	* )	CXXFLAGS="-fexceptions $CXXFLAGS";;
	esac
fi
a3339 2
export CC CCC
CCC=CXX
d3341 21
a3361 31
if test "$db_cv_dynamic" = "yes"; then
	SAVE_CC="${MAKEFILE_CC}"
	SAVE_CXX="${MAKEFILE_CXX}"

	# Configure libtool.
	echo $ac_n "checking libtool configuration""... $ac_c" 1>&6
echo "configure:3293: checking libtool configuration" >&5
	echo "$ac_t""" 1>&6
	${CONFIG_SHELL-/bin/sh} $srcdir/ltconfig \
		--no-verify $srcdir/ltmain.sh \
		--output=./libtool $host_os \
		--disable-static \
	|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }

	SOSUFFIX=`sed -e '/^library_names_spec=/!d' -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/' ./libtool`
	DEFAULT_LIB="\$(libso_target)"
	DEFAULT_INSTALL="install_dynamic"
	LIBDB_ARGS="\$(libso_linkname)"
	LIBDB_CXX_ARGS="\$(libxso_linkname)"
	LIBTOOL="\$(SHELL) ./libtool"

	MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${SAVE_CC}"
	MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${SAVE_CXX}"
	MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${SAVE_CC}"
	MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${SAVE_CXX}"

	INSTALLER="\$(LIBTOOL) --mode=install cp"
	POSTLINK="\$(LIBTOOL) --mode=execute true"
	SOLINK="\$(LIBTOOL) --mode=link ${SAVE_CC} -avoid-version"
	SOFLAGS="-rpath \$(libdir)"
	o=".lo"
d3363 6
a3368 9
	DEFAULT_INSTALL="install_static"
	DEFAULT_LIB="\$(libdb)"
	INSTALLER="\$(cp)"
	LIBDB_ARGS="libdb.a"
	LIBDB_CXX_ARGS="libdb_cxx.a"
	LIBTOOL="nolibtool"
	POSTLINK="@@true"
	SOSUFFIX="so"
	o=.o
d3370 9
a3378 29

if test "$db_cv_cxx" = "yes"; then
	if test "$db_cv_dynamic" = "yes"; then
		ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libxso_target)"
		DEFAULT_INSTALL="${DEFAULT_INSTALL} install_dynamic_cxx"
	else
		ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libcxx)"
		DEFAULT_INSTALL="${DEFAULT_INSTALL} install_static_cxx"
	fi

		EMBEDIX_ECD_CXX='<OPTION db-extra>\
	TYPE=bool\
	DEFAULT_VALUE=1\
	PROMPT=Include BerkeleyDB C++ library?\
	<KEEPLIST>\
		/usr/include/db_cxx.h\
		/usr/lib/libdb_cxx-@@DB_VERSION_MAJOR@@.@@DB_VERSION_MINOR@@.so\
	</KEEPLIST>\
	<PROVIDES>\
		libdb_cxx-@@DB_VERSION_MAJOR@@.@@DB_VERSION_MINOR@@.so\
	</PROVIDES>\
	<REQUIRES>\
		ld-linux.so.2\
		libc.so.6\
	</REQUIRES>\
	STATIC_SIZE=0\
	STORAGE_SIZE=523612\
	STARTUP_TIME=0\
	</OPTION>'
d3380 7
a3386 11

if test "$db_cv_java" = "yes"; then
	if test "$db_cv_dynamic" != "yes"; then
		{ echo "configure: error: --enable-java requires --enable-dynamic" 1>&2; exit 1; }
	fi

	# Extract the first word of "${ac_tool_prefix}javac", so it can be a program name with args.
set dummy ${ac_tool_prefix}javac; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3368: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_JAVAC'+set}'`\" = set"; then
d3389 17
a3405 2
  if test -n "$JAVAC"; then
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
d3407 4
a3410 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="nojavac"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_JAVAC="${ac_tool_prefix}javac"
      break
    fi
  done
  IFS="$ac_save_ifs"
d3412 3
d3416 3
a3418 3
JAVAC="$ac_cv_prog_JAVAC"
if test -n "$JAVAC"; then
  echo "$ac_t""$JAVAC" 1>&6
d3423 5
a3427 8

if test -z "$ac_cv_prog_JAVAC"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "javac", so it can be a program name with args.
set dummy javac; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3400: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_JAVAC'+set}'`\" = set"; then
d3430 17
a3446 2
  if test -n "$JAVAC"; then
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
d3448 4
a3451 11
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_JAVAC="javac"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC="javac"
d3453 3
d3457 3
a3459 3
JAVAC="$ac_cv_prog_JAVAC"
if test -n "$JAVAC"; then
  echo "$ac_t""$JAVAC" 1>&6
a3463 3
else
  JAVAC="javac"
fi
d3466 6
a3471 8
	if test "$JAVAC" = "nojavac"; then
		{ echo "configure: error: no javac compiler in PATH" 1>&2; exit 1; }
	fi
	# Extract the first word of "${ac_tool_prefix}jar", so it can be a program name with args.
set dummy ${ac_tool_prefix}jar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3438: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_JAR'+set}'`\" = set"; then
d3474 11
a3484 2
  if test -n "$JAR"; then
  ac_cv_prog_JAR="$JAR" # Let the user override the test.
d3486 5
a3490 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="nojar"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_JAR="${ac_tool_prefix}jar"
      break
    fi
  done
  IFS="$ac_save_ifs"
d3492 1
d3494 7
a3500 3
JAR="$ac_cv_prog_JAR"
if test -n "$JAR"; then
  echo "$ac_t""$JAR" 1>&6
d3504 1
d3506 6
a3511 8

if test -z "$ac_cv_prog_JAR"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "jar", so it can be a program name with args.
set dummy jar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3470: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_JAR'+set}'`\" = set"; then
d3514 11
a3524 2
  if test -n "$JAR"; then
  ac_cv_prog_JAR="$JAR" # Let the user override the test.
d3526 5
a3530 11
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_JAR="jar"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_JAR" && ac_cv_prog_JAR="jar"
d3532 1
d3534 7
a3540 3
JAR="$ac_cv_prog_JAR"
if test -n "$JAR"; then
  echo "$ac_t""$JAR" 1>&6
d3544 3
a3547 4
else
  JAR="jar"
fi
fi
d3549 3
a3551 8
	if test "$JAR" = "nojar"; then
		{ echo "configure: error: no jar utility in PATH" 1>&2; exit 1; }
	fi
	# Extract the first word of "javac", so it can be a program name with args.
set dummy javac; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3508: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_JAVACABS'+set}'`\" = set"; then
d3554 1
a3554 28
  case "$JAVACABS" in
  /*)
  ac_cv_path_JAVACABS="$JAVACABS" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_JAVACABS="$JAVACABS" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_JAVACABS="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_JAVACABS" && ac_cv_path_JAVACABS="nojavac"
  ;;
esac
fi
JAVACABS="$ac_cv_path_JAVACABS"
if test -n "$JAVACABS"; then
  echo "$ac_t""$JAVACABS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
d3556 1
a3556 3
	ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libjso_target)"
	ADDITIONAL_LANG="$ADDITIONAL_LANG java"
	DEFAULT_INSTALL="${DEFAULT_INSTALL} install_java"
d3558 3
a3560 26
	while ls -ld "$JAVACABS" 2>/dev/null | grep " -> " >/dev/null; do
		echo $ac_n "checking symlink for $JAVACABS""... $ac_c" 1>&6
echo "configure:3547: checking symlink for $JAVACABS" >&5
		JAVACLINK=`ls -ld $JAVACABS | sed 's/.* -> //'`
		case "$JAVACLINK" in
		/*) JAVACABS="$JAVACLINK";;
		*) JAVACABS=`echo "X$JAVACABS" | sed -e 's/^X//' -e 's:[^/]*$::'`"$JAVACLINK";;
		esac
		echo "$ac_t""$JAVACABS" 1>&6
	done
	JTOPDIR=`echo "$JAVACABS" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
	case "$host_os" in
		darwin*)	JTOPDIR=`echo "$JTOPDIR" | sed -e s:/[^/]*$::'`
				JNIHEADERDIR="$JTOPDIR/Headers";;
		*)		JNIHEADERDIR="$JTOPDIR/include";;
	esac
	if test -f "$JNIHEADERDIR/jni.h"; then
		CPPFLAGS="$CPPFLAGSS -I$JNIHEADERDIR"
	else
		JTOPDIR=`echo "$JTOPDIR" | sed -e 's:/[^/]*$::'`
		if test -f "$JTOPDIR/include/jni.h"; then
			CPPFLAGS="$CPPFLAGS -I$JTOPDIR/include"
		else
			{ echo "configure: error: cannot find java include files" 1>&2; exit 1; }
		fi
	fi
d3562 2
a3563 14
	case "$host_os" in
	solaris*)	JINCSUBDIRS="solaris";;
	linux*)		JINCSUBDIRS="linux genunix";;
	*)		JINCSUBDIRS="genunix";;
	esac

	for JINCSUBDIR in $JINCSUBDIRS
	do
		if test -d "$JTOPDIR/include/$JINCSUBDIR"; then
			CPPFLAGS="$CPPFLAGS -I$JTOPDIR/include/$JINCSUBDIR"
		fi
	done
else
	JAVAC=nojavac
d3566 3
a3568 17
if test "$db_cv_rpc" = "yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE_RPC 1
EOF


	RPC_CLIENT_OBJS="\$(RPC_CLIENT_OBJS)"
	ADDITIONAL_PROGS="berkeley_db_svc $ADDITIONAL_PROGS"

	EMBEDIX_ECD_RPC="/usr/bin/berkeley_db_svc"

	case "$host_os" in
	hpux*)	
		echo $ac_n "checking for svc_run""... $ac_c" 1>&6
echo "configure:3602: checking for svc_run" >&5
if eval "test \"`echo '$''{'ac_cv_func_svc_run'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3571 1
a3571 1
#line 3607 "configure"
a3572 7
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char svc_run(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char svc_run();
d3574 10
a3583 12
int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_svc_run) || defined (__stub___svc_run)
choke me
#else
svc_run();
#endif

; return 0; }
d3585 3
a3587 3
if { (eval echo configure:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_svc_run=yes"
a3590 2
  rm -rf conftest*
  eval "ac_cv_func_svc_run=no"
d3592 3
a3594 1
rm -f conftest*
d3597 4
a3600 3
if eval "test \"`echo '$ac_cv_func_'svc_run`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
d3602 2
a3603 11
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for svc_run in -lnsl""... $ac_c" 1>&6
echo "configure:3648: checking for svc_run in -lnsl" >&5
ac_lib_var=`echo nsl'_'svc_run | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lnsl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3656 "configure"
a3604 4
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char svc_run();
d3606 12
a3617 3
int main() {
svc_run()
; return 0; }
d3619 3
a3621 3
if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
a3624 2
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
d3626 1
a3626 9
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="-lnsl $LIBS"; LIBTSO_LIBS="-lnsl $LIBTSO_LIBS"
else
  echo "$ac_t""no" 1>&6
d3629 1
d3631 3
a3633 6
;;
	solaris*)
		echo $ac_n "checking for svc_run""... $ac_c" 1>&6
echo "configure:3691: checking for svc_run" >&5
if eval "test \"`echo '$''{'ac_cv_func_svc_run'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3636 1
a3636 1
#line 3696 "configure"
a3637 7
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char svc_run(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char svc_run();
d3639 12
a3650 12
int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_svc_run) || defined (__stub___svc_run)
choke me
#else
svc_run();
#endif

; return 0; }
d3652 3
a3654 3
if { (eval echo configure:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_svc_run=yes"
a3657 2
  rm -rf conftest*
  eval "ac_cv_func_svc_run=no"
d3659 6
a3664 1
rm -f conftest*
d3667 4
a3670 3
if eval "test \"`echo '$ac_cv_func_'svc_run`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
d3672 2
a3673 11
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for svc_run in -lnsl""... $ac_c" 1>&6
echo "configure:3737: checking for svc_run in -lnsl" >&5
ac_lib_var=`echo nsl'_'svc_run | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lnsl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3745 "configure"
a3674 4
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char svc_run();
d3676 20
a3695 3
int main() {
svc_run()
; return 0; }
d3697 3
a3699 3
if { (eval echo configure:3756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
a3702 2
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
d3704 2
a3705 2
rm -f conftest*
LIBS="$ac_save_LIBS"
d3708 29
a3736 6
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
d3738 3
a3740 3

  LIBS="-lnsl $LIBS"

d3742 4
a3745 1
  echo "$ac_t""no" 1>&6
d3748 1
d3750 2
a3751 2
;;
	esac
d3754 7
d3762 17
a3778 6
if test "$db_cv_tcl" != no; then
	

	
	if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3780 5
a3784 20
  

	    # First check to see if --with-tclconfig was specified.
	    if test "${with_tclconfig}" != no; then
		if test -f "${with_tclconfig}/tclConfig.sh" ; then
		    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
		else
		    { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
		fi
	    fi

	    # check in a few common install locations
	    if test x"${ac_cv_c_tclconfig}" = x ; then
		for i in `ls -d /usr/local/lib 2>/dev/null` ; do
		    if test -f "$i/tclConfig.sh" ; then
			ac_cv_c_tclconfig=`(cd $i; pwd)`
			break
		    fi
		done
	    fi
a3785 1
	
d3788 7
d3796 17
a3812 42
	if test x"${ac_cv_c_tclconfig}" = x ; then
	    TCL_BIN_DIR="# no Tcl configs found"
	    { echo "configure: error: can't find Tcl configuration definitions" 1>&2; exit 1; }
	else
	    TCL_BIN_DIR=${ac_cv_c_tclconfig}
	fi

	
	echo $ac_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh""... $ac_c" 1>&6
echo "configure:3830: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5

	if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
		echo "$ac_t""loading" 1>&6
		. $TCL_BIN_DIR/tclConfig.sh
	else
		echo "$ac_t""file not found" 1>&6
	fi

	#
	# The eval is required to do the TCL_DBGX substitution in the
	# TCL_LIB_FILE variable
	#
	eval TCL_LIB_FILE="${TCL_LIB_FILE}"
	eval TCL_LIB_FLAG="${TCL_LIB_FLAG}"
	eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""

	
	
	

	
	TCL_TCLSH="${TCL_PREFIX}/bin/tclsh${TCL_VERSION}"


	if test x"$TCL_PREFIX" != x && test -f "$TCL_PREFIX/include/tcl.h"; then
		TCFLAGS="-I$TCL_PREFIX/include"
	fi

	LIBS="$LIBS $TCL_LIB_SPEC $TCL_LIBS"

	ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libtso_target)"
	DEFAULT_INSTALL="${DEFAULT_INSTALL} install_tcl"
d3814 1
a3814 4

if test "$db_cv_compat185" = "yes"; then
	ADDITIONAL_INCS="db_185.h $ADDITIONAL_INCS"
	ADDITIONAL_OBJS="db185${o} $ADDITIONAL_OBJS"
a3816 2
if test "$db_cv_dump185" = "yes"; then
	ADDITIONAL_PROGS="db_dump185 $ADDITIONAL_PROGS"
d3819 2
a3820 8
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
echo "configure:3875: checking for pthread_create in -lpthread" >&5
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lpthread  $LIBS"
d3822 1
a3822 1
#line 3883 "configure"
d3824 1
a3824 5
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pthread_create();

d3826 2
a3827 1
pthread_create()
d3830 1
a3830 1
if { (eval echo configure:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3832 1
a3832 1
  eval "ac_cv_lib_$ac_lib_var=yes"
a3835 2
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
d3838 2
a3839 1
LIBS="$ac_save_LIBS"
d3841 3
a3843 4
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  PTHREAD_LIBS=-lpthread
d3845 3
a3847 2
  echo "$ac_t""no" 1>&6
fi
d3849 18
d3868 13
a3880 4
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
echo "configure:3916: checking whether byte ordering is bigendian" >&5
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3882 7
a3888 2
  ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
d3890 1
a3890 1
#line 3923 "configure"
d3892 1
a3892 2
#include <sys/types.h>
#include <sys/param.h>
d3894 3
a3896 4

#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
d3899 1
a3899 1
if { (eval echo configure:3934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3901 9
a3909 1
  # It does; now see whether it defined to BIG_ENDIAN or not.
d3911 1
a3911 1
#line 3938 "configure"
d3913 1
a3913 2
#include <sys/types.h>
#include <sys/param.h>
d3915 3
a3917 4

#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#endif
d3920 1
a3920 1
if { (eval echo configure:3949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3922 1
a3922 1
  ac_cv_c_bigendian=yes
a3925 2
  rm -rf conftest*
  ac_cv_c_bigendian=no
d3928 14
d3947 3
a3949 1
if test $ac_cv_c_bigendian = unknown; then
d3954 1
a3954 1
#line 3969 "configure"
d3956 7
a3962 10
main () {
  /* Are we little or big endian?  From Harbison&Steele.  */
  union
  {
    long l;
    char c[sizeof (long)];
  } u;
  u.l = 1;
  exit (u.c[sizeof (long) - 1] == 1);
}
d3964 1
a3964 1
if { (eval echo configure:3982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d3966 1
a3966 1
  ac_cv_c_bigendian=no
a3969 2
  rm -fr conftest*
  ac_cv_c_bigendian=yes
a3974 1
fi
d3976 14
a3989 4
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
if test $ac_cv_c_bigendian = yes; then
  cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
d3991 9
d4003 3
a4005 4
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:4006: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4008 1
a4008 1
#line 4011 "configure"
d4010 7
a4016 46

int main() {

/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
   It does not let you subtract one const X* pointer from another in an arm
   of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;

  *t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25, 17};
  const int *foo = &x[0];
  ++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
}

; return 0; }
d4018 3
a4020 3
if { (eval echo configure:4060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_const=yes
a4023 2
  rm -rf conftest*
  ac_cv_c_const=no
d4025 1
a4025 1
rm -f conftest*
a4027 6
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
EOF

d4030 3
a4032 9
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:4081: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a4033 5
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  CPP="${CC-cc} -E"
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp.
d4035 1
a4035 1
#line 4096 "configure"
d4037 8
a4044 2
#include <assert.h>
Syntax Error
d4046 3
a4048 5
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
a4049 1
  echo "$ac_err" >&5
d4052 10
a4061 2
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
d4063 1
a4063 1
#line 4113 "configure"
d4065 8
a4072 2
#include <assert.h>
Syntax Error
d4074 3
a4076 22
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <<EOF
#line 4130 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
a4077 1
  echo "$ac_err" >&5
a4079 2
  rm -rf conftest*
  CPP=/lib/cpp
d4081 1
a4081 1
rm -f conftest*
d4083 1
a4083 8
rm -f conftest*
fi
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
  CPP="$ac_cv_prog_CPP"
else
  ac_cv_prog_CPP="$CPP"
a4084 1
echo "$ac_t""$CPP" 1>&6
d4086 3
a4088 4
echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
echo "configure:4161: checking whether stat file-mode macros are broken" >&5
if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4091 1
a4091 1
#line 4166 "configure"
d4093 4
a4096 13
#include <sys/types.h>
#include <sys/stat.h>

#if defined(S_ISBLK) && defined(S_IFDIR)
# if S_ISBLK (S_IFDIR)
You lose.
# endif
#endif

#if defined(S_ISBLK) && defined(S_IFCHR)
# if S_ISBLK (S_IFCHR)
You lose.
# endif
a4097 5

#if defined(S_ISLNK) && defined(S_IFREG)
# if S_ISLNK (S_IFREG)
You lose.
# endif
d4099 2
a4100 7

#if defined(S_ISSOCK) && defined(S_IFREG)
# if S_ISSOCK (S_IFREG)
You lose.
# endif
#endif

d4102 3
a4104 38
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "You lose" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_header_stat_broken=yes
else
  rm -rf conftest*
  ac_cv_header_stat_broken=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
if test $ac_cv_header_stat_broken = yes; then
  cat >> confdefs.h <<\EOF
#define STAT_MACROS_BROKEN 1
EOF

fi

echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:4217: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4222 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
EOF
if { (eval echo configure:4231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_header_time=yes
a4107 2
  rm -rf conftest*
  ac_cv_header_time=no
d4109 1
a4109 1
rm -f conftest*
a4111 6
echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
  cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF

d4114 3
a4116 4
echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
echo "configure:4252: checking for st_blksize in struct stat" >&5
if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4119 1
a4119 1
#line 4257 "configure"
d4121 8
a4128 5
#include <sys/types.h>
#include <sys/stat.h>
int main() {
struct stat s; s.st_blksize;
; return 0; }
d4130 3
a4132 3
if { (eval echo configure:4265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_struct_st_blksize=yes
a4135 2
  rm -rf conftest*
  ac_cv_struct_st_blksize=no
d4137 1
a4137 1
rm -f conftest*
a4139 6
echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
if test $ac_cv_struct_st_blksize = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ST_BLKSIZE 1
EOF

d4142 3
a4144 4
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:4286: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4147 1
a4147 1
#line 4291 "configure"
d4149 6
a4154 4
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
d4156 3
a4158 6
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  ac_cv_header_stdc=yes
a4159 1
  echo "$ac_err" >&5
a4161 2
  rm -rf conftest*
  ac_cv_header_stdc=no
d4163 1
a4163 15
rm -f conftest*

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 4316 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
a4164 1
rm -f conftest*
a4167 13
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 4334 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
a4168 1
rm -f conftest*
d4170 1
a4170 1
fi
d4172 3
a4174 4
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
  :
d4176 2
a4177 11
  cat > conftest.$ac_ext <<EOF
#line 4355 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

a4178 11
if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_header_stdc=no
fi
rm -fr conftest*
fi
a4180 1
fi
d4182 4
a4185 4
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
d4187 105
a4292 1
fi
d4294 5
a4298 3
echo $ac_n "checking for mode_t""... $ac_c" 1>&6
echo "configure:4390: checking for mode_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
d4302 1
a4302 1
#line 4395 "configure"
d4304 17
a4320 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d4322 2
d4325 1
a4325 2
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
d4327 1
a4327 1
  ac_cv_type_mode_t=yes
d4329 2
d4332 1
a4332 1
  ac_cv_type_mode_t=no
d4335 1
d4337 10
d4348 1
a4348 5
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
if test $ac_cv_type_mode_t = no; then
  cat >> confdefs.h <<\EOF
#define mode_t int
EOF
a4349 1
fi
d4351 5
a4355 3
echo $ac_n "checking for off_t""... $ac_c" 1>&6
echo "configure:4423: checking for off_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
d4359 1
a4359 1
#line 4428 "configure"
d4361 17
a4377 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d4379 2
d4382 1
a4382 2
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
d4384 1
a4384 1
  ac_cv_type_off_t=yes
d4386 2
d4389 1
a4389 1
  ac_cv_type_off_t=no
d4392 1
d4394 10
d4405 3
a4407 5
echo "$ac_t""$ac_cv_type_off_t" 1>&6
if test $ac_cv_type_off_t = no; then
  cat >> confdefs.h <<\EOF
#define off_t long
EOF
d4409 2
a4410 1
fi
d4412 5
a4416 3
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
echo "configure:4456: checking for pid_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
d4420 1
a4420 1
#line 4461 "configure"
d4422 17
a4438 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d4440 2
d4443 1
a4443 2
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
d4445 1
a4445 1
  ac_cv_type_pid_t=yes
d4447 2
d4450 1
a4450 1
  ac_cv_type_pid_t=no
d4453 1
d4455 9
d4465 1
a4465 5
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
if test $ac_cv_type_pid_t = no; then
  cat >> confdefs.h <<\EOF
#define pid_t int
EOF
a4466 1
fi
d4468 8
a4475 3
echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:4489: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
d4479 1
a4479 1
#line 4494 "configure"
d4481 7
a4487 24
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_size_t=yes
else
  rm -rf conftest*
  ac_cv_type_size_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
  cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF

fi
d4489 1
d4491 8
a4499 12

echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
echo "configure:4525: checking for ssize_t" >&5
if eval "test \"`echo '$''{'db_cv_ssize_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4530 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
ssize_t foo;
d4502 1
a4502 1
if { (eval echo configure:4537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4504 1
a4504 1
  db_cv_ssize_t=yes
d4509 1
a4509 1
  db_cv_ssize_t=no
d4514 9
a4522 3
echo "$ac_t""$db_cv_ssize_t" 1>&6
if test "$db_cv_ssize_t" = no; then
	ssize_t_decl="typedef int ssize_t;"
d4524 1
d4526 1
d4528 3
a4530 3
echo $ac_n "checking for u_char""... $ac_c" 1>&6
echo "configure:4556: checking for u_char" >&5
if eval "test \"`echo '$''{'db_cv_uchar'+set}'`\" = set"; then
d4533 3
d4537 1
a4537 1
#line 4561 "configure"
d4539 1
d4541 2
a4542 3
int main() {
u_char foo;
; return 0; }
d4544 3
a4546 3
if { (eval echo configure:4568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_uchar=yes
d4550 4
a4553 2
  rm -rf conftest*
  db_cv_uchar=no
d4555 1
a4555 1
rm -f conftest*
d4558 6
a4563 3
echo "$ac_t""$db_cv_uchar" 1>&6
if test "$db_cv_uchar" = no; then
	u_char_decl="typedef unsigned char u_char;"
d4566 4
d4571 5
a4575 3
echo $ac_n "checking for u_short""... $ac_c" 1>&6
echo "configure:4587: checking for u_short" >&5
if eval "test \"`echo '$''{'db_cv_ushort'+set}'`\" = set"; then
d4579 1
a4579 1
#line 4592 "configure"
d4581 8
a4588 1
#include <sys/types.h>
d4590 10
a4599 1
u_short foo;
d4602 1
a4602 1
if { (eval echo configure:4599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4604 1
a4604 1
  db_cv_ushort=yes
d4609 1
a4609 1
  db_cv_ushort=no
d4614 10
a4623 3
echo "$ac_t""$db_cv_ushort" 1>&6
if test "$db_cv_ushort" = no; then
	u_short_decl="typedef unsigned short u_short;"
d4625 1
d4627 5
a4631 4

echo $ac_n "checking for u_int""... $ac_c" 1>&6
echo "configure:4618: checking for u_int" >&5
if eval "test \"`echo '$''{'db_cv_uint'+set}'`\" = set"; then
d4635 1
a4635 1
#line 4623 "configure"
d4637 8
a4644 1
#include <sys/types.h>
d4646 10
a4655 1
u_int foo;
d4658 1
a4658 1
if { (eval echo configure:4630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4660 1
a4660 1
  db_cv_uint=yes
d4665 1
a4665 1
  db_cv_uint=no
d4670 10
a4679 3
echo "$ac_t""$db_cv_uint" 1>&6
if test "$db_cv_uint" = no; then
	u_int_decl="typedef unsigned int u_int;"
d4681 1
d4684 3
a4686 3
echo $ac_n "checking for u_long""... $ac_c" 1>&6
echo "configure:4649: checking for u_long" >&5
if eval "test \"`echo '$''{'db_cv_ulong'+set}'`\" = set"; then
d4689 3
d4693 1
a4693 1
#line 4654 "configure"
d4695 1
a4695 4
#include <sys/types.h>
int main() {
u_long foo;
; return 0; }
d4697 3
a4699 3
if { (eval echo configure:4661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_ulong=yes
d4703 2
a4704 2
  rm -rf conftest*
  db_cv_ulong=no
d4706 1
a4706 1
rm -f conftest*
a4708 3
echo "$ac_t""$db_cv_ulong" 1>&6
if test "$db_cv_ulong" = no; then
	u_long_decl="typedef unsigned long u_long;"
d4711 7
d4719 30
a4748 3
echo $ac_n "checking for u_int8_t""... $ac_c" 1>&6
echo "configure:4680: checking for u_int8_t" >&5
if eval "test \"`echo '$''{'db_cv_uint8'+set}'`\" = set"; then
d4752 1
a4752 1
#line 4685 "configure"
d4754 8
a4761 1
#include <sys/types.h>
d4763 10
a4772 1
u_int8_t foo;
d4775 1
a4775 1
if { (eval echo configure:4692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4777 1
a4777 1
  db_cv_uint8=yes
d4782 1
a4782 20
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4703 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned char) != 1);}
EOF
if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_uint8="unsigned char"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  db_cv_uint8=no
fi
rm -fr conftest*
fi

d4787 10
a4796 3
echo "$ac_t""$db_cv_uint8" 1>&6
if test "$db_cv_uint8" = no; then
	{ echo "configure: error: No unsigned 8-bit integral type." 1>&2; exit 1; }
d4798 11
a4808 8
if test "$db_cv_uint8" != yes; then
	u_int8_decl="typedef $db_cv_uint8 u_int8_t;"
fi


echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
echo "configure:4733: checking for u_int16_t" >&5
if eval "test \"`echo '$''{'db_cv_uint16'+set}'`\" = set"; then
d4812 1
a4812 1
#line 4738 "configure"
d4814 8
a4821 1
#include <sys/types.h>
d4823 10
a4832 1
u_int16_t foo;
d4835 1
a4835 1
if { (eval echo configure:4745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4837 1
a4837 1
  db_cv_uint16=yes
d4842 10
a4851 7
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4756 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned short) != 2);}
d4853 1
a4853 3
if { (eval echo configure:4760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_uint16="unsigned short"
d4855 10
a4864 5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d4867 1
a4867 1
#line 4771 "configure"
d4869 20
a4888 1
main(){exit(sizeof(unsigned int) != 2);}
d4890 3
a4892 3
if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_uint16="unsigned int"
d4896 2
a4897 10
  rm -fr conftest*
  db_cv_uint16=no
fi
rm -fr conftest*
fi

fi
rm -fr conftest*
fi

d4902 10
a4911 6
echo "$ac_t""$db_cv_uint16" 1>&6
if test "$db_cv_uint16" = no; then
	{ echo "configure: error: No unsigned 16-bit integral type." 1>&2; exit 1; }
fi
if test "$db_cv_uint16" != yes; then
	u_int16_decl="typedef $db_cv_uint16 u_int16_t;"
d4913 3
d4917 11
a4927 4

echo $ac_n "checking for int16_t""... $ac_c" 1>&6
echo "configure:4805: checking for int16_t" >&5
if eval "test \"`echo '$''{'db_cv_int16'+set}'`\" = set"; then
d4931 1
a4931 1
#line 4810 "configure"
d4933 8
a4940 1
#include <sys/types.h>
d4942 10
a4951 1
int16_t foo;
d4954 1
a4954 1
if { (eval echo configure:4817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4956 1
a4956 1
  db_cv_int16=yes
d4961 12
a4972 2
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d4974 2
a4975 1412
  cat > conftest.$ac_ext <<EOF
#line 4828 "configure"
#include "confdefs.h"
main(){exit(sizeof(short) != 2);}
EOF
if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_int16="short"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4843 "configure"
#include "confdefs.h"
main(){exit(sizeof(int) != 2);}
EOF
if { (eval echo configure:4847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_int16="int"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  db_cv_int16=no
fi
rm -fr conftest*
fi

fi
rm -fr conftest*
fi

fi
rm -f conftest*
fi

echo "$ac_t""$db_cv_int16" 1>&6
if test "$db_cv_int16" = no; then
	{ echo "configure: error: No signed 16-bit integral type." 1>&2; exit 1; }
fi
if test "$db_cv_int16" != yes; then
	int16_decl="typedef $db_cv_int16 int16_t;"
fi


echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
echo "configure:4877: checking for u_int32_t" >&5
if eval "test \"`echo '$''{'db_cv_uint32'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4882 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
u_int32_t foo;
; return 0; }
EOF
if { (eval echo configure:4889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_uint32=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4900 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned int) != 4);}
EOF
if { (eval echo configure:4904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_uint32="unsigned int"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4915 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned long) != 4);}
EOF
if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_uint32="unsigned long"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  db_cv_uint32=no
fi
rm -fr conftest*
fi

fi
rm -fr conftest*
fi

fi
rm -f conftest*
fi

echo "$ac_t""$db_cv_uint32" 1>&6
if test "$db_cv_uint32" = no; then
	{ echo "configure: error: No unsigned 32-bit integral type." 1>&2; exit 1; }
fi
if test "$db_cv_uint32" != yes; then
	u_int32_decl="typedef $db_cv_uint32 u_int32_t;"
fi


echo $ac_n "checking for int32_t""... $ac_c" 1>&6
echo "configure:4949: checking for int32_t" >&5
if eval "test \"`echo '$''{'db_cv_int32'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4954 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
int32_t foo;
; return 0; }
EOF
if { (eval echo configure:4961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_int32=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4972 "configure"
#include "confdefs.h"
main(){exit(sizeof(int) != 4);}
EOF
if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_int32="int"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4987 "configure"
#include "confdefs.h"
main(){exit(sizeof(long) != 4);}
EOF
if { (eval echo configure:4991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_int32="long"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  db_cv_int32=no
fi
rm -fr conftest*
fi

fi
rm -fr conftest*
fi

fi
rm -f conftest*
fi

echo "$ac_t""$db_cv_int32" 1>&6
if test "$db_cv_int32" = no; then
	{ echo "configure: error: No signed 32-bit integral type." 1>&2; exit 1; }
fi
if test "$db_cv_int32" != yes; then
	int32_decl="typedef $db_cv_int32 int32_t;"
fi


echo $ac_n "checking for largest integral type""... $ac_c" 1>&6
echo "configure:5021: checking for largest integral type" >&5
if eval "test \"`echo '$''{'db_cv_align_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5026 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
long long foo;
; return 0; }
EOF
if { (eval echo configure:5033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  db_cv_align_t="unsigned long long"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  db_cv_align_t="unsigned long"
fi
rm -f conftest*
fi

echo "$ac_t""$db_cv_align_t" 1>&6
db_align_t_decl="typedef $db_cv_align_t db_align_t;"


echo $ac_n "checking for integral type equal to pointer size""... $ac_c" 1>&6
echo "configure:5050: checking for integral type equal to pointer size" >&5
if eval "test \"`echo '$''{'db_cv_alignp_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  db_cv_alignp_t=$db_cv_align_t
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5059 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned int) != sizeof(char *));}
EOF
if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_alignp_t="unsigned int"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5077 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned long) != sizeof(char *));}
EOF
if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_alignp_t="unsigned long"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5095 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned long long) != sizeof(char *));}
EOF
if { (eval echo configure:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_alignp_t="unsigned long long"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$db_cv_alignp_t" 1>&6
db_alignp_t_decl="typedef $db_cv_alignp_t db_alignp_t;"



ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
echo "configure:5121: checking for $ac_hdr that defines DIR" >&5
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5126 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_hdr>
int main() {
DIR *dirp = 0;
; return 0; }
EOF
if { (eval echo configure:5134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_header_dirent_$ac_safe=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_dirent_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 ac_header_dirent=$ac_hdr; break
else
  echo "$ac_t""no" 1>&6
fi
done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
echo "configure:5159: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldir  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5167 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();

int main() {
opendir()
; return 0; }
EOF
if { (eval echo configure:5178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -ldir"
else
  echo "$ac_t""no" 1>&6
fi

else
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
echo "configure:5200: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lx  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5208 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();

int main() {
opendir()
; return 0; }
EOF
if { (eval echo configure:5219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -lx"
else
  echo "$ac_t""no" 1>&6
fi

fi

for ac_hdr in sys/select.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:5245: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5250 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

for ac_hdr in sys/time.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:5285: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5290 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done




echo $ac_n "checking for mutexes""... $ac_c" 1>&6
echo "configure:5325: checking for mutexes" >&5
if eval "test \"`echo '$''{'db_cv_mutex'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  db_cv_mutex=no

orig_libs=$LIBS

if test "$db_cv_posixmutexes" = yes; then
	db_cv_mutex="posix_only"
fi

if test "$db_cv_uimutexes" = yes; then
	db_cv_mutex="ui_only"
fi

if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5346 "configure"
#include "confdefs.h"

#include <synch.h>
main(){
	static lwp_mutex_t mi = SHAREDMUTEX;
	static lwp_cond_t ci = SHAREDCV;
	lwp_mutex_t mutex = mi;
	lwp_cond_t cond = ci;
	exit (
	_lwp_mutex_lock(&mutex) ||
	_lwp_mutex_unlock(&mutex));
}
EOF
if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="Solaris/lwp"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi

if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
LIBS="-lthread $LIBS"
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5378 "configure"
#include "confdefs.h"

#include <thread.h>
#include <synch.h>
main(){
	mutex_t mutex;
	cond_t cond;
	int type = USYNC_PROCESS;
	exit (
	mutex_init(&mutex, type, NULL) ||
	cond_init(&cond, type, NULL) ||
	mutex_lock(&mutex) ||
	mutex_unlock(&mutex));
}
EOF
if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="UI/threads/library"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

LIBS="$orig_libs"
fi
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5411 "configure"
#include "confdefs.h"

#include <thread.h>
#include <synch.h>
main(){
	mutex_t mutex;
	cond_t cond;
	int type = USYNC_PROCESS;
	exit (
	mutex_init(&mutex, type, NULL) ||
	cond_init(&cond, type, NULL) ||
	mutex_lock(&mutex) ||
	mutex_unlock(&mutex));
}
EOF
if { (eval echo configure:5427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="UI/threads"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi
if test "$db_cv_mutex" = "ui_only"; then
	{ echo "configure: error: unable to find UI mutex interfaces" 1>&2; exit 1; }
fi


if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5448 "configure"
#include "confdefs.h"

#include <pthread.h>
main(){
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
}
EOF
if { (eval echo configure:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="POSIX/pthreads"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
LIBS="-lpthread $LIBS"
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5489 "configure"
#include "confdefs.h"

#include <pthread.h>
main(){
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
}
EOF
if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="POSIX/pthreads/library"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

LIBS="$orig_libs"
fi
if test "$db_cv_mutex" = "posix_only"; then
	{ echo "configure: error: unable to find POSIX mutex interfaces" 1>&2; exit 1; }
fi

if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5534 "configure"
#include "confdefs.h"

#include <sys/mman.h>
main(){
#if defined(__hppa)
	typedef msemaphore tsl_t;
	msemaphore x;
	msem_init(&x, 0);
	msem_lock(&x, 0);
	msem_unlock(&x, 0);
	exit(0);
#else
	exit(1);
#endif
}
EOF
if { (eval echo configure:5551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="HP/msem_init"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi

if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5568 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/mman.h>;
main(){
	typedef msemaphore tsl_t;
	msemaphore x;
	msem_init(&x, 0);
	msem_lock(&x, 0);
	msem_unlock(&x, 0);
	exit(0);
}
EOF
if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="UNIX/msem_init"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi

if test "$db_cv_mutex" = no; then
LIBS="$LIBS -lmproc"
cat > conftest.$ac_ext <<EOF
#line 5597 "configure"
#include "confdefs.h"
#include <ulocks.h>
int main() {
typedef spinlock_t tsl_t;
spinlock_t x; initspin(&x, 1); cspinlock(&x); spinunlock(&x);
; return 0; }
EOF
if { (eval echo configure:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  db_cv_mutex="ReliantUNIX/initspin"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
LIBS="$orig_libs"
fi

if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5621 "configure"
#include "confdefs.h"

main(){
#if defined(__USLC__)
	exit(0);
#endif
	exit(1);
}
EOF
if { (eval echo configure:5631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="SCO/x86/cc-assembly"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi

if test "$db_cv_mutex" = no; then
cat > conftest.$ac_ext <<EOF
#line 5645 "configure"
#include "confdefs.h"
#include <abi_mutex.h>
int main() {
typedef abilock_t tsl_t;
abilock_t x; init_lock(&x); acquire_lock(&x); release_lock(&x);
; return 0; }
EOF
if { (eval echo configure:5653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  db_cv_mutex="SGI/init_lock"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
fi

if test "$db_cv_mutex" = DOESNT_WORK; then
cat > conftest.$ac_ext <<EOF
#line 5665 "configure"
#include "confdefs.h"
#include <synch.h>
int main() {
typedef sema_t tsl_t;
 sema_t x;
 sema_init(&x, 1, USYNC_PROCESS, NULL); sema_wait(&x); sema_post(&x);
; return 0; }
EOF
if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  db_cv_mutex="UNIX/sema_init"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
fi

if test "$db_cv_mutex" = no; then
cat > conftest.$ac_ext <<EOF
#line 5686 "configure"
#include "confdefs.h"
#include <sys/machlock.h>
int main() {
typedef lock_t tsl_t;
 lock_t x;
 _lock_try(&x); _lock_clear(&x);
; return 0; }
EOF
if { (eval echo configure:5695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  db_cv_mutex="Solaris/_lock_try"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
fi

if test "$db_cv_mutex" = no; then
cat > conftest.$ac_ext <<EOF
#line 5707 "configure"
#include "confdefs.h"
#include <sys/atomic_op.h>
int main() {
int x; _check_lock(&x,0,1); _clear_lock(&x,0);
; return 0; }
EOF
if { (eval echo configure:5714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  db_cv_mutex="AIX/_check_lock"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
fi

if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5729 "configure"
#include "confdefs.h"
main(){
#if defined(__alpha)
#if defined(__GNUC__)
exit(0);
#endif
#endif
exit(1);}
EOF
if { (eval echo configure:5739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="ALPHA/gcc-assembly"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi

if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5756 "configure"
#include "confdefs.h"
main(){
#if defined(__hppa)
#if defined(__GNUC__)
exit(0);
#endif
#endif
exit(1);}
EOF
if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="HPPA/gcc-assembly"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi

if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5783 "configure"
#include "confdefs.h"
main(){
#if defined(__powerpc__) || defined(__ppc__)
#if defined(__GNUC__)
exit(0);
#endif
#endif
exit(1);}
EOF
if { (eval echo configure:5793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="PPC/gcc-assembly"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi

if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5810 "configure"
#include "confdefs.h"
main(){
#if defined(__sparc__)
#if defined(__GNUC__)
	exit(0);
#endif
#endif
	exit(1);
}
EOF
if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="Sparc/gcc-assembly"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi

if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5838 "configure"
#include "confdefs.h"
main(){
#if (defined(mc68020) || defined(sun3))
#if defined(__GNUC__)
	exit(0);
#endif
#endif
	exit(1);
}
EOF
if { (eval echo configure:5849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="68K/gcc-assembly"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi

if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5866 "configure"
#include "confdefs.h"
main(){
#if defined(i386) || defined(__i386__)
#if defined(__GNUC__)
	exit(0);
#endif
#endif
	exit(1);
}
EOF
if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="x86/gcc-assembly"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi

if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5894 "configure"
#include "confdefs.h"
main(){
#if defined(__ia64)
#if defined(__GNUC__)
	exit(0);
#endif
#endif
	exit(1);
}
EOF
if { (eval echo configure:5905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="ia64/gcc-assembly"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi

if test "$db_cv_mutex" = no; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 5922 "configure"
#include "confdefs.h"
main(){
#if defined(_UTS)
	exit(0);
#endif
	exit(1);
}
EOF
if { (eval echo configure:5931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_mutex="UTS/cc-assembly"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -fr conftest*
fi

fi

fi

echo "$ac_t""$db_cv_mutex" 1>&6

if test "$db_cv_mutex" = no; then
	echo "configure: warning: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." 1>&2
	ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
else
	cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_THREADS 1
EOF

fi

case "$db_cv_mutex" in
68K/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_68K_GCC_ASSEMBLY 1
EOF
;;
AIX/_check_lock)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_AIX_CHECK_LOCK 1
EOF
;;
ALPHA/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1
EOF
;;
HP/msem_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_HPPA_MSEM_INIT 1
EOF
;;
HPPA/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1
EOF
;;
ia64/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1
EOF
;;
POSIX/pthreads)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_PTHREADS 1
EOF
;;
POSIX/pthreads/library)	LIBS="-lpthread $LIBS"
			ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_PTHREADS 1
EOF
;;
PPC/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_PPC_GCC_ASSEMBLY 1
EOF
;;
ReliantUNIX/initspin)	LIBS="$LIBS -lmproc"
			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1
EOF
;;
SCO/x86/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1
EOF
;;
SGI/init_lock)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_SGI_INIT_LOCK 1
EOF
;;
Solaris/_lock_try)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1
EOF
;;
Solaris/lwp)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_SOLARIS_LWP 1
EOF
;;
Sparc/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1
EOF
;;
UI/threads)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_UI_THREADS 1
EOF
;;
UI/threads/library)	LIBS="-lthread $LIBS"
			ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_UI_THREADS 1
EOF
;;
UNIX/msem_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_MSEM_INIT 1
EOF
;;
UNIX/sema_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_SEMA_INIT 1
EOF
;;
UTS/cc-assembly)	ADDITIONAL_OBJS="$ADDITIONAL_OBJS uts4.cc${o}"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_UTS_CC_ASSEMBLY 1
EOF
;;
x86/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >> confdefs.h <<\EOF
#define HAVE_MUTEX_X86_GCC_ASSEMBLY 1
EOF
;;
esac


for ac_func in getcwd getopt memcmp memcpy memmove
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6072: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6077 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:6100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
fi
done


for ac_func in raise snprintf strcasecmp strerror vsnprintf
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6129: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6134 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:6157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
fi
done



tmp="`echo \"$LIBOBJS\" | sed \"s/\.o/${o}/g\"`"
LIBOBJS="$tmp"

for ac_func in _fstati64 getuid pstat_getdynamic sched_yield select strtoul
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6190: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6195 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:6218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
d4978 2
d4981 3
a4983 17
for ac_func in sysconf yield
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6245: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6250 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
a4984 1
int main() {
a4985 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d4987 6
a4992 5
; return 0; }
EOF
if { (eval echo configure:6273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d4994 21
a5014 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d5016 3
a5018 10
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a5021 1
done
d5023 8
a5030 9

case "$host_os" in
hpux*)
	echo "configure: warning: pread/pwrite interfaces ignored on $host_os." 1>&2;;
*)	for ac_func in pread pwrite
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6304: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d5033 21
a5053 32
  cat > conftest.$ac_ext <<EOF
#line 6309 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d5055 3
a5057 10
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a5060 1
done
d5062 8
a5069 5
esac

echo $ac_n "checking for fcntl/F_SETFD""... $ac_c" 1>&6
echo "configure:6359: checking for fcntl/F_SETFD" >&5
if eval "test \"`echo '$''{'db_cv_fcntl_f_setfd'+set}'`\" = set"; then
d5072 20
a5091 35
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 6367 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <fcntl.h>
main(){exit(fcntl(1, F_SETFD, 1) == -1);}
EOF
if { (eval echo configure:6374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_fcntl_f_setfd=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  db_cv_fcntl_f_setfd=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$db_cv_fcntl_f_setfd" 1>&6
if test "$db_cv_fcntl_f_setfd" = yes; then
	cat >> confdefs.h <<\EOF
#define HAVE_FCNTL_F_SETFD 1
EOF

fi

case "$host_os" in
aux*)	ADDITIONAL_OBJS="getopt${o} $ADDITIONAL_OBJS";;
a5092 42

for ac_func in qsort
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6403: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6408 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
d5094 3
a5096 8

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a5098 1
{ echo "configure: error: No qsort library function." 1>&2; exit 1; }
a5099 1
done
d5101 8
a5108 4

echo $ac_n "checking for int type sprintf return value""... $ac_c" 1>&6
echo "configure:6458: checking for int type sprintf return value" >&5
if eval "test \"`echo '$''{'db_cv_sprintf_count'+set}'`\" = set"; then
d5111 25
a5135 2
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d5137 1
a5137 13
  cat > conftest.$ac_ext <<EOF
#line 6466 "configure"
#include "confdefs.h"
main(){char buf[20]; exit(sprintf(buf, "XXX") != 3);}
EOF
if { (eval echo configure:6470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  db_cv_sprintf_count=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  db_cv_sprintf_count=no
d5139 3
a5141 1
rm -fr conftest*
d5143 28
a5170 1

d5172 5
a5176 7

echo "$ac_t""$db_cv_sprintf_count" 1>&6
if test "$db_cv_sprintf_count" = no; then
	cat >> confdefs.h <<\EOF
#define SPRINTF_RET_CHARPNT 1
EOF

d5179 2
a5180 18
if test "$db_cv_bigfile" = no; then
	case "$host_os" in
        solaris2.8|hpux*)
		if test "$db_cv_cxx" = "yes"; then
	echo "configure: warning: Large file and C++ API support are incompatible on HP-UX" 1>&2
	echo "configure: warning: and Solaris 8; large file support has been turned off." 1>&2
		else
			cat >> confdefs.h <<\EOF
#define HAVE_FILE_OFFSET_BITS 1
EOF

		fi;;
	aix*|solaris*|linux*)
		cat >> confdefs.h <<\EOF
#define HAVE_FILE_OFFSET_BITS 1
EOF
;;
	esac
d5182 5
a5186 11

mmap_ok=no
case "$host_os" in
bsdi3*|bsdi4.0)
	echo "configure: warning: mlock(2) interface ignored on BSD/OS 3.X and 4.0." 1>&2
	mmap_ok=yes
	for ac_func in mmap munmap
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6520: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d5189 21
a5209 32
  cat > conftest.$ac_ext <<EOF
#line 6525 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:6548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d5211 3
a5213 10
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a5215 1
mmap_ok=no
d5217 6
a5222 11
done
;;
ultrix*)
	echo "configure: warning: mmap(2) interface ignored on Ultrix." 1>&2;;
*)
	mmap_ok=yes
	for ac_func in mlock munlock
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6580: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d5225 21
a5245 32
  cat > conftest.$ac_ext <<EOF
#line 6585 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:6608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d5247 3
a5249 10
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a5252 1
done
d5254 8
a5261 5
	for ac_func in mmap munmap
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6635: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d5264 21
a5284 32
  cat > conftest.$ac_ext <<EOF
#line 6640 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:6663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d5286 3
a5288 10
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a5290 1
mmap_ok=no
a5291 3
done
;;
esac
d5293 8
a5300 11
shmget_ok=no
case "$host_os" in
sunos*)
	echo "configure: warning: shmget(2) interface ignored on SunOS." 1>&2;;
*)
	shmget_ok=yes
	for ac_func in shmget
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6699: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d5303 28
a5330 10
  cat > conftest.$ac_ext <<EOF
#line 6704 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
d5332 3
a5334 1
int main() {
d5336 7
a5342 14
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:6727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d5344 21
a5364 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d5366 3
a5368 10
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a5370 1
shmget_ok=no
a5371 3
done
;;
esac
d5373 3
a5375 2
if test "$mmap_ok" = no -a "$shmget_ok" = no; then
	echo "configure: warning: Neither mmap/munmap(2) or shmget(2) library functions." 1>&2
d5378 2
d5381 3
a5383 32
    include.tcl:$srcdir/../test/include.tcl
    db_int.h:$srcdir/../include/db_int.in"

if test "$db_cv_uniquename" = "yes"; then
    CREATE_LIST="${CREATE_LIST}
    db.h:$srcdir/../include/db.in:$srcdir/../include_auto/rpc_defs.in:$srcdir/../include_auto/global_uext.in"
else
    CREATE_LIST="${CREATE_LIST}
    db.h:$srcdir/../include/db.in:$srcdir/../include_auto/rpc_defs.in:$srcdir/../include_auto/global_ext.in"
fi

if test "$db_cv_uniquename" = "yes"; then
    CREATE_LIST="${CREATE_LIST}
    db_ext.h:$srcdir/../include_auto/db_ext.in
    btree_ext.h:$srcdir/../include_auto/btree_ext.in
    clib_ext.h:$srcdir/../include_auto/clib_ext.in
    common_ext.h:$srcdir/../include_auto/common_ext.in
    db_server.h:$srcdir/../include_auto/db_server.in
    env_ext.h:$srcdir/../include_auto/env_ext.in
    hash_ext.h:$srcdir/../include_auto/hash_ext.in
    lock_ext.h:$srcdir/../include_auto/lock_ext.in
    log_ext.h:$srcdir/../include_auto/log_ext.in
    mp_ext.h:$srcdir/../include_auto/mp_ext.in
    mutex_ext.h:$srcdir/../include_auto/mutex_ext.in
    os_ext.h:$srcdir/../include_auto/os_ext.in
    qam_ext.h:$srcdir/../include_auto/qam_ext.in
    rpc_client_ext.h:$srcdir/../include_auto/rpc_client_ext.in
    rpc_server_ext.h:$srcdir/../include_auto/rpc_server_ext.in
    tcl_ext.h:$srcdir/../include_auto/tcl_ext.in
    txn_ext.h:$srcdir/../include_auto/txn_ext.in
    xa_ext.h:$srcdir/../include_auto/xa_ext.in"
fi
d5385 1
a5385 9
	if test "$db_cv_uniquename" = "yes"; then
		CREATE_LIST="${CREATE_LIST}
db_185.h:$srcdir/../include/db_185.in:$srcdir/../include_auto/db185_uext.in
db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../include_auto/db185_uext.in"
	else
		CREATE_LIST="${CREATE_LIST}
db_185.h:$srcdir/../include/db_185.in:$srcdir/../include_auto/db185_ext.in
db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../include_auto/db185_ext.in"
	fi
a5386 7
if test "$db_cv_embedix" = "yes"; then
	CREATE_LIST="${CREATE_LIST} db.ecd:../dist/db.ecd.in"
fi
if test "$db_cv_rpm" = "yes"; then
	CREATE_LIST="${CREATE_LIST} db.spec:../dist/db.spec.in"
fi

a5532 3
s%@@BUILD_TARGET@@%$BUILD_TARGET%g
s%@@CONFIGURATION_ARGS@@%$CONFIGURATION_ARGS%g
s%@@CONFIGURATION_PATH@@%$CONFIGURATION_PATH%g
d5534 1
a5536 3
s%@@EMBEDIX_ECD_CXX@@%$EMBEDIX_ECD_CXX%g
s%@@EMBEDIX_ECD_RPC@@%$EMBEDIX_ECD_RPC%g
s%@@EMBEDIX_ROOT@@%$EMBEDIX_ROOT%g
a5538 1
s%@@INSTALL_TARGET@@%$INSTALL_TARGET%g
a5542 1
s%@@LIBDB_CXX_ARGS@@%$LIBDB_CXX_ARGS%g
a5550 1
s%@@MAKEFILE_CXXLINK@@%$MAKEFILE_CXXLINK%g
d5552 1
a5552 4
s%@@PTHREAD_LIBS@@%$PTHREAD_LIBS%g
s%@@RPC_CLIENT_OBJS@@%$RPC_CLIENT_OBJS%g
s%@@RPM_POST_INSTALL@@%$RPM_POST_INSTALL%g
s%@@RPM_POST_UNINSTALL@@%$RPM_POST_UNINSTALL%g
a5555 2
s%@@db_cv_path_embedix_install@@%$db_cv_path_embedix_install%g
s%@@db_cv_path_rpm_archive@@%$db_cv_path_rpm_archive%g
a5559 1
s%@@DB_VERSION_UNIQUE_NAME@@%$DB_VERSION_UNIQUE_NAME%g
a5560 29
s%@@build@@%$build%g
s%@@build_alias@@%$build_alias%g
s%@@build_cpu@@%$build_cpu%g
s%@@build_vendor@@%$build_vendor%g
s%@@build_os@@%$build_os%g
s%@@path_ar@@%$path_ar%g
s%@@db_cv_path_ar@@%$db_cv_path_ar%g
s%@@path_chmod@@%$path_chmod%g
s%@@db_cv_path_chmod@@%$db_cv_path_chmod%g
s%@@path_cp@@%$path_cp%g
s%@@db_cv_path_cp@@%$db_cv_path_cp%g
s%@@path_ldconfig@@%$path_ldconfig%g
s%@@db_cv_path_ldconfig@@%$db_cv_path_ldconfig%g
s%@@path_ln@@%$path_ln%g
s%@@db_cv_path_ln@@%$db_cv_path_ln%g
s%@@path_mkdir@@%$path_mkdir%g
s%@@db_cv_path_mkdir@@%$db_cv_path_mkdir%g
s%@@path_ranlib@@%$path_ranlib%g
s%@@db_cv_path_ranlib@@%$db_cv_path_ranlib%g
s%@@path_rm@@%$path_rm%g
s%@@db_cv_path_rm@@%$db_cv_path_rm%g
s%@@path_rpm@@%$path_rpm%g
s%@@db_cv_path_rpm@@%$db_cv_path_rpm%g
s%@@path_sh@@%$path_sh%g
s%@@db_cv_path_sh@@%$db_cv_path_sh%g
s%@@path_strip@@%$path_strip%g
s%@@db_cv_path_strip@@%$db_cv_path_strip%g
s%@@path_kill@@%$path_kill%g
s%@@db_cv_path_kill@@%$db_cv_path_kill%g
d5583 10
a5810 1

@


1.1.1.2.2.1
log
@Merge db-3.3.11 onto rpm-4_0 branch.
@
text
@d2 1
d4 2
a5 1
# Generated by Autoconf 2.50.
a6 2
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
d10 2
a11 228
# Find the correct PATH separator.  Usually this is `:', but
# DJGPP uses `;' like DOS.
if test "X${PATH_SEPARATOR+set}" != Xset; then
  UNAME=${UNAME-`uname 2>/dev/null`}
  case X$UNAME in
    *-DOS) lt_cv_sys_path_separator=';' ;;
    *)     lt_cv_sys_path_separator=':' ;;
  esac
fi

# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}

case X$ECHO in
X*--fallback-echo)
  # Remove one level of quotation (which was required for Make).
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  ;;
esac

echo=${ECHO-echo}
if test "X$1" = X--no-reexec; then
  # Discard the --no-reexec flag, and continue.
  shift
elif test "X$1" = X--fallback-echo; then
  # Avoid inline document here, it may be left over
  :
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  # Yippee, $echo works!
  :
else
  # Restart under the correct shell.
  exec $SHELL "$0" --no-reexec ${1+"$@@"}
fi

if test "X$1" = X--fallback-echo; then
  # used as fallback echo
  shift
  cat <<EOF

EOF
  exit 0
fi

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi

if test -z "$ECHO"; then
if test "X${echo_test_string+set}" != Xset; then
# find a string as large as possible, as long as the shell can cope with it
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
       echo_test_string="`eval $cmd`" &&
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
    then
      break
    fi
  done
fi

if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   test "X$echo_testing_string" = "X$echo_test_string"; then
  :
else
  # The Solaris, AIX, and Digital Unix default echo programs unquote
  # backslashes.  This makes it impossible to quote backslashes using
  #   echo "$something" | sed 's/\\/\\\\/g'
  #
  # So, first we look for a working echo in the user's PATH.

  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  for dir in $PATH /usr/ucb; do
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      echo="$dir/echo"
      break
    fi
  done
  IFS="$save_ifs"

  if test "X$echo" = Xecho; then
    # We didn't find a better echo, so look for alternatives.
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      # This shell has a builtin print -r that does the trick.
      echo='print -r'
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
      # If we have ksh, try running configure again with it.
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
      export ORIGINAL_CONFIG_SHELL
      CONFIG_SHELL=/bin/ksh
      export CONFIG_SHELL
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@@"}
    else
      # Try using printf.
      echo='printf %s\n'
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
	 test "X$echo_testing_string" = "X$echo_test_string"; then
	# Cool, printf works
	:
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
	export CONFIG_SHELL
	SHELL="$CONFIG_SHELL"
	export SHELL
	echo="$CONFIG_SHELL $0 --fallback-echo"
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	echo="$CONFIG_SHELL $0 --fallback-echo"
      else
	# maybe with a smaller string...
	prev=:

	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
	  then
	    break
	  fi
	  prev="$cmd"
	done

	if test "$prev" != 'sed 50q "$0"'; then
	  echo_test_string=`eval $prev`
	  export echo_test_string
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@@"}
	else
	  # Oops.  We lost completely, so just stick with echo.
	  echo=echo
	fi
      fi
    fi
  fi
fi
fi

# Copy echo and quote the copy suitably for passing to libtool from
# the Makefile, instead of quoting the original, which is used later.
ECHO=$echo
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
fi

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

exec 6>&1

#
# Initializations.
#
d13 1
a13 21
cross_compiling=no
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Maximum number of lines to put in a shell here document.
# This variable seems obsolete.  It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}

# Avoid depending upon Character Ranges.
ac_cr_az='abcdefghijklmnopqrstuvwxyz'
ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ac_cr_09='0123456789'
ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09

# Sed expression to map a string onto a valid sh and CPP variable names.
ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"

ac_unique_file="../db/db.c"
d15 42
a56 29
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#else
# if HAVE_STRINGS_H
#  include <strings.h>
# endif
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"
a58 2
ac_init_help=
ac_init_version=false
d61 2
a62 1
cache_file=/dev/null
d64 1
d66 1
d75 1
a78 6

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
d92 6
a97 6
# Identity of this package.
PACKAGE_NAME=
PACKAGE_TARNAME=
PACKAGE_VERSION=
PACKAGE_STRING=
PACKAGE_BUGREPORT=
d102 1
d110 4
a113 1
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
d117 1
a117 1
  case $ac_option in
d122 1
a122 1
    bindir=$ac_optarg ;;
d125 1
a125 1
    ac_prev=build_alias ;;
d127 1
a127 1
    build_alias=$ac_optarg ;;
d134 1
a134 4
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;
d140 1
a140 1
    datadir=$ac_optarg ;;
d143 1
a143 1
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d145 5
a149 5
    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    eval "enable_$ac_feature=no" ;;
d152 1
a152 1
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d154 6
a159 6
    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d162 1
a162 1
    eval "enable_$ac_feature='$ac_optarg'" ;;
d171 1
a171 1
    exec_prefix=$ac_optarg ;;
d177 54
a230 6
  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;
d233 1
a233 1
    ac_prev=host_alias ;;
d235 1
a235 1
    host_alias=$ac_optarg ;;
d242 1
a242 1
    includedir=$ac_optarg ;;
d247 1
a247 1
    infodir=$ac_optarg ;;
d252 1
a252 1
    libdir=$ac_optarg ;;
d259 1
a259 1
    libexecdir=$ac_optarg ;;
d268 1
a268 1
    localstatedir=$ac_optarg ;;
d273 1
a273 1
    mandir=$ac_optarg ;;
d294 1
a294 1
    oldincludedir=$ac_optarg ;;
d299 1
a299 1
    prefix=$ac_optarg ;;
d306 1
a306 1
    program_prefix=$ac_optarg ;;
d313 1
a313 1
    program_suffix=$ac_optarg ;;
d330 1
a330 1
    program_transform_name=$ac_optarg ;;
d340 1
a340 1
    sbindir=$ac_optarg ;;
d351 1
a351 1
    sharedstatedir=$ac_optarg ;;
d356 1
a356 1
    site=$ac_optarg ;;
d361 1
a361 1
    srcdir=$ac_optarg ;;
d368 1
a368 1
    sysconfdir=$ac_optarg ;;
d371 1
a371 1
    ac_prev=target_alias ;;
d373 1
a373 1
    target_alias=$ac_optarg ;;
d378 3
a380 2
  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;
d383 1
a383 1
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d385 3
a387 3
    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
d389 2
a390 2
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d393 1
a393 1
    eval "with_$ac_package='$ac_optarg'" ;;
d396 1
a396 1
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d398 5
a402 5
    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package | sed 's/-/_/g'`
    eval "with_$ac_package=no" ;;
d413 1
a413 1
    x_includes=$ac_optarg ;;
d420 1
a420 1
    x_libraries=$ac_optarg ;;
d422 1
a422 3
  -*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; }
a424 10
  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    eval "$ac_envvar='$ac_optarg'"
    export $ac_envvar ;;

d426 7
a432 5
    # FIXME: should be removed in autoconf 3.0.
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d439 17
a455 3
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  { echo "$as_me: error: missing argument to $ac_option" >&2
   { (exit 1); exit 1; }; }
d457 6
d464 4
a467 4
# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
              localstatedir libdir includedir oldincludedir infodir mandir \
              exec_prefix prefix
d469 8
a476 6
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* ) ;;
    NONE ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
d480 9
a488 16
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: should be removed in autoconf 3.0.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi
d490 4
a493 2
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
d495 3
a497 1
test "$silent" = yes && exec 6>/dev/null
d504 1
a504 1
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
d515 1
a515 2
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
   { (exit 1); exit 1; }; }
d517 1
a517 2
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
   { (exit 1); exit 1; }; }
d520 1
a520 333
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
ac_env_CC_set=${CC+set}
ac_env_CC_value=$CC
ac_cv_env_CC_set=${CC+set}
ac_cv_env_CC_value=$CC
ac_env_CFLAGS_set=${CFLAGS+set}
ac_env_CFLAGS_value=$CFLAGS
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_value=$CFLAGS
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_LDFLAGS_value=$LDFLAGS
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_value=$LDFLAGS
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPPFLAGS_value=$CPPFLAGS
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
ac_env_CXX_set=${CXX+set}
ac_env_CXX_value=$CXX
ac_cv_env_CXX_set=${CXX+set}
ac_cv_env_CXX_value=$CXX
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_env_CXXFLAGS_value=$CXXFLAGS
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<EOF
\`configure' configures this package to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

EOF

  cat <<EOF
Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --infodir=DIR          info documentation [PREFIX/info]
  --mandir=DIR           man documentation [PREFIX/man]
EOF

  cat <<\EOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       build programs to run on HOST [BUILD]
EOF
fi

if test -n "$ac_init_help"; then

  cat <<\EOF

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-bigfile       Obsolete; use --disable-largefile instead.
  --enable-compat185      Build DB 1.85 compatibility API.
  --enable-cxx            Build C++ API.
  --enable-debug          Build a debugging version.
  --enable-debug_rop      Build a version that logs read operations.
  --enable-debug_wop      Build a version that logs write operations.
  --enable-diagnostic     Build a version with run-time diagnostics.
  --enable-dump185        Build db_dump185(1) to dump 1.85 databases.
  --enable-java           Build Java API.
  --enable-posixmutexes   Force use of POSIX standard mutexes.
  --enable-rpc            Build RPC client/server.
  --enable-tcl            Build Tcl API.
  --enable-test           Configure to run the test suite.
  --enable-uimutexes      Force use of Unix International mutexes.
  --enable-umrw           Mask harmless unitialized memory read/writes.
  --enable-shared=PKGS    build shared libraries default=yes
  --enable-static=PKGS    build static libraries default=yes
  --enable-fast-install=PKGS  optimize for fast installation default=yes
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --disable-largefile     omit support for large files

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-embedix=DIR      Embedix install directory location.
  --with-rpm=DIR          Directory location of RPM archive.
  --with-tcl=DIR          Directory location of tclConfig.sh.
  --with-uniquename=NAME  Build a uniquely named library.
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
  --with-pic              try to use only PIC/non-PIC objects default=use both

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CPP         C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

EOF
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  ac_popdir=`pwd`
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    cd $ac_subdir
    # A "../" for each directory in /$ac_subdir.
    ac_dots=`echo $ac_subdir |
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`

    case $srcdir in
    .) # No --srcdir option.  We are building in place.
      ac_sub_srcdir=$srcdir ;;
    [\\/]* | ?:[\\/]* ) # Absolute path.
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
    *) # Relative path.
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    esac

    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f $ac_sub_srcdir/configure.gnu; then
      echo
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_sub_srcdir/configure; then
      echo
      $SHELL $ac_sub_srcdir/configure  --help=recursive
    elif test -f $ac_sub_srcdir/configure.ac ||
           test -f $ac_sub_srcdir/configure.in; then
      echo
      $ac_configure --help
    else
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    fi
    cd $ac_popdir
  done
fi

test -n "$ac_init_help" && exit 0
if $ac_init_version; then
  cat <<\EOF

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
EOF
  exit 0
fi
exec 5>config.log
cat >&5 <<EOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by $as_me, which was
generated by GNU Autoconf 2.50.  Invocation command line was

  $ $0 $@@

EOF
{
cat <<_ASUNAME
## ---------- ##
## Platform.  ##
## ---------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

PATH = $PATH

_ASUNAME
} >&5

cat >&5 <<EOF
## ------------ ##
## Core tests.  ##
## ------------ ##

EOF

# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell meta-characters.
ac_configure_args=
ac_sep=
for ac_arg
do
  case $ac_arg in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    ac_sep=" " ;;
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     ac_sep=" " ;;
  esac
  # Get rid of the leading space.
done

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  echo >&5
  echo "## ----------------- ##" >&5
  echo "## Cache variables.  ##" >&5
  echo "## ----------------- ##" >&5
  echo >&5
  # The following way of writing the cache mishandles newlines in values,
{
  (set) 2>&1 |
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      sed -n \
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
    *)
      sed -n \
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} >&5
  sed "/^$/d" confdefs.h >conftest.log
  if test -s conftest.log; then
    echo >&5
    echo "## ------------ ##" >&5
    echo "## confdefs.h.  ##" >&5
    echo "## ------------ ##" >&5
    echo >&5
    cat conftest.log >&5
  fi
  (echo; echo) >&5
  test "$ac_signal" != 0 &&
    echo "$as_me: caught signal $ac_signal" >&5
  echo "$as_me: exit $exit_status" >&5
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    exit $exit_status
     ' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h
a521 1
# Let the site file select an alternate cache file if it wants to.
d532 1
a532 3
    { echo "$as_me:1045: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
    cat "$ac_site_file" >&5
d538 2
a539 10
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:1056: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi
d541 2
a542 41
  { echo "$as_me:1064: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_suggest_removing_cache=false
for ac_var in `(set) 2>&1 |
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  eval ac_new_val="\$ac_env_${ac_var}_value"
  case $ac_old_set,$ac_new_set in
    set,)
      { echo "$as_me:1080: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_suggest_removing_cache=: ;;
    ,set)
      { echo "$as_me:1084: WARNING: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
      ac_suggest_removing_cache=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
        { echo "$as_me:1090: WARNING: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:1092: WARNING:   former value:  $ac_old_val" >&5
echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:1094: WARNING:   current value: $ac_new_val" >&5
echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
        ac_suggest_removing_cache=:
      fi;;
  esac
done
if $ac_suggest_removing_cache; then
  { echo "$as_me:1101: WARNING: changes in the environment can compromise the build" >&5
echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
  { echo "$as_me:1103: WARNING: consider removing $cache_file and starting over" >&5
echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
d546 1
d548 14
a561 19
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
echo "#! $SHELL" >conftest.sh
echo  "exit 0"   >>conftest.sh
chmod +x conftest.sh
if { (echo "$as_me:1122: PATH=\".;.\"; conftest.sh") >&5
  (PATH=".;."; conftest.sh) 2>&5
  ac_status=$?
  echo "$as_me:1125: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_path_separator=';'
d563 1
a563 1
  ac_path_separator=:
a564 2
PATH_SEPARATOR="$ac_path_separator"
rm -f conftest.sh
a565 1
ac_config_headers="$ac_config_headers db_config.h:config.hin"
d567 2
a568 1
# Configure setup.
a578 4
  elif test -f $ac_dir/shtool; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
d582 5
a586 7
  { { echo "$as_me:1154: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   { (exit 1); exit 1; }; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
d588 42
a629 51
# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:1164: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:1168: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
  ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
  { { echo "$as_me:1177: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   { (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  { { echo "$as_me:1181: error: $ac_config_sub $ac_cv_build_alias failed." >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1186: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

echo "$as_me:1193: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
  ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  { { echo "$as_me:1202: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1207: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
d631 57
a687 9
if test "$program_transform_name" = s,x,x,; then
  program_transform_name=
else
  # Double any \ or $.  echo might interpret backslashes.
  cat <<\EOF >conftest.sed
s,\\,\\\\,g; s,\$,$$,g
EOF
  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  rm -f conftest.sed
d690 1
a690 1
  program_transform_name="s,^,${program_prefix},;$program_transform_name"
d693 1
a693 1
  program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
d696 56
a751 1
test -z "$program_transform_name" && program_transform_name="s,x,x,"
a752 16
# We cannot build in the top-level directory.
echo "$as_me:1234: checking if building in the top-level directory" >&5
echo $ECHO_N "checking if building in the top-level directory... $ECHO_C" >&6
 test -d db_archive  && { { echo "$as_me:1236: error:
Berkeley DB cannot be built in the top-level distribution directory." >&5
echo "$as_me: error:
Berkeley DB cannot be built in the top-level distribution directory." >&2;}
   { (exit 1); exit 1; }; }
echo "$as_me:1241: result: no" >&5
echo "${ECHO_T}no" >&6

# Substitution variables.

# RPM needs the current absolute path.
# RPM needs the list of original arguments, but we don't include the RPM
# option itself.
d757 1
a757 1
# Set the version.
d763 1
a763 1
DB_VERSION_PATCH=11
d767 3
a769 1
DB_VERSION_STRING="\"Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)\""
a770 1
# Set the default installation location.
a771 1
# Process all options before using them.
d773 2
a774 2
# --enable-bigfile was the configuration option that Berkeley DB used before
# autoconf 2.50 was released (which had --enable-largefile integrated in).
d778 11
a788 4
  { { echo "$as_me:1274: error: --enable-bigfile no longer supported, use --enable-largefile" >&5
echo "$as_me: error: --enable-bigfile no longer supported, use --enable-largefile" >&2;}
   { (exit 1); exit 1; }; }
fi;
d790 2
a791 2
echo "$as_me:1279: checking if --enable-compat185 option specified" >&5
echo $ECHO_N "checking if --enable-compat185 option specified... $ECHO_C" >&6
d798 1
a798 3
fi;
echo "$as_me:1288: result: $db_cv_compat185" >&5
echo "${ECHO_T}$db_cv_compat185" >&6
d800 4
a803 2
echo "$as_me:1291: checking if --enable-cxx option specified" >&5
echo $ECHO_N "checking if --enable-cxx option specified... $ECHO_C" >&6
d810 1
a810 3
fi;
echo "$as_me:1300: result: $db_cv_cxx" >&5
echo "${ECHO_T}$db_cv_cxx" >&6
d812 4
a815 2
echo "$as_me:1303: checking if --enable-debug option specified" >&5
echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
d822 1
a822 3
fi;
echo "$as_me:1312: result: $db_cv_debug" >&5
echo "${ECHO_T}$db_cv_debug" >&6
d824 4
a827 2
echo "$as_me:1315: checking if --enable-debug_rop option specified" >&5
echo $ECHO_N "checking if --enable-debug_rop option specified... $ECHO_C" >&6
d834 1
a834 3
fi;
echo "$as_me:1324: result: $db_cv_debug_rop" >&5
echo "${ECHO_T}$db_cv_debug_rop" >&6
d836 4
a839 2
echo "$as_me:1327: checking if --enable-debug_wop option specified" >&5
echo $ECHO_N "checking if --enable-debug_wop option specified... $ECHO_C" >&6
d846 1
a846 3
fi;
echo "$as_me:1336: result: $db_cv_debug_wop" >&5
echo "${ECHO_T}$db_cv_debug_wop" >&6
d848 4
a851 2
echo "$as_me:1339: checking if --enable-diagnostic option specified" >&5
echo $ECHO_N "checking if --enable-diagnostic option specified... $ECHO_C" >&6
d858 1
a858 3
fi;
echo "$as_me:1348: result: $db_cv_diagnostic" >&5
echo "${ECHO_T}$db_cv_diagnostic" >&6
d860 4
a863 2
echo "$as_me:1351: checking if --enable-dump185 option specified" >&5
echo $ECHO_N "checking if --enable-dump185 option specified... $ECHO_C" >&6
d870 13
a882 3
fi;
echo "$as_me:1360: result: $db_cv_dump185" >&5
echo "${ECHO_T}$db_cv_dump185" >&6
d884 4
a887 2
echo "$as_me:1363: checking if --enable-java option specified" >&5
echo $ECHO_N "checking if --enable-java option specified... $ECHO_C" >&6
d894 1
a894 3
fi;
echo "$as_me:1372: result: $db_cv_java" >&5
echo "${ECHO_T}$db_cv_java" >&6
d896 4
a899 2
echo "$as_me:1375: checking if --enable-posixmutexes option specified" >&5
echo $ECHO_N "checking if --enable-posixmutexes option specified... $ECHO_C" >&6
d906 1
a906 3
fi;
echo "$as_me:1384: result: $db_cv_posixmutexes" >&5
echo "${ECHO_T}$db_cv_posixmutexes" >&6
d908 4
a911 2
echo "$as_me:1387: checking if --enable-rpc option specified" >&5
echo $ECHO_N "checking if --enable-rpc option specified... $ECHO_C" >&6
d918 18
a935 3
fi;
echo "$as_me:1396: result: $db_cv_rpc" >&5
echo "${ECHO_T}$db_cv_rpc" >&6
d937 2
a938 2
echo "$as_me:1399: checking if --enable-tcl option specified" >&5
echo $ECHO_N "checking if --enable-tcl option specified... $ECHO_C" >&6
d945 1
a945 3
fi;
echo "$as_me:1408: result: $db_cv_tcl" >&5
echo "${ECHO_T}$db_cv_tcl" >&6
d947 4
a950 2
echo "$as_me:1411: checking if --enable-test option specified" >&5
echo $ECHO_N "checking if --enable-test option specified... $ECHO_C" >&6
d957 1
a957 3
fi;
echo "$as_me:1420: result: $db_cv_test" >&5
echo "${ECHO_T}$db_cv_test" >&6
d959 4
a962 2
echo "$as_me:1423: checking if --enable-uimutexes option specified" >&5
echo $ECHO_N "checking if --enable-uimutexes option specified... $ECHO_C" >&6
d969 1
a969 3
fi;
echo "$as_me:1432: result: $db_cv_uimutexes" >&5
echo "${ECHO_T}$db_cv_uimutexes" >&6
d971 4
a974 2
echo "$as_me:1435: checking if --enable-umrw option specified" >&5
echo $ECHO_N "checking if --enable-umrw option specified... $ECHO_C" >&6
d981 1
a981 3
fi;
echo "$as_me:1444: result: $db_cv_umrw" >&5
echo "${ECHO_T}$db_cv_umrw" >&6
d983 1
a983 2
echo "$as_me:1447: checking if --with-embedix=DIR option specified" >&5
echo $ECHO_N "checking if --with-embedix=DIR option specified... $ECHO_C" >&6
d985 2
d993 2
a994 1
fi;
d997 1
a997 2
	echo "$as_me:1459: result: $with_embedix" >&5
echo "${ECHO_T}$with_embedix" >&6
d1005 1
a1005 2
	echo "$as_me:1468: result: $db_cv_path_embedix_install" >&5
echo "${ECHO_T}$db_cv_path_embedix_install" >&6
d1008 2
a1009 3
echo "$as_me:1472: checking if --with-rpm=DIR option specified" >&5
echo $ECHO_N "checking if --with-rpm=DIR option specified... $ECHO_C" >&6

d1016 2
a1017 1
fi;
d1022 1
a1022 3
		{ { echo "$as_me:1486: error: --with-rpm requires a directory argument" >&5
echo "$as_me: error: --with-rpm requires a directory argument" >&2;}
   { (exit 1); exit 1; }; }
d1027 1
a1027 5
echo "$as_me:1493: result: $with_rpm" >&5
echo "${ECHO_T}$with_rpm" >&6

echo "$as_me:1496: checking if --with-tcl=DIR option specified" >&5
echo $ECHO_N "checking if --with-tcl=DIR option specified... $ECHO_C" >&6
d1029 2
d1037 3
a1039 3
fi;
echo "$as_me:1506: result: $with_tclconfig" >&5
echo "${ECHO_T}$with_tclconfig" >&6
d1044 2
a1045 3
echo "$as_me:1512: checking if --with-uniquename=NAME option specified" >&5
echo $ECHO_N "checking if --with-uniquename=NAME option specified... $ECHO_C" >&6

d1052 2
a1053 1
fi;
d1056 1
a1056 2
	echo "$as_me:1524: result: $with_uniquename" >&5
echo "${ECHO_T}$with_uniquename" >&6
d1062 1
a1062 2
	echo "$as_me:1531: result: $DB_VERSION_UNIQUE_NAME" >&5
echo "${ECHO_T}$DB_VERSION_UNIQUE_NAME" >&6
a1064 1
# Embedix requires RPM.
d1067 10
a1076 3
		{ { echo "$as_me:1538: error: --with-embedix requires --with-rpm" >&5
echo "$as_me: error: --with-embedix requires --with-rpm" >&2;}
   { (exit 1); exit 1; }; }
a1079 1
# Test requires Tcl
d1082 1
a1082 3
		{ { echo "$as_me:1547: error: --enable-test requires --enable-tcl" >&5
echo "$as_me: error: --enable-test requires --enable-tcl" >&2;}
   { (exit 1); exit 1; }; }
d1086 1
a1086 1
# Set some #defines based on configuration options.
d1088 1
a1088 1
	cat >>confdefs.h <<\EOF
d1094 1
a1094 1
	cat >>confdefs.h <<\EOF
d1100 1
a1100 1
	cat >>confdefs.h <<\EOF
d1106 1
a1106 1
	cat >>confdefs.h <<\EOF
d1112 1
a1112 1
	cat >>confdefs.h <<\EOF
d1118 25
a1142 1
# Check for programs used in building and installation.
d1144 1
a1144 2
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
d1146 18
a1163 19
echo "$as_me:1590: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_ar+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_ar"; then
  ac_cv_prog_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_ar="${ac_tool_prefix}ar"
echo "$as_me:1605: found $ac_dir/$ac_word" >&5
break
done

d1166 3
a1168 4
db_cv_path_ar=$ac_cv_prog_db_cv_path_ar
if test -n "$db_cv_path_ar"; then
  echo "$as_me:1613: result: $db_cv_path_ar" >&5
echo "${ECHO_T}$db_cv_path_ar" >&6
d1170 1
a1170 2
  echo "$as_me:1616: result: no" >&5
echo "${ECHO_T}no" >&6
d1173 3
a1175 3
fi
if test -z "$ac_cv_prog_db_cv_path_ar"; then
  ac_ct_db_cv_path_ar=$db_cv_path_ar
d1178 27
a1204 18
echo "$as_me:1625: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_ar+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_ar"; then
  ac_cv_prog_ac_ct_db_cv_path_ar="$ac_ct_db_cv_path_ar" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_ar="ar"
echo "$as_me:1640: found $ac_dir/$ac_word" >&5
break
done
d1206 2
a1207 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_ar" && ac_cv_prog_ac_ct_db_cv_path_ar="missing_ar"
d1210 7
a1216 4
ac_ct_db_cv_path_ar=$ac_cv_prog_ac_ct_db_cv_path_ar
if test -n "$ac_ct_db_cv_path_ar"; then
  echo "$as_me:1649: result: $ac_ct_db_cv_path_ar" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_ar" >&6
d1218 21
a1238 2
  echo "$as_me:1652: result: no" >&5
echo "${ECHO_T}no" >&6
d1240 3
a1242 2

  db_cv_path_ar=$ac_ct_db_cv_path_ar
d1244 1
a1244 1
  db_cv_path_ar="$ac_cv_prog_db_cv_path_ar"
d1248 1
a1248 3
	{ { echo "$as_me:1662: error: No ar utility found." >&5
echo "$as_me: error: No ar utility found." >&2;}
   { (exit 1); exit 1; }; }
d1251 1
a1251 2
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args.
d1253 18
a1270 19
echo "$as_me:1670: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_chmod+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_chmod"; then
  ac_cv_prog_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_chmod="${ac_tool_prefix}chmod"
echo "$as_me:1685: found $ac_dir/$ac_word" >&5
break
done

d1273 3
a1275 4
db_cv_path_chmod=$ac_cv_prog_db_cv_path_chmod
if test -n "$db_cv_path_chmod"; then
  echo "$as_me:1693: result: $db_cv_path_chmod" >&5
echo "${ECHO_T}$db_cv_path_chmod" >&6
d1277 1
a1277 2
  echo "$as_me:1696: result: no" >&5
echo "${ECHO_T}no" >&6
d1280 3
a1282 3
fi
if test -z "$ac_cv_prog_db_cv_path_chmod"; then
  ac_ct_db_cv_path_chmod=$db_cv_path_chmod
d1285 19
a1303 20
echo "$as_me:1705: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_chmod+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_chmod"; then
  ac_cv_prog_ac_ct_db_cv_path_chmod="$ac_ct_db_cv_path_chmod" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_chmod="chmod"
echo "$as_me:1720: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_db_cv_path_chmod" && ac_cv_prog_ac_ct_db_cv_path_chmod="missing_chmod"
d1306 3
a1308 4
ac_ct_db_cv_path_chmod=$ac_cv_prog_ac_ct_db_cv_path_chmod
if test -n "$ac_ct_db_cv_path_chmod"; then
  echo "$as_me:1729: result: $ac_ct_db_cv_path_chmod" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_chmod" >&6
d1310 1
a1310 2
  echo "$as_me:1732: result: no" >&5
echo "${ECHO_T}no" >&6
a1312 1
  db_cv_path_chmod=$ac_ct_db_cv_path_chmod
d1314 1
a1314 1
  db_cv_path_chmod="$ac_cv_prog_db_cv_path_chmod"
a1315 5

if test "$db_cv_path_chmod" = missing_chmod; then
	{ { echo "$as_me:1742: error: No chmod utility found." >&5
echo "$as_me: error: No chmod utility found." >&2;}
   { (exit 1); exit 1; }; }
d1318 28
a1345 22
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cp", so it can be a program name with args.
set dummy ${ac_tool_prefix}cp; ac_word=$2
echo "$as_me:1750: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_cp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_cp"; then
  ac_cv_prog_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_cp="${ac_tool_prefix}cp"
echo "$as_me:1765: found $ac_dir/$ac_word" >&5
break
done

d1347 3
a1349 5
fi
db_cv_path_cp=$ac_cv_prog_db_cv_path_cp
if test -n "$db_cv_path_cp"; then
  echo "$as_me:1773: result: $db_cv_path_cp" >&5
echo "${ECHO_T}$db_cv_path_cp" >&6
d1351 1
a1351 2
  echo "$as_me:1776: result: no" >&5
echo "${ECHO_T}no" >&6
d1354 2
a1356 22
if test -z "$ac_cv_prog_db_cv_path_cp"; then
  ac_ct_db_cv_path_cp=$db_cv_path_cp
  # Extract the first word of "cp", so it can be a program name with args.
set dummy cp; ac_word=$2
echo "$as_me:1785: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_cp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_cp"; then
  ac_cv_prog_ac_ct_db_cv_path_cp="$ac_ct_db_cv_path_cp" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_cp="cp"
echo "$as_me:1800: found $ac_dir/$ac_word" >&5
break
done
d1358 20
a1377 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_cp" && ac_cv_prog_ac_ct_db_cv_path_cp="missing_cp"
d1380 3
a1382 4
ac_ct_db_cv_path_cp=$ac_cv_prog_ac_ct_db_cv_path_cp
if test -n "$ac_ct_db_cv_path_cp"; then
  echo "$as_me:1809: result: $ac_ct_db_cv_path_cp" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_cp" >&6
d1384 1
a1384 2
  echo "$as_me:1812: result: no" >&5
echo "${ECHO_T}no" >&6
d1387 9
a1395 1
  db_cv_path_cp=$ac_ct_db_cv_path_cp
d1397 62
a1458 1
  db_cv_path_cp="$ac_cv_prog_db_cv_path_cp"
d1462 1
a1462 3
	{ { echo "$as_me:1822: error: No cp utility found." >&5
echo "$as_me: error: No cp utility found." >&2;}
   { (exit 1); exit 1; }; }
d1466 1
a1466 2
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ldconfig", so it can be a program name with args.
d1468 4
a1471 4
echo "$as_me:1831: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_path_ldconfig+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1476 10
a1485 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_path_ldconfig="${ac_tool_prefix}ldconfig"
echo "$as_me:1846: found $ac_dir/$ac_word" >&5
break
done

d1488 1
a1488 1
path_ldconfig=$ac_cv_prog_path_ldconfig
d1490 1
a1490 2
  echo "$as_me:1854: result: $path_ldconfig" >&5
echo "${ECHO_T}$path_ldconfig" >&6
d1492 1
a1492 2
  echo "$as_me:1857: result: no" >&5
echo "${ECHO_T}no" >&6
d1495 1
a1495 1
fi
d1497 1
a1497 1
  ac_ct_path_ldconfig=$path_ldconfig
d1500 19
a1518 20
echo "$as_me:1866: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_path_ldconfig+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_path_ldconfig"; then
  ac_cv_prog_ac_ct_path_ldconfig="$ac_ct_path_ldconfig" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_path_ldconfig="ldconfig"
echo "$as_me:1881: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_path_ldconfig" && ac_cv_prog_ac_ct_path_ldconfig="missing_ldconfig"
d1521 3
a1523 4
ac_ct_path_ldconfig=$ac_cv_prog_ac_ct_path_ldconfig
if test -n "$ac_ct_path_ldconfig"; then
  echo "$as_me:1890: result: $ac_ct_path_ldconfig" >&5
echo "${ECHO_T}$ac_ct_path_ldconfig" >&6
d1525 1
a1525 2
  echo "$as_me:1893: result: no" >&5
echo "${ECHO_T}no" >&6
a1527 1
  path_ldconfig=$ac_ct_path_ldconfig
d1529 2
a1530 1
  path_ldconfig="$ac_cv_prog_path_ldconfig"
d1535 4
a1538 4
echo "$as_me:1904: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_db_cv_path_ldconfig+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1540 2
a1541 2
  case $db_cv_path_ldconfig in
  [\\/]* | ?:[\\/]*)
d1544 3
d1548 10
a1557 12
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_db_cv_path_ldconfig="$ac_dir/$ac_word"
   echo "$as_me:1921: found $ac_dir/$ac_word" >&5
   break
fi
done

d1562 1
a1562 2
db_cv_path_ldconfig=$ac_cv_path_db_cv_path_ldconfig

d1564 1
a1564 2
  echo "$as_me:1933: result: $db_cv_path_ldconfig" >&5
echo "${ECHO_T}$db_cv_path_ldconfig" >&6
d1566 1
a1566 2
  echo "$as_me:1936: result: no" >&5
echo "${ECHO_T}no" >&6
d1575 1
a1575 2
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ln", so it can be a program name with args.
d1577 18
a1594 19
echo "$as_me:1949: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_ln+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_ln"; then
  ac_cv_prog_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_ln="${ac_tool_prefix}ln"
echo "$as_me:1964: found $ac_dir/$ac_word" >&5
break
done

d1597 3
a1599 4
db_cv_path_ln=$ac_cv_prog_db_cv_path_ln
if test -n "$db_cv_path_ln"; then
  echo "$as_me:1972: result: $db_cv_path_ln" >&5
echo "${ECHO_T}$db_cv_path_ln" >&6
d1601 1
a1601 2
  echo "$as_me:1975: result: no" >&5
echo "${ECHO_T}no" >&6
d1604 3
a1606 3
fi
if test -z "$ac_cv_prog_db_cv_path_ln"; then
  ac_ct_db_cv_path_ln=$db_cv_path_ln
d1609 27
a1635 18
echo "$as_me:1984: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_ln+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_ln"; then
  ac_cv_prog_ac_ct_db_cv_path_ln="$ac_ct_db_cv_path_ln" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_ln="ln"
echo "$as_me:1999: found $ac_dir/$ac_word" >&5
break
done
d1637 2
a1638 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_ln" && ac_cv_prog_ac_ct_db_cv_path_ln="missing_ln"
d1641 7
a1647 4
ac_ct_db_cv_path_ln=$ac_cv_prog_ac_ct_db_cv_path_ln
if test -n "$ac_ct_db_cv_path_ln"; then
  echo "$as_me:2008: result: $ac_ct_db_cv_path_ln" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_ln" >&6
d1649 21
a1669 2
  echo "$as_me:2011: result: no" >&5
echo "${ECHO_T}no" >&6
d1671 3
a1673 2

  db_cv_path_ln=$ac_ct_db_cv_path_ln
d1675 1
a1675 1
  db_cv_path_ln="$ac_cv_prog_db_cv_path_ln"
d1679 1
a1679 3
	{ { echo "$as_me:2021: error: No ln utility found." >&5
echo "$as_me: error: No ln utility found." >&2;}
   { (exit 1); exit 1; }; }
d1682 1
a1682 2
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}mkdir", so it can be a program name with args.
d1684 18
a1701 19
echo "$as_me:2029: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_mkdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_mkdir"; then
  ac_cv_prog_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_mkdir="${ac_tool_prefix}mkdir"
echo "$as_me:2044: found $ac_dir/$ac_word" >&5
break
done

d1704 3
a1706 4
db_cv_path_mkdir=$ac_cv_prog_db_cv_path_mkdir
if test -n "$db_cv_path_mkdir"; then
  echo "$as_me:2052: result: $db_cv_path_mkdir" >&5
echo "${ECHO_T}$db_cv_path_mkdir" >&6
d1708 1
a1708 2
  echo "$as_me:2055: result: no" >&5
echo "${ECHO_T}no" >&6
d1711 3
a1713 3
fi
if test -z "$ac_cv_prog_db_cv_path_mkdir"; then
  ac_ct_db_cv_path_mkdir=$db_cv_path_mkdir
d1716 27
a1742 18
echo "$as_me:2064: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_mkdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_mkdir"; then
  ac_cv_prog_ac_ct_db_cv_path_mkdir="$ac_ct_db_cv_path_mkdir" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_mkdir="mkdir"
echo "$as_me:2079: found $ac_dir/$ac_word" >&5
break
done
d1744 2
a1745 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_mkdir" && ac_cv_prog_ac_ct_db_cv_path_mkdir="missing_mkdir"
d1748 7
a1754 4
ac_ct_db_cv_path_mkdir=$ac_cv_prog_ac_ct_db_cv_path_mkdir
if test -n "$ac_ct_db_cv_path_mkdir"; then
  echo "$as_me:2088: result: $ac_ct_db_cv_path_mkdir" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_mkdir" >&6
d1756 21
a1776 2
  echo "$as_me:2091: result: no" >&5
echo "${ECHO_T}no" >&6
d1778 3
a1780 2

  db_cv_path_mkdir=$ac_ct_db_cv_path_mkdir
d1782 1
a1782 1
  db_cv_path_mkdir="$ac_cv_prog_db_cv_path_mkdir"
d1786 1
a1786 3
	{ { echo "$as_me:2101: error: No mkdir utility found." >&5
echo "$as_me: error: No mkdir utility found." >&2;}
   { (exit 1); exit 1; }; }
d1789 1
a1789 4
# We need a complete path for ranlib, because it doesn't exist on some
# architectures because the ar utility packages the library itself.
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
d1791 4
a1794 4
echo "$as_me:2111: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_path_ranlib+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1799 10
a1808 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_path_ranlib="${ac_tool_prefix}ranlib"
echo "$as_me:2126: found $ac_dir/$ac_word" >&5
break
done

d1811 1
a1811 1
path_ranlib=$ac_cv_prog_path_ranlib
d1813 1
a1813 2
  echo "$as_me:2134: result: $path_ranlib" >&5
echo "${ECHO_T}$path_ranlib" >&6
d1815 1
a1815 2
  echo "$as_me:2137: result: no" >&5
echo "${ECHO_T}no" >&6
d1818 1
a1818 1
fi
d1820 1
a1820 1
  ac_ct_path_ranlib=$path_ranlib
d1823 19
a1841 20
echo "$as_me:2146: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_path_ranlib+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_path_ranlib"; then
  ac_cv_prog_ac_ct_path_ranlib="$ac_ct_path_ranlib" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_path_ranlib="ranlib"
echo "$as_me:2161: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_path_ranlib" && ac_cv_prog_ac_ct_path_ranlib="missing_ranlib"
d1844 3
a1846 4
ac_ct_path_ranlib=$ac_cv_prog_ac_ct_path_ranlib
if test -n "$ac_ct_path_ranlib"; then
  echo "$as_me:2170: result: $ac_ct_path_ranlib" >&5
echo "${ECHO_T}$ac_ct_path_ranlib" >&6
d1848 1
a1848 2
  echo "$as_me:2173: result: no" >&5
echo "${ECHO_T}no" >&6
a1850 1
  path_ranlib=$ac_ct_path_ranlib
d1852 2
a1853 1
  path_ranlib="$ac_cv_prog_path_ranlib"
d1858 4
a1861 4
echo "$as_me:2184: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_db_cv_path_ranlib+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1863 2
a1864 2
  case $db_cv_path_ranlib in
  [\\/]* | ?:[\\/]*)
d1867 3
d1871 10
a1880 12
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_db_cv_path_ranlib="$ac_dir/$ac_word"
   echo "$as_me:2201: found $ac_dir/$ac_word" >&5
   break
fi
done

d1885 1
a1885 2
db_cv_path_ranlib=$ac_cv_path_db_cv_path_ranlib

d1887 1
a1887 2
  echo "$as_me:2213: result: $db_cv_path_ranlib" >&5
echo "${ECHO_T}$db_cv_path_ranlib" >&6
d1889 1
a1889 2
  echo "$as_me:2216: result: no" >&5
echo "${ECHO_T}no" >&6
d1892 2
a1893 2
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}rm", so it can be a program name with args.
d1895 18
a1912 19
echo "$as_me:2223: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_rm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_rm"; then
  ac_cv_prog_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_rm="${ac_tool_prefix}rm"
echo "$as_me:2238: found $ac_dir/$ac_word" >&5
break
done

d1915 3
a1917 4
db_cv_path_rm=$ac_cv_prog_db_cv_path_rm
if test -n "$db_cv_path_rm"; then
  echo "$as_me:2246: result: $db_cv_path_rm" >&5
echo "${ECHO_T}$db_cv_path_rm" >&6
d1919 1
a1919 2
  echo "$as_me:2249: result: no" >&5
echo "${ECHO_T}no" >&6
d1922 3
a1924 3
fi
if test -z "$ac_cv_prog_db_cv_path_rm"; then
  ac_ct_db_cv_path_rm=$db_cv_path_rm
d1927 27
a1953 18
echo "$as_me:2258: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_rm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_rm"; then
  ac_cv_prog_ac_ct_db_cv_path_rm="$ac_ct_db_cv_path_rm" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_rm="rm"
echo "$as_me:2273: found $ac_dir/$ac_word" >&5
break
done
d1955 2
a1956 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_rm" && ac_cv_prog_ac_ct_db_cv_path_rm="missing_rm"
d1959 7
a1965 4
ac_ct_db_cv_path_rm=$ac_cv_prog_ac_ct_db_cv_path_rm
if test -n "$ac_ct_db_cv_path_rm"; then
  echo "$as_me:2282: result: $ac_ct_db_cv_path_rm" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_rm" >&6
d1967 21
a1987 2
  echo "$as_me:2285: result: no" >&5
echo "${ECHO_T}no" >&6
d1989 3
a1991 2

  db_cv_path_rm=$ac_ct_db_cv_path_rm
d1993 1
a1993 1
  db_cv_path_rm="$ac_cv_prog_db_cv_path_rm"
d1997 1
a1997 3
	{ { echo "$as_me:2295: error: No rm utility found." >&5
echo "$as_me: error: No rm utility found." >&2;}
   { (exit 1); exit 1; }; }
d2001 1
a2001 2
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}rpm", so it can be a program name with args.
d2003 18
a2020 19
echo "$as_me:2304: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_rpm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_rpm"; then
  ac_cv_prog_db_cv_path_rpm="$db_cv_path_rpm" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_rpm="${ac_tool_prefix}rpm"
echo "$as_me:2319: found $ac_dir/$ac_word" >&5
break
done

d2023 3
a2025 4
db_cv_path_rpm=$ac_cv_prog_db_cv_path_rpm
if test -n "$db_cv_path_rpm"; then
  echo "$as_me:2327: result: $db_cv_path_rpm" >&5
echo "${ECHO_T}$db_cv_path_rpm" >&6
d2027 1
a2027 2
  echo "$as_me:2330: result: no" >&5
echo "${ECHO_T}no" >&6
d2030 3
a2032 3
fi
if test -z "$ac_cv_prog_db_cv_path_rpm"; then
  ac_ct_db_cv_path_rpm=$db_cv_path_rpm
d2035 4
a2038 26
echo "$as_me:2339: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_rpm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_rpm"; then
  ac_cv_prog_ac_ct_db_cv_path_rpm="$ac_ct_db_cv_path_rpm" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_rpm="rpm"
echo "$as_me:2354: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_db_cv_path_rpm" && ac_cv_prog_ac_ct_db_cv_path_rpm="missing_rpm"
fi
fi
ac_ct_db_cv_path_rpm=$ac_cv_prog_ac_ct_db_cv_path_rpm
if test -n "$ac_ct_db_cv_path_rpm"; then
  echo "$as_me:2363: result: $ac_ct_db_cv_path_rpm" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_rpm" >&6
d2040 2
a2041 5
  echo "$as_me:2366: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  db_cv_path_rpm=$ac_ct_db_cv_path_rpm
d2043 59
a2101 1
  db_cv_path_rpm="$ac_cv_prog_db_cv_path_rpm"
d2105 1
a2105 3
		{ { echo "$as_me:2376: error: No rpm utility found." >&5
echo "$as_me: error: No rpm utility found." >&2;}
   { (exit 1); exit 1; }; }
d2109 1
a2109 4
# We need a complete path for sh, because some implementations of make
# get upset if SHELL is set to just the command name.
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}sh", so it can be a program name with args.
d2111 4
a2114 4
echo "$as_me:2387: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_path_sh+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2119 10
a2128 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_path_sh="${ac_tool_prefix}sh"
echo "$as_me:2402: found $ac_dir/$ac_word" >&5
break
done

d2131 1
a2131 1
path_sh=$ac_cv_prog_path_sh
d2133 1
a2133 2
  echo "$as_me:2410: result: $path_sh" >&5
echo "${ECHO_T}$path_sh" >&6
d2135 1
a2135 2
  echo "$as_me:2413: result: no" >&5
echo "${ECHO_T}no" >&6
d2138 1
a2138 1
fi
d2140 1
a2140 1
  ac_ct_path_sh=$path_sh
d2143 19
a2161 20
echo "$as_me:2422: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_path_sh+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_path_sh"; then
  ac_cv_prog_ac_ct_path_sh="$ac_ct_path_sh" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_path_sh="sh"
echo "$as_me:2437: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_path_sh" && ac_cv_prog_ac_ct_path_sh="missing_sh"
d2164 3
a2166 4
ac_ct_path_sh=$ac_cv_prog_ac_ct_path_sh
if test -n "$ac_ct_path_sh"; then
  echo "$as_me:2446: result: $ac_ct_path_sh" >&5
echo "${ECHO_T}$ac_ct_path_sh" >&6
d2168 1
a2168 2
  echo "$as_me:2449: result: no" >&5
echo "${ECHO_T}no" >&6
a2170 1
  path_sh=$ac_ct_path_sh
d2172 2
a2173 1
  path_sh="$ac_cv_prog_path_sh"
d2178 4
a2181 4
echo "$as_me:2460: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_db_cv_path_sh+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2183 2
a2184 2
  case $db_cv_path_sh in
  [\\/]* | ?:[\\/]*)
d2187 3
d2191 10
a2200 12
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_db_cv_path_sh="$ac_dir/$ac_word"
   echo "$as_me:2477: found $ac_dir/$ac_word" >&5
   break
fi
done

d2205 1
a2205 2
db_cv_path_sh=$ac_cv_path_db_cv_path_sh

d2207 1
a2207 2
  echo "$as_me:2489: result: $db_cv_path_sh" >&5
echo "${ECHO_T}$db_cv_path_sh" >&6
d2209 1
a2209 2
  echo "$as_me:2492: result: no" >&5
echo "${ECHO_T}no" >&6
d2213 1
a2213 3
	{ { echo "$as_me:2497: error: No sh utility found." >&5
echo "$as_me: error: No sh utility found." >&2;}
   { (exit 1); exit 1; }; }
d2216 1
a2216 4
# We need a complete path for ranlib, because it doesn't exist on some
# architectures because the ar utility packages the library itself.
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
d2218 4
a2221 4
echo "$as_me:2507: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_path_strip+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2226 10
a2235 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_path_strip="${ac_tool_prefix}strip"
echo "$as_me:2522: found $ac_dir/$ac_word" >&5
break
done

d2238 1
a2238 1
path_strip=$ac_cv_prog_path_strip
d2240 1
a2240 2
  echo "$as_me:2530: result: $path_strip" >&5
echo "${ECHO_T}$path_strip" >&6
d2242 1
a2242 2
  echo "$as_me:2533: result: no" >&5
echo "${ECHO_T}no" >&6
d2245 1
a2245 1
fi
d2247 1
a2247 1
  ac_ct_path_strip=$path_strip
d2250 19
a2268 20
echo "$as_me:2542: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_path_strip+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_path_strip"; then
  ac_cv_prog_ac_ct_path_strip="$ac_ct_path_strip" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_path_strip="strip"
echo "$as_me:2557: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_path_strip" && ac_cv_prog_ac_ct_path_strip="missing_strip"
d2271 3
a2273 4
ac_ct_path_strip=$ac_cv_prog_ac_ct_path_strip
if test -n "$ac_ct_path_strip"; then
  echo "$as_me:2566: result: $ac_ct_path_strip" >&5
echo "${ECHO_T}$ac_ct_path_strip" >&6
d2275 1
a2275 2
  echo "$as_me:2569: result: no" >&5
echo "${ECHO_T}no" >&6
a2277 1
  path_strip=$ac_ct_path_strip
d2279 2
a2280 1
  path_strip="$ac_cv_prog_path_strip"
d2285 4
a2288 4
echo "$as_me:2580: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_db_cv_path_strip+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2290 2
a2291 2
  case $db_cv_path_strip in
  [\\/]* | ?:[\\/]*)
d2294 3
d2298 10
a2307 12
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_db_cv_path_strip="$ac_dir/$ac_word"
   echo "$as_me:2597: found $ac_dir/$ac_word" >&5
   break
fi
done

d2312 1
a2312 2
db_cv_path_strip=$ac_cv_path_db_cv_path_strip

d2314 1
a2314 2
  echo "$as_me:2609: result: $db_cv_path_strip" >&5
echo "${ECHO_T}$db_cv_path_strip" >&6
d2316 1
a2316 2
  echo "$as_me:2612: result: no" >&5
echo "${ECHO_T}no" >&6
d2320 1
a2320 3
	{ { echo "$as_me:2617: error: No strip utility found." >&5
echo "$as_me: error: No strip utility found." >&2;}
   { (exit 1); exit 1; }; }
d2324 1
a2324 2
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}kill", so it can be a program name with args.
d2326 18
a2343 19
echo "$as_me:2626: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_kill+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_kill"; then
  ac_cv_prog_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_kill="${ac_tool_prefix}kill"
echo "$as_me:2641: found $ac_dir/$ac_word" >&5
break
done

d2346 3
a2348 4
db_cv_path_kill=$ac_cv_prog_db_cv_path_kill
if test -n "$db_cv_path_kill"; then
  echo "$as_me:2649: result: $db_cv_path_kill" >&5
echo "${ECHO_T}$db_cv_path_kill" >&6
d2350 1
a2350 2
  echo "$as_me:2652: result: no" >&5
echo "${ECHO_T}no" >&6
d2353 3
a2355 3
fi
if test -z "$ac_cv_prog_db_cv_path_kill"; then
  ac_ct_db_cv_path_kill=$db_cv_path_kill
d2358 19
a2376 20
echo "$as_me:2661: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_kill+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_kill"; then
  ac_cv_prog_ac_ct_db_cv_path_kill="$ac_ct_db_cv_path_kill" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_kill="kill"
echo "$as_me:2676: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_db_cv_path_kill" && ac_cv_prog_ac_ct_db_cv_path_kill="missing_kill"
d2379 3
a2381 4
ac_ct_db_cv_path_kill=$ac_cv_prog_ac_ct_db_cv_path_kill
if test -n "$ac_ct_db_cv_path_kill"; then
  echo "$as_me:2685: result: $ac_ct_db_cv_path_kill" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_kill" >&6
d2383 1
a2383 2
  echo "$as_me:2688: result: no" >&5
echo "${ECHO_T}no" >&6
a2385 1
  db_cv_path_kill=$ac_ct_db_cv_path_kill
d2387 1
a2387 1
  db_cv_path_kill="$ac_cv_prog_db_cv_path_kill"
a2388 6

	if test "$db_cv_path_kill" = missing_kill; then
		{ { echo "$as_me:2698: error: No kill utility found." >&5
echo "$as_me: error: No kill utility found." >&2;}
   { (exit 1); exit 1; }; }
	fi
d2391 6
a2396 17
# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo "$as_me:2716: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2398 16
a2413 30
    ac_save_IFS=$IFS; IFS=$ac_path_separator
  for ac_dir in $PATH; do
    IFS=$ac_save_IFS
    # Account for people who put trailing slashes in PATH elements.
    case $ac_dir/ in
    / | ./ | .// | /cC/* \
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
    | /usr/ucb/* ) ;;
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
        if $as_executable_p "$ac_dir/$ac_prog"; then
	  if test $ac_prog = install &&
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
d2415 4
a2418 1

d2420 5
a2424 9
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
    INSTALL=$ac_install_sh
  fi
a2425 2
echo "$as_me:2765: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6
d2427 4
a2430 3
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
a2431 1
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a2432 1
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
a2433 1
# RPM/Embedix support: change the standard make and install targets
a2447 18
# This is where we handle stuff that autoconf can't handle: compiler,
# preprocessor and load flags, libraries that the standard tests don't
# look for.  The default optimization is -O.  We would like to set the
# default optimization for systems using gcc to -O2, but we can't.  By
# the time we know we're using gcc, it's too late to set optimization
# flags.
#
# There are additional libraries we need for some compiler/architecture
# combinations.
#
# Some architectures require DB to be compiled with special flags and/or
# libraries for threaded applications
#
# The makefile CC may be different than the CC used in config testing,
# because the makefile CC may be set to use $(LIBTOOL).
#
# XXX
# Don't override anything if it's already set from the environment.
d2469 1
a2469 1
*qnx)	   cat >>confdefs.h <<\EOF
a2471 1

a2479 3
# Set CFLAGS/CXXFLAGS.  We MUST set the flags before we call autoconf
# compiler configuration macros, because if we don't, they set CFLAGS
# to no optimization and -g, which isn't what we want.
a2482 5
# If the user wants a debugging environment, add -g to the CFLAGS value.
#
# XXX
# Some compilers can't mix optimizing and debug flags.  The only way to
# handle this is to specify CFLAGS in the environment before configuring.
d2484 1
a2484 1
	cat >>confdefs.h <<\EOF
d2492 1
a2492 5
# The default compiler is cc (NOT gcc), the default CFLAGS is as specified
# above, NOT what is set by AC_PROG_CC, as it won't set optimization flags.
# We still call AC_PROG_CC so that we get the other side-effects.
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d2494 4
a2497 4
echo "$as_me:2868: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2502 10
a2511 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}cc"
echo "$as_me:2883: found $ac_dir/$ac_word" >&5
break
done

d2514 1
a2514 1
CC=$ac_cv_prog_CC
d2516 1
a2516 2
  echo "$as_me:2891: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d2518 1
a2518 2
  echo "$as_me:2894: result: no" >&5
echo "${ECHO_T}no" >&6
d2521 1
a2521 1
fi
d2523 1
a2523 1
  ac_ct_CC=$CC
d2526 19
a2544 19
echo "$as_me:2903: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="cc"
echo "$as_me:2918: found $ac_dir/$ac_word" >&5
break
done

d2547 3
a2549 4
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:2926: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
d2551 1
a2551 2
  echo "$as_me:2929: result: no" >&5
echo "${ECHO_T}no" >&6
a2553 1
  CC=$ac_ct_CC
d2555 2
a2556 1
  CC="$ac_cv_prog_CC"
d2559 1
a2559 2
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
d2561 4
a2564 4
echo "$as_me:2941: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2569 10
a2578 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}gcc"
echo "$as_me:2956: found $ac_dir/$ac_word" >&5
break
done

d2581 1
a2581 1
CC=$ac_cv_prog_CC
d2583 1
a2583 2
  echo "$as_me:2964: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d2585 1
a2585 2
  echo "$as_me:2967: result: no" >&5
echo "${ECHO_T}no" >&6
d2588 1
a2588 1
fi
d2590 1
a2590 1
  ac_ct_CC=$CC
d2593 19
a2611 19
echo "$as_me:2976: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="gcc"
echo "$as_me:2991: found $ac_dir/$ac_word" >&5
break
done

d2614 3
a2616 4
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:2999: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
d2618 1
a2618 2
  echo "$as_me:3002: result: no" >&5
echo "${ECHO_T}no" >&6
a2620 1
  CC=$ac_ct_CC
d2622 2
a2623 1
  CC="$ac_cv_prog_CC"
d2626 6
a2631 12
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "$as_me:3019: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2636 10
a2645 85
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}gcc"
echo "$as_me:3034: found $ac_dir/$ac_word" >&5
break
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:3042: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:3045: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:3054: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="gcc"
echo "$as_me:3069: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:3077: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:3080: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
echo "$as_me:3093: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}cc"
echo "$as_me:3108: found $ac_dir/$ac_word" >&5
break
done

d2648 1
a2648 1
CC=$ac_cv_prog_CC
d2650 1
a2650 43
  echo "$as_me:3116: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:3119: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:3128: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="cc"
echo "$as_me:3143: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:3151: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:3154: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CC=$ac_ct_CC
d2652 1
a2652 1
  CC="$ac_cv_prog_CC"
a2654 1
fi
d2658 4
a2661 4
echo "$as_me:3167: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2666 1
d2668 13
a2680 15
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  ac_prog_rejected=yes
  continue
fi
ac_cv_prog_CC="cc"
echo "$as_me:3187: found $ac_dir/$ac_word" >&5
break
done

d2685 1
a2685 1
  if test $# != 0; then
d2690 1
a2690 1
    set dummy "$ac_dir/$ac_word" ${1+"$@@"}
d2697 1
a2697 1
CC=$ac_cv_prog_CC
d2699 1
a2699 2
  echo "$as_me:3209: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d2701 1
a2701 2
  echo "$as_me:3212: result: no" >&5
echo "${ECHO_T}no" >&6
d2704 9
a2712 11
fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:3223: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2717 10
a2726 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
echo "$as_me:3238: found $ac_dir/$ac_word" >&5
break
done

d2729 1
a2729 1
CC=$ac_cv_prog_CC
d2731 1
a2731 2
  echo "$as_me:3246: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d2733 1
a2733 2
  echo "$as_me:3249: result: no" >&5
echo "${ECHO_T}no" >&6
d2735 4
a2738 38

    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:3262: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="$ac_prog"
echo "$as_me:3277: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:3285: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:3288: result: no" >&5
echo "${ECHO_T}no" >&6
d2741 2
a2742 2
  test -n "$ac_ct_CC" && break
done
d2744 6
a2749 4
  CC=$ac_ct_CC
fi

fi
d2751 1
a2751 3
test -z "$CC" && { { echo "$as_me:3300: error: no acceptable cc found in \$PATH" >&5
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
d2753 1
a2753 2
cat >conftest.$ac_ext <<_ACEOF
#line 3305 "configure"
d2756 7
a2762 59
int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compiler, and finding out an intuition
# of exeext.
echo "$as_me:3321: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:3324: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:3327: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    a.out ) # We found the default executable, but exeext='' is most
            # certainly right.
            break;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:3344: error: C compiler cannot create executables" >&5
echo "$as_me: error: C compiler cannot create executables" >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext
echo "$as_me:3350: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6

# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:3355: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (eval echo "$as_me:3361: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3364: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
d2764 1
a2764 9
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { echo "$as_me:3371: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&2;}
   { (exit 1); exit 1; }; }
    fi
d2766 4
d2771 7
a2777 2
echo "$as_me:3379: result: yes" >&5
echo "${ECHO_T}yes" >&6
d2779 3
a2781 33
rm -f a.out a.exe conftest$ac_cv_exeext
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:3386: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:3388: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6

echo "$as_me:3391: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if { (eval echo "$as_me:3393: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:3396: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  { { echo "$as_me:3412: error: cannot compute EXEEXT: cannot compile and link" >&5
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   { (exit 1); exit 1; }; }
d2783 4
d2788 12
a2799 11
rm -f conftest$ac_cv_exeext
echo "$as_me:3418: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "$as_me:3424: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2801 3
a2803 3
  cat >conftest.$ac_ext <<_ACEOF
#line 3430 "configure"
#include "confdefs.h"
d2805 1
a2805 3
int
main ()
{
d2807 2
a2808 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:3442: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3445: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
d2810 1
a2810 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:3457: error: cannot compute OBJEXT: cannot compile" >&5
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   { (exit 1); exit 1; }; }
d2813 7
a2819 10
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
echo "$as_me:3464: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:3468: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2821 2
a2822 72
  cat >conftest.$ac_ext <<_ACEOF
#line 3474 "configure"
#include "confdefs.h"

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:3489: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3492: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3495: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3498: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:3510: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
echo "$as_me:3516: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 3522 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:3534: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3537: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3540: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3543: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2825 1
a2825 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cc_g=no
d2827 2
a2828 1
rm -f conftest.$ac_objext conftest.$ac_ext
d2830 2
a2831 2
echo "$as_me:3553: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
d2833 1
a2833 1
  CFLAGS=$ac_save_CFLAGS
a2846 96
# Some people use a C++ compiler to compile C.  Since we use `exit',
# in C++ we need to declare it.  In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
  choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:3580: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3583: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3586: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3589: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line 3601 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:3614: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3617: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3620: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3623: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 3633 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:3645: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3648: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3651: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3654: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
echo '#ifdef __cplusplus' >>confdefs.h
echo $ac_declaration      >>confdefs.h
echo '#endif'             >>confdefs.h
d2848 1
a2848 14
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

# Because of shared library building, the ${CC} used for config tests
# may be different than the ${CC} we want to put in the Makefile.
# The latter is known as ${MAKEFILE_CC} in this script.
a2853 7
# See if we need the C++ compiler at all.  If so, we'd like to find one that
# interoperates with the C compiler we chose.  Since we prefered cc over gcc,
# we'll also prefer the vendor's compiler over g++/gcc.  If we're wrong, the
# user can set CC and CXX in their environment before running configure.
#
# AC_PROG_CXX sets CXX, but it uses $CXX and $CCC (in that order) as its
# first choices.
d2857 1
a2857 2
		aix*)		if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}xlC_r", so it can be a program name with args.
d2859 4
a2862 4
echo "$as_me:3699: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2867 10
a2876 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CCC="${ac_tool_prefix}xlC_r"
echo "$as_me:3714: found $ac_dir/$ac_word" >&5
break
done

d2879 1
a2879 1
CCC=$ac_cv_prog_CCC
d2881 1
a2881 2
  echo "$as_me:3722: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6
d2883 1
a2883 2
  echo "$as_me:3725: result: no" >&5
echo "${ECHO_T}no" >&6
d2886 1
a2886 1
fi
d2888 1
a2888 1
  ac_ct_CCC=$CCC
d2891 19
a2909 19
echo "$as_me:3734: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CCC"; then
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CCC="xlC_r"
echo "$as_me:3749: found $ac_dir/$ac_word" >&5
break
done

d2912 3
a2914 4
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
if test -n "$ac_ct_CCC"; then
  echo "$as_me:3757: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6
d2916 1
a2916 2
  echo "$as_me:3760: result: no" >&5
echo "${ECHO_T}no" >&6
a2918 1
  CCC=$ac_ct_CCC
d2920 2
a2921 1
  CCC="$ac_cv_prog_CCC"
d2924 1
a2924 2
		hpux*)		if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}aCC", so it can be a program name with args.
d2926 4
a2929 4
echo "$as_me:3772: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2934 10
a2943 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CCC="${ac_tool_prefix}aCC"
echo "$as_me:3787: found $ac_dir/$ac_word" >&5
break
done

d2946 1
a2946 1
CCC=$ac_cv_prog_CCC
d2948 1
a2948 2
  echo "$as_me:3795: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6
d2950 1
a2950 2
  echo "$as_me:3798: result: no" >&5
echo "${ECHO_T}no" >&6
d2953 1
a2953 1
fi
d2955 1
a2955 1
  ac_ct_CCC=$CCC
d2958 19
a2976 19
echo "$as_me:3807: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CCC"; then
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CCC="aCC"
echo "$as_me:3822: found $ac_dir/$ac_word" >&5
break
done

d2979 3
a2981 4
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
if test -n "$ac_ct_CCC"; then
  echo "$as_me:3830: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6
d2983 1
a2983 2
  echo "$as_me:3833: result: no" >&5
echo "${ECHO_T}no" >&6
a2985 1
  CCC=$ac_ct_CCC
d2987 2
a2988 1
  CCC="$ac_cv_prog_CCC"
d2991 1
a2991 2
		osf*)		if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cxx", so it can be a program name with args.
d2993 4
a2996 4
echo "$as_me:3845: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3001 10
a3010 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CCC="${ac_tool_prefix}cxx"
echo "$as_me:3860: found $ac_dir/$ac_word" >&5
break
done

d3013 1
a3013 1
CCC=$ac_cv_prog_CCC
d3015 1
a3015 2
  echo "$as_me:3868: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6
d3017 1
a3017 2
  echo "$as_me:3871: result: no" >&5
echo "${ECHO_T}no" >&6
d3020 1
a3020 1
fi
d3022 1
a3022 1
  ac_ct_CCC=$CCC
d3025 19
a3043 19
echo "$as_me:3880: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CCC"; then
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CCC="cxx"
echo "$as_me:3895: found $ac_dir/$ac_word" >&5
break
done

d3046 3
a3048 4
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
if test -n "$ac_ct_CCC"; then
  echo "$as_me:3903: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6
d3050 1
a3050 2
  echo "$as_me:3906: result: no" >&5
echo "${ECHO_T}no" >&6
a3052 1
  CCC=$ac_ct_CCC
d3054 2
a3055 1
  CCC="$ac_cv_prog_CCC"
d3058 1
a3058 2
		solaris*)	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
d3060 4
a3063 4
echo "$as_me:3918: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3068 10
a3077 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CCC="${ac_tool_prefix}CC"
echo "$as_me:3933: found $ac_dir/$ac_word" >&5
break
done

d3080 1
a3080 1
CCC=$ac_cv_prog_CCC
d3082 1
a3082 2
  echo "$as_me:3941: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6
d3084 1
a3084 2
  echo "$as_me:3944: result: no" >&5
echo "${ECHO_T}no" >&6
d3087 1
a3087 1
fi
d3089 1
a3089 1
  ac_ct_CCC=$CCC
d3092 19
a3110 19
echo "$as_me:3953: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CCC"; then
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CCC="CC"
echo "$as_me:3968: found $ac_dir/$ac_word" >&5
break
done

d3113 3
a3115 4
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
if test -n "$ac_ct_CCC"; then
  echo "$as_me:3976: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6
d3117 1
a3117 2
  echo "$as_me:3979: result: no" >&5
echo "${ECHO_T}no" >&6
a3119 1
  CCC=$ac_ct_CCC
d3121 2
a3122 1
  CCC="$ac_cv_prog_CCC"
d3127 8
a3134 14
	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:4000: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3139 10
a3148 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
echo "$as_me:4015: found $ac_dir/$ac_word" >&5
break
done

d3151 1
a3151 1
CXX=$ac_cv_prog_CXX
d3153 1
a3153 2
  echo "$as_me:4023: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
d3155 1
a3155 2
  echo "$as_me:4026: result: no" >&5
echo "${ECHO_T}no" >&6
d3158 1
a3158 26
    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:4039: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CXX="$ac_prog"
echo "$as_me:4054: found $ac_dir/$ac_word" >&5
break
d3160 1
a3161 10
fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  echo "$as_me:4062: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6
else
  echo "$as_me:4065: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d3163 2
a3164 3
  test -n "$ac_ct_CXX" && break
done
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
d3166 6
a3171 11
  CXX=$ac_ct_CXX
fi

echo "$as_me:4076: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4082 "configure"
#include "confdefs.h"
d3173 1
a3173 6
int
main ()
{
#ifndef __GNUC__
       choke me
#endif
d3175 1
a3175 39
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4097: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4100: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4103: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4106: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:4118: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
GXX=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="-g"
echo "$as_me:4124: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cxx_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4130 "configure"
d3178 7
a3184 35
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4142: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4145: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4148: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4151: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cxx_g=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:4161: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
d3186 1
a3186 1
    CXXFLAGS="-g"
d3189 3
a3191 5
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
d3193 1
a3193 76
for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line 4188 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4201: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4204: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4207: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4210: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 4220 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4232: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4235: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4238: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4241: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
echo '#ifdef __cplusplus' >>confdefs.h
echo $ac_declaration      >>confdefs.h
echo '#endif'             >>confdefs.h

d3195 1
d3197 3
a3199 3
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d3201 3
a3203 2
	MAKEFILE_CXX=${CXX}
	MAKEFILE_CXXLINK="\$(CXX)"
d3205 4
d3210 14
a3223 63
# Do some gcc specific configuration.

if test "$GCC" = "yes"; then
    echo "$as_me:4267: checking for gcc 2.96 for-loop bug" >&5
echo $ECHO_N "checking for gcc 2.96 for-loop bug... $ECHO_C" >&6
if test "${db_cv_gcc_2_96_forloop_bug+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    if test "$cross_compiling" = yes; then
  { { echo "$as_me:4274: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4279 "configure"
#include "confdefs.h"
void bug(unsigned int n) {
	int i;
	int shift = -1;
	for (i=0; ((i < 10) && (shift < 0)) ; i++) {
		if ((1UL << i) == n)
			shift = i;
	}
	if (shift < 0)
		exit(1);
    }
    int main() {
	bug(64);
	exit(0);
    }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:4297: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4300: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:4302: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4305: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_gcc_2_96_forloop_bug=no
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_gcc_2_96_forloop_bug=yes
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
fi
fi
echo "$as_me:4317: result: $db_cv_gcc_2_96_forloop_bug" >&5
echo "${ECHO_T}$db_cv_gcc_2_96_forloop_bug" >&6
    if test "$db_cv_gcc_2_96_forloop_bug" = "yes"; then
	CFLAGS=`echo "$CFLAGS" | sed 's/-O2/-O/'`
	CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2/-O/'`
	{ echo "$as_me:4322: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&5
echo "$as_me: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&2;}
	{ echo "$as_me:4324: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&5
echo "$as_me: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&2;}
    fi
a3224 9

if test "$GXX" = "yes"; then
	CXXVERSION=`${MAKEFILE_CXX} --version`
	case ${CXXVERSION} in
	1.*|2.[01234567].*|*-1.*|*-2.[01234567].*)
		CXXFLAGS="-fhandle-exceptions $CXXFLAGS";;
	*)
		CXXFLAGS="-fexceptions $CXXFLAGS";;
	esac
d3227 1
a3227 71
# Export our compiler preferences for the libtool configuration.
export CC CCC
CCC=CXX

# Libtool configuration.
# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
  enableval="$enable_shared"
  p=${PACKAGE-default}
case $enableval in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
  enable_shared=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_shared=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_shared=yes
fi;
# Check whether --enable-static or --disable-static was given.
if test "${enable_static+set}" = set; then
  enableval="$enable_static"
  p=${PACKAGE-default}
case $enableval in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
  enable_static=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_static=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_static=yes
fi;
# Check whether --enable-fast-install or --disable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
  enableval="$enable_fast_install"
  p=${PACKAGE-default}
case $enableval in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
  enable_fast_install=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_fast_install=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_fast_install=yes
fi;
d3229 2
a3230 42
# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
  withval="$with_gnu_ld"
  test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi;
ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  echo "$as_me:4421: checking for ld used by GCC" >&5
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | [A-Za-z]:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the path of ld
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  echo "$as_me:4451: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
d3232 1
a3232 2
  echo "$as_me:4454: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
d3234 8
a3241 2
if test "${lt_cv_path_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3243 3
a3245 17
  if test -z "$LD"; then
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some GNU ld's only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
	test "$with_gnu_ld" != no && break
      else
	test "$with_gnu_ld" != yes && break
      fi
    fi
  done
  IFS="$ac_save_ifs"
d3247 1
a3247 2
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
d3249 1
a3250 72
LD="$lt_cv_path_LD"
if test -n "$LD"; then
  echo "$as_me:4484: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
else
  echo "$as_me:4487: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -z "$LD" && { { echo "$as_me:4490: error: no acceptable ld found in \$PATH" >&5
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
echo "$as_me:4493: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
if test "${lt_cv_prog_gnu_ld+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  lt_cv_prog_gnu_ld=yes
else
  lt_cv_prog_gnu_ld=no
fi
fi
echo "$as_me:4505: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
with_gnu_ld=$lt_cv_prog_gnu_ld

echo "$as_me:4509: checking for $LD option to reload object files" >&5
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
if test "${lt_cv_ld_reload_flag+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_ld_reload_flag='-r'
fi
echo "$as_me:4516: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
reload_flag=$lt_cv_ld_reload_flag
test -n "$reload_flag" && reload_flag=" $reload_flag"

echo "$as_me:4521: checking for BSD-compatible nm" >&5
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
if test "${lt_cv_path_NM+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    test -z "$ac_dir" && ac_dir=.
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
      # Check to see if the nm accepts a BSD-compat flag.
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
      #   nm: unknown option "B" ignored
      # Tru64's nm complains that /dev/null is an invalid object file
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
	lt_cv_path_NM="$tmp_nm -B"
	break
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	lt_cv_path_NM="$tmp_nm -p"
	break
      else
	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	continue # so that we can try to find one that supports BSD flags
      fi
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
fi
d3253 6
a3258 78
NM="$lt_cv_path_NM"
echo "$as_me:4557: result: $NM" >&5
echo "${ECHO_T}$NM" >&6

echo "$as_me:4560: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  echo "$as_me:4564: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:4567: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6
fi

echo "$as_me:4571: checking how to recognise dependant libraries" >&5
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
if test "${lt_cv_deplibs_check_method+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# ['file_magic [regex]'] -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given egrep regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix4* | aix5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi4*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin* | mingw* | pw32*)
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  case "$host_os" in
  rhapsody* | darwin1.012)
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
    ;;
  *) # Darwin 1.3 on
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
    ;;
  esac
  ;;

freebsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
d3260 1
a3260 52
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20*|hpux11*)
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
  ;;

irix5* | irix6*)
  case $host_os in
  irix5*)
    # this will be overridden with pass_all, but let us keep it just in case
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
    ;;
  *)
    case $LD in
    *-32|*"-32 ") libmagic=32-bit;;
    *-n32|*"-n32 ") libmagic=N32;;
    *-64|*"-64 ") libmagic=64-bit;;
    *) libmagic=never-match;;
    esac
    # this will be overridden with pass_all, but let us keep it just in case
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
    ;;
  esac
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux-gnu*)
  case $host_cpu in
  alpha* | i*86 | powerpc* | sparc* | ia64* )
    lt_cv_deplibs_check_method=pass_all ;;
  *)
    # glibc up to 2.1.1 does not perform some relocations on ARM
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  esac
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
a3261 67
  ;;

newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;

#### local change for Sleepycat DB:
# Add in the QNX support from QNX.
nto-qnx)
  lt_cv_deplibs_check_method=pass_all
  ;;

osf3* | osf4* | osf5*)
  # this will be overridden with pass_all, but let us keep it just in case
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  lt_cv_file_magic_test_file=/shlib/libc.so
  lt_cv_deplibs_check_method=pass_all
  ;;

sco3.2v5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  lt_cv_file_magic_test_file=/lib/libc.so
  ;;

sysv5uw[78]* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  esac
  ;;
esac

fi
echo "$as_me:4745: result: $lt_cv_deplibs_check_method" >&5
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method

# Check for command to grab the raw symbol name followed by C symbol from nm.
echo "$as_me:4751: checking command to parse $NM output" >&5
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3263 2
a3264 152

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Transform the above into a raw symbol and a C symbol.
symxfrm='\1 \2\3 \3'

# Transform an extracted symbol line into a proper C declaration
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32*)
  symcode='[ABCDGISTW]'
  ;;
hpux*) # Its linker distinguishes data from code symbols
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  ;;
irix*)
  symcode='[BCDEGRST]'
  ;;
solaris* | sysv5*)
  symcode='[BDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# Handle CRLF in mingw tool chain
opt_cr=
case $host_os in
mingw*)
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  symcode='[ABCDGISTW]'
fi

# Try without a prefix undercore, then with it.
for ac_symprfx in "" "_"; do

  # Write the raw and C identifiers.
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"

  # Check to see that the pipe works correctly.
  pipe_works=no
  rm -f conftest*
  cat > conftest.$ac_ext <<EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
EOF

  if { (eval echo "$as_me:4828: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4831: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { (eval echo "$as_me:4835: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  ac_status=$?
  echo "$as_me:4838: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<EOF > conftest.$ac_ext
#ifdef __cplusplus
extern "C" {
#endif

EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'

	  cat <<EOF >> conftest.$ac_ext
#if defined (__STDC__) && __STDC__
# define lt_ptr_t void *
#else
# define lt_ptr_t char *
# define const
#endif

/* The mapping between symbol names and symbols. */
const struct {
  const char *name;
  lt_ptr_t address;
}
lt_preloaded_symbols[] =
{
EOF
	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
	  cat <<\EOF >> conftest.$ac_ext
  {0, (lt_ptr_t) 0}
};

#ifdef __cplusplus
}
#endif
EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  save_LIBS="$LIBS"
	  save_CFLAGS="$CFLAGS"
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$no_builtin_flag"
	  if { (eval echo "$as_me:4890: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4893: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest; then
	    pipe_works=yes
	  fi
	  LIBS="$save_LIBS"
	  CFLAGS="$save_CFLAGS"
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
d3266 1
a3266 73
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -f conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
if test -z "$lt_cv_sys_global_symbol_pipe"; then
  global_symbol_to_cdecl=
else
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
fi
if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
  echo "$as_me:4931: result: failed" >&5
echo "${ECHO_T}failed" >&6
else
  echo "$as_me:4934: result: ok" >&5
echo "${ECHO_T}ok" >&6
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
echo "$as_me:4943: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      # break 2 since there is a loop in there.
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 4965 "configure"
#include "confdefs.h"
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:4970: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4976: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
a3267 10
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
a3268 1
rm -f conftest.err conftest.$ac_ext
d3270 2
a3271 22
  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 4999 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:5003: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5009: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
a3272 3396
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break 2
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
echo "$as_me:5046: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 5056 "configure"
#include "confdefs.h"
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:5061: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5067: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 5090 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:5094: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5100: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:5128: error: C preprocessor \"$CPP\" fails sanity check" >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

for ac_header in dlfcn.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:5142: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5148 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:5152: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5158: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5177: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

# Only perform the check for file, if the check method requires it
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    echo "$as_me:5191: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
  /*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
  ?:/*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  ;;
  *)
  ac_save_MAGIC_CMD="$MAGIC_CMD"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="/usr/bin:$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    egrep "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$ac_save_ifs"
  MAGIC_CMD="$ac_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  echo "$as_me:5246: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
else
  echo "$as_me:5249: result: no" >&5
echo "${ECHO_T}no" >&6
fi

if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    echo "$as_me:5255: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
  /*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
  ?:/*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  ;;
  *)
  ac_save_MAGIC_CMD="$MAGIC_CMD"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="/usr/bin:$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    egrep "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$ac_save_ifs"
  MAGIC_CMD="$ac_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  echo "$as_me:5310: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
else
  echo "$as_me:5313: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "$as_me:5329: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
echo "$as_me:5344: found $ac_dir/$ac_word" >&5
break
done

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  echo "$as_me:5352: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
  echo "$as_me:5355: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "$as_me:5364: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_RANLIB="ranlib"
echo "$as_me:5379: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  echo "$as_me:5388: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
else
  echo "$as_me:5391: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  RANLIB=$ac_ct_RANLIB
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo "$as_me:5403: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
echo "$as_me:5418: found $ac_dir/$ac_word" >&5
break
done

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  echo "$as_me:5426: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
else
  echo "$as_me:5429: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo "$as_me:5438: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_STRIP="strip"
echo "$as_me:5453: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  echo "$as_me:5462: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6
else
  echo "$as_me:5465: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  STRIP=$ac_ct_STRIP
else
  STRIP="$ac_cv_prog_STRIP"
fi

enable_dlopen=no
enable_win32_dll=no

# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval="$enable_libtool_lock"

fi;
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 5489 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:5490: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5493: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
      ;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  echo "$as_me:5514: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
if test "${lt_cv_cc_needs_belf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat >conftest.$ac_ext <<_ACEOF
#line 5527 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5539: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5542: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5545: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5548: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  lt_cv_cc_needs_belf=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
lt_cv_cc_needs_belf=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
echo "$as_me:5564: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;

esac

# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='sed -e s/^X//'
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Constants:
rm="rm -f"

# Global variables:
default_ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except M$VC,
# which needs '.lib').
libext=a
ltmain="$ac_aux_dir/ltmain.sh"
ofile="$default_ofile"
with_gnu_ld="$lt_cv_prog_gnu_ld"
need_locks="$enable_libtool_lock"

old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru
test -z "$AS" && AS=as
test -z "$CC" && CC=cc
test -z "$DLLTOOL" && DLLTOOL=dlltool
test -z "$LD" && LD=ld
test -z "$LN_S" && LN_S="ln -s"
test -z "$MAGIC_CMD" && MAGIC_CMD=file
test -z "$NM" && NM=nm
test -z "$OBJDUMP" && OBJDUMP=objdump
test -z "$RANLIB" && RANLIB=:
test -z "$STRIP" && STRIP=:
test -z "$ac_objext" && ac_objext=o

if test x"$host" != x"$build"; then
  ac_tool_prefix=${host_alias}-
else
  ac_tool_prefix=
fi

# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
case $host_os in
linux-gnu*) ;;
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
esac

case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac

# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
fi

# Allow CC to be a program name with arguments.
set dummy $CC
compiler="$2"

## FIXME: this should be a separate macro
##
echo "$as_me:5659: checking for objdir" >&5
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  objdir=_libs
fi
rmdir .libs 2>/dev/null
echo "$as_me:5670: result: $objdir" >&5
echo "${ECHO_T}$objdir" >&6
##
## END FIXME

## FIXME: this should be a separate macro
##

# Check whether --with-pic or --without-pic was given.
if test "${with_pic+set}" = set; then
  withval="$with_pic"
  pic_mode="$withval"
else
  pic_mode=default
fi;
test -z "$pic_mode" && pic_mode=default

# We assume here that the value for lt_cv_prog_cc_pic will not be cached
# in isolation, and that seeing it set (from the cache) indicates that
# the associated values are set (in the cache) correctly too.
echo "$as_me:5690: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
if test "${lt_cv_prog_cc_pic+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
   lt_cv_prog_cc_pic=
  lt_cv_prog_cc_shlib=
  lt_cv_prog_cc_wl=
  lt_cv_prog_cc_static=
  lt_cv_prog_cc_no_builtin=
  lt_cv_prog_cc_can_build_shared=$can_build_shared

  if test "$GCC" = yes; then
    lt_cv_prog_cc_wl='-Wl,'
    lt_cv_prog_cc_static='-static'

    case $host_os in
    aix*)
      # Below there is a dirty hack to force normal static linking with -ldl
      # The problem is because libdl dynamically linked with both libc and
      # libC (AIX C++ library), which obviously doesn't included in libraries
      # list by gcc. This cause undefined symbols with -static flags.
      # This hack allows C programs to be linked with "-static -ldl", but
      # we not sure about C++ programs.
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
      ;;
    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
      ;;
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_cv_prog_cc_pic='-fno-common'
      ;;
    cygwin* | mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	 lt_cv_prog_cc_pic=-Kconform_pic
      fi
      ;;
    *)
      lt_cv_prog_cc_pic='-fPIC'
      ;;
    esac
  else
    # PORTME Check for PIC flags for the system compiler.
    case $host_os in
    aix3* | aix4* | aix5*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
        # AIX 5 now supports IA64 processor
        lt_cv_prog_cc_static='-Bstatic'
        lt_cv_prog_cc_wl='-Wl,'
      else
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;

    hpux9* | hpux10* | hpux11*)
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
      lt_cv_prog_cc_wl='-Wl,'
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
      lt_cv_prog_cc_pic='+Z'
      ;;

    irix5* | irix6*)
      lt_cv_prog_cc_wl='-Wl,'
      lt_cv_prog_cc_static='-non_shared'
      # PIC (with -KPIC) is the default.
      ;;

    cygwin* | mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
      ;;

    newsos6)
      lt_cv_prog_cc_pic='-KPIC'
      lt_cv_prog_cc_static='-Bstatic'
      ;;

    osf3* | osf4* | osf5*)
      # All OSF/1 code is PIC.
      lt_cv_prog_cc_wl='-Wl,'
      lt_cv_prog_cc_static='-non_shared'
      ;;

    sco3.2v5*)
      lt_cv_prog_cc_pic='-Kpic'
      lt_cv_prog_cc_static='-dn'
      lt_cv_prog_cc_shlib='-belf'
      ;;

    solaris*)
      lt_cv_prog_cc_pic='-KPIC'
      lt_cv_prog_cc_static='-Bstatic'
      lt_cv_prog_cc_wl='-Wl,'
      ;;

    sunos4*)
      lt_cv_prog_cc_pic='-PIC'
      lt_cv_prog_cc_static='-Bstatic'
      lt_cv_prog_cc_wl='-Qoption ld '
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
      lt_cv_prog_cc_pic='-KPIC'
      lt_cv_prog_cc_static='-Bstatic'
      if test "x$host_vendor" = xsni; then
        lt_cv_prog_cc_wl='-LD'
      else
        lt_cv_prog_cc_wl='-Wl,'
      fi
      ;;

    uts4*)
      lt_cv_prog_cc_pic='-pic'
      lt_cv_prog_cc_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_cv_prog_cc_pic='-Kconform_pic'
	lt_cv_prog_cc_static='-Bstatic'
      fi
      ;;

    *)
      lt_cv_prog_cc_can_build_shared=no
      ;;
    esac
  fi

fi

if test -z "$lt_cv_prog_cc_pic"; then
  echo "$as_me:5837: result: none" >&5
echo "${ECHO_T}none" >&6
else
  echo "$as_me:5840: result: $lt_cv_prog_cc_pic" >&5
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6

  # Check to make sure the pic_flag actually works.
  echo "$as_me:5844: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      save_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
    cat >conftest.$ac_ext <<_ACEOF
#line 5852 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5864: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5867: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5870: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5873: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
        case $host_os in
      hpux9* | hpux10* | hpux11*)
	# On HP-UX, both CC and GCC only warn that PIC is supported... then
	# they create non-PIC objects.  So, if there were any warnings, we
	# assume that PIC is not supported.
	if test -s conftest.err; then
	  lt_cv_prog_cc_pic_works=no
	else
	  lt_cv_prog_cc_pic_works=yes
	fi
	;;
      *)
	lt_cv_prog_cc_pic_works=yes
	;;
      esac

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
      lt_cv_prog_cc_pic_works=no

fi
rm -f conftest.$ac_objext conftest.$ac_ext
    CFLAGS="$save_CFLAGS"

fi

  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
    lt_cv_prog_cc_pic=
    lt_cv_prog_cc_can_build_shared=no
  else
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  fi

  echo "$as_me:5909: result: $lt_cv_prog_cc_pic_works" >&5
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
fi
##
## END FIXME

# Check for any special shared library compilation flags.
if test -n "$lt_cv_prog_cc_shlib"; then
  { echo "$as_me:5917: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
  else
   { echo "$as_me:5921: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
    lt_cv_prog_cc_can_build_shared=no
  fi
fi

## FIXME: this should be a separate macro
##
echo "$as_me:5929: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
if test "${lt_cv_prog_cc_static_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
    lt_cv_prog_cc_static_works=no
  save_LDFLAGS="$LDFLAGS"
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  cat >conftest.$ac_ext <<_ACEOF
#line 5938 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5950: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5953: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5956: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5959: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  lt_cv_prog_cc_static_works=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  LDFLAGS="$save_LDFLAGS"

fi

# Belt *and* braces to stop my trousers falling down:
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
echo "$as_me:5973: result: $lt_cv_prog_cc_static_works" >&5
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6

pic_flag="$lt_cv_prog_cc_pic"
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
wl="$lt_cv_prog_cc_wl"
link_static_flag="$lt_cv_prog_cc_static"
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
can_build_shared="$lt_cv_prog_cc_can_build_shared"
##
## END FIXME

## FIXME: this should be a separate macro
##
# Check to see if options -o and -c are simultaneously supported by compiler
echo "$as_me:5988: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
if test "${lt_cv_compiler_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

$rm -r conftest 2>/dev/null
mkdir conftest
cd conftest
echo "int some_variable = 0;" > conftest.$ac_ext
mkdir out
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
# that will create temporary files in the current directory regardless of
# the output directory.  Thus, making CWD read-only will cause this test
# to fail, enabling locking or at least warning the user not to do parallel
# builds.
chmod -w .
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
compiler_c_o=no
if { (eval echo configure:6008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  # The compiler can only warn and ignore the option if not recognized
  # So say no if there are warnings
  if test -s out/conftest.err; then
    lt_cv_compiler_c_o=no
  else
    lt_cv_compiler_c_o=yes
  fi
else
  # Append any errors to the config.log.
  cat out/conftest.err 1>&5
  lt_cv_compiler_c_o=no
fi
CFLAGS="$save_CFLAGS"
chmod u+w .
$rm conftest* out/*
rmdir out
cd ..
rmdir conftest
$rm -r conftest 2>/dev/null

fi

compiler_c_o=$lt_cv_compiler_c_o
echo "$as_me:6032: result: $compiler_c_o" >&5
echo "${ECHO_T}$compiler_c_o" >&6

if test x"$compiler_c_o" = x"yes"; then
  # Check to see if we can write to a .lo
  echo "$as_me:6037: checking if $compiler supports -c -o file.lo" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  if test "${lt_cv_compiler_o_lo+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  lt_cv_compiler_o_lo=no
  save_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -c -o conftest.lo"
  cat >conftest.$ac_ext <<_ACEOF
#line 6047 "configure"
#include "confdefs.h"

int
main ()
{
int some_variable = 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6059: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6062: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6065: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6068: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
      # The compiler can only warn and ignore the option if not recognized
    # So say no if there are warnings
    if test -s conftest.err; then
      lt_cv_compiler_o_lo=no
    else
      lt_cv_compiler_o_lo=yes
    fi

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  CFLAGS="$save_CFLAGS"

fi

  compiler_o_lo=$lt_cv_compiler_o_lo
  echo "$as_me:6088: result: $compiler_c_lo" >&5
echo "${ECHO_T}$compiler_c_lo" >&6
else
  compiler_o_lo=no
fi
##
## END FIXME

## FIXME: this should be a separate macro
##
# Check to see if we can do hard links to lock some files if needed
hard_links="nottested"
if test "$compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  echo "$as_me:6102: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  echo "$as_me:6110: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
  if test "$hard_links" = no; then
    { echo "$as_me:6113: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi
##
## END FIXME

## FIXME: this should be a separate macro
##
if test "$GCC" = yes; then
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  echo "$as_me:6127: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  echo "int some_variable = 0;" > conftest.$ac_ext
  save_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  compiler_rtti_exceptions=no
  cat >conftest.$ac_ext <<_ACEOF
#line 6134 "configure"
#include "confdefs.h"

int
main ()
{
int some_variable = 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6146: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6149: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6152: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6155: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
      # The compiler can only warn and ignore the option if not recognized
    # So say no if there are warnings
    if test -s conftest.err; then
      compiler_rtti_exceptions=no
    else
      compiler_rtti_exceptions=yes
    fi

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  CFLAGS="$save_CFLAGS"
  echo "$as_me:6171: result: $compiler_rtti_exceptions" >&5
echo "${ECHO_T}$compiler_rtti_exceptions" >&6

  if test "$compiler_rtti_exceptions" = "yes"; then
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  else
    no_builtin_flag=' -fno-builtin'
  fi
fi
##
## END FIXME

## FIXME: this should be a separate macro
##
# See if the linker supports building shared libraries.
echo "$as_me:6186: checking whether the linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6

allow_undefined_flag=
no_undefined_flag=
need_lib_prefix=unknown
need_version=unknown
# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
archive_cmds=
archive_expsym_cmds=
old_archive_from_new_cmds=
old_archive_from_expsyms_cmds=
export_dynamic_flag_spec=
whole_archive_flag_spec=
thread_safe_flag_spec=
hardcode_into_libs=no
hardcode_libdir_flag_spec=
hardcode_libdir_separator=
hardcode_direct=no
hardcode_minus_L=no
hardcode_shlibpath_var=unsupported
runpath_var=
link_all_deplibs=unknown
always_export_symbols=no
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
# include_expsyms should be a list of space-separated symbols to be *always*
# included in the symbol list
include_expsyms=
# exclude_expsyms can be an egrep regular expression of symbols to exclude
# it will be wrapped by ` (' and `)$', so one must not match beginning or
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
# as well as any symbol that contains `d'.
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
# platforms (ab)use it in PIC code, but their linkers get confused if
# the symbol is explicitly referenced.  Since portable code cannot
# rely on this symbol name, it's probably fine to never include it in
# preloaded symbol tables.
extract_expsyms_cmds=

case $host_os in
cygwin* | mingw* | pw32* )
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
  # When not using gcc, we currently assume that we are using
  # Microsoft Visual C++.
  if test "$GCC" != yes; then
    with_gnu_ld=no
  fi
  ;;

esac

ld_shlibs=yes
if test "$with_gnu_ld" = yes; then
  # If archive_cmds runs LD, not CC, wlarc should be empty
  wlarc='${wl}'

  # See if GNU ld supports shared libraries.
  case $host_os in
  aix3* | aix4* | aix5*)
    # On AIX, the GNU linker is very broken
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
    ld_shlibs=no
    cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
    ;;

  amigaos*)
    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_minus_L=yes

    # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
    # that the semantics of dynamic libraries on AmigaOS, at least up
    # to version 4, is to share data among multiple programs linked
    # with the same dynamic library.  Since this doesn't match the
    # behavior of shared libraries on other platforms, we can use
    # them.
    ld_shlibs=no
    ;;

  beos*)
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
      allow_undefined_flag=unsupported
      # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
      # support --undefined.  This deserves some investigation.  FIXME
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    else
      ld_shlibs=no
    fi
    ;;

  cygwin* | mingw* | pw32*)
    # hardcode_libdir_flag_spec is actually meaningless, as there is
    # no search path for DLLs.
    hardcode_libdir_flag_spec='-L$libdir'
    allow_undefined_flag=unsupported
    always_export_symbols=yes

    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
      else $CC -o impgen impgen.c ; fi)~
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'

    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'

    # cygwin and mingw dlls have different entry points and sets of symbols
    # to exclude.
    # FIXME: what about values for MSVC?
    dll_entry=__cygwin_dll_entry@@12
    dll_exclude_symbols=DllMain@@12,_cygwin_dll_entry@@12,_cygwin_noncygwin_dll_entry@@12~
    case $host_os in
    mingw*)
      # mingw values
      dll_entry=_DllMainCRTStartup@@12
      dll_exclude_symbols=DllMain@@12,DllMainCRTStartup@@12,DllEntryPoint@@12~
      ;;
    esac

    # mingw and cygwin differ, and it's simplest to just exclude the union
    # of the two symbol sets.
    dll_exclude_symbols=DllMain@@12,_cygwin_dll_entry@@12,_cygwin_noncygwin_dll_entry@@12,DllMainCRTStartup@@12,DllEntryPoint@@12

    # recent cygwin and mingw systems supply a stub DllMain which the user
    # can override, but on older systems we have to supply one (in ltdll.c)
    if test "x$lt_cv_need_dllmain" = "xyes"; then
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
    else
      ltdll_obj=
      ltdll_cmds=
    fi

    # Extract the symbol export list from an `--export-all' def file,
    # then regenerate the def file from the symbol export list, so that
    # the compiled dll only exports the symbol export list.
    # Be careful not to strip the DATA tag left be newer dlltools.
    export_symbols_cmds="$ltdll_cmds"'
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
      sed -e "1,/EXPORTS/d" -e "s/ @@ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'

    # If the export-symbols file already is a .def file (1st line
    # is EXPORTS), use it as is.
    # If DATA tags from a recent dlltool are present, honour them!
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
        cp $export_symbols $output_objdir/$soname-def;
      else
        echo EXPORTS > $output_objdir/$soname-def;
        _lt_hint=1;
        cat $export_symbols | while read symbol; do
         set dummy \$symbol;
         case \$# in
           2) echo "   \$2 @@ \$_lt_hint ; " >> $output_objdir/$soname-def;;
           *) echo "     \$2 @@ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
         esac;
         _lt_hint=`expr 1 + \$_lt_hint`;
        done;
      fi~
      '"$ltdll_cmds"'
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
    ;;

  netbsd*)
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
      wlarc=
    else
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    fi
    ;;

  solaris* | sysv5*)
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
      ld_shlibs=no
      cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    else
      ld_shlibs=no
    fi
    ;;

  sunos4*)
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    wlarc=
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  *)
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    else
      ld_shlibs=no
    fi
    ;;
  esac

  if test "$ld_shlibs" = yes; then
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    case $host_os in
    cygwin* | mingw* | pw32*)
      # dlltool doesn't understand --whole-archive et. al.
      whole_archive_flag_spec=
      ;;
    *)
      # ancient GNU ld didn't support --whole-archive et. al.
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
	whole_archive_flag_spec=
      fi
      ;;
    esac
  fi
else
  # PORTME fill in a description of your system's linker (not GNU ld)
  case $host_os in
  aix3*)
    allow_undefined_flag=unsupported
    always_export_symbols=yes
    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
    # Note: this linker hardcodes the directories in LIBPATH if there
    # are no directories specified by -L.
    hardcode_minus_L=yes
    if test "$GCC" = yes && test -z "$link_static_flag"; then
      # Neither direct hardcoding nor static linking is supported with a
      # broken collect2.
      hardcode_direct=unsupported
    fi
    ;;

  aix4* | aix5*)
    # When large executables or shared objects are built, AIX ld can
    # have problems creating the table of contents.  If linking a library
    # or program results in "error TOC overflow" add -mminimal-toc to
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

    archive_cmds=''
    hardcode_libdir_separator=':'
    if test "$GCC" = yes; then
      collect2name=`${CC} -print-prog-name=collect2`
      if test -f "$collect2name" && \
	 strings "$collect2name" | grep resolve_lib_name >/dev/null
      then
	# We have reworked collect2
	hardcode_direct=yes
      else
        # We have old collect2
        hardcode_direct=unsupported
        # It fails to find uninstalled libraries when the uninstalled
        # path is not listed in the libpath.  Setting hardcode_minus_L
        # to unsupported forces relinking
        hardcode_minus_L=yes
        hardcode_libdir_flag_spec='-L$libdir'
        hardcode_libdir_separator=
      fi
      shared_flag='-shared'
    else
      if test "$host_cpu" = ia64; then
        shared_flag='-G'
      else
        shared_flag='${wl}-bM:SRE'
      fi
      hardcode_direct=yes
    fi

    if test "$host_cpu" = ia64; then
      # On IA64, the linker does run time linking by default, so we don't
      # have to do anything special.
      aix_use_runtimelinking=no
      exp_sym_flag='-Bexport'
      no_entry_flag=""
    else
      # Test if we are trying to use run time linking, or normal AIX style linking.
      # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
      aix_use_runtimelinking=no
      for ld_flag in $LDFLAGS; do
        if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
          aix_use_runtimelinking=yes
          break
        fi
      done
      exp_sym_flag='-bexport'
      no_entry_flag='-bnoentry'
    fi
    # It seems that -bexpall can do strange things, so it is better to
    # generate a list of symbols to export.
    always_export_symbols=yes
    if test "$aix_use_runtimelinking" = yes; then
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
      allow_undefined_flag=' -Wl,-G'
      archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
    else
      if test "$host_cpu" = ia64; then
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
       allow_undefined_flag="-znodefs"
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
      else
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
        # Warning - without using the other run time loading flags, -berok will
        #           link without error, but may produce a broken library.
        allow_undefined_flag='${wl}-berok"
        # This is a bit strange, but is similar to how AIX traditionally builds
        # it's shared libraries.
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
      fi
    fi
    ;;

  amigaos*)
    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_minus_L=yes
    # see comment about different semantics on the GNU ld section
    ld_shlibs=no
    ;;

  cygwin* | mingw* | pw32*)
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    # hardcode_libdir_flag_spec is actually meaningless, as there is
    # no search path for DLLs.
    hardcode_libdir_flag_spec=' '
    allow_undefined_flag=unsupported
    # Tell ltmain to make .lib files, not .a files.
    libext=lib
    # FIXME: Setting linknames here is a bad hack.
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
    # The linker will automatically build a .lib file if we build a DLL.
    old_archive_from_new_cmds='true'
    # FIXME: Should let the user specify the lib program.
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
    fix_srcfile_path='`cygpath -w "$srcfile"`'
    ;;

  darwin* | rhapsody*)
    allow_undefined_flag='-undefined suppress'
    # FIXME: Relying on posixy $() will cause problems for
    #        cross-compilation, but unfortunately the echo tests do not
    #        yet detect zsh echo's removal of \ escapes.
    archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
    # We need to add '_' to the symbols in $export_symbols first
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    whole_archive_flag_spec='-all_load $convenience'
    ;;

  freebsd1*)
    ld_shlibs=no
    ;;

  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  # support.  Future versions do this automatically, but an explicit c++rt0.o
  # does not break anything, and helps significantly (at the cost of a little
  # extra space).
  freebsd2.2*)
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  freebsd2*)
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    hardcode_direct=yes
    hardcode_minus_L=yes
    hardcode_shlibpath_var=no
    ;;

  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  freebsd*)
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  hpux9* | hpux10* | hpux11*)
    case $host_os in
    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
    esac
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
    hardcode_libdir_separator=:
    hardcode_direct=yes
    hardcode_minus_L=yes # Not in the search PATH, but as the default
			 # location of the library.
    export_dynamic_flag_spec='${wl}-E'
    ;;

  irix5* | irix6*)
    if test "$GCC" = yes; then
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    else
      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    fi
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator=:
    link_all_deplibs=yes
    ;;

  netbsd*)
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
    else
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
    fi
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  newsos6)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
    hardcode_direct=yes
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator=:
    hardcode_shlibpath_var=no
    ;;

  openbsd*)
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  os2*)
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_minus_L=yes
    allow_undefined_flag=unsupported
    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    ;;

  osf3*)
    if test "$GCC" = yes; then
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    else
      allow_undefined_flag=' -expect_unresolved \*'
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    fi
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator=:
    ;;

  osf4* | osf5*)	# as osf3* with the addition of -msym flag
    if test "$GCC" = yes; then
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    else
      allow_undefined_flag=' -expect_unresolved \*'
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'

      #Both c and cxx compiler support -rpath directly
      hardcode_libdir_flag_spec='-rpath $libdir'
    fi
    hardcode_libdir_separator=:
    ;;

  sco3.2v5*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_shlibpath_var=no
    runpath_var=LD_RUN_PATH
    hardcode_runpath_var=yes
    ;;

  solaris*)
    no_undefined_flag=' -z defs'
    # $CC -shared without GNU ld will not create a library from C++
    # object files and a static libstdc++, better avoid it by now
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_shlibpath_var=no
    case $host_os in
    solaris2.[0-5] | solaris2.[0-5].*) ;;
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
    esac
    link_all_deplibs=yes
    ;;

  sunos4*)
    if test "x$host_vendor" = xsequent; then
      # Use $CC to link under sequent, because it throws in some extra .o
      # files that make .init and .fini sections work.
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
    else
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
    fi
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_direct=yes
    hardcode_minus_L=yes
    hardcode_shlibpath_var=no
    ;;

  sysv4)
    if test "x$host_vendor" = xsno; then
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
      hardcode_direct=yes # is this really true???
    else
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
    fi
    runpath_var='LD_RUN_PATH'
    hardcode_shlibpath_var=no
    ;;

  sysv4.3*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_shlibpath_var=no
    export_dynamic_flag_spec='-Bexport'
    ;;

  sysv5*)
    no_undefined_flag=' -z text'
    # $CC -shared without GNU ld will not create a library from C++
    # object files and a static libstdc++, better avoid it by now
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    hardcode_libdir_flag_spec=
    hardcode_shlibpath_var=no
    runpath_var='LD_RUN_PATH'
    ;;

  uts4*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_shlibpath_var=no
    ;;

  dgux*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_shlibpath_var=no
    ;;

  sysv4*MP*)
    if test -d /usr/nec; then
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      runpath_var=LD_RUN_PATH
      hardcode_runpath_var=yes
      ld_shlibs=yes
    fi
    ;;

  sysv4.2uw2*)
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    hardcode_direct=yes
    hardcode_minus_L=no
    hardcode_shlibpath_var=no
    hardcode_runpath_var=yes
    runpath_var=LD_RUN_PATH
    ;;

  sysv5uw7* | unixware7*)
    no_undefined_flag='${wl}-z ${wl}text'
    if test "$GCC" = yes; then
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    else
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    fi
    runpath_var='LD_RUN_PATH'
    hardcode_shlibpath_var=no
    ;;

  *)
    ld_shlibs=no
    ;;
  esac
fi
echo "$as_me:6798: result: $ld_shlibs" >&5
echo "${ECHO_T}$ld_shlibs" >&6
test "$ld_shlibs" = no && can_build_shared=no
##
## END FIXME

## FIXME: this should be a separate macro
##
# Check hardcoding attributes.
echo "$as_me:6807: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" || \
   test -n "$runpath_var"; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$hardcode_shlibpath_var" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
echo "$as_me:6831: result: $hardcode_action" >&5
echo "${ECHO_T}$hardcode_action" >&6
##
## END FIXME

## FIXME: this should be a separate macro
##
striplib=
old_striplib=
echo "$as_me:6840: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:6845: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:6848: result: no" >&5
echo "${ECHO_T}no" >&6
fi
##
## END FIXME

reload_cmds='$LD$reload_flag -o $output$reload_objs'
test -z "$deplibs_check_method" && deplibs_check_method=unknown

## FIXME: this should be a separate macro
##
# PORTME Fill in your ld.so characteristics
echo "$as_me:6860: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
library_names_spec=
libname_spec='lib$name'
soname_spec=
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}.so$major'
  ;;

aix4* | aix5*)
  version_type=linux
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
       aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
           echo ' yes '
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
        :
      else
        can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
      # lib<name>.a to let people know that these are not typical AIX shared libraries.
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}.so$major'
    fi
    shlibpath_var=LIBPATH
    deplibs_check_method=pass_all
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}.so'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi4*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  export_dynamic_flag_spec=-rdynamic
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  need_version=no
  need_lib_prefix=no
  case $GCC,$host_os in
  yes,cygwin*)
    library_names_spec='$libname.dll.a'
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog .libs/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    ;;
  yes,mingw*)
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
    ;;
  yes,pw32*)
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
    ;;
  *)
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  # FIXME: Relying on posixy $() will cause problems for
  #        cross-compilation, but unfortunately the echo tests do not
  #        yet detect zsh echo's removal of \ escapes.
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd*)
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  *)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  dynamic_linker="$host_os dld.sl"
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  shlibpath_var=SHLIB_PATH
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  soname_spec='${libname}${release}.sl$major'
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

irix5* | irix6*)
  version_type=irix
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}.so$major'
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  case $host_os in
  irix5*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux-gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
    soname_spec='${libname}${release}.so$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
    need_version=no
  fi
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

os2*)
  libname_spec='$name'
  need_lib_prefix=no
  library_names_spec='$libname.dll $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_version=no
  soname_spec='${libname}${release}.so'
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

sco3.2v5*)
  version_type=osf
  soname_spec='${libname}${release}.so$major'
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
    soname_spec='$libname.so.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

#### local change for Sleepycat DB:
# Add in the QNX support from QNX.
nto-qnx)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*)
  dynamic_linker=no
  ;;
esac
echo "$as_me:7254: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
test "$dynamic_linker" = no && can_build_shared=no
##
## END FIXME

## FIXME: this should be a separate macro
##
# Report the final consequences.
echo "$as_me:7263: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
echo "$as_me:7265: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6
##
## END FIXME

if test "$hardcode_action" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  cygwin* | mingw* | pw32*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
   ;;

  *)
    echo "$as_me:7305: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 7313 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7332: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7335: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7338: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7341: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dl_dlopen=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:7352: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  echo "$as_me:7357: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_func_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7363 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlopen) || defined (__stub___dlopen)
choke me
#else
f = dlopen;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7394: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7397: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7400: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7403: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_dlopen=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7413: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
if test $ac_cv_func_dlopen = yes; then
  lt_cv_dlopen="dlopen"
else
  echo "$as_me:7418: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
if test "${ac_cv_func_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7424 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shl_load) || defined (__stub___shl_load)
choke me
#else
f = shl_load;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7455: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7458: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7461: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7464: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_shl_load=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7474: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
if test $ac_cv_func_shl_load = yes; then
  lt_cv_dlopen="shl_load"
else
  echo "$as_me:7479: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 7487 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7506: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7509: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7512: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7515: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_svld_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_svld_dlopen=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:7526: result: $ac_cv_lib_svld_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
if test $ac_cv_lib_svld_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  echo "$as_me:7531: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 7539 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
int
main ()
{
shl_load ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7558: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7561: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7564: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7567: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dld_shl_load=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:7578: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
if test $ac_cv_lib_dld_shl_load = yes; then
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
fi

fi

fi

fi

fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    echo "$as_me:7612: checking whether a program can dlopen itself" >&5
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 7623 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { (eval echo "$as_me:7684: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7687: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*

fi
echo "$as_me:7704: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6

    if test "x$lt_cv_dlopen_self" = xyes; then
      LDFLAGS="$LDFLAGS $link_static_flag"
      echo "$as_me:7709: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self_static+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 7720 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { (eval echo "$as_me:7781: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7784: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*

fi
echo "$as_me:7801: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi

## FIXME: this should be a separate macro
##
if test "$enable_shared" = yes && test "$GCC" = yes; then
  case $archive_cmds in
  *'~'*)
    # FIXME: we may have to deal with multi-command sequences.
    ;;
  '$CC '*)
    # Test whether the compiler implicitly links with -lc since on some
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
    # to ld, don't add -lc before -lgcc.
    echo "$as_me:7833: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  $rm conftest*
    echo 'static int dummy;' > conftest.$ac_ext

    if { (eval echo "$as_me:7841: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7844: \$? = $ac_status" >&5
  (exit $ac_status); }; then
      soname=conftest
      lib=conftest
      libobjs=conftest.$ac_objext
      deplibs=
      wl=$lt_cv_prog_cc_wl
      compiler_flags=-v
      linker_flags=-v
      verstring=
      output_objdir=.
      libname=conftest
      save_allow_undefined_flag=$allow_undefined_flag
      allow_undefined_flag=
      if { (eval echo "$as_me:7858: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:7861: \$? = $ac_status" >&5
  (exit $ac_status); }
      then
	lt_cv_archive_cmds_need_lc=no
      else
	lt_cv_archive_cmds_need_lc=yes
      fi
      allow_undefined_flag=$save_allow_undefined_flag
    else
      cat conftest.err 1>&5
    fi
fi

    echo "$as_me:7874: result: $lt_cv_archive_cmds_need_lc" >&5
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
    ;;
  esac
fi
need_lc=${lt_cv_archive_cmds_need_lc-yes}
##
## END FIXME

## FIXME: this should be a separate macro
##
# The second clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  :
else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  test -f Makefile && make "$ltmain"
fi

if test -f "$ltmain"; then
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  $rm -f "${ofile}T"

  echo creating $ofile

  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS \
    AR AR_FLAGS CC LD LN_S NM SHELL \
    reload_flag reload_cmds wl \
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
    library_names_spec soname_spec \
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
    old_striplib striplib file_magic_cmd export_symbols_cmds \
    deplibs_check_method allow_undefined_flag no_undefined_flag \
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do

    case $var in
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  cat <<__EOF__ > "${ofile}T"
#! $SHELL

# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@@gnu.ai.mit.edu>, 1996
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="sed -e s/^X//"

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi

# ### BEGIN LIBTOOL CONFIG

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$need_lc

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# The default C compiler.
CC=$lt_CC

# Is the compiler the GNU C compiler?
with_gcc=$GCC

# The linker used to build libraries.
LD=$lt_LD

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_wl

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_pic_flag
pic_mode=$pic_mode

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_compiler_c_o

# Can we write directly to a .lo ?
compiler_o_lo=$lt_compiler_o_lo

# Must we lock files when doing compilation ?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_link_static_flag

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_no_builtin_flag

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# ### END LIBTOOL CONFIG

__EOF__

  case $host_os in
  aix3*)
    cat <<\EOF >> "${ofile}T"

# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
EOF
    ;;
  esac

  case $host_os in
  cygwin* | mingw* | pw32* | os2*)
    cat <<'EOF' >> "${ofile}T"
      # This is a source program that is used to create dlls on Windows
      # Don't remove nor modify the starting and closing comments
# /* ltdll.c starts here */
# #define WIN32_LEAN_AND_MEAN
# #include <windows.h>
# #undef WIN32_LEAN_AND_MEAN
# #include <stdio.h>
#
# #ifndef __CYGWIN__
# #  ifdef __CYGWIN32__
# #    define __CYGWIN__ __CYGWIN32__
# #  endif
# #endif
#
# #ifdef __cplusplus
# extern "C" {
# #endif
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
# #ifdef __cplusplus
# }
# #endif
#
# #ifdef __CYGWIN__
# #include <cygwin/cygwin_dll.h>
# DECLARE_CYGWIN_DLL( DllMain );
# #endif
# HINSTANCE __hDllInstance_base;
#
# BOOL APIENTRY
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
# {
#   __hDllInstance_base = hInst;
#   return TRUE;
# }
# /* ltdll.c ends here */
        # This is a source program that is used to create import libraries
        # on Windows for dlls which lack them. Don't remove nor modify the
        # starting and closing comments
# /* impgen.c starts here */
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
#
#  This file is part of GNU libtool.
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#  */
#
# #include <stdio.h>		/* for printf() */
# #include <unistd.h>		/* for open(), lseek(), read() */
# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
# #include <string.h>		/* for strdup() */
#
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
# #ifndef O_BINARY
# #define O_BINARY 0
# #endif
#
# static unsigned int
# pe_get16 (fd, offset)
#      int fd;
#      int offset;
# {
#   unsigned char b[2];
#   lseek (fd, offset, SEEK_SET);
#   read (fd, b, 2);
#   return b[0] + (b[1]<<8);
# }
#
# static unsigned int
# pe_get32 (fd, offset)
#     int fd;
#     int offset;
# {
#   unsigned char b[4];
#   lseek (fd, offset, SEEK_SET);
#   read (fd, b, 4);
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
# }
#
# static unsigned int
# pe_as32 (ptr)
#      void *ptr;
# {
#   unsigned char *b = ptr;
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
# }
#
# int
# main (argc, argv)
#     int argc;
#     char *argv[];
# {
#     int dll;
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
#     unsigned long name_rvas, nexp;
#     unsigned char *expdata, *erva;
#     char *filename, *dll_name;
#
#     filename = argv[1];
#
#     dll = open(filename, O_RDONLY|O_BINARY);
#     if (dll < 1)
# 	return 1;
#
#     dll_name = filename;
#
#     for (i=0; filename[i]; i++)
# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
# 	    dll_name = filename + i +1;
#
#     pe_header_offset = pe_get32 (dll, 0x3c);
#     opthdr_ofs = pe_header_offset + 4 + 20;
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
#
#     if (num_entries < 1) /* no exports */
# 	return 1;
#
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
#     secptr = (pe_header_offset + 4 + 20 +
# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
#
#     expptr = 0;
#     for (i = 0; i < nsections; i++)
#     {
# 	char sname[8];
# 	unsigned long secptr1 = secptr + 40 * i;
# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
# 	lseek(dll, secptr1, SEEK_SET);
# 	read(dll, sname, 8);
# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
# 	{
# 	    expptr = fptr + (export_rva - vaddr);
# 	    if (export_rva + export_size > vaddr + vsize)
# 		export_size = vsize - (export_rva - vaddr);
# 	    break;
# 	}
#     }
#
#     expdata = (unsigned char*)malloc(export_size);
#     lseek (dll, expptr, SEEK_SET);
#     read (dll, expdata, export_size);
#     erva = expdata - export_rva;
#
#     nexp = pe_as32 (expdata+24);
#     name_rvas = pe_as32 (expdata+32);
#
#     printf ("EXPORTS\n");
#     for (i = 0; i<nexp; i++)
#     {
# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
# 	printf ("\t%s @@ %ld ;\n", erva+name_rva, 1+ i);
#     }
#
#     return 0;
# }
# /* impgen.c ends here */
d3274 8
a3281 3
EOF
    ;;
  esac
d3283 2
a3284 31
  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)

  mv -f "${ofile}T" "$ofile" || \
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  chmod +x "$ofile"
fi
##
## END FIXME

# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'

# Prevent multiple expansion

LIBTOOL="\$(SHELL) ./libtool"
SOSUFFIX=`sed -e '/^library_names_spec=/!d' -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/' ./libtool`
SOFLAGS="-rpath \$(libdir)"

SAVE_CC="${MAKEFILE_CC}"
SAVE_CXX="${MAKEFILE_CXX}"
MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${SAVE_CC}"
MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${SAVE_CXX}"
MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${SAVE_CC}"
MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${SAVE_CXX}"
d3286 13
a3298 2
SOLINK="\$(LIBTOOL) --mode=link ${SAVE_CC} -avoid-version"
INSTALLER="\$(LIBTOOL) --mode=install cp"
d3300 1
a3300 13
# Configure for shared libraries, static libraries, or both.  If both are
# configured, build the utilities and example programs with shared versions.
#
# $o is set to ".o" or ".lo", and is the file suffix used in the Makefile
# instead of .o
if test "$enable_shared" = "no"; then
	DEFAULT_LIB="\$(libdb)"
	DEFAULT_LIB_CXX="\$(libcxx)"
	DEFAULT_INSTALL="install_static"
	POSTLINK="@@true"
	o=".o"
fi
if test "$enable_shared" = "yes"; then
d3302 11
a3312 2
	DEFAULT_LIB_CXX="\$(libxso_target)"
	DEFAULT_INSTALL="${DEFAULT_INSTALL} install_shared"
d3314 2
d3317 10
a3328 1
# Optional C++ API.
d3330 5
a3334 1
	if test "$enable_shared" = "no"; then
a3336 4
	if test "$enable_shared" = "yes"; then
		ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libxso_target)"
		DEFAULT_INSTALL="${DEFAULT_INSTALL} install_shared_cxx"
	fi
d3338 1
a3338 2
	# Fill in C++ library for Embedix.
	EMBEDIX_ECD_CXX='<OPTION db-extra>\
a3358 1
# Optional Java API.
d3360 2
a3361 5
	# Java requires shared libraries.
	if test "$enable_shared" = "no"; then
		{ { echo "$as_me:8511: error: Java requires shared libraries" >&5
echo "$as_me: error: Java requires shared libraries" >&2;}
   { (exit 1); exit 1; }; }
d3364 1
a3364 2
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}javac", so it can be a program name with args.
d3366 4
a3369 4
echo "$as_me:8519: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_JAVAC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3374 10
a3383 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_JAVAC="${ac_tool_prefix}javac"
echo "$as_me:8534: found $ac_dir/$ac_word" >&5
break
done

d3386 1
a3386 1
JAVAC=$ac_cv_prog_JAVAC
d3388 1
a3388 2
  echo "$as_me:8542: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6
d3390 1
a3390 2
  echo "$as_me:8545: result: no" >&5
echo "${ECHO_T}no" >&6
d3393 1
a3393 1
fi
d3395 1
a3395 1
  ac_ct_JAVAC=$JAVAC
d3398 19
a3416 20
echo "$as_me:8554: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_JAVAC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_JAVAC"; then
  ac_cv_prog_ac_ct_JAVAC="$ac_ct_JAVAC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_JAVAC="javac"
echo "$as_me:8569: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_JAVAC" && ac_cv_prog_ac_ct_JAVAC="nojavac"
d3419 3
a3421 4
ac_ct_JAVAC=$ac_cv_prog_ac_ct_JAVAC
if test -n "$ac_ct_JAVAC"; then
  echo "$as_me:8578: result: $ac_ct_JAVAC" >&5
echo "${ECHO_T}$ac_ct_JAVAC" >&6
d3423 1
a3423 2
  echo "$as_me:8581: result: no" >&5
echo "${ECHO_T}no" >&6
a3425 1
  JAVAC=$ac_ct_JAVAC
d3427 2
a3428 1
  JAVAC="$ac_cv_prog_JAVAC"
d3432 1
a3432 3
		{ { echo "$as_me:8591: error: no javac compiler in PATH" >&5
echo "$as_me: error: no javac compiler in PATH" >&2;}
   { (exit 1); exit 1; }; }
d3434 1
a3434 2
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}jar", so it can be a program name with args.
d3436 4
a3439 4
echo "$as_me:8598: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_JAR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3444 10
a3453 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_JAR="${ac_tool_prefix}jar"
echo "$as_me:8613: found $ac_dir/$ac_word" >&5
break
done

d3456 1
a3456 1
JAR=$ac_cv_prog_JAR
d3458 1
a3458 2
  echo "$as_me:8621: result: $JAR" >&5
echo "${ECHO_T}$JAR" >&6
d3460 1
a3460 2
  echo "$as_me:8624: result: no" >&5
echo "${ECHO_T}no" >&6
d3463 1
a3463 1
fi
d3465 1
a3465 1
  ac_ct_JAR=$JAR
d3468 19
a3486 20
echo "$as_me:8633: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_JAR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_JAR"; then
  ac_cv_prog_ac_ct_JAR="$ac_ct_JAR" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_JAR="jar"
echo "$as_me:8648: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_JAR" && ac_cv_prog_ac_ct_JAR="nojar"
d3489 3
a3491 4
ac_ct_JAR=$ac_cv_prog_ac_ct_JAR
if test -n "$ac_ct_JAR"; then
  echo "$as_me:8657: result: $ac_ct_JAR" >&5
echo "${ECHO_T}$ac_ct_JAR" >&6
d3493 1
a3493 2
  echo "$as_me:8660: result: no" >&5
echo "${ECHO_T}no" >&6
a3495 1
  JAR=$ac_ct_JAR
d3497 2
a3498 1
  JAR="$ac_cv_prog_JAR"
d3502 1
a3502 3
		{ { echo "$as_me:8670: error: no jar utility in PATH" >&5
echo "$as_me: error: no jar utility in PATH" >&2;}
   { (exit 1); exit 1; }; }
d3506 4
a3509 4
echo "$as_me:8676: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_JAVACABS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3511 2
a3512 2
  case $JAVACABS in
  [\\/]* | ?:[\\/]*)
d3515 3
d3519 10
a3528 12
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_JAVACABS="$ac_dir/$ac_word"
   echo "$as_me:8693: found $ac_dir/$ac_word" >&5
   break
fi
done

d3533 1
a3533 2
JAVACABS=$ac_cv_path_JAVACABS

d3535 1
a3535 2
  echo "$as_me:8705: result: $JAVACABS" >&5
echo "${ECHO_T}$JAVACABS" >&6
d3537 1
a3537 2
  echo "$as_me:8708: result: no" >&5
echo "${ECHO_T}no" >&6
a3543 1
# find the include directory relative to the javac executable
d3545 2
a3546 2
		echo "$as_me:8718: checking symlink for $JAVACABS" >&5
echo $ECHO_N "checking symlink for $JAVACABS... $ECHO_C" >&6
a3549 1
# 'X' avoids triggering unwanted echo options.
d3552 1
a3552 2
		echo "$as_me:8726: result: $JAVACABS" >&5
echo "${ECHO_T}$JAVACABS" >&6
d3567 1
a3567 3
			{ { echo "$as_me:8742: error: cannot find java include files" >&5
echo "$as_me: error: cannot find java include files" >&2;}
   { (exit 1); exit 1; }; }
a3570 1
# get the likely subdirectories for system specific java includes
a3586 1
# Optional RPC client/server.
d3588 1
a3588 1
	cat >>confdefs.h <<\EOF
d3592 1
d3599 5
a3603 5
	hpux*)
		echo "$as_me:8778: checking for svc_run" >&5
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
if test "${ac_cv_func_svc_run+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3605 2
a3606 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8784 "configure"
d3609 1
a3609 1
    which can conflict with char svc_run (); below.  */
a3611 3
#ifdef __cplusplus
extern "C"
#endif
d3613 5
a3617 7
   builtin and then its argument prototype would still apply.  */
char svc_run ();
char (*f) ();

int
main ()
{
d3624 1
a3624 1
f = svc_run;
d3627 16
a3642 27
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8815: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8818: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8821: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8824: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_svc_run=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_svc_run=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8834: result: $ac_cv_func_svc_run" >&5
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
if test $ac_cv_func_svc_run = yes; then
d3645 6
a3650 4
  echo "$as_me:8839: checking for svc_run in -lnsl" >&5
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3652 1
a3652 1
  ac_check_lib_save_LIBS=$LIBS
d3654 2
a3655 2
cat >conftest.$ac_ext <<_ACEOF
#line 8847 "configure"
a3656 1

a3657 3
#ifdef __cplusplus
extern "C"
#endif
d3659 22
a3680 34
   builtin and then its argument prototype would still apply.  */
char svc_run ();
int
main ()
{
svc_run ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8866: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8869: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8872: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8875: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_nsl_svc_run=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_nsl_svc_run=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:8886: result: $ac_cv_lib_nsl_svc_run" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
if test $ac_cv_lib_nsl_svc_run = yes; then
d3682 2
d3689 4
a3692 4
		echo "$as_me:8895: checking for svc_run" >&5
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
if test "${ac_cv_func_svc_run+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3694 2
a3695 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8901 "configure"
d3698 1
a3698 1
    which can conflict with char svc_run (); below.  */
a3700 3
#ifdef __cplusplus
extern "C"
#endif
d3702 5
a3706 7
   builtin and then its argument prototype would still apply.  */
char svc_run ();
char (*f) ();

int
main ()
{
d3713 1
a3713 1
f = svc_run;
d3716 16
a3731 27
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8932: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8935: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8938: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8941: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_svc_run=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_svc_run=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8951: result: $ac_cv_func_svc_run" >&5
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
if test $ac_cv_func_svc_run = yes; then
d3734 6
a3739 5

echo "$as_me:8957: checking for svc_run in -lnsl" >&5
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3741 1
a3741 1
  ac_check_lib_save_LIBS=$LIBS
d3743 2
a3744 2
cat >conftest.$ac_ext <<_ACEOF
#line 8965 "configure"
a3745 1

a3746 3
#ifdef __cplusplus
extern "C"
#endif
d3748 26
a3773 36
   builtin and then its argument prototype would still apply.  */
char svc_run ();
int
main ()
{
svc_run ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8984: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8987: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8990: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8993: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_nsl_svc_run=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_nsl_svc_run=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9004: result: $ac_cv_lib_nsl_svc_run" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
if test $ac_cv_lib_nsl_svc_run = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBNSL 1
d3778 2
a3786 6
if test "$db_cv_tcl" = "yes"; then
	if test "$enable_shared" = "no"; then
		{ { echo "$as_me:9022: error: Tcl requires shared libraries" >&5
echo "$as_me: error: Tcl requires shared libraries" >&2;}
   { (exit 1); exit 1; }; }
	fi
d3788 6
a3793 2
	if test "${ac_cv_c_tclconfig+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3795 1
d3802 1
a3802 3
		    { { echo "$as_me:9036: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
   { (exit 1); exit 1; }; }
d3816 1
d3819 1
d3822 1
a3822 3
	    { { echo "$as_me:9056: error: can't find Tcl configuration definitions" >&5
echo "$as_me: error: can't find Tcl configuration definitions" >&2;}
   { (exit 1); exit 1; }; }
d3827 3
a3829 2
	echo "$as_me:9063: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
d3832 1
a3832 2
		echo "$as_me:9067: result: loading" >&5
echo "${ECHO_T}loading" >&6
d3835 1
a3835 2
		echo "$as_me:9071: result: file not found" >&5
echo "${ECHO_T}file not found" >&6
d3846 5
d3853 1
a3863 1
# Optional DB 1.85 compatibility API.
a3868 1
# Optional utilities.
d3873 10
a3882 11
# test servers, example programs.
# Include -lpthread if the library exists.
echo "$as_me:9108: checking for sched_yield in -lrt" >&5
echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9116 "configure"
a3883 1

a3884 3
#ifdef __cplusplus
extern "C"
#endif
d3886 23
a3908 41
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
int
main ()
{
sched_yield ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9135: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9138: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9141: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9144: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_rt_sched_yield=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_rt_sched_yield=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9155: result: $ac_cv_lib_rt_sched_yield" >&5
echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
if test $ac_cv_lib_rt_sched_yield = yes; then
  TEST_LIBS="-lrt $TEST_LIBS"
fi

echo "$as_me:9161: checking for pthread_create in -lpthread" >&5
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3910 3
a3912 5
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9169 "configure"
#include "confdefs.h"
d3914 4
a3917 47
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pthread_create ();
int
main ()
{
pthread_create ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9188: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9191: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9194: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9197: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_pthread_pthread_create=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_pthread_pthread_create=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9208: result: $ac_cv_lib_pthread_pthread_create" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
if test $ac_cv_lib_pthread_pthread_create = yes; then
  TEST_LIBS="-lpthread $TEST_LIBS"
fi

# Checks for system/compiler characteristics.
echo "$as_me:9215: checking whether byte ordering is bigendian" >&5
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
if test "${ac_cv_c_bigendian+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3921 2
a3922 2
cat >conftest.$ac_ext <<_ACEOF
#line 9223 "configure"
d3926 1
a3927 3
int
main ()
{
d3931 4
a3934 17

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9240: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9243: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9246: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9249: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d3936 2
a3937 2
cat >conftest.$ac_ext <<_ACEOF
#line 9253 "configure"
d3941 1
a3942 3
int
main ()
{
d3946 4
a3949 17

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9270: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9273: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9276: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9279: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d3952 4
a3955 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_bigendian=no
d3957 1
a3957 1
rm -f conftest.$ac_objext conftest.$ac_ext
d3959 2
a3960 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d3962 1
a3962 1
rm -f conftest.$ac_objext conftest.$ac_ext
d3965 6
a3970 10
  { { echo "$as_me:9295: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9300 "configure"
#include "confdefs.h"
int
main ()
{
d3980 3
a3982 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:9316: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9319: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:9321: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9324: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d3985 4
a3988 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_bigendian=yes
d3990 1
a3990 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d3992 1
d3995 2
a3996 2
echo "$as_me:9337: result: $ac_cv_c_bigendian" >&5
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
d3998 1
a3998 2

cat >>confdefs.h <<\EOF
d4004 7
a4010 9
echo "$as_me:9347: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
#line 9355 "configure"
d4012 40
a4051 12
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
d4053 2
a4054 8
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
d4056 83
a4138 38
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX 10.20 and later	-Ae
# HP-UX older versions	-Aa -D_HPUX_SOURCE
# SVR4			-Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (eval echo "$as_me:9404: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9407: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9410: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9413: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_stdc=$ac_arg
break
d4140 5
a4144 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d4146 1
a4146 5
rm -f conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC

d4148 1
a4148 91

case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$as_me:9430: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
  *)
    echo "$as_me:9433: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    CC="$CC $ac_cv_prog_cc_stdc" ;;
esac

echo "$as_me:9438: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9444 "configure"
#include "confdefs.h"

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9502: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9505: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9508: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9511: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
d4150 2
a4151 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4153 3
a4155 8
echo "$as_me:9521: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then

cat >>confdefs.h <<\EOF
#define const
EOF

d4157 1
d4159 4
a4162 5
# Checks for include files, structures.
echo "$as_me:9532: checking whether stat file-mode macros are broken" >&5
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
if test "${ac_cv_header_stat_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4164 2
a4165 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9538 "configure"
d4194 1
a4194 1
_ACEOF
d4197 1
d4200 1
d4206 2
a4207 2
echo "$as_me:9577: result: $ac_cv_header_stat_broken" >&5
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
d4209 1
a4209 2

cat >>confdefs.h <<\EOF
d4215 4
a4218 4
echo "$as_me:9587: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4220 2
a4221 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9593 "configure"
d4226 1
a4226 4

int
main ()
{
d4228 4
a4231 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9608: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9611: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9614: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9617: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4234 4
a4237 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
d4239 1
a4239 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4241 2
a4242 2
echo "$as_me:9627: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
d4244 1
a4244 2

cat >>confdefs.h <<\EOF
d4250 4
a4253 7
ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
echo "$as_me:9640: checking for $ac_hdr that defines DIR" >&5
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4255 2
a4256 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9646 "configure"
d4259 4
a4262 35
#include <$ac_hdr>

int
main ()
{
DIR *dirp = 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9660: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9663: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9666: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9669: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_Header=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9679: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
d4264 3
a4266 65

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  echo "$as_me:9692: checking for opendir in -ldir" >&5
echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
if test "${ac_cv_lib_dir_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldir  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9700 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9719: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9722: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9725: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9728: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dir_opendir=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dir_opendir=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9739: result: $ac_cv_lib_dir_opendir" >&5
echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
if test $ac_cv_lib_dir_opendir = yes; then
  LIBS="$LIBS -ldir"
fi

else
  echo "$as_me:9746: checking for opendir in -lx" >&5
echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
if test "${ac_cv_lib_x_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4268 1
a4268 83
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lx  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9754 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9773: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9776: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9779: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9782: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_x_opendir=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_x_opendir=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9793: result: $ac_cv_lib_x_opendir" >&5
echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
if test $ac_cv_lib_x_opendir = yes; then
  LIBS="$LIBS -lx"
fi

fi

for ac_header in sys/select.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:9804: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9810 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:9814: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9820: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
d4270 2
a4271 1
  eval "$ac_ac_Header=no"
d4273 1
a4273 1
rm -f conftest.err conftest.$ac_ext
a4274 9
echo "$as_me:9839: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done
d4276 4
a4279 43
for ac_header in sys/time.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:9852: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9858 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:9862: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9868: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:9887: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
a4282 1
done
d4284 4
a4287 4
echo "$as_me:9897: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4289 2
a4290 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9903 "configure"
d4296 6
a4301 19

_ACEOF
if { (eval echo "$as_me:9911: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9917: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
d4304 2
a4305 1
  echo "$as_me: failed program was:" >&5
d4307 1
d4310 1
a4310 1
rm -f conftest.err conftest.$ac_ext
d4314 2
a4315 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9939 "configure"
d4318 1
a4318 2

_ACEOF
d4323 1
d4332 2
a4333 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9957 "configure"
d4336 1
a4336 2

_ACEOF
d4341 1
d4350 1
a4350 1
  if test "$cross_compiling" = yes; then
d4353 2
a4354 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9978 "configure"
d4357 6
a4362 9
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
d4364 3
a4366 23
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10004: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10007: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10009: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10012: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4369 4
a4372 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
d4374 1
a4374 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4376 1
d4379 2
a4380 2
echo "$as_me:10025: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
d4382 1
a4382 2

cat >>confdefs.h <<\EOF
d4388 4
a4391 26
for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:10038: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10044 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:10048: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:10054: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d4393 13
a4405 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
d4407 2
a4408 3
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
d4410 1
a4410 8
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:10073: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF
d4413 4
a4416 46
done

echo "$as_me:10083: checking for struct stat.st_blksize" >&5
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10089 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
struct stat foo;
foo.st_blksize;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10102: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10105: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10108: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10111: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_stat_st_blksize=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_member_struct_stat_st_blksize=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:10121: result: $ac_cv_member_struct_stat_st_blksize" >&5
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
if test $ac_cv_member_struct_stat_st_blksize = yes; then

cat >>confdefs.h <<EOF
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
d4421 4
a4424 35
# Check for C types.

echo "$as_me:10133: checking for mode_t" >&5
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
if test "${ac_cv_type_mode_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10139 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((mode_t *) 0)
  return 0;
if (sizeof (mode_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10154: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10157: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10160: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10163: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_mode_t=yes
d4426 8
a4433 14
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_mode_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:10173: result: $ac_cv_type_mode_t" >&5
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
if test $ac_cv_type_mode_t = yes; then
  :
else

cat >>confdefs.h <<EOF
#define mode_t int
d4435 3
a4437 35

fi

echo "$as_me:10185: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
if test "${ac_cv_type_off_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10191 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((off_t *) 0)
  return 0;
if (sizeof (off_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10206: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10209: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10212: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10215: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4440 4
a4443 11
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_off_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:10225: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6
if test $ac_cv_type_off_t = yes; then
  :
else
d4445 4
a4448 1
cat >>confdefs.h <<EOF
d4454 17
a4470 32
echo "$as_me:10237: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10243 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((pid_t *) 0)
  return 0;
if (sizeof (pid_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10258: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10261: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10264: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10267: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4473 4
a4476 11
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_pid_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:10277: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else
d4478 4
a4481 1
cat >>confdefs.h <<EOF
d4487 17
a4503 32
echo "$as_me:10289: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10295 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10310: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10313: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10316: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10319: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4506 4
a4509 11
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_size_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:10329: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
else
d4511 4
a4514 1
cat >>confdefs.h <<EOF
d4520 19
a4538 4
echo "$as_me:10341: checking for u_char" >&5
echo $ECHO_N "checking for u_char... $ECHO_C" >&6
if test "${db_cv_uchar+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4540 12
d4553 8
a4560 2
cat >conftest.$ac_ext <<_ACEOF
#line 10348 "configure"
d4563 1
a4563 3
int
main ()
{
d4565 4
a4568 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10360: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10363: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10366: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10369: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4571 4
a4574 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_uchar=no
d4576 1
a4576 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4578 2
a4579 2
echo "$as_me:10379: result: $db_cv_uchar" >&5
echo "${ECHO_T}$db_cv_uchar" >&6
d4584 5
a4588 4
echo "$as_me:10385: checking for u_short" >&5
echo $ECHO_N "checking for u_short... $ECHO_C" >&6
if test "${db_cv_ushort+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4590 2
a4591 3

cat >conftest.$ac_ext <<_ACEOF
#line 10392 "configure"
d4594 1
a4594 3
int
main ()
{
d4596 4
a4599 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10404: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10407: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10410: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10413: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4602 4
a4605 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_ushort=no
d4607 1
a4607 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4609 2
a4610 2
echo "$as_me:10423: result: $db_cv_ushort" >&5
echo "${ECHO_T}$db_cv_ushort" >&6
d4615 5
a4619 4
echo "$as_me:10429: checking for u_int" >&5
echo $ECHO_N "checking for u_int... $ECHO_C" >&6
if test "${db_cv_uint+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4621 2
a4622 3

cat >conftest.$ac_ext <<_ACEOF
#line 10436 "configure"
d4625 1
a4625 3
int
main ()
{
d4627 4
a4630 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10448: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10451: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10454: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10457: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4633 4
a4636 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_uint=no
d4638 1
a4638 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4640 2
a4641 2
echo "$as_me:10467: result: $db_cv_uint" >&5
echo "${ECHO_T}$db_cv_uint" >&6
d4646 5
a4650 4
echo "$as_me:10473: checking for u_long" >&5
echo $ECHO_N "checking for u_long... $ECHO_C" >&6
if test "${db_cv_ulong+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4652 2
a4653 3

cat >conftest.$ac_ext <<_ACEOF
#line 10480 "configure"
d4656 1
a4656 3
int
main ()
{
d4658 4
a4661 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10492: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10495: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10498: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10501: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4664 4
a4667 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_ulong=no
d4669 1
a4669 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4671 2
a4672 2
echo "$as_me:10511: result: $db_cv_ulong" >&5
echo "${ECHO_T}$db_cv_ulong" >&6
a4676 1
# DB/Vi use specific integer sizes.
d4678 4
a4681 4
echo "$as_me:10519: checking for u_int8_t" >&5
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
if test "${db_cv_uint8+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4683 2
a4684 3

cat >conftest.$ac_ext <<_ACEOF
#line 10526 "configure"
d4687 1
a4687 3
int
main ()
{
d4689 4
a4692 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10538: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10541: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10544: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10547: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4695 5
a4699 6
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10554: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4701 2
a4702 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10559 "configure"
d4705 3
a4707 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10564: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10567: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10569: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10572: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4710 4
a4713 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_uint8=no
d4715 1
a4715 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4717 1
d4719 1
a4719 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4721 2
a4722 2
echo "$as_me:10586: result: $db_cv_uint8" >&5
echo "${ECHO_T}$db_cv_uint8" >&6
d4724 1
a4724 3
	{ { echo "$as_me:10589: error: No unsigned 8-bit integral type." >&5
echo "$as_me: error: No unsigned 8-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
d4730 5
a4734 4
echo "$as_me:10597: checking for u_int16_t" >&5
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
if test "${db_cv_uint16+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4736 2
a4737 3

cat >conftest.$ac_ext <<_ACEOF
#line 10604 "configure"
d4740 1
a4740 3
int
main ()
{
d4742 4
a4745 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10616: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10619: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10622: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10625: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4748 5
a4752 6
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10632: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4754 2
a4755 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10637 "configure"
d4758 3
a4760 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10642: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10645: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10647: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10650: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4763 5
a4767 7
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10658: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4769 2
a4770 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10663 "configure"
d4773 3
a4775 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10668: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10671: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10673: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10676: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4778 4
a4781 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_uint16=no
d4783 1
a4783 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4785 1
d4787 1
a4787 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4789 1
d4791 1
a4791 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4793 2
a4794 2
echo "$as_me:10693: result: $db_cv_uint16" >&5
echo "${ECHO_T}$db_cv_uint16" >&6
d4796 1
a4796 3
	{ { echo "$as_me:10696: error: No unsigned 16-bit integral type." >&5
echo "$as_me: error: No unsigned 16-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
d4802 5
a4806 4
echo "$as_me:10704: checking for int16_t" >&5
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
if test "${db_cv_int16+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4808 2
a4809 3

cat >conftest.$ac_ext <<_ACEOF
#line 10711 "configure"
d4812 1
a4812 3
int
main ()
{
d4814 4
a4817 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10723: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10726: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10729: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10732: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4820 5
a4824 6
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10739: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4826 2
a4827 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10744 "configure"
d4830 3
a4832 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10749: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10752: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10754: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10757: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4835 5
a4839 7
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10765: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4841 2
a4842 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10770 "configure"
d4845 3
a4847 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10775: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10778: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10780: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10783: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4850 4
a4853 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_int16=no
d4855 1
a4855 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4857 1
d4859 1
a4859 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4861 1
d4863 1
a4863 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4865 2
a4866 2
echo "$as_me:10800: result: $db_cv_int16" >&5
echo "${ECHO_T}$db_cv_int16" >&6
d4868 1
a4868 3
	{ { echo "$as_me:10803: error: No signed 16-bit integral type." >&5
echo "$as_me: error: No signed 16-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
d4874 5
a4878 4
echo "$as_me:10811: checking for u_int32_t" >&5
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
if test "${db_cv_uint32+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4880 2
a4881 3

cat >conftest.$ac_ext <<_ACEOF
#line 10818 "configure"
d4884 1
a4884 3
int
main ()
{
d4886 4
a4889 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10830: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10833: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10836: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10839: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4892 5
a4896 6
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10846: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4898 2
a4899 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10851 "configure"
d4902 3
a4904 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10856: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10859: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10861: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10864: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4907 5
a4911 7
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10872: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4913 2
a4914 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10877 "configure"
d4917 3
a4919 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10882: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10885: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10887: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10890: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4922 4
a4925 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_uint32=no
d4927 1
a4927 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4929 1
d4931 1
a4931 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4933 1
d4935 1
a4935 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4937 2
a4938 2
echo "$as_me:10907: result: $db_cv_uint32" >&5
echo "${ECHO_T}$db_cv_uint32" >&6
d4940 1
a4940 3
	{ { echo "$as_me:10910: error: No unsigned 32-bit integral type." >&5
echo "$as_me: error: No unsigned 32-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
d4946 5
a4950 4
echo "$as_me:10918: checking for int32_t" >&5
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
if test "${db_cv_int32+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4952 2
a4953 3

cat >conftest.$ac_ext <<_ACEOF
#line 10925 "configure"
d4956 1
a4956 3
int
main ()
{
d4958 4
a4961 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10937: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10940: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10943: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10946: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4964 5
a4968 6
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10953: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4970 2
a4971 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10958 "configure"
d4974 3
a4976 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10963: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10966: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10968: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10971: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4979 5
a4983 7
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10979: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4985 2
a4986 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10984 "configure"
d4989 3
a4991 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10989: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10992: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10994: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10997: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4994 4
a4997 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_int32=no
d4999 1
a4999 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5001 1
d5003 1
a5003 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5005 1
d5007 1
a5007 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5009 2
a5010 2
echo "$as_me:11014: result: $db_cv_int32" >&5
echo "${ECHO_T}$db_cv_int32" >&6
d5012 1
a5012 3
	{ { echo "$as_me:11017: error: No signed 32-bit integral type." >&5
echo "$as_me: error: No signed 32-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
d5018 5
a5022 8
# Check for ssize_t -- if none exists, find a signed integral type that's
# the same size as a size_t.  Prefer int over long, because it read/write
# and others historically returned an int.

echo "$as_me:11029: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${db_cv_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5024 2
a5025 3

cat >conftest.$ac_ext <<_ACEOF
#line 11036 "configure"
d5028 24
a5051 21
int
main ()
{
ssize_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11048: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11051: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11054: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11057: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_ssize_t=yes
d5053 1
a5053 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5055 1
a5055 59
  { { echo "$as_me:11064: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11069 "configure"
#include "confdefs.h"

	#include <sys/types.h>
	main(){exit(sizeof(size_t) != sizeof(int));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11076: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11079: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11081: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11084: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_ssize_t="int"
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11092: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11097 "configure"
#include "confdefs.h"

	#include <sys/types.h>
	main(){exit(sizeof(size_t) != sizeof(long long));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11104: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11107: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11109: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11112: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_ssize_t="long long"
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11120: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5057 2
a5058 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11125 "configure"
d5060 5
a5064 16

	#include <sys/types.h>
	main(){exit(sizeof(size_t) != sizeof(long));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11132: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11135: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11137: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11140: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_ssize_t="long"
d5066 2
a5067 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_ssize_t="int"
d5069 1
a5069 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5071 15
d5087 1
a5087 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5089 15
d5105 1
a5105 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5107 1
a5107 7
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11160: result: $db_cv_ssize_t" >&5
echo "${ECHO_T}$db_cv_ssize_t" >&6
if test "$db_cv_ssize_t" != yes; then
	ssize_t_decl="typedef $db_cv_ssize_t ssize_t;"
d5110 4
a5113 1
# Find the largest integral type.
d5115 8
a5122 4
echo "$as_me:11168: checking for largest integral type" >&5
echo $ECHO_N "checking for largest integral type... $ECHO_C" >&6
if test "${db_cv_align_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5124 2
a5125 3

cat >conftest.$ac_ext <<_ACEOF
#line 11175 "configure"
d5128 8
a5135 21
int
main ()
{
long long foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11187: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11190: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11193: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11196: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_align_t="unsigned long long"
d5137 6
a5142 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_align_t="unsigned long"
d5144 9
a5152 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5154 18
a5171 3
echo "$as_me:11206: result: $db_cv_align_t" >&5
echo "${ECHO_T}$db_cv_align_t" >&6
db_align_t_decl="typedef $db_cv_align_t db_align_t;"
d5173 15
a5187 1
# Find the integral type which is the same size as a pointer.
d5189 4
a5192 4
echo "$as_me:11212: checking for integral type equal to pointer size" >&5
echo $ECHO_N "checking for integral type equal to pointer size... $ECHO_C" >&6
if test "${db_cv_alignp_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5194 2
a5196 5
db_cv_alignp_t=$db_cv_align_t
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11220: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5198 10
a5207 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11225 "configure"
d5209 25
a5233 14
main(){exit(sizeof(unsigned int) != sizeof(char *));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11230: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11233: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11235: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11238: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_alignp_t="unsigned int"
d5235 1
a5235 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5237 1
a5237 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5239 8
a5246 4
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11249: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5248 2
a5249 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11254 "configure"
d5251 8
a5258 14
main(){exit(sizeof(unsigned long) != sizeof(char *));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11259: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11262: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11264: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11267: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_alignp_t="unsigned long"
d5260 7
a5266 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5268 9
a5276 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5278 9
a5286 4
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11278: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5288 2
a5289 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11283 "configure"
d5291 8
a5298 14
main(){exit(sizeof(unsigned long long) != sizeof(char *));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11288: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11291: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11293: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11296: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_alignp_t="unsigned long long"
d5300 5
a5304 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5306 1
a5306 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5308 9
d5318 1
a5318 16
echo "$as_me:11307: result: $db_cv_alignp_t" >&5
echo "${ECHO_T}$db_cv_alignp_t" >&6
db_alignp_t_decl="typedef $db_cv_alignp_t db_alignp_t;"

# Check for ANSI C exit success/failure values.
cat >conftest.$ac_ext <<_ACEOF
#line 11313 "configure"
#include "confdefs.h"

    #include <stdlib.h>
    #ifdef EXIT_SUCCESS
    yes
    #endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
a5319 6
    cat >>confdefs.h <<\EOF
#define HAVE_EXIT_SUCCESS 1
EOF

fi
rm -f conftest*
a5320 1
# Check for mutexes.  We do this here because it changes $LIBS.
a5321 2
# Mutexes we don't test for, but want the #defines to exist for
# other ports.
d5323 4
a5326 4
echo "$as_me:11336: checking for mutexes" >&5
echo $ECHO_N "checking for mutexes... $ECHO_C" >&6
if test "${db_cv_mutex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5328 1
a5328 2

db_cv_mutex=no
a5331 4
# User-specified POSIX mutexes.
#
# Assume that -lpthread exists when the user specifies POSIX mutexes.  (I
# only expect this option to be used on Solaris, which has -lpthread.)
a5335 4
# User-specified UI mutexes.
#
# Assume that -lthread exists when the user specifies UI mutexes.  (I only
# expect this option to be used on Solaris, which has -lthread.)
a5339 10
# LWP threads: _lwp_XXX
#
# Test for LWP threads before testing for UI/POSIX threads, we prefer them
# on Solaris.  There are two reasons: the Solaris C library has UI/POSIX
# interface stubs, but they're broken, configuring them for inter-process
# mutexes doesn't return an error, but it doesn't work either.  Second,
# there's a bug in SunOS 5.7 where applications get pwrite, not pwrite64,
# if they load the C library before the appropriate threads library, e.g.,
# tclsh using dlopen to load the DB library.  Anyway, by using LWP threads
# we avoid answering lots of user questions, not to mention the bugs.
d5342 1
a5342 3
  { { echo "$as_me:11374: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5344 2
a5345 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11379 "configure"
d5358 3
a5360 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11394: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11397: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11399: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11402: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5363 2
a5364 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5366 1
a5366 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5368 1
a5370 3
# UI threads: thr_XXX
#
# Try with and without the -lthread library.
d5374 1
a5374 3
  { { echo "$as_me:11420: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5376 2
a5377 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11425 "configure"
d5392 3
a5394 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11442: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11445: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11447: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11450: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5397 2
a5398 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5400 1
a5400 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5402 1
d5407 1
a5407 3
  { { echo "$as_me:11464: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5409 2
a5410 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11469 "configure"
d5425 3
a5427 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11486: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11489: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11491: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11494: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5430 2
a5431 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5433 1
a5433 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5435 1
d5438 1
a5438 3
	{ { echo "$as_me:11506: error: unable to find UI mutex interfaces" >&5
echo "$as_me: error: unable to find UI mutex interfaces" >&2;}
   { (exit 1); exit 1; }; }
d5441 1
a5441 3
# POSIX.1 pthreads: pthread_XXX
#
# Try with and without the -lpthread library.
d5444 1
a5444 3
  { { echo "$as_me:11516: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5446 2
a5447 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11521 "configure"
d5470 3
a5472 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11546: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11549: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11551: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11554: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5475 2
a5476 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5478 1
a5478 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5480 1
d5485 1
a5485 3
  { { echo "$as_me:11568: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5487 2
a5488 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11573 "configure"
d5511 3
a5513 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11598: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11601: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11603: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11606: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5516 2
a5517 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5519 1
a5519 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5521 1
d5525 1
a5525 3
	{ { echo "$as_me:11619: error: unable to find POSIX mutex interfaces" >&5
echo "$as_me: error: unable to find POSIX mutex interfaces" >&2;}
   { (exit 1); exit 1; }; }
a5527 2
# msemaphore: HPPA only
# Try HPPA before general msem test, it needs special alignment.
d5530 1
a5530 3
  { { echo "$as_me:11628: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5532 2
a5533 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11633 "configure"
d5549 3
a5551 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11651: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11654: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11656: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11659: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5554 2
a5555 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5557 1
a5557 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5559 1
a5561 1
# msemaphore: AIX, OSF/1
d5564 1
a5564 3
  { { echo "$as_me:11674: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5566 2
a5567 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11679 "configure"
d5580 3
a5582 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11694: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11697: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11699: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11702: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5585 2
a5586 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5588 1
a5588 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5590 1
a5592 1
# ReliantUNIX
d5595 2
a5596 2
cat >conftest.$ac_ext <<_ACEOF
#line 11718 "configure"
d5599 1
a5599 3
int
main ()
{
d5602 4
a5605 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11731: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11734: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11737: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11740: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5608 2
a5609 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5611 1
a5611 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a5614 1
# SCO: UnixWare has threads in libthread, but OpenServer doesn't.
d5617 1
a5617 3
  { { echo "$as_me:11754: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5619 2
a5620 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11759 "configure"
d5629 3
a5631 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11770: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11773: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11775: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11778: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5634 2
a5635 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5637 1
a5637 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5639 1
a5641 1
# abilock_t: SGI
d5643 2
a5644 2
cat >conftest.$ac_ext <<_ACEOF
#line 11793 "configure"
d5647 1
a5647 3
int
main ()
{
d5650 4
a5653 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11806: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11809: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11812: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11815: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5656 2
a5657 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5659 1
a5659 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a5661 4
# sema_t: Solaris
# The sema_XXX calls do not work on Solaris 5.5.  I see no reason to ever
# turn this test on, unless we find some other platform that uses the old
# POSIX.1 interfaces.  (I plan to move directly to pthreads on Solaris.)
d5663 2
a5664 2
cat >conftest.$ac_ext <<_ACEOF
#line 11831 "configure"
d5667 1
a5667 3
int
main ()
{
d5671 4
a5674 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11845: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11848: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11851: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11854: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5677 2
a5678 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5680 1
a5680 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a5682 5
# _lock_try/_lock_clear: Solaris
# On Solaris systems without Pthread or UI mutex interfaces, DB uses the
# undocumented _lock_try _lock_clear function calls instead of either the
# sema_trywait(3T) or sema_wait(3T) function calls.  This is because of
# problems in those interfaces in some releases of the Solaris C library.
d5684 2
a5685 2
cat >conftest.$ac_ext <<_ACEOF
#line 11871 "configure"
d5688 1
a5688 3
int
main ()
{
d5692 4
a5695 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11885: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11888: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11891: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11894: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5698 2
a5699 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5701 1
a5701 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a5703 1
# _check_lock/_clear_lock: AIX
d5705 2
a5706 2
cat >conftest.$ac_ext <<_ACEOF
#line 11907 "configure"
d5709 1
a5709 3
int
main ()
{
d5711 4
a5714 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11919: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11922: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11925: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11928: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5717 2
a5718 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5720 1
a5720 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a5722 1
# Alpha/gcc: OSF/1
d5725 1
a5725 3
  { { echo "$as_me:11941: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5727 2
a5728 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11946 "configure"
d5737 3
a5739 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11957: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11960: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11962: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11965: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5742 2
a5743 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5745 1
a5745 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5747 1
a5749 1
# PaRisc/gcc: HP/UX
d5752 1
a5752 3
  { { echo "$as_me:11980: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5754 2
a5755 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11985 "configure"
d5764 3
a5766 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11996: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11999: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12001: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12004: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5769 2
a5770 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5772 1
a5772 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5774 1
a5776 1
# PPC/gcc:
d5779 1
a5779 3
  { { echo "$as_me:12019: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5781 2
a5782 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12024 "configure"
d5791 3
a5793 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12035: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12038: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12040: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12043: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5796 2
a5797 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5799 1
a5799 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5801 1
a5803 1
# Sparc/gcc: SunOS, Solaris
d5806 1
a5806 3
  { { echo "$as_me:12058: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5808 2
a5809 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12063 "configure"
d5819 3
a5821 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12075: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12078: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12080: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12083: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5824 2
a5825 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5827 1
a5827 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5829 1
a5831 1
# 68K/gcc: SunOS
d5834 1
a5834 3
  { { echo "$as_me:12098: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5836 2
a5837 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12103 "configure"
d5847 3
a5849 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12115: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12118: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12120: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12123: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5852 2
a5853 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5855 1
a5855 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5857 1
a5859 1
# x86/gcc: FreeBSD, NetBSD, BSD/OS, Linux
d5862 1
a5862 3
  { { echo "$as_me:12138: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5864 2
a5865 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12143 "configure"
d5875 3
a5877 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12155: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12158: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12160: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12163: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5880 2
a5881 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5883 1
a5883 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5885 1
a5887 1
# ia86/gcc: Linux
d5890 1
a5890 3
  { { echo "$as_me:12178: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5892 2
a5893 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12183 "configure"
d5903 3
a5905 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12195: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12198: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12200: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12203: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5908 2
a5909 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5911 1
a5911 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5913 1
a5915 1
# uts/cc: UTS
d5918 1
a5918 3
  { { echo "$as_me:12218: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5920 2
a5921 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12223 "configure"
d5929 3
a5931 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12233: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12236: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12238: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12241: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5934 2
a5935 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5937 1
a5937 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5939 1
d5943 2
a5944 2
echo "$as_me:12254: result: $db_cv_mutex" >&5
echo "${ECHO_T}$db_cv_mutex" >&6
d5947 1
a5947 2
	{ echo "$as_me:12258: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&5
echo "$as_me: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&2;}
d5950 1
a5950 1
	cat >>confdefs.h <<\EOF
d5958 1
a5958 1
			cat >>confdefs.h <<\EOF
a5960 1

d5963 1
a5963 1
			cat >>confdefs.h <<\EOF
a5965 1

d5968 1
a5968 1
			cat >>confdefs.h <<\EOF
a5970 1

d5973 1
a5973 1
			cat >>confdefs.h <<\EOF
a5975 1

d5978 1
a5978 1
			cat >>confdefs.h <<\EOF
a5980 1

d5983 1
a5983 1
			cat >>confdefs.h <<\EOF
a5985 1

d5988 1
a5988 1
			cat >>confdefs.h <<\EOF
a5990 1

d5994 1
a5994 1
			cat >>confdefs.h <<\EOF
a5996 1

d5999 1
a5999 1
			cat >>confdefs.h <<\EOF
a6001 1

d6005 1
a6005 1
			cat >>confdefs.h <<\EOF
a6007 1

d6010 1
a6010 1
			cat >>confdefs.h <<\EOF
a6012 1

d6015 1
a6015 1
			cat >>confdefs.h <<\EOF
a6017 1

d6020 1
a6020 1
			cat >>confdefs.h <<\EOF
a6022 1

d6025 1
a6025 1
			cat >>confdefs.h <<\EOF
a6027 1

d6030 1
a6030 1
			cat >>confdefs.h <<\EOF
a6032 1

d6035 1
a6035 1
			cat >>confdefs.h <<\EOF
a6037 1

d6041 1
a6041 1
			cat >>confdefs.h <<\EOF
a6043 1

d6046 1
a6046 1
			cat >>confdefs.h <<\EOF
a6048 1

d6051 1
a6051 1
			cat >>confdefs.h <<\EOF
a6053 1

d6056 1
a6056 1
			cat >>confdefs.h <<\EOF
a6058 1

d6061 1
a6061 1
			cat >>confdefs.h <<\EOF
a6063 1

a6066 6
# Checks for system functions for which we have replacements.
#
# XXX
# The only portable getcwd call is getcwd(char *, size_t), where the
# buffer is non-NULL -- Solaris can't handle a NULL buffer, and they
# deleted getwd().
d6070 4
a6073 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12410: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6075 2
a6076 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12416 "configure"
d6079 1
a6079 1
    which can conflict with char $ac_func (); below.  */
a6081 3
#ifdef __cplusplus
extern "C"
#endif
d6083 5
a6087 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6094 1
a6094 1
f = $ac_func;
d6097 1
a6097 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12447: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12450: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12453: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12456: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12466: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6099 11
d6111 7
d6119 2
a6120 1
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
d6124 1
d6127 4
a6130 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12481: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6132 2
a6133 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12487 "configure"
d6136 1
a6136 1
    which can conflict with char $ac_func (); below.  */
a6138 3
#ifdef __cplusplus
extern "C"
#endif
d6140 5
a6144 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6151 1
a6151 1
f = $ac_func;
d6154 1
a6154 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12518: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12521: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12524: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12527: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12537: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6156 11
d6168 7
d6176 2
a6177 1
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
d6181 2
a6182 4
# XXX
# Nasty hack.  AC_REPLACE_FUNCS added entries of the form xxx.o to the
# LIBOBJS variable.  They have to be xxx.lo if we are building shared
# libraries.  Use sed, configure already requires it.
a6185 2
# Check for system functions we optionally use.

d6188 4
a6191 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12561: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6193 2
a6194 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12567 "configure"
d6197 1
a6197 1
    which can conflict with char $ac_func (); below.  */
a6199 3
#ifdef __cplusplus
extern "C"
#endif
d6201 5
a6205 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6212 1
a6212 1
f = $ac_func;
d6215 1
a6215 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12598: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12601: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12604: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12607: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12617: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6217 11
d6229 9
d6243 4
a6246 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12630: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6248 2
a6249 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12636 "configure"
d6252 1
a6252 1
    which can conflict with char $ac_func (); below.  */
a6254 3
#ifdef __cplusplus
extern "C"
#endif
d6256 5
a6260 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6267 1
a6267 1
f = $ac_func;
d6270 1
a6270 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12667: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12670: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12673: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12676: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12686: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6272 11
d6284 9
d6296 1
a6296 3
# Pread/pwrite.
#
# HP-UX has pread/pwrite, but it doesn't work with bigfile support.
d6299 2
a6300 5
	{ echo "$as_me:12701: WARNING: pread/pwrite interfaces ignored on $host_os." >&5
echo "$as_me: WARNING: pread/pwrite interfaces ignored on $host_os." >&2;};;
*)

for ac_func in pread pwrite
d6302 4
a6305 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12708: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6307 2
a6308 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12714 "configure"
d6311 1
a6311 1
    which can conflict with char $ac_func (); below.  */
a6313 3
#ifdef __cplusplus
extern "C"
#endif
d6315 5
a6319 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6326 1
a6326 1
f = $ac_func;
d6329 1
a6329 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12745: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12748: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12751: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12754: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12764: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6331 11
d6343 9
d6357 4
a6360 5
# Check for fcntl(2) to deny child process access to file descriptors.
echo "$as_me:12777: checking for fcntl/F_SETFD" >&5
echo $ECHO_N "checking for fcntl/F_SETFD... $ECHO_C" >&6
if test "${db_cv_fcntl_f_setfd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6362 2
a6363 5

if test "$cross_compiling" = yes; then
  { { echo "$as_me:12784: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d6365 2
a6366 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12789 "configure"
d6372 3
a6374 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12797: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12800: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12802: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12805: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6377 4
a6380 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_fcntl_f_setfd=no
d6382 1
a6382 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d6384 1
d6386 2
a6387 2
echo "$as_me:12817: result: $db_cv_fcntl_f_setfd" >&5
echo "${ECHO_T}$db_cv_fcntl_f_setfd" >&6
d6389 1
a6389 1
	cat >>confdefs.h <<\EOF
a6394 1
# A/UX has a broken getopt(3).
a6398 3
# Checks for system functions for which we don't have replacements.
# We require qsort(3).

d6401 4
a6404 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12837: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6406 2
a6407 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12843 "configure"
d6410 1
a6410 1
    which can conflict with char $ac_func (); below.  */
a6412 3
#ifdef __cplusplus
extern "C"
#endif
d6414 5
a6418 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6425 1
a6425 1
f = $ac_func;
d6428 19
a6446 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12874: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12877: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12880: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12883: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12893: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6448 1
a6448 1

d6450 2
a6451 3
  { { echo "$as_me:12901: error: No qsort library function." >&5
echo "$as_me: error: No qsort library function." >&2;}
   { (exit 1); exit 1; }; }
d6455 5
a6459 7
# Some versions of sprintf return a pointer to the first argument instead
# of a character count.  We assume that the return value of snprintf and
# vsprintf etc. will be the same as sprintf, and check the easy one.
echo "$as_me:12910: checking for int type sprintf return value" >&5
echo $ECHO_N "checking for int type sprintf return value... $ECHO_C" >&6
if test "${db_cv_sprintf_count+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6461 2
a6462 5

if test "$cross_compiling" = yes; then
  { { echo "$as_me:12917: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d6464 2
a6465 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12922 "configure"
d6468 3
a6470 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12927: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12930: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12932: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12935: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6473 4
a6476 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_sprintf_count=no
d6478 1
a6478 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d6480 1
d6482 2
a6483 2
echo "$as_me:12947: result: $db_cv_sprintf_count" >&5
echo "${ECHO_T}$db_cv_sprintf_count" >&6
d6485 1
a6485 1
	cat >>confdefs.h <<\EOF
d6491 9
a6499 195
# You can't build C++ with big-file support on HP-UX, the include files
# are wrong.  On Solaris 8, the <fcntl.h> included with big-file support
# is not compatible with C++.
largefile_ok=yes
case "$host_os" in
solaris2.8|hpux*)
	if test "$db_cv_cxx" = "yes"; then
{ echo "$as_me:12963: WARNING: Large file and C++ API support are incompatible on HP-UX" >&5
echo "$as_me: WARNING: Large file and C++ API support are incompatible on HP-UX" >&2;}
{ echo "$as_me:12965: WARNING: and Solaris 8; large file support has been turned off." >&5
echo "$as_me: WARNING: and Solaris 8; large file support has been turned off." >&2;}
		largefile_ok=no
	fi;;
esac
if test "$largefile_ok" = yes; then
	# Check whether --enable-largefile or --disable-largefile was given.
if test "${enable_largefile+set}" = set; then
  enableval="$enable_largefile"

fi;
if test "$enable_largefile" != no; then

  echo "$as_me:12978: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
     	 # IRIX 6.2 and later do not support large files by default,
     	 # so use the C compiler's -n32 option if that helps.
         cat >conftest.$ac_ext <<_ACEOF
#line 12990 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:13010: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13013: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13016: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13019: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
     	 CC="$CC -n32"
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:13029: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13032: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13035: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13038: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_largefile_CC=' -n32'; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
         break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
fi
echo "$as_me:13052: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi

  echo "$as_me:13058: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_file_offset_bits=no
  cat >conftest.$ac_ext <<_ACEOF
#line 13066 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13086: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13089: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13092: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13095: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 13104 "configure"
#include "confdefs.h"
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13125: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13128: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13131: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13134: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_file_offset_bits=64; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:13145: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
if test "$ac_cv_sys_file_offset_bits" != no; then

cat >>confdefs.h <<EOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
d6502 4
a6505 95
fi
rm -f conftest*
  echo "$as_me:13155: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_large_files+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_large_files=no
  cat >conftest.$ac_ext <<_ACEOF
#line 13163 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13183: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13186: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13189: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13192: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 13201 "configure"
#include "confdefs.h"
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13222: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13225: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13228: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13231: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_large_files=1; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:13242: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
if test "$ac_cv_sys_large_files" != no; then

cat >>confdefs.h <<EOF
#define _LARGE_FILES $ac_cv_sys_large_files
d6507 2
a6508 5

fi
rm -f conftest*
fi

a6510 11
# Figure out how to create shared regions.
#
# First, we look for mmap.
#
# BSD/OS has mlock(2), but it doesn't work until the 4.1 release.
#
# Nextstep (version 3.3) apparently supports mmap(2) (the mmap symbol
# is defined in the C library) but does not support munmap(2).  Don't
# try to use mmap if we can't find munmap.
#
# Ultrix has mmap(2), but it doesn't work.
d6514 1
a6514 2
	{ echo "$as_me:13270: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&5
echo "$as_me: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&2;}
d6516 1
a6516 2

for ac_func in mmap munmap
d6518 4
a6521 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:13277: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6523 2
a6524 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13283 "configure"
d6527 1
a6527 1
    which can conflict with char $ac_func (); below.  */
a6529 3
#ifdef __cplusplus
extern "C"
#endif
d6531 5
a6535 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6542 1
a6542 1
f = $ac_func;
d6545 1
a6545 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13314: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13317: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13320: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13323: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13333: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6547 11
d6559 7
d6567 2
a6568 1
  mmap_ok=no
d6573 1
a6573 2
	{ echo "$as_me:13346: WARNING: mmap(2) interface ignored on Ultrix." >&5
echo "$as_me: WARNING: mmap(2) interface ignored on Ultrix." >&2;};;
d6576 1
a6576 2

for ac_func in mlock munlock
d6578 4
a6581 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:13354: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6583 2
a6584 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13360 "configure"
d6587 1
a6587 1
    which can conflict with char $ac_func (); below.  */
a6589 3
#ifdef __cplusplus
extern "C"
#endif
d6591 5
a6595 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6602 1
a6602 1
f = $ac_func;
d6605 1
a6605 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13391: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13394: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13397: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13400: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13410: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6607 11
d6619 9
d6631 1
a6631 1
for ac_func in mmap munmap
d6633 4
a6636 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:13423: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6638 2
a6639 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13429 "configure"
d6642 1
a6642 1
    which can conflict with char $ac_func (); below.  */
a6644 3
#ifdef __cplusplus
extern "C"
#endif
d6646 5
a6650 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6657 1
a6657 1
f = $ac_func;
d6660 1
a6660 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13460: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13463: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13466: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13469: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13479: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6662 11
d6674 7
d6682 2
a6683 1
  mmap_ok=no
a6688 4
# Second, we look for shmget.
#
# SunOS has the shmget(2) interfaces, but there appears to be a missing
# #include <debug/debug.h> file, so we ignore them.
d6692 1
a6692 2
	{ echo "$as_me:13500: WARNING: shmget(2) interface ignored on SunOS." >&5
echo "$as_me: WARNING: shmget(2) interface ignored on SunOS." >&2;};;
d6695 1
a6695 2

for ac_func in shmget
d6697 4
a6700 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:13508: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6702 2
a6703 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13514 "configure"
d6706 1
a6706 1
    which can conflict with char $ac_func (); below.  */
a6708 3
#ifdef __cplusplus
extern "C"
#endif
d6710 5
a6714 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6721 1
a6721 1
f = $ac_func;
d6724 1
a6724 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13545: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13548: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13551: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13554: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13564: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6726 11
d6738 7
d6746 2
a6747 1
  shmget_ok=no
a6752 1
# We require either mmap/munmap(2) or shmget(2).
d6754 1
a6754 2
	{ echo "$as_me:13580: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
echo "$as_me: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&2;}
a6756 1
# Initial output file list.
a6760 3
# Create the db.h file -- append the global function prototypes to the
# file.  If the user has requested unique names, use the file that does
# DB_VERSION_UNIQUE_NAME substitution.
a6768 2
# Create the function prototype include files.  If the user has requested
# unique names, use the files that do DB_VERSION_UNIQUE_NAME substitution.
d6808 2
a6809 3
ac_config_files="$ac_config_files ${CREATE_LIST}"

cat >confcache <<\_ACEOF
d6812 2
a6813 3
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
d6815 8
a6822 2
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
d6824 1
a6824 6
# `ac_cv_env_foo' variables (set or unset) will be overriden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

d6830 17
a6846 25
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
        "s/'/'\\\\''/g;
    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if cmp -s $cache_file confcache; then :; else
d6848 2
a6849 2
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
d6856 2
d6862 3
a6864 4
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
d6866 1
a6866 8
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@@srcdir@@:*/:/;
s/^\([^=]*=[ 	]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ 	]*$//;
}'
d6869 2
d6873 1
d6875 5
a6879 6
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:13722: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
d6882 5
d6888 1
a6888 1
# configure, is in config.log if it exists.
d6890 2
a6891 136
debug=false
SHELL=\${CONFIG_SHELL-$SHELL}
ac_cs_invocation="\$0 \$@@"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

exec 6>&1

_ACEOF

# Files that config.status was made for.
if test -n "$ac_config_files"; then
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_headers"; then
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_links"; then
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_commands"; then
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi

cat >>$CONFIG_STATUS <<\EOF

ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number, then exit
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Report bugs to <bug-autoconf@@gnu.org>."
EOF

cat >>$CONFIG_STATUS <<EOF
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.50,
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
INSTALL="$INSTALL"
EOF

cat >>$CONFIG_STATUS <<\EOF
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
d6893 1
a6893 18
  case $1 in
  --*=*)
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    shift
    set dummy "$ac_option" "$ac_optarg" ${1+"$@@"}
    shift
    ;;
  -*);;
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_need_defaults=false;;
  esac

  case $1 in
  # Handling of the options.
EOF
cat >>$CONFIG_STATUS <<EOF
d6895 8
a6902 39
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
EOF
cat >>$CONFIG_STATUS <<\EOF
  --version | --vers* | -V )
    echo "$ac_cs_version"; exit 0 ;;
  --he | --h)
    # Conflict between --help and --header
    { { echo "$as_me:13895: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit 0 ;;
  --debug | --d* | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    shift
    CONFIG_FILES="$CONFIG_FILES $1"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    shift
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
    ac_need_defaults=false;;

  # Handling of arguments.
  '${CREATE_LIST}' ) CONFIG_FILES="$CONFIG_FILES ${CREATE_LIST}" ;;
  'db_config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS db_config.h:config.hin" ;;

  # This is an error.
  -*) { { echo "$as_me:13918: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; } ;;
  *) { { echo "$as_me:13923: error: invalid argument: $1" >&5
echo "$as_me: error: invalid argument: $1" >&2;}
   { (exit 1); exit 1; }; };;
a6903 1
  shift
d6906 2
a6907 45
exec 5>>config.log
cat >&5 << _ACEOF

## ----------------------- ##
## Running config.status.  ##
## ----------------------- ##

This file was extended by $as_me 2.50, executed with
  > $ac_cs_invocation
on `(hostname || uname -n) 2>/dev/null | sed 1q`

_ACEOF
EOF

cat >>$CONFIG_STATUS <<\EOF
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
fi

# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  trap '{ (exit $?); exit $?; }' 1 2 13 15
}

# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=$TMPDIR/cs$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   { (exit 1); exit 1; }
}
d6909 1
d6911 1
d6913 134
a7046 5
cat >>$CONFIG_STATUS <<EOF

#
# CONFIG_FILES section.
#
a7047 157
# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@@/@@@@/; s/@@,/@@@@/; s/,;t t\$/@@;t t/; /@@;t t\$/s/[\\\\&,]/\\\\&/g;
   s/@@@@/,@@/; s/@@@@/@@,/; s/@@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@@SHELL@@,$SHELL,;t t
s,@@exec_prefix@@,$exec_prefix,;t t
s,@@prefix@@,$prefix,;t t
s,@@program_transform_name@@,$program_transform_name,;t t
s,@@bindir@@,$bindir,;t t
s,@@sbindir@@,$sbindir,;t t
s,@@libexecdir@@,$libexecdir,;t t
s,@@datadir@@,$datadir,;t t
s,@@sysconfdir@@,$sysconfdir,;t t
s,@@sharedstatedir@@,$sharedstatedir,;t t
s,@@localstatedir@@,$localstatedir,;t t
s,@@libdir@@,$libdir,;t t
s,@@includedir@@,$includedir,;t t
s,@@oldincludedir@@,$oldincludedir,;t t
s,@@infodir@@,$infodir,;t t
s,@@mandir@@,$mandir,;t t
s,@@PACKAGE_NAME@@,$PACKAGE_NAME,;t t
s,@@PACKAGE_TARNAME@@,$PACKAGE_TARNAME,;t t
s,@@PACKAGE_VERSION@@,$PACKAGE_VERSION,;t t
s,@@PACKAGE_STRING@@,$PACKAGE_STRING,;t t
s,@@PACKAGE_BUGREPORT@@,$PACKAGE_BUGREPORT,;t t
s,@@ECHO_C@@,$ECHO_C,;t t
s,@@ECHO_N@@,$ECHO_N,;t t
s,@@ECHO_T@@,$ECHO_T,;t t
s,@@PATH_SEPARATOR@@,$PATH_SEPARATOR,;t t
s,@@DEFS@@,$DEFS,;t t
s,@@LIBS@@,$LIBS,;t t
s,@@build@@,$build,;t t
s,@@build_cpu@@,$build_cpu,;t t
s,@@build_vendor@@,$build_vendor,;t t
s,@@build_os@@,$build_os,;t t
s,@@host@@,$host,;t t
s,@@host_cpu@@,$host_cpu,;t t
s,@@host_vendor@@,$host_vendor,;t t
s,@@host_os@@,$host_os,;t t
s,@@ADDITIONAL_INCS@@,$ADDITIONAL_INCS,;t t
s,@@ADDITIONAL_LANG@@,$ADDITIONAL_LANG,;t t
s,@@ADDITIONAL_LIBS@@,$ADDITIONAL_LIBS,;t t
s,@@ADDITIONAL_OBJS@@,$ADDITIONAL_OBJS,;t t
s,@@ADDITIONAL_PROGS@@,$ADDITIONAL_PROGS,;t t
s,@@BUILD_TARGET@@,$BUILD_TARGET,;t t
s,@@CFLAGS@@,$CFLAGS,;t t
s,@@CONFIGURATION_ARGS@@,$CONFIGURATION_ARGS,;t t
s,@@CONFIGURATION_PATH@@,$CONFIGURATION_PATH,;t t
s,@@CPPFLAGS@@,$CPPFLAGS,;t t
s,@@CXX@@,$CXX,;t t
s,@@CXXFLAGS@@,$CXXFLAGS,;t t
s,@@DEFAULT_INSTALL@@,$DEFAULT_INSTALL,;t t
s,@@DEFAULT_LIB@@,$DEFAULT_LIB,;t t
s,@@DEFAULT_LIB_CXX@@,$DEFAULT_LIB_CXX,;t t
s,@@EMBEDIX_ECD_CXX@@,$EMBEDIX_ECD_CXX,;t t
s,@@EMBEDIX_ECD_RPC@@,$EMBEDIX_ECD_RPC,;t t
s,@@EMBEDIX_ROOT@@,$EMBEDIX_ROOT,;t t
s,@@INSTALLER@@,$INSTALLER,;t t
s,@@INSTALL_LIBS@@,$INSTALL_LIBS,;t t
s,@@INSTALL_TARGET@@,$INSTALL_TARGET,;t t
s,@@JAR@@,$JAR,;t t
s,@@JAVAC@@,$JAVAC,;t t
s,@@JAVACFLAGS@@,$JAVACFLAGS,;t t
s,@@LDFLAGS@@,$LDFLAGS,;t t
s,@@LIBJSO_LIBS@@,$LIBJSO_LIBS,;t t
s,@@LIBSO_LIBS@@,$LIBSO_LIBS,;t t
s,@@LIBTOOL@@,$LIBTOOL,;t t
s,@@LIBTSO_LIBS@@,$LIBTSO_LIBS,;t t
s,@@LIBXSO_LIBS@@,$LIBXSO_LIBS,;t t
s,@@MAKEFILE_CC@@,$MAKEFILE_CC,;t t
s,@@MAKEFILE_CCLINK@@,$MAKEFILE_CCLINK,;t t
s,@@MAKEFILE_CXX@@,$MAKEFILE_CXX,;t t
s,@@MAKEFILE_CXXLINK@@,$MAKEFILE_CXXLINK,;t t
s,@@POSTLINK@@,$POSTLINK,;t t
s,@@RPC_CLIENT_OBJS@@,$RPC_CLIENT_OBJS,;t t
s,@@RPM_POST_INSTALL@@,$RPM_POST_INSTALL,;t t
s,@@RPM_POST_UNINSTALL@@,$RPM_POST_UNINSTALL,;t t
s,@@SOFLAGS@@,$SOFLAGS,;t t
s,@@SOLINK@@,$SOLINK,;t t
s,@@SOSUFFIX@@,$SOSUFFIX,;t t
s,@@TEST_LIBS@@,$TEST_LIBS,;t t
s,@@db_cv_path_embedix_install@@,$db_cv_path_embedix_install,;t t
s,@@db_cv_path_rpm_archive@@,$db_cv_path_rpm_archive,;t t
s,@@o@@,$o,;t t
s,@@DB_VERSION_MAJOR@@,$DB_VERSION_MAJOR,;t t
s,@@DB_VERSION_MINOR@@,$DB_VERSION_MINOR,;t t
s,@@DB_VERSION_PATCH@@,$DB_VERSION_PATCH,;t t
s,@@DB_VERSION_UNIQUE_NAME@@,$DB_VERSION_UNIQUE_NAME,;t t
s,@@DB_VERSION_STRING@@,$DB_VERSION_STRING,;t t
s,@@db_cv_path_ar@@,$db_cv_path_ar,;t t
s,@@ac_ct_db_cv_path_ar@@,$ac_ct_db_cv_path_ar,;t t
s,@@db_cv_path_chmod@@,$db_cv_path_chmod,;t t
s,@@ac_ct_db_cv_path_chmod@@,$ac_ct_db_cv_path_chmod,;t t
s,@@db_cv_path_cp@@,$db_cv_path_cp,;t t
s,@@ac_ct_db_cv_path_cp@@,$ac_ct_db_cv_path_cp,;t t
s,@@path_ldconfig@@,$path_ldconfig,;t t
s,@@ac_ct_path_ldconfig@@,$ac_ct_path_ldconfig,;t t
s,@@db_cv_path_ldconfig@@,$db_cv_path_ldconfig,;t t
s,@@db_cv_path_ln@@,$db_cv_path_ln,;t t
s,@@ac_ct_db_cv_path_ln@@,$ac_ct_db_cv_path_ln,;t t
s,@@db_cv_path_mkdir@@,$db_cv_path_mkdir,;t t
s,@@ac_ct_db_cv_path_mkdir@@,$ac_ct_db_cv_path_mkdir,;t t
s,@@path_ranlib@@,$path_ranlib,;t t
s,@@ac_ct_path_ranlib@@,$ac_ct_path_ranlib,;t t
s,@@db_cv_path_ranlib@@,$db_cv_path_ranlib,;t t
s,@@db_cv_path_rm@@,$db_cv_path_rm,;t t
s,@@ac_ct_db_cv_path_rm@@,$ac_ct_db_cv_path_rm,;t t
s,@@db_cv_path_rpm@@,$db_cv_path_rpm,;t t
s,@@ac_ct_db_cv_path_rpm@@,$ac_ct_db_cv_path_rpm,;t t
s,@@path_sh@@,$path_sh,;t t
s,@@ac_ct_path_sh@@,$ac_ct_path_sh,;t t
s,@@db_cv_path_sh@@,$db_cv_path_sh,;t t
s,@@path_strip@@,$path_strip,;t t
s,@@ac_ct_path_strip@@,$ac_ct_path_strip,;t t
s,@@db_cv_path_strip@@,$db_cv_path_strip,;t t
s,@@db_cv_path_kill@@,$db_cv_path_kill,;t t
s,@@ac_ct_db_cv_path_kill@@,$ac_ct_db_cv_path_kill,;t t
s,@@INSTALL_PROGRAM@@,$INSTALL_PROGRAM,;t t
s,@@INSTALL_SCRIPT@@,$INSTALL_SCRIPT,;t t
s,@@INSTALL_DATA@@,$INSTALL_DATA,;t t
s,@@CC@@,$CC,;t t
s,@@ac_ct_CC@@,$ac_ct_CC,;t t
s,@@EXEEXT@@,$EXEEXT,;t t
s,@@OBJEXT@@,$OBJEXT,;t t
s,@@CCC@@,$CCC,;t t
s,@@ac_ct_CCC@@,$ac_ct_CCC,;t t
s,@@ac_ct_CXX@@,$ac_ct_CXX,;t t
s,@@LN_S@@,$LN_S,;t t
s,@@ECHO@@,$ECHO,;t t
s,@@RANLIB@@,$RANLIB,;t t
s,@@ac_ct_RANLIB@@,$ac_ct_RANLIB,;t t
s,@@STRIP@@,$STRIP,;t t
s,@@ac_ct_STRIP@@,$ac_ct_STRIP,;t t
s,@@CPP@@,$CPP,;t t
s,@@ac_ct_JAVAC@@,$ac_ct_JAVAC,;t t
s,@@ac_ct_JAR@@,$ac_ct_JAR,;t t
s,@@JAVACABS@@,$JAVACABS,;t t
s,@@TCFLAGS@@,$TCFLAGS,;t t
s,@@TCL_BIN_DIR@@,$TCL_BIN_DIR,;t t
s,@@TCL_SRC_DIR@@,$TCL_SRC_DIR,;t t
s,@@TCL_LIB_FILE@@,$TCL_LIB_FILE,;t t
s,@@TCL_TCLSH@@,$TCL_TCLSH,;t t
s,@@u_char_decl@@,$u_char_decl,;t t
s,@@u_short_decl@@,$u_short_decl,;t t
s,@@u_int_decl@@,$u_int_decl,;t t
s,@@u_long_decl@@,$u_long_decl,;t t
s,@@u_int8_decl@@,$u_int8_decl,;t t
s,@@u_int16_decl@@,$u_int16_decl,;t t
s,@@int16_decl@@,$int16_decl,;t t
s,@@u_int32_decl@@,$u_int32_decl,;t t
s,@@int32_decl@@,$int32_decl,;t t
s,@@ssize_t_decl@@,$ssize_t_decl,;t t
s,@@db_align_t_decl@@,$db_align_t_decl,;t t
s,@@db_alignp_t_decl@@,$db_alignp_t_decl,;t t
s,@@LIBOBJS@@,$LIBOBJS,;t t
d7049 1
d7051 1
a7051 1
EOF
d7053 20
a7072 17
  cat >>$CONFIG_STATUS <<\EOF
  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # Line after last line for current file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
d7074 1
a7074 14
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
d7076 3
a7078 3
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
d7080 5
a7084 1
fi # test -n "$CONFIG_FILES"
d7086 3
d7090 2
a7091 2
cat >>$CONFIG_STATUS <<\EOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
d7093 4
a7096 8
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
d7099 4
a7102 12
  # Compute @@srcdir@@, @@top_srcdir@@, and @@INSTALL@@ for subdirectories.
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d7104 3
a7106 17
    { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
d7108 1
a7108 1
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
d7113 5
a7117 10
  case $srcdir in
  .)  ac_srcdir=.
      if test -z "$ac_dots"; then
         ac_top_srcdir=.
      else
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
      fi ;;
  [\\/]* | ?:[\\/]* )
      ac_srcdir=$srcdir$ac_dir_suffix;
      ac_top_srcdir=$srcdir ;;
d7119 2
a7120 2
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_dots$srcdir ;;
d7123 3
a7125 3
  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_dots$INSTALL ;;
d7128 8
a7135 62
  if test x"$ac_file" != x-; then
    { echo "$as_me:14255: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    rm -f "$ac_file"
  fi
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  configure_input="Generated automatically from `echo $ac_file_in |
                                                 sed 's,.*/,,'` by configure."

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:14273: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:14286: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
EOF
cat >>$CONFIG_STATUS <<EOF
  sed "$ac_vpsub
$extrasub
EOF
cat >>$CONFIG_STATUS <<\EOF
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s,@@configure_input@@,$configure_input,;t t
s,@@srcdir@@,$ac_srcdir,;t t
s,@@top_srcdir@@,$ac_top_srcdir,;t t
s,@@INSTALL@@,$ac_INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi

done
EOF
cat >>$CONFIG_STATUS <<\EOF
d7137 9
a7145 3
#
# CONFIG_HEADER section.
#
d7151 7
a7157 7
ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='[ 	].*$,\1#\2'
ac_dC=' '
ac_dD=',;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='$,\1#\2define\3'
d7159 6
a7164 1
ac_uD=',;t'
d7166 8
a7173 1
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
d7175 4
a7178 8
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
d7181 1
a7181 2
  test x"$ac_file" != x- && { echo "$as_me:14347: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
d7183 3
a7185 29
  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:14358: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:14371: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
  # Remove the trailing spaces.
  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
d7189 14
a7202 30
# Transform confdefs.h into two sed scripts, `conftest.defines' and
# `conftest.undefs', that substitutes the proper values into
# config.h.in to produce config.h.  The first handles `#define'
# templates, and the second `#undef' templates.
# And first: Protect against being on the right side of a sed subst in
# config.status.  Protect against being in an unquoted here document
# in config.status.
rm -f conftest.defines conftest.undefs
# Using a here document instead of a string reduces the quoting nightmare.
# Putting comments in sed scripts is not portable.
#
# `end' is used to avoid that the second main sed command (meant for
# 0-ary CPP macros) applies to n-ary macro definitions.
# See the Autoconf documentation for `clear'.
cat >confdef2sed.sed <<\EOF
s/[\\&,]/\\&/g
s,[\\$`],\\&,g
t clear
: clear
s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
t end
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
: end
EOF
# If some macros were called several times there might be several times
# the same #defines, which is useless.  Nevertheless, we may not want to
# sort them, since we want the *last* AC-DEFINE to be honored.
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
rm -f confdef2sed.sed
d7207 2
a7208 2
cat >>conftest.undefs <<\EOF
s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
d7211 3
a7213 33
# Break up conftest.defines because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
echo '  :' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.defines >/dev/null
do
  # Write a limited-size here document to $tmp/defines.sed.
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#define' lines.
  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  echo 'CEOF
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  rm -f conftest.defines
  mv conftest.tail conftest.defines
done
rm -f conftest.defines
echo '  fi # egrep' >>$CONFIG_STATUS
echo >>$CONFIG_STATUS

# Break up conftest.undefs because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
d7215 1
a7215 1
while grep . conftest.undefs >/dev/null
d7217 6
a7222 8
  # Write a limited-size here document to $tmp/undefs.sed.
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#undef'
  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
d7224 18
a7241 16
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  rm -f conftest.undefs
  mv conftest.tail conftest.undefs
done
rm -f conftest.undefs

cat >>$CONFIG_STATUS <<\EOF
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  if test x"$ac_file" = x-; then
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
d7243 2
a7244 20
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
  if test x"$ac_file" != x-; then
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
      { echo "$as_me:14488: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d7246 2
a7247 19
        { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

      fi
      rm -f $ac_file
      mv $tmp/config.h $ac_file
d7249 2
a7250 3
  else
    cat $tmp/config.h
    rm -f $tmp/config.h
d7252 2
a7253 1
done
d7255 1
d7257 2
a7258 1
cat >>$CONFIG_STATUS <<\EOF
d7260 1
a7260 1
{ (exit 0); exit 0; }
d7263 2
a7264 1
ac_clean_files=$ac_clean_files_save
a7265 17
# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi
@


1.1.1.2.2.2
log
@Update to db-4.0.14.
@
text
@d3 1
a3 1
# Generated by Autoconf 2.52.
a17 1
  PATH_SEPARATOR=$lt_cv_sys_path_separator
d83 1
a83 1
  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
a164 13
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

d249 10
d264 2
a265 6
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
d279 4
a282 3
#endif
#if HAVE_STRINGS_H
# include <strings.h>
a285 4
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
d381 1
a381 1
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
d390 1
a390 1
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
d572 1
a572 1
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
d585 1
a585 1
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
d617 1
a617 1
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
d627 1
a627 1
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
a641 11
for ac_var in exec_prefix prefix
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

# Be sure to have absolute paths.
d643 2
a644 1
              localstatedir libdir includedir oldincludedir infodir mandir
d649 1
d835 2
a836 2
  --enable-shared=PKGS  build shared libraries default=yes
  --enable-static=PKGS  build static libraries default=yes
d921 1
a921 1
generated by GNU Autoconf 2.52.  Invocation command line was
d1000 1
a1000 1
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
d1004 1
a1004 1
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
d1025 1
a1025 1
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
d1045 1
a1045 1
    { echo "$as_me:1065: loading site script $ac_site_file" >&5
d1056 1
a1056 1
    { echo "$as_me:1076: loading cache $cache_file" >&5
d1064 1
a1064 1
  { echo "$as_me:1084: creating cache $cache_file" >&5
d1071 1
a1071 1
ac_cache_corrupted=false
d1080 3
a1082 3
      { echo "$as_me:1100: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
d1084 3
a1086 3
      { echo "$as_me:1104: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
d1090 7
a1096 7
        { echo "$as_me:1110: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:1112:   former value:  $ac_old_val" >&5
echo "$as_me:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:1114:   current value: $ac_new_val" >&5
echo "$as_me:   current value: $ac_new_val" >&2;}
        ac_cache_corrupted=:
a1098 12
  # Pass precious variables to config.status.  It doesn't matter if
  # we pass some twice (in addition to the command line arguments).
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
      ac_configure_args="$ac_configure_args '$ac_arg'"
      ;;
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
       ;;
    esac
  fi
d1100 5
a1104 6
if $ac_cache_corrupted; then
  { echo "$as_me:1133: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { echo "$as_me:1135: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; }
d1122 1
a1122 1
if { (echo "$as_me:1155: PATH=\".;.\"; conftest.sh") >&5
d1125 1
a1125 1
  echo "$as_me:1158: \$? = $ac_status" >&5
d1154 1
a1154 1
  { { echo "$as_me:1187: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
d1164 1
a1164 1
  { { echo "$as_me:1197: error: cannot run $ac_config_sub" >&5
d1168 1
a1168 1
echo "$as_me:1201: checking build system type" >&5
d1177 1
a1177 1
  { { echo "$as_me:1210: error: cannot guess build type; you must specify one" >&5
d1181 1
a1181 1
  { { echo "$as_me:1214: error: $ac_config_sub $ac_cv_build_alias failed." >&5
d1186 1
a1186 1
echo "$as_me:1219: result: $ac_cv_build" >&5
d1193 1
a1193 1
echo "$as_me:1226: checking host system type" >&5
d1202 1
a1202 1
  { { echo "$as_me:1235: error: $ac_config_sub $ac_cv_host_alias failed" >&5
d1207 1
a1207 1
echo "$as_me:1240: result: $ac_cv_host" >&5
d1214 10
d1225 1
a1225 1
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
d1228 4
a1231 8
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
# Double any \ or $.  echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm conftest.sed
d1234 1
a1234 1
echo "$as_me:1261: checking if building in the top-level directory" >&5
d1236 1
a1236 1
 test -d db_archive  && { { echo "$as_me:1263: error:
d1241 1
a1241 1
echo "$as_me:1268: result: no" >&5
d1255 1
a1255 1
DB_VERSION_MAJOR=4
d1257 1
a1257 1
DB_VERSION_MINOR=0
d1259 1
a1259 1
DB_VERSION_PATCH=14
d1261 1
a1261 1
DB_VERSION_UNIQUE_NAME=_4000
d1263 1
a1263 1
DB_VERSION_STRING="\"Sleepycat Software: Berkeley DB 4.0.14: (November 18, 2001)\""
d1274 1
a1274 1
  { { echo "$as_me:1301: error: --enable-bigfile no longer supported, use --enable-largefile" >&5
d1279 1
a1279 1
echo "$as_me:1306: checking if --enable-compat185 option specified" >&5
d1288 1
a1288 1
echo "$as_me:1315: result: $db_cv_compat185" >&5
d1291 1
a1291 1
echo "$as_me:1318: checking if --enable-cxx option specified" >&5
d1300 1
a1300 1
echo "$as_me:1327: result: $db_cv_cxx" >&5
d1303 1
a1303 1
echo "$as_me:1330: checking if --enable-debug option specified" >&5
d1312 1
a1312 1
echo "$as_me:1339: result: $db_cv_debug" >&5
d1315 1
a1315 1
echo "$as_me:1342: checking if --enable-debug_rop option specified" >&5
d1324 1
a1324 1
echo "$as_me:1351: result: $db_cv_debug_rop" >&5
d1327 1
a1327 1
echo "$as_me:1354: checking if --enable-debug_wop option specified" >&5
d1336 1
a1336 1
echo "$as_me:1363: result: $db_cv_debug_wop" >&5
d1339 1
a1339 1
echo "$as_me:1366: checking if --enable-diagnostic option specified" >&5
d1348 1
a1348 1
echo "$as_me:1375: result: $db_cv_diagnostic" >&5
d1351 1
a1351 1
echo "$as_me:1378: checking if --enable-dump185 option specified" >&5
d1360 1
a1360 1
echo "$as_me:1387: result: $db_cv_dump185" >&5
d1363 1
a1363 1
echo "$as_me:1390: checking if --enable-java option specified" >&5
d1372 1
a1372 1
echo "$as_me:1399: result: $db_cv_java" >&5
d1375 1
a1375 1
echo "$as_me:1402: checking if --enable-posixmutexes option specified" >&5
d1384 1
a1384 1
echo "$as_me:1411: result: $db_cv_posixmutexes" >&5
d1387 1
a1387 1
echo "$as_me:1414: checking if --enable-rpc option specified" >&5
d1396 1
a1396 1
echo "$as_me:1423: result: $db_cv_rpc" >&5
d1399 1
a1399 1
echo "$as_me:1426: checking if --enable-tcl option specified" >&5
d1408 1
a1408 1
echo "$as_me:1435: result: $db_cv_tcl" >&5
d1411 1
a1411 1
echo "$as_me:1438: checking if --enable-test option specified" >&5
d1420 1
a1420 1
echo "$as_me:1447: result: $db_cv_test" >&5
d1423 1
a1423 1
echo "$as_me:1450: checking if --enable-uimutexes option specified" >&5
d1432 1
a1432 1
echo "$as_me:1459: result: $db_cv_uimutexes" >&5
d1435 1
a1435 1
echo "$as_me:1462: checking if --enable-umrw option specified" >&5
d1444 1
a1444 1
echo "$as_me:1471: result: $db_cv_umrw" >&5
d1447 1
a1447 1
echo "$as_me:1474: checking if --with-embedix=DIR option specified" >&5
d1459 1
a1459 1
	echo "$as_me:1486: result: $with_embedix" >&5
d1468 1
a1468 1
	echo "$as_me:1495: result: $db_cv_path_embedix_install" >&5
d1472 1
a1472 1
echo "$as_me:1499: checking if --with-rpm=DIR option specified" >&5
d1486 1
a1486 1
		{ { echo "$as_me:1513: error: --with-rpm requires a directory argument" >&5
d1493 1
a1493 1
echo "$as_me:1520: result: $with_rpm" >&5
d1496 1
a1496 1
echo "$as_me:1523: checking if --with-tcl=DIR option specified" >&5
d1506 1
a1506 1
echo "$as_me:1533: result: $with_tclconfig" >&5
d1512 1
a1512 1
echo "$as_me:1539: checking if --with-uniquename=NAME option specified" >&5
d1524 1
a1524 1
	echo "$as_me:1551: result: $with_uniquename" >&5
d1531 1
a1531 1
	echo "$as_me:1558: result: $DB_VERSION_UNIQUE_NAME" >&5
d1538 1
a1538 1
		{ { echo "$as_me:1565: error: --with-embedix requires --with-rpm" >&5
d1547 1
a1547 1
		{ { echo "$as_me:1574: error: --enable-test requires --enable-tcl" >&5
d1590 1
a1590 1
echo "$as_me:1617: checking for $ac_word" >&5
d1605 1
a1605 1
echo "$as_me:1632: found $ac_dir/$ac_word" >&5
d1613 1
a1613 1
  echo "$as_me:1640: result: $db_cv_path_ar" >&5
d1616 1
a1616 1
  echo "$as_me:1643: result: no" >&5
d1625 1
a1625 1
echo "$as_me:1652: checking for $ac_word" >&5
d1640 1
a1640 1
echo "$as_me:1667: found $ac_dir/$ac_word" >&5
d1649 1
a1649 1
  echo "$as_me:1676: result: $ac_ct_db_cv_path_ar" >&5
d1652 1
a1652 1
  echo "$as_me:1679: result: no" >&5
d1662 1
a1662 1
	{ { echo "$as_me:1689: error: No ar utility found." >&5
d1670 1
a1670 1
echo "$as_me:1697: checking for $ac_word" >&5
d1685 1
a1685 1
echo "$as_me:1712: found $ac_dir/$ac_word" >&5
d1693 1
a1693 1
  echo "$as_me:1720: result: $db_cv_path_chmod" >&5
d1696 1
a1696 1
  echo "$as_me:1723: result: no" >&5
d1705 1
a1705 1
echo "$as_me:1732: checking for $ac_word" >&5
d1720 1
a1720 1
echo "$as_me:1747: found $ac_dir/$ac_word" >&5
d1729 1
a1729 1
  echo "$as_me:1756: result: $ac_ct_db_cv_path_chmod" >&5
d1732 1
a1732 1
  echo "$as_me:1759: result: no" >&5
d1742 1
a1742 1
	{ { echo "$as_me:1769: error: No chmod utility found." >&5
d1750 1
a1750 1
echo "$as_me:1777: checking for $ac_word" >&5
d1765 1
a1765 1
echo "$as_me:1792: found $ac_dir/$ac_word" >&5
d1773 1
a1773 1
  echo "$as_me:1800: result: $db_cv_path_cp" >&5
d1776 1
a1776 1
  echo "$as_me:1803: result: no" >&5
d1785 1
a1785 1
echo "$as_me:1812: checking for $ac_word" >&5
d1800 1
a1800 1
echo "$as_me:1827: found $ac_dir/$ac_word" >&5
d1809 1
a1809 1
  echo "$as_me:1836: result: $ac_ct_db_cv_path_cp" >&5
d1812 1
a1812 1
  echo "$as_me:1839: result: no" >&5
d1822 1
a1822 1
	{ { echo "$as_me:1849: error: No cp utility found." >&5
d1831 1
a1831 1
echo "$as_me:1858: checking for $ac_word" >&5
d1846 1
a1846 1
echo "$as_me:1873: found $ac_dir/$ac_word" >&5
d1854 1
a1854 1
  echo "$as_me:1881: result: $path_ldconfig" >&5
d1857 1
a1857 1
  echo "$as_me:1884: result: no" >&5
d1866 1
a1866 1
echo "$as_me:1893: checking for $ac_word" >&5
d1881 1
a1881 1
echo "$as_me:1908: found $ac_dir/$ac_word" >&5
d1890 1
a1890 1
  echo "$as_me:1917: result: $ac_ct_path_ldconfig" >&5
d1893 1
a1893 1
  echo "$as_me:1920: result: no" >&5
d1904 1
a1904 1
echo "$as_me:1931: checking for $ac_word" >&5
d1921 1
a1921 1
   echo "$as_me:1948: found $ac_dir/$ac_word" >&5
d1933 1
a1933 1
  echo "$as_me:1960: result: $db_cv_path_ldconfig" >&5
d1936 1
a1936 1
  echo "$as_me:1963: result: no" >&5
d1949 1
a1949 1
echo "$as_me:1976: checking for $ac_word" >&5
d1964 1
a1964 1
echo "$as_me:1991: found $ac_dir/$ac_word" >&5
d1972 1
a1972 1
  echo "$as_me:1999: result: $db_cv_path_ln" >&5
d1975 1
a1975 1
  echo "$as_me:2002: result: no" >&5
d1984 1
a1984 1
echo "$as_me:2011: checking for $ac_word" >&5
d1999 1
a1999 1
echo "$as_me:2026: found $ac_dir/$ac_word" >&5
d2008 1
a2008 1
  echo "$as_me:2035: result: $ac_ct_db_cv_path_ln" >&5
d2011 1
a2011 1
  echo "$as_me:2038: result: no" >&5
d2021 1
a2021 1
	{ { echo "$as_me:2048: error: No ln utility found." >&5
d2029 1
a2029 1
echo "$as_me:2056: checking for $ac_word" >&5
d2044 1
a2044 1
echo "$as_me:2071: found $ac_dir/$ac_word" >&5
d2052 1
a2052 1
  echo "$as_me:2079: result: $db_cv_path_mkdir" >&5
d2055 1
a2055 1
  echo "$as_me:2082: result: no" >&5
d2064 1
a2064 1
echo "$as_me:2091: checking for $ac_word" >&5
d2079 1
a2079 1
echo "$as_me:2106: found $ac_dir/$ac_word" >&5
d2088 1
a2088 1
  echo "$as_me:2115: result: $ac_ct_db_cv_path_mkdir" >&5
d2091 1
a2091 1
  echo "$as_me:2118: result: no" >&5
d2101 1
a2101 1
	{ { echo "$as_me:2128: error: No mkdir utility found." >&5
d2111 1
a2111 1
echo "$as_me:2138: checking for $ac_word" >&5
d2126 1
a2126 1
echo "$as_me:2153: found $ac_dir/$ac_word" >&5
d2134 1
a2134 1
  echo "$as_me:2161: result: $path_ranlib" >&5
d2137 1
a2137 1
  echo "$as_me:2164: result: no" >&5
d2146 1
a2146 1
echo "$as_me:2173: checking for $ac_word" >&5
d2161 1
a2161 1
echo "$as_me:2188: found $ac_dir/$ac_word" >&5
d2170 1
a2170 1
  echo "$as_me:2197: result: $ac_ct_path_ranlib" >&5
d2173 1
a2173 1
  echo "$as_me:2200: result: no" >&5
d2184 1
a2184 1
echo "$as_me:2211: checking for $ac_word" >&5
d2201 1
a2201 1
   echo "$as_me:2228: found $ac_dir/$ac_word" >&5
d2213 1
a2213 1
  echo "$as_me:2240: result: $db_cv_path_ranlib" >&5
d2216 1
a2216 1
  echo "$as_me:2243: result: no" >&5
d2223 1
a2223 1
echo "$as_me:2250: checking for $ac_word" >&5
d2238 1
a2238 1
echo "$as_me:2265: found $ac_dir/$ac_word" >&5
d2246 1
a2246 1
  echo "$as_me:2273: result: $db_cv_path_rm" >&5
d2249 1
a2249 1
  echo "$as_me:2276: result: no" >&5
d2258 1
a2258 1
echo "$as_me:2285: checking for $ac_word" >&5
d2273 1
a2273 1
echo "$as_me:2300: found $ac_dir/$ac_word" >&5
d2282 1
a2282 1
  echo "$as_me:2309: result: $ac_ct_db_cv_path_rm" >&5
d2285 1
a2285 1
  echo "$as_me:2312: result: no" >&5
d2295 1
a2295 1
	{ { echo "$as_me:2322: error: No rm utility found." >&5
d2304 1
a2304 1
echo "$as_me:2331: checking for $ac_word" >&5
d2319 1
a2319 1
echo "$as_me:2346: found $ac_dir/$ac_word" >&5
d2327 1
a2327 1
  echo "$as_me:2354: result: $db_cv_path_rpm" >&5
d2330 1
a2330 1
  echo "$as_me:2357: result: no" >&5
d2339 1
a2339 1
echo "$as_me:2366: checking for $ac_word" >&5
d2354 1
a2354 1
echo "$as_me:2381: found $ac_dir/$ac_word" >&5
d2363 1
a2363 1
  echo "$as_me:2390: result: $ac_ct_db_cv_path_rpm" >&5
d2366 1
a2366 1
  echo "$as_me:2393: result: no" >&5
d2376 1
a2376 1
		{ { echo "$as_me:2403: error: No rpm utility found." >&5
d2387 1
a2387 1
echo "$as_me:2414: checking for $ac_word" >&5
d2402 1
a2402 1
echo "$as_me:2429: found $ac_dir/$ac_word" >&5
d2410 1
a2410 1
  echo "$as_me:2437: result: $path_sh" >&5
d2413 1
a2413 1
  echo "$as_me:2440: result: no" >&5
d2422 1
a2422 1
echo "$as_me:2449: checking for $ac_word" >&5
d2437 1
a2437 1
echo "$as_me:2464: found $ac_dir/$ac_word" >&5
d2446 1
a2446 1
  echo "$as_me:2473: result: $ac_ct_path_sh" >&5
d2449 1
a2449 1
  echo "$as_me:2476: result: no" >&5
d2460 1
a2460 1
echo "$as_me:2487: checking for $ac_word" >&5
d2477 1
a2477 1
   echo "$as_me:2504: found $ac_dir/$ac_word" >&5
d2489 1
a2489 1
  echo "$as_me:2516: result: $db_cv_path_sh" >&5
d2492 1
a2492 1
  echo "$as_me:2519: result: no" >&5
d2497 1
a2497 1
	{ { echo "$as_me:2524: error: No sh utility found." >&5
d2502 3
a2504 5
# Don't strip the binaries if --enable-debug was specified.
if test "$db_cv_debug" = yes; then
	db_cv_path_strip=debug_build_no_strip
else
	if test -n "$ac_tool_prefix"; then
d2507 1
a2507 1
echo "$as_me:2536: checking for $ac_word" >&5
d2522 1
a2522 1
echo "$as_me:2551: found $ac_dir/$ac_word" >&5
d2530 1
a2530 1
  echo "$as_me:2559: result: $path_strip" >&5
d2533 1
a2533 1
  echo "$as_me:2562: result: no" >&5
d2542 1
a2542 1
echo "$as_me:2571: checking for $ac_word" >&5
d2557 1
a2557 1
echo "$as_me:2586: found $ac_dir/$ac_word" >&5
d2566 1
a2566 1
  echo "$as_me:2595: result: $ac_ct_path_strip" >&5
d2569 1
a2569 1
  echo "$as_me:2598: result: no" >&5
d2578 1
a2578 1
	# Extract the first word of "$path_strip", so it can be a program name with args.
d2580 1
a2580 1
echo "$as_me:2609: checking for $ac_word" >&5
d2597 1
a2597 1
   echo "$as_me:2626: found $ac_dir/$ac_word" >&5
d2609 1
a2609 1
  echo "$as_me:2638: result: $db_cv_path_strip" >&5
d2612 1
a2612 1
  echo "$as_me:2641: result: no" >&5
d2616 4
d2626 1
a2626 1
echo "$as_me:2651: checking for $ac_word" >&5
d2641 1
a2641 1
echo "$as_me:2666: found $ac_dir/$ac_word" >&5
d2649 1
a2649 1
  echo "$as_me:2674: result: $db_cv_path_kill" >&5
d2652 1
a2652 1
  echo "$as_me:2677: result: no" >&5
d2661 1
a2661 1
echo "$as_me:2686: checking for $ac_word" >&5
d2676 1
a2676 1
echo "$as_me:2701: found $ac_dir/$ac_word" >&5
d2685 1
a2685 1
  echo "$as_me:2710: result: $ac_ct_db_cv_path_kill" >&5
d2688 1
a2688 1
  echo "$as_me:2713: result: no" >&5
d2698 1
a2698 1
		{ { echo "$as_me:2723: error: No kill utility found." >&5
d2716 1
a2716 1
echo "$as_me:2741: checking for a BSD compatible install" >&5
d2765 1
a2765 1
echo "$as_me:2790: result: $INSTALL" >&5
d2811 20
a2830 27
aix4.3.1*|aix4.3.2*)
	optimize_def="-O2"
	CC=${CC-"xlc_r"}
	CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE";;
aix4.3.3*)
	optimize_def="-O2"
	CC=${CC-"xlc_r"}
	CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
	LDFLAGS="$LDFLAGS -pthread";;
bsdi3*)	optimize_def="-O2"
	CC=${CC-"shlicc2"}
	LIBS="$LIBS -lipc";;
bsdi*)	optimize_def="-O2";;
freebsd*)
	optimize_def="-O2"
	CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
	LDFLAGS="$LDFLAGS -pthread";;
hpux*)	CPPFLAGS="$CPPFLAGS -D_REENTRANT";;
irix*)	optimize_def="-O2"
	CPPFLAGS="$CPPFLAGS -D_SGI_MP_SOURCE";;
linux*)	optimize_def="-O2"
	CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_REENTRANT";;
mpeix*)	CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE -D_SOCKET_SOURCE"
	LIBS="$LIBS -lsocket -lsvipc";;
osf*)	CPPFLAGS="$CPPFLAGS -D_REENTRANT"
	LDFLAGS="$LDFLAGS -pthread";;
*qnx)	cat >>confdefs.h <<\EOF
d2835 5
a2839 7
sco3.2v4*)
	CC=${CC-"cc -belf"}
	LIBS="$LIBS -lsocket -lnsl_s";;
sco*)	CC=${CC-"cc -belf"}
	LIBS="$LIBS -lsocket -lnsl";;
solaris*)
	CPPFLAGS="$CPPFLAGS -D_REENTRANT";;
d2868 1
a2868 1
echo "$as_me:2902: checking for $ac_word" >&5
d2883 1
a2883 1
echo "$as_me:2917: found $ac_dir/$ac_word" >&5
d2891 1
a2891 1
  echo "$as_me:2925: result: $CC" >&5
d2894 1
a2894 1
  echo "$as_me:2928: result: no" >&5
d2903 1
a2903 1
echo "$as_me:2937: checking for $ac_word" >&5
d2918 1
a2918 1
echo "$as_me:2952: found $ac_dir/$ac_word" >&5
d2926 1
a2926 1
  echo "$as_me:2960: result: $ac_ct_CC" >&5
d2929 1
a2929 1
  echo "$as_me:2963: result: no" >&5
d2941 1
a2941 1
echo "$as_me:2975: checking for $ac_word" >&5
d2956 1
a2956 1
echo "$as_me:2990: found $ac_dir/$ac_word" >&5
d2964 1
a2964 1
  echo "$as_me:2998: result: $CC" >&5
d2967 1
a2967 1
  echo "$as_me:3001: result: no" >&5
d2976 1
a2976 1
echo "$as_me:3010: checking for $ac_word" >&5
d2991 1
a2991 1
echo "$as_me:3025: found $ac_dir/$ac_word" >&5
d2999 1
a2999 1
  echo "$as_me:3033: result: $ac_ct_CC" >&5
d3002 1
a3002 1
  echo "$as_me:3036: result: no" >&5
d3019 1
a3019 1
echo "$as_me:3053: checking for $ac_word" >&5
d3034 1
a3034 1
echo "$as_me:3068: found $ac_dir/$ac_word" >&5
d3042 1
a3042 1
  echo "$as_me:3076: result: $CC" >&5
d3045 1
a3045 1
  echo "$as_me:3079: result: no" >&5
d3054 1
a3054 1
echo "$as_me:3088: checking for $ac_word" >&5
d3069 1
a3069 1
echo "$as_me:3103: found $ac_dir/$ac_word" >&5
d3077 1
a3077 1
  echo "$as_me:3111: result: $ac_ct_CC" >&5
d3080 1
a3080 1
  echo "$as_me:3114: result: no" >&5
d3093 1
a3093 1
echo "$as_me:3127: checking for $ac_word" >&5
d3108 1
a3108 1
echo "$as_me:3142: found $ac_dir/$ac_word" >&5
d3116 1
a3116 1
  echo "$as_me:3150: result: $CC" >&5
d3119 1
a3119 1
  echo "$as_me:3153: result: no" >&5
d3128 1
a3128 1
echo "$as_me:3162: checking for $ac_word" >&5
d3143 1
a3143 1
echo "$as_me:3177: found $ac_dir/$ac_word" >&5
d3151 1
a3151 1
  echo "$as_me:3185: result: $ac_ct_CC" >&5
d3154 1
a3154 1
  echo "$as_me:3188: result: no" >&5
d3167 1
a3167 1
echo "$as_me:3201: checking for $ac_word" >&5
d3187 1
a3187 1
echo "$as_me:3221: found $ac_dir/$ac_word" >&5
d3209 1
a3209 1
  echo "$as_me:3243: result: $CC" >&5
d3212 1
a3212 1
  echo "$as_me:3246: result: no" >&5
d3223 1
a3223 1
echo "$as_me:3257: checking for $ac_word" >&5
d3238 1
a3238 1
echo "$as_me:3272: found $ac_dir/$ac_word" >&5
d3246 1
a3246 1
  echo "$as_me:3280: result: $CC" >&5
d3249 1
a3249 1
  echo "$as_me:3283: result: no" >&5
d3262 1
a3262 1
echo "$as_me:3296: checking for $ac_word" >&5
d3277 1
a3277 1
echo "$as_me:3311: found $ac_dir/$ac_word" >&5
d3285 1
a3285 1
  echo "$as_me:3319: result: $ac_ct_CC" >&5
d3288 1
a3288 1
  echo "$as_me:3322: result: no" >&5
d3300 1
a3300 1
test -z "$CC" && { { echo "$as_me:3334: error: no acceptable cc found in \$PATH" >&5
a3303 20
# Provide some information about the compiler.
echo "$as_me:3339:" \
     "checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:3342: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:3345: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:3347: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:3350: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:3352: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:3355: \$? = $ac_status" >&5
  (exit $ac_status); }

d3305 1
a3305 1
#line 3359 "configure"
d3319 1
a3319 1
# It will help us diagnose broken compilers, and finding out an intuition
d3321 1
a3321 1
echo "$as_me:3375: checking for C compiler default output" >&5
d3324 1
a3324 1
if { (eval echo "$as_me:3378: \"$ac_link_default\"") >&5
d3327 1
a3327 1
  echo "$as_me:3381: \$? = $ac_status" >&5
d3329 1
a3329 6
  # Find the output, starting from the most likely.  This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
                ls a.out conftest 2>/dev/null;
                ls a.* conftest.* 2>/dev/null`; do
a3335 1
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
d3344 1
a3344 1
{ { echo "$as_me:3404: error: C compiler cannot create executables" >&5
d3350 1
a3350 1
echo "$as_me:3410: result: $ac_file" >&5
d3355 1
a3355 1
echo "$as_me:3415: checking whether the C compiler works" >&5
d3361 1
a3361 1
  { (eval echo "$as_me:3421: \"$ac_try\"") >&5
d3364 1
a3364 1
  echo "$as_me:3424: \$? = $ac_status" >&5
d3371 1
a3371 1
	{ { echo "$as_me:3431: error: cannot run C compiled programs.
d3379 1
a3379 1
echo "$as_me:3439: result: yes" >&5
d3386 1
a3386 1
echo "$as_me:3446: checking whether we are cross compiling" >&5
d3388 1
a3388 1
echo "$as_me:3448: result: $cross_compiling" >&5
d3391 1
a3391 1
echo "$as_me:3451: checking for executable suffix" >&5
d3393 1
a3393 1
if { (eval echo "$as_me:3453: \"$ac_link\"") >&5
d3396 1
a3396 1
  echo "$as_me:3456: \$? = $ac_status" >&5
d3412 1
a3412 1
  { { echo "$as_me:3472: error: cannot compute EXEEXT: cannot compile and link" >&5
d3418 1
a3418 1
echo "$as_me:3478: result: $ac_cv_exeext" >&5
d3424 1
a3424 1
echo "$as_me:3484: checking for object suffix" >&5
d3430 1
a3430 1
#line 3490 "configure"
d3442 1
a3442 1
if { (eval echo "$as_me:3502: \"$ac_compile\"") >&5
d3445 1
a3445 1
  echo "$as_me:3505: \$? = $ac_status" >&5
d3457 1
a3457 1
{ { echo "$as_me:3517: error: cannot compute OBJEXT: cannot compile" >&5
d3464 1
a3464 1
echo "$as_me:3524: result: $ac_cv_objext" >&5
d3468 1
a3468 1
echo "$as_me:3528: checking whether we are using the GNU C compiler" >&5
d3474 1
a3474 1
#line 3534 "configure"
d3489 1
a3489 1
if { (eval echo "$as_me:3549: \"$ac_compile\"") >&5
d3492 1
a3492 1
  echo "$as_me:3552: \$? = $ac_status" >&5
d3495 1
a3495 1
  { (eval echo "$as_me:3555: \"$ac_try\"") >&5
d3498 1
a3498 1
  echo "$as_me:3558: \$? = $ac_status" >&5
d3510 1
a3510 1
echo "$as_me:3570: result: $ac_cv_c_compiler_gnu" >&5
d3516 1
a3516 1
echo "$as_me:3576: checking whether $CC accepts -g" >&5
d3522 1
a3522 1
#line 3582 "configure"
d3534 1
a3534 1
if { (eval echo "$as_me:3594: \"$ac_compile\"") >&5
d3537 1
a3537 1
  echo "$as_me:3597: \$? = $ac_status" >&5
d3540 1
a3540 1
  { (eval echo "$as_me:3600: \"$ac_try\"") >&5
d3543 1
a3543 1
  echo "$as_me:3603: \$? = $ac_status" >&5
d3553 1
a3553 1
echo "$as_me:3613: result: $ac_cv_prog_cc_g" >&5
d3580 1
a3580 1
if { (eval echo "$as_me:3640: \"$ac_compile\"") >&5
d3583 1
a3583 1
  echo "$as_me:3643: \$? = $ac_status" >&5
d3586 1
a3586 1
  { (eval echo "$as_me:3646: \"$ac_try\"") >&5
d3589 1
a3589 1
  echo "$as_me:3649: \$? = $ac_status" >&5
d3601 1
a3601 1
#line 3661 "configure"
d3614 1
a3614 1
if { (eval echo "$as_me:3674: \"$ac_compile\"") >&5
d3617 1
a3617 1
  echo "$as_me:3677: \$? = $ac_status" >&5
d3620 1
a3620 1
  { (eval echo "$as_me:3680: \"$ac_try\"") >&5
d3623 1
a3623 1
  echo "$as_me:3683: \$? = $ac_status" >&5
d3633 1
a3633 1
#line 3693 "configure"
d3645 1
a3645 1
if { (eval echo "$as_me:3705: \"$ac_compile\"") >&5
d3648 1
a3648 1
  echo "$as_me:3708: \$? = $ac_status" >&5
d3651 1
a3651 1
  { (eval echo "$as_me:3711: \"$ac_try\"") >&5
d3654 1
a3654 1
  echo "$as_me:3714: \$? = $ac_status" >&5
d3663 3
a3665 6
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi
d3681 2
a3682 2
MAKEFILE_CC="${CC}"
MAKEFILE_CCLINK="${CC}"
d3699 1
a3699 1
echo "$as_me:3762: checking for $ac_word" >&5
d3714 1
a3714 1
echo "$as_me:3777: found $ac_dir/$ac_word" >&5
d3722 1
a3722 1
  echo "$as_me:3785: result: $CCC" >&5
d3725 1
a3725 1
  echo "$as_me:3788: result: no" >&5
d3734 1
a3734 1
echo "$as_me:3797: checking for $ac_word" >&5
d3749 1
a3749 1
echo "$as_me:3812: found $ac_dir/$ac_word" >&5
d3757 1
a3757 1
  echo "$as_me:3820: result: $ac_ct_CCC" >&5
d3760 1
a3760 1
  echo "$as_me:3823: result: no" >&5
d3768 1
a3768 3

				LIBXSO_LIBS="-lC_r $LIBXSO_LIBS"
				LIBS="-lC_r $LIBS";;
d3772 1
a3772 1
echo "$as_me:3837: checking for $ac_word" >&5
d3787 1
a3787 1
echo "$as_me:3852: found $ac_dir/$ac_word" >&5
d3795 1
a3795 1
  echo "$as_me:3860: result: $CCC" >&5
d3798 1
a3798 1
  echo "$as_me:3863: result: no" >&5
d3807 1
a3807 1
echo "$as_me:3872: checking for $ac_word" >&5
d3822 1
a3822 1
echo "$as_me:3887: found $ac_dir/$ac_word" >&5
d3830 1
a3830 1
  echo "$as_me:3895: result: $ac_ct_CCC" >&5
d3833 1
a3833 1
  echo "$as_me:3898: result: no" >&5
d3845 1
a3845 1
echo "$as_me:3910: checking for $ac_word" >&5
d3860 1
a3860 1
echo "$as_me:3925: found $ac_dir/$ac_word" >&5
d3868 1
a3868 1
  echo "$as_me:3933: result: $CCC" >&5
d3871 1
a3871 1
  echo "$as_me:3936: result: no" >&5
d3880 1
a3880 1
echo "$as_me:3945: checking for $ac_word" >&5
d3895 1
a3895 1
echo "$as_me:3960: found $ac_dir/$ac_word" >&5
d3903 1
a3903 1
  echo "$as_me:3968: result: $ac_ct_CCC" >&5
d3906 1
a3906 1
  echo "$as_me:3971: result: no" >&5
d3918 1
a3918 1
echo "$as_me:3983: checking for $ac_word" >&5
d3933 1
a3933 1
echo "$as_me:3998: found $ac_dir/$ac_word" >&5
d3941 1
a3941 1
  echo "$as_me:4006: result: $CCC" >&5
d3944 1
a3944 1
  echo "$as_me:4009: result: no" >&5
d3953 1
a3953 1
echo "$as_me:4018: checking for $ac_word" >&5
d3968 1
a3968 1
echo "$as_me:4033: found $ac_dir/$ac_word" >&5
d3976 1
a3976 1
  echo "$as_me:4041: result: $ac_ct_CCC" >&5
d3979 1
a3979 1
  echo "$as_me:4044: result: no" >&5
d3996 1
a3996 1
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
d4000 1
a4000 1
echo "$as_me:4065: checking for $ac_word" >&5
d4015 1
a4015 1
echo "$as_me:4080: found $ac_dir/$ac_word" >&5
d4023 1
a4023 1
  echo "$as_me:4088: result: $CXX" >&5
d4026 1
a4026 1
  echo "$as_me:4091: result: no" >&5
d4035 1
a4035 1
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
d4039 1
a4039 1
echo "$as_me:4104: checking for $ac_word" >&5
d4054 1
a4054 1
echo "$as_me:4119: found $ac_dir/$ac_word" >&5
d4062 1
a4062 1
  echo "$as_me:4127: result: $ac_ct_CXX" >&5
d4065 1
a4065 1
  echo "$as_me:4130: result: no" >&5
d4076 1
a4076 21
# Provide some information about the compiler.
echo "$as_me:4142:" \
     "checking for C++ compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:4145: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:4148: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:4150: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:4153: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:4155: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:4158: \$? = $ac_status" >&5
  (exit $ac_status); }

echo "$as_me:4161: checking whether we are using the GNU C++ compiler" >&5
d4082 1
a4082 1
#line 4167 "configure"
d4097 1
a4097 1
if { (eval echo "$as_me:4182: \"$ac_compile\"") >&5
d4100 1
a4100 1
  echo "$as_me:4185: \$? = $ac_status" >&5
d4103 1
a4103 1
  { (eval echo "$as_me:4188: \"$ac_try\"") >&5
d4106 1
a4106 1
  echo "$as_me:4191: \$? = $ac_status" >&5
d4118 1
a4118 1
echo "$as_me:4203: result: $ac_cv_cxx_compiler_gnu" >&5
d4124 1
a4124 1
echo "$as_me:4209: checking whether $CXX accepts -g" >&5
d4130 1
a4130 1
#line 4215 "configure"
d4142 1
a4142 1
if { (eval echo "$as_me:4227: \"$ac_compile\"") >&5
d4145 1
a4145 1
  echo "$as_me:4230: \$? = $ac_status" >&5
d4148 1
a4148 1
  { (eval echo "$as_me:4233: \"$ac_try\"") >&5
d4151 1
a4151 1
  echo "$as_me:4236: \$? = $ac_status" >&5
d4161 1
a4161 1
echo "$as_me:4246: result: $ac_cv_prog_cxx_g" >&5
d4188 1
a4188 1
#line 4273 "configure"
d4201 1
a4201 1
if { (eval echo "$as_me:4286: \"$ac_compile\"") >&5
d4204 1
a4204 1
  echo "$as_me:4289: \$? = $ac_status" >&5
d4207 1
a4207 1
  { (eval echo "$as_me:4292: \"$ac_try\"") >&5
d4210 1
a4210 1
  echo "$as_me:4295: \$? = $ac_status" >&5
d4220 1
a4220 1
#line 4305 "configure"
d4232 1
a4232 1
if { (eval echo "$as_me:4317: \"$ac_compile\"") >&5
d4235 1
a4235 1
  echo "$as_me:4320: \$? = $ac_status" >&5
d4238 1
a4238 1
  { (eval echo "$as_me:4323: \"$ac_try\"") >&5
d4241 1
a4241 1
  echo "$as_me:4326: \$? = $ac_status" >&5
d4250 3
a4252 6
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi
d4260 10
a4269 3
echo "$as_me:4348: checking whether C++ supports the ISO C++ standard includes" >&5
echo $ECHO_N "checking whether C++ supports the ISO C++ standard includes... $ECHO_C" >&6
if test "${db_cv_cxx_have_stdheaders+set}" = set; then
d4273 7
a4279 8
 ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

 cat >conftest.$ac_ext <<_ACEOF
#line 4361 "configure"
d4281 14
a4294 9
#include <iostream>

int
main ()
{
return 0;
  ;
  return 0;
}
d4296 3
a4298 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4374: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d4300 3
a4302 4
  echo "$as_me:4377: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4380: \"$ac_try\"") >&5
d4305 1
a4305 1
  echo "$as_me:4383: \$? = $ac_status" >&5
d4307 1
a4307 1
  db_cv_cxx_have_stdheaders=yes
d4309 2
a4310 1
  echo "$as_me: failed program was:" >&5
d4312 1
a4312 1
db_cv_cxx_have_stdheaders=no
d4314 1
a4314 32
rm -f conftest.$ac_objext conftest.$ac_ext
 ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
echo "$as_me:4399: result: $db_cv_cxx_have_stdheaders" >&5
echo "${ECHO_T}$db_cv_cxx_have_stdheaders" >&6
if test "$db_cv_cxx_have_stdheaders" = yes; then
	cxx_have_stdheaders="#define	HAVE_CXX_STDHEADERS 1"
fi
	MAKEFILE_CXX="${CXX}"
	MAKEFILE_CXXLINK="${CXX}"
fi

# Do some gcc specific configuration.

echo "$as_me:4410: checking whether we are using gcc version 2.96" >&5
echo $ECHO_N "checking whether we are using gcc version 2.96... $ECHO_C" >&6
if test "${db_cv_gcc_2_96+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

db_cv_gcc_2_96=no
if test "$GCC" = "yes"; then
	GCC_VERSION=`${MAKEFILE_CC} --version`
	case ${GCC_VERSION} in
	2.96*)
		db_cv_gcc_2_96=yes;;
	esac
d4317 3
a4319 3
echo "$as_me:4425: result: $db_cv_gcc_2_96" >&5
echo "${ECHO_T}$db_cv_gcc_2_96" >&6
if test "$db_cv_gcc_2_96" = "yes"; then
d4322 1
a4322 1
	{ echo "$as_me:4430: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&5
d4324 1
a4324 1
	{ echo "$as_me:4432: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&5
d4326 1
a4328 7
echo "$as_me:4436: checking whether g++ requires -fhandle-exceptions" >&5
echo $ECHO_N "checking whether g++ requires -fhandle-exceptions... $ECHO_C" >&6
if test "${db_cv_gxx_except+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

db_cv_gxx_except=no;
d4330 2
a4331 2
	GXX_VERSION=`${MAKEFILE_CXX} --version`
	case ${GXX_VERSION} in
d4333 3
a4335 1
		db_cv_gxx_except=yes;;
a4337 6
fi
echo "$as_me:4451: result: $db_cv_gxx_except" >&5
echo "${ECHO_T}$db_cv_gxx_except" >&6
if test "$db_cv_gxx_except" = "yes"; then
	CXXFLAGS="$CXXFLAGS -fhandle-exceptions"
fi
a4409 10
# Find the correct PATH separator.  Usually this is `:', but
# DJGPP uses `;' like DOS.
if test "X${PATH_SEPARATOR+set}" != Xset; then
  UNAME=${UNAME-`uname 2>/dev/null`}
  case X$UNAME in
    *-DOS) lt_cv_sys_path_separator=';' ;;
    *)     lt_cv_sys_path_separator=':' ;;
  esac
  PATH_SEPARATOR=$lt_cv_sys_path_separator
fi
d4421 1
a4421 1
  echo "$as_me:4549: checking for ld used by GCC" >&5
d4451 1
a4451 1
  echo "$as_me:4579: checking for GNU ld" >&5
d4454 1
a4454 1
  echo "$as_me:4582: checking for non-GNU ld" >&5
d4461 1
a4461 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d4484 1
a4484 1
  echo "$as_me:4612: result: $LD" >&5
d4487 1
a4487 1
  echo "$as_me:4615: result: no" >&5
d4490 1
a4490 1
test -z "$LD" && { { echo "$as_me:4618: error: no acceptable ld found in \$PATH" >&5
d4493 1
a4493 1
echo "$as_me:4621: checking if the linker ($LD) is GNU ld" >&5
d4505 1
a4505 1
echo "$as_me:4633: result: $lt_cv_prog_gnu_ld" >&5
d4509 1
a4509 1
echo "$as_me:4637: checking for $LD option to reload object files" >&5
d4516 1
a4516 1
echo "$as_me:4644: result: $lt_cv_ld_reload_flag" >&5
d4521 1
a4521 1
echo "$as_me:4649: checking for BSD-compatible nm" >&5
d4530 1
a4530 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d4557 1
a4557 1
echo "$as_me:4685: result: $NM" >&5
d4560 1
a4560 1
echo "$as_me:4688: checking whether ln -s works" >&5
d4564 1
a4564 1
  echo "$as_me:4692: result: yes" >&5
d4567 1
a4567 1
  echo "$as_me:4695: result: no, using $LN_S" >&5
d4571 1
a4571 1
echo "$as_me:4699: checking how to recognise dependant libraries" >&5
d4585 1
a4585 1
# 'file_magic [[regex]]' -- check by looking for files in library path
d4614 1
a4614 1
  rhapsody* | darwin1.[012])
d4673 1
a4673 1
  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
d4696 2
d4699 1
a4699 11
  lt_cv_deplibs_check_method=unknown
  ;;

openbsd*)
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  else
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  fi
d4745 1
a4745 1
echo "$as_me:4881: result: $lt_cv_deplibs_check_method" >&5
d4751 1
a4751 1
echo "$as_me:4887: checking command to parse $NM output" >&5
a4771 3
# Transform an extracted symbol line into symbol name and symbol address
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"

a4781 1
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
d4828 1
a4828 1
  if { (eval echo "$as_me:4968: \"$ac_compile\"") >&5
d4831 1
a4831 1
  echo "$as_me:4971: \$? = $ac_status" >&5
d4835 1
a4835 1
    if { (eval echo "$as_me:4975: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
d4838 1
a4838 1
  echo "$as_me:4978: \$? = $ac_status" >&5
d4861 1
a4861 1
# define lt_ptr void *
d4863 1
a4863 1
# define lt_ptr char *
d4870 1
a4870 1
  lt_ptr address;
d4875 1
a4875 1
	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
d4877 1
a4877 1
  {0, (lt_ptr) 0}
d4890 1
a4890 1
	  if { (eval echo "$as_me:5030: \"$ac_link\"") >&5
d4893 1
a4893 1
  echo "$as_me:5033: \$? = $ac_status" >&5
a4926 1
  global_symbol_to_c_name_address=
a4928 1
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
d4930 2
a4931 3
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
then
  echo "$as_me:5074: result: failed" >&5
d4934 1
a4934 1
  echo "$as_me:5077: result: ok" >&5
d4943 1
a4943 1
echo "$as_me:5086: checking how to run the C preprocessor" >&5
d4956 1
d4965 1
a4965 1
#line 5107 "configure"
d4970 1
a4970 1
if { (eval echo "$as_me:5112: \"$ac_cpp conftest.$ac_ext\"") >&5
d4976 1
a4976 1
  echo "$as_me:5118: \$? = $ac_status" >&5
d4999 1
a4999 1
#line 5141 "configure"
d5003 1
a5003 1
if { (eval echo "$as_me:5145: \"$ac_cpp conftest.$ac_ext\"") >&5
d5009 1
a5009 1
  echo "$as_me:5151: \$? = $ac_status" >&5
d5035 1
a5035 1
  break
d5046 1
a5046 1
echo "$as_me:5188: result: $CPP" >&5
d5056 1
a5056 1
#line 5198 "configure"
d5061 1
a5061 1
if { (eval echo "$as_me:5203: \"$ac_cpp conftest.$ac_ext\"") >&5
d5067 1
a5067 1
  echo "$as_me:5209: \$? = $ac_status" >&5
d5090 1
a5090 1
#line 5232 "configure"
d5094 1
a5094 1
if { (eval echo "$as_me:5236: \"$ac_cpp conftest.$ac_ext\"") >&5
d5100 1
a5100 1
  echo "$as_me:5242: \$? = $ac_status" >&5
d5128 1
a5128 1
  { { echo "$as_me:5270: error: C preprocessor \"$CPP\" fails sanity check" >&5
d5141 2
a5142 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:5284: checking for $ac_header" >&5
d5144 1
a5144 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d5148 1
a5148 1
#line 5290 "configure"
d5152 1
a5152 1
if { (eval echo "$as_me:5294: \"$ac_cpp conftest.$ac_ext\"") >&5
d5158 1
a5158 1
  echo "$as_me:5300: \$? = $ac_status" >&5
d5169 1
a5169 1
  eval "$as_ac_Header=yes"
d5173 1
a5173 1
  eval "$as_ac_Header=no"
d5177 3
a5179 3
echo "$as_me:5319: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d5181 1
a5181 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d5191 1
a5191 1
    echo "$as_me:5333: checking for ${ac_tool_prefix}file" >&5
d5246 1
a5246 1
  echo "$as_me:5388: result: $MAGIC_CMD" >&5
d5249 1
a5249 1
  echo "$as_me:5391: result: no" >&5
d5255 1
a5255 1
    echo "$as_me:5397: checking for file" >&5
d5310 1
a5310 1
  echo "$as_me:5452: result: $MAGIC_CMD" >&5
d5313 1
a5313 1
  echo "$as_me:5455: result: no" >&5
d5329 1
a5329 1
echo "$as_me:5471: checking for $ac_word" >&5
d5344 1
a5344 1
echo "$as_me:5486: found $ac_dir/$ac_word" >&5
d5352 1
a5352 1
  echo "$as_me:5494: result: $RANLIB" >&5
d5355 1
a5355 1
  echo "$as_me:5497: result: no" >&5
d5364 1
a5364 1
echo "$as_me:5506: checking for $ac_word" >&5
d5379 1
a5379 1
echo "$as_me:5521: found $ac_dir/$ac_word" >&5
d5388 1
a5388 1
  echo "$as_me:5530: result: $ac_ct_RANLIB" >&5
d5391 1
a5391 1
  echo "$as_me:5533: result: no" >&5
d5403 1
a5403 1
echo "$as_me:5545: checking for $ac_word" >&5
d5418 1
a5418 1
echo "$as_me:5560: found $ac_dir/$ac_word" >&5
d5426 1
a5426 1
  echo "$as_me:5568: result: $STRIP" >&5
d5429 1
a5429 1
  echo "$as_me:5571: result: no" >&5
d5438 1
a5438 1
echo "$as_me:5580: checking for $ac_word" >&5
d5453 1
a5453 1
echo "$as_me:5595: found $ac_dir/$ac_word" >&5
d5462 1
a5462 1
  echo "$as_me:5604: result: $ac_ct_STRIP" >&5
d5465 1
a5465 1
  echo "$as_me:5607: result: no" >&5
d5489 2
a5490 2
  echo '#line 5631 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:5632: \"$ac_compile\"") >&5
d5493 1
a5493 1
  echo "$as_me:5635: \$? = $ac_status" >&5
d5514 1
a5514 1
  echo "$as_me:5656: checking whether the C compiler needs -belf" >&5
d5527 1
a5527 1
#line 5669 "configure"
d5539 1
a5539 1
if { (eval echo "$as_me:5681: \"$ac_link\"") >&5
d5542 1
a5542 1
  echo "$as_me:5684: \$? = $ac_status" >&5
d5545 1
a5545 1
  { (eval echo "$as_me:5687: \"$ac_try\"") >&5
d5548 1
a5548 1
  echo "$as_me:5690: \$? = $ac_status" >&5
d5564 1
a5564 1
echo "$as_me:5706: result: $lt_cv_cc_needs_belf" >&5
a5648 8
  case $host_os in
  openbsd*)
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
    ;;
  *)
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
    ;;
  esac
d5650 1
d5659 1
a5659 1
echo "$as_me:5808: checking for objdir" >&5
d5670 1
a5670 1
echo "$as_me:5819: result: $objdir" >&5
d5690 1
a5690 1
echo "$as_me:5839: checking for $compiler option to produce PIC" >&5
d5713 1
a5713 1
      # not sure about C++ programs.
a5747 1
      lt_cv_prog_cc_wl='-Wl,'
d5750 3
a5752 2
	# AIX 5 now supports IA64 processor
	lt_cv_prog_cc_static='-Bstatic'
d5754 1
a5754 1
	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
d5810 1
a5810 1
	lt_cv_prog_cc_wl='-LD'
d5812 1
a5812 1
	lt_cv_prog_cc_wl='-Wl,'
d5837 1
a5837 1
  echo "$as_me:5986: result: none" >&5
d5840 1
a5840 1
  echo "$as_me:5989: result: $lt_cv_prog_cc_pic" >&5
d5844 1
a5844 1
  echo "$as_me:5993: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
d5852 1
a5852 1
#line 6001 "configure"
d5864 1
a5864 1
if { (eval echo "$as_me:6013: \"$ac_compile\"") >&5
d5867 1
a5867 1
  echo "$as_me:6016: \$? = $ac_status" >&5
d5870 1
a5870 1
  { (eval echo "$as_me:6019: \"$ac_try\"") >&5
d5873 1
a5873 1
  echo "$as_me:6022: \$? = $ac_status" >&5
d5909 1
a5909 1
  echo "$as_me:6058: result: $lt_cv_prog_cc_pic_works" >&5
d5917 1
a5917 1
  { echo "$as_me:6066: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
d5921 1
a5921 1
   { echo "$as_me:6070: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
d5929 1
a5929 1
echo "$as_me:6078: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
d5938 1
a5938 1
#line 6087 "configure"
d5950 1
a5950 1
if { (eval echo "$as_me:6099: \"$ac_link\"") >&5
d5953 1
a5953 1
  echo "$as_me:6102: \$? = $ac_status" >&5
d5956 1
a5956 1
  { (eval echo "$as_me:6105: \"$ac_try\"") >&5
d5959 1
a5959 1
  echo "$as_me:6108: \$? = $ac_status" >&5
d5973 1
a5973 1
echo "$as_me:6122: result: $lt_cv_prog_cc_static_works" >&5
d5988 1
a5988 1
echo "$as_me:6137: checking if $compiler supports -c -o file.$ac_objext" >&5
d6008 1
a6008 1
if { (eval echo configure:6157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
d6032 1
a6032 1
echo "$as_me:6181: result: $compiler_c_o" >&5
d6037 1
a6037 1
  echo "$as_me:6186: checking if $compiler supports -c -o file.lo" >&5
a6045 2
  save_objext="$ac_objext"
  ac_objext=lo
d6047 1
a6047 1
#line 6198 "configure"
d6059 1
a6059 1
if { (eval echo "$as_me:6210: \"$ac_compile\"") >&5
d6062 1
a6062 1
  echo "$as_me:6213: \$? = $ac_status" >&5
d6065 1
a6065 1
  { (eval echo "$as_me:6216: \"$ac_try\"") >&5
d6068 1
a6068 1
  echo "$as_me:6219: \$? = $ac_status" >&5
a6082 1
  ac_objext="$save_objext"
d6088 2
a6089 2
  echo "$as_me:6240: result: $compiler_o_lo" >&5
echo "${ECHO_T}$compiler_o_lo" >&6
d6102 1
a6102 1
  echo "$as_me:6254: checking if we can lock with hard links" >&5
d6110 1
a6110 1
  echo "$as_me:6262: result: $hard_links" >&5
d6113 1
a6113 1
    { echo "$as_me:6265: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
d6127 1
a6127 1
  echo "$as_me:6279: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
d6134 1
a6134 1
#line 6286 "configure"
d6146 1
a6146 1
if { (eval echo "$as_me:6298: \"$ac_compile\"") >&5
d6149 1
a6149 1
  echo "$as_me:6301: \$? = $ac_status" >&5
d6152 1
a6152 1
  { (eval echo "$as_me:6304: \"$ac_try\"") >&5
d6155 1
a6155 1
  echo "$as_me:6307: \$? = $ac_status" >&5
d6171 1
a6171 1
  echo "$as_me:6323: result: $compiler_rtti_exceptions" >&5
d6186 1
a6186 1
echo "$as_me:6338: checking whether the linker ($LD) supports shared libraries" >&5
d6228 1
a6228 1
cygwin* | mingw* | pw32*)
d6236 1
a6236 3
openbsd*)
  with_gnu_ld=no
  ;;
d6323 1
a6323 1
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
d6342 1
a6342 1
	cp $export_symbols $output_objdir/$soname-def;
d6344 10
a6353 10
	echo EXPORTS > $output_objdir/$soname-def;
	_lt_hint=1;
	cat $export_symbols | while read symbol; do
	 set dummy \$symbol;
	 case \$# in
	   2) echo "   \$2 @@ \$_lt_hint ; " >> $output_objdir/$soname-def;;
	   *) echo "     \$2 @@ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
	 esac;
	 _lt_hint=`expr 1 + \$_lt_hint`;
	done;
a6447 25
    if test "$host_cpu" = ia64; then
      # On IA64, the linker does run time linking by default, so we don't
      # have to do anything special.
      aix_use_runtimelinking=no
      exp_sym_flag='-Bexport'
      no_entry_flag=""
    else
      aix_use_runtimelinking=no

      # Test if we are trying to use run time linking or normal
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
      # need to do runtime linking.
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	for ld_flag in $LDFLAGS; do
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
	done
      esac

      exp_sym_flag='-bexport'
      no_entry_flag='-bnoentry'
    fi

a6453 1
    hardcode_direct=yes
d6457 16
a6472 19
      case $host_os in aix4.[012]|aix4.[012].*)
	collect2name=`${CC} -print-prog-name=collect2`
	if test -f "$collect2name" && \
	  strings "$collect2name" | grep resolve_lib_name >/dev/null
	then
	  # We have reworked collect2
	  hardcode_direct=yes
	else
	  # We have old collect2
	  hardcode_direct=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L=yes
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_libdir_separator=
	fi
      esac

a6474 1
      # not using gcc
d6476 1
a6476 1
	shared_flag='${wl}-G'
d6478 1
a6478 5
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag='${wl}-G'
	else
	  shared_flag='${wl}-bM:SRE'
	fi
d6480 1
d6483 19
a6505 3
      # Warning - without using the other runtime loading flags (-brtl),
      # -berok will link without error, but may produce a broken library.
      allow_undefined_flag='-berok'
d6507 2
a6508 1
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d6511 3
a6513 3
	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	allow_undefined_flag="-z nodefs"
	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
d6515 7
a6521 7
	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
	# Warning - without using the other run time loading flags,
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='${wl}-berok'
	# This is a bit strange, but is similar to how AIX traditionally builds
	# it's shared libraries.
	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
d6553 1
a6553 8
    case "$host_os" in
    rhapsody* | darwin1.[012])
      allow_undefined_flag='-undefined suppress'
      ;;
    *) # Darwin 1.3 on
      allow_undefined_flag='-flat_namespace -undefined suppress'
      ;;
    esac
d6557 1
a6557 1
    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
d6632 1
a6632 1
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
d6640 2
a6643 16
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
    else
      case "$host_os" in
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	hardcode_libdir_flag_spec='-R$libdir'
        ;;
      *)
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
        ;;
      esac
    fi
a6687 1
    export_dynamic_flag_spec='${wl}-Bexport'
a6690 8
    # gcc --version < 3.0 without binutils cannot create self contained
    # shared libraries reliably, requiring libgcc.a to resolve some of
    # the object symbols generated in some cases.  Libraries that use
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
    # a copy of libgcc.a into every shared library to guarantee resolving
    # such symbols causes other problems:  According to Tim Van Holder
    # <tim.van.holder@@pandora.be>, C++ libraries end up with a separate
    # (to the application) exception stack for one thing.
a6691 20
    if test "$GCC" = yes; then
      case `$CC --version 2>/dev/null` in
      [12].*)
	cat <<EOF 1>&2

*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
*** create self contained shared libraries on Solaris systems, without
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
*** -no-undefined support, which will at least allow you to build shared
*** libraries.  However, you may find that when you link such libraries
*** into an application without using GCC, you have to manually add
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
*** upgrade to a newer version of GCC.  Another option is to rebuild your
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.

EOF
        no_undefined_flag=
	;;
      esac
    fi
d6723 1
a6723 1
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
d6798 1
a6798 1
echo "$as_me:7018: result: $ld_shlibs" >&5
d6807 1
a6807 1
echo "$as_me:7027: checking how to hardcode library paths into programs" >&5
d6831 1
a6831 1
echo "$as_me:7051: result: $hardcode_action" >&5
d6840 1
a6840 1
echo "$as_me:7060: checking whether stripping libraries is possible" >&5
d6845 1
a6845 1
  echo "$as_me:7065: result: yes" >&5
d6848 1
a6848 1
  echo "$as_me:7068: result: no" >&5
d6860 1
a6860 1
echo "$as_me:7080: checking dynamic linker characteristics" >&5
d6899 9
a6907 9
      aix4 | aix4.[01] | aix4.[01].*)
	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	     echo ' yes '
	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	  :
	else
	  can_build_shared=no
	fi
	;;
d6909 3
a6911 4
    # AIX (on Power*) has no versioning support, so currently we can
    # not hardcode correct soname into executable. Probably we can
    # add versioning support to collect2, so additional links can
    # be useful in future.
d6913 2
a6914 3
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
d6923 1
a7133 10
nto-qnx)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

d7136 3
a7138 13
  need_lib_prefix=no
  need_version=no
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case "$host_os" in
    openbsd2.[89] | openbsd2.[89].*)
      shlibpath_overrides_runpath=no
      ;;
    *)
      shlibpath_overrides_runpath=yes
      ;;
    esac
  else
    shlibpath_overrides_runpath=yes
d7238 12
d7254 1
a7254 1
echo "$as_me:7483: result: $dynamic_linker" >&5
d7263 1
a7263 1
echo "$as_me:7492: checking if libtool supports shared libraries" >&5
d7265 1
a7265 1
echo "$as_me:7494: result: $can_build_shared" >&5
d7270 8
a7277 5
## FIXME: this should be a separate macro
##
echo "$as_me:7501: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
test "$can_build_shared" = "no" && enable_shared=no
d7279 1
a7279 43
# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case "$host_os" in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;

aix4*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
  fi
  ;;
esac
echo "$as_me:7522: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6
##
## END FIXME

## FIXME: this should be a separate macro
##
echo "$as_me:7529: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
echo "$as_me:7533: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6
##
## END FIXME

if test "$hardcode_action" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
d7305 3
a7307 64
    echo "$as_me:7573: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
if test "${ac_cv_func_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7579 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shl_load) || defined (__stub___shl_load)
choke me
#else
f = shl_load;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7610: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7613: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7616: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7619: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_shl_load=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7629: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
if test $ac_cv_func_shl_load = yes; then
  lt_cv_dlopen="shl_load"
else
  echo "$as_me:7634: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
d7311 1
a7311 1
LIBS="-ldld  $LIBS"
d7313 1
a7313 1
#line 7642 "configure"
d7322 1
a7322 1
char shl_load ();
d7326 1
a7326 1
shl_load ();
d7332 1
a7332 1
if { (eval echo "$as_me:7661: \"$ac_link\"") >&5
d7335 1
a7335 1
  echo "$as_me:7664: \$? = $ac_status" >&5
d7338 1
a7338 1
  { (eval echo "$as_me:7667: \"$ac_try\"") >&5
d7341 1
a7341 1
  echo "$as_me:7670: \$? = $ac_status" >&5
d7343 1
a7343 1
  ac_cv_lib_dld_shl_load=yes
d7347 1
a7347 1
ac_cv_lib_dld_shl_load=no
d7352 4
a7355 4
echo "$as_me:7681: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
if test $ac_cv_lib_dld_shl_load = yes; then
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
d7357 1
a7357 1
  echo "$as_me:7686: checking for dlopen" >&5
d7363 1
a7363 1
#line 7692 "configure"
d7394 1
a7394 1
if { (eval echo "$as_me:7723: \"$ac_link\"") >&5
d7397 1
a7397 1
  echo "$as_me:7726: \$? = $ac_status" >&5
d7400 1
a7400 1
  { (eval echo "$as_me:7729: \"$ac_try\"") >&5
d7403 1
a7403 1
  echo "$as_me:7732: \$? = $ac_status" >&5
d7413 1
a7413 1
echo "$as_me:7742: result: $ac_cv_func_dlopen" >&5
d7418 3
a7420 3
  echo "$as_me:7747: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7423 2
a7424 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 7755 "configure"
d7426 3
a7428 1

d7435 3
a7437 1
char dlopen ();
d7441 9
a7449 1
dlopen ();
d7455 1
a7455 1
if { (eval echo "$as_me:7774: \"$ac_link\"") >&5
d7458 1
a7458 1
  echo "$as_me:7777: \$? = $ac_status" >&5
d7461 1
a7461 1
  { (eval echo "$as_me:7780: \"$ac_try\"") >&5
d7464 1
a7464 1
  echo "$as_me:7783: \$? = $ac_status" >&5
d7466 1
a7466 1
  ac_cv_lib_dl_dlopen=yes
d7470 1
a7470 1
ac_cv_lib_dl_dlopen=no
a7472 1
LIBS=$ac_check_lib_save_LIBS
d7474 4
a7477 4
echo "$as_me:7794: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7479 1
a7479 1
  echo "$as_me:7799: checking for dlopen in -lsvld" >&5
d7487 1
a7487 1
#line 7807 "configure"
d7506 1
a7506 1
if { (eval echo "$as_me:7826: \"$ac_link\"") >&5
d7509 1
a7509 1
  echo "$as_me:7829: \$? = $ac_status" >&5
d7512 1
a7512 1
  { (eval echo "$as_me:7832: \"$ac_try\"") >&5
d7515 1
a7515 1
  echo "$as_me:7835: \$? = $ac_status" >&5
d7526 1
a7526 1
echo "$as_me:7846: result: $ac_cv_lib_svld_dlopen" >&5
d7531 3
a7533 3
  echo "$as_me:7851: checking for dld_link in -ldld" >&5
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
d7539 1
a7539 1
#line 7859 "configure"
d7548 1
a7548 1
char dld_link ();
d7552 1
a7552 1
dld_link ();
d7558 1
a7558 1
if { (eval echo "$as_me:7878: \"$ac_link\"") >&5
d7561 1
a7561 1
  echo "$as_me:7881: \$? = $ac_status" >&5
d7564 1
a7564 1
  { (eval echo "$as_me:7884: \"$ac_try\"") >&5
d7567 1
a7567 1
  echo "$as_me:7887: \$? = $ac_status" >&5
d7569 1
a7569 1
  ac_cv_lib_dld_dld_link=yes
d7573 1
a7573 1
ac_cv_lib_dld_dld_link=no
d7578 3
a7580 3
echo "$as_me:7898: result: $ac_cv_lib_dld_dld_link" >&5
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
if test $ac_cv_lib_dld_dld_link = yes; then
a7591 2
fi

d7612 1
a7612 1
    echo "$as_me:7934: checking whether a program can dlopen itself" >&5
d7623 1
a7623 1
#line 7945 "configure"
d7684 1
a7684 1
  if { (eval echo "$as_me:8006: \"$ac_link\"") >&5
d7687 1
a7687 1
  echo "$as_me:8009: \$? = $ac_status" >&5
d7704 1
a7704 1
echo "$as_me:8026: result: $lt_cv_dlopen_self" >&5
d7709 1
a7709 1
      echo "$as_me:8031: checking whether a statically linked program can dlopen itself" >&5
d7720 1
a7720 1
#line 8042 "configure"
d7781 1
a7781 1
  if { (eval echo "$as_me:8103: \"$ac_link\"") >&5
d7784 1
a7784 1
  echo "$as_me:8106: \$? = $ac_status" >&5
d7801 1
a7801 1
echo "$as_me:8123: result: $lt_cv_dlopen_self_static" >&5
d7833 1
a7833 1
    echo "$as_me:8155: checking whether -lc should be explicitly linked in" >&5
d7841 1
a7841 1
    if { (eval echo "$as_me:8163: \"$ac_compile\"") >&5
d7844 1
a7844 1
  echo "$as_me:8166: \$? = $ac_status" >&5
d7858 1
a7858 1
      if { (eval echo "$as_me:8180: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
d7861 1
a7861 1
  echo "$as_me:8183: \$? = $ac_status" >&5
d7874 1
a7874 1
    echo "$as_me:8196: result: $lt_cv_archive_cmds_need_lc" >&5
a7918 1
    global_symbol_to_c_name_address \
d7985 3
a7990 3
# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$need_lc

a8155 3
# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address

d8278 3
a8280 3
	# This is a source program that is used to create import libraries
	# on Windows for dlls which lack them. Don't remove nor modify the
	# starting and closing comments
d8442 1
d8445 6
a8450 23
echo "$as_me:8770: checking SOSUFFIX from libtool" >&5
echo $ECHO_N "checking SOSUFFIX from libtool... $ECHO_C" >&6
# $library_names_spec is a snippet of shell that may
# defined in terms of $versuffix, $release, $libname.
# All we want is to eval it and grab the suffix used
# for shared objects.
versuffix=""
release=""
libname=libfoo
eval library_names=\"$library_names_spec\"
SOSUFFIX=`echo "$library_names" | sed -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/'`
echo "$as_me:8781: result: $SOSUFFIX" >&5
echo "${ECHO_T}$SOSUFFIX" >&6

if test "$SOSUFFIX" = '' ; then
	SOSUFFIX=so
	if test "$enable_shared" = "yes"; then
		{ echo "$as_me:8787: WARNING: libtool may not know about this architecture." >&5
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
		{ echo "$as_me:8789: WARNING: assuming .$SOSUFFIX suffix for dynamic libraries." >&5
echo "$as_me: WARNING: assuming .$SOSUFFIX suffix for dynamic libraries." >&2;}
	fi
fi
d8452 1
a8454 7
MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}"
MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version"
MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}"
MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}"
MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}"

d8462 2
d8469 2
a8473 1
INSTALL_LIBS="$DEFAULT_LIB"
d8478 1
a8478 1
		DEFAULT_LIB_CXX="\$(libcxx)"
d8481 2
a8482 1
		DEFAULT_LIB_CXX="\$(libxso_target)"
a8483 1
	INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_CXX"
d8511 1
a8511 1
		{ { echo "$as_me:8856: error: Java requires shared libraries" >&5
d8516 4
a8519 6
if test "x$JAVAPREFIX" = x; then
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:8866: checking for $ac_word" >&5
d8533 2
a8534 2
ac_cv_prog_JAVAC="$ac_prog"
echo "$as_me:8881: found $ac_dir/$ac_word" >&5
d8542 1
a8542 1
  echo "$as_me:8889: result: $JAVAC" >&5
d8545 1
a8545 1
  echo "$as_me:8892: result: no" >&5
d8549 6
a8554 9
  test -n "$JAVAC" && break
done

else
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:8904: checking for $ac_word" >&5
d8556 1
a8556 1
if test "${ac_cv_prog_JAVAC+set}" = set; then
d8559 2
a8560 2
  if test -n "$JAVAC"; then
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
d8568 2
a8569 2
ac_cv_prog_JAVAC="$ac_prog"
echo "$as_me:8919: found $ac_dir/$ac_word" >&5
d8573 1
d8576 4
a8579 4
JAVAC=$ac_cv_prog_JAVAC
if test -n "$JAVAC"; then
  echo "$as_me:8927: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6
d8581 1
a8581 1
  echo "$as_me:8930: result: no" >&5
d8585 3
a8587 4
  test -n "$JAVAC" && break
done
test -n "$JAVAC" || JAVAC="$JAVAPREFIX"

a8588 3
test "x$JAVAC" = x && { { echo "$as_me:8939: error: no acceptable Java compiler found in \$PATH" >&5
echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
d8590 3
a8592 23
echo "$as_me:8943: checking if $JAVAC works" >&5
echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
if test "${ac_cv_prog_javac_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

JAVA_TEST=Test.java
CLASS_TEST=Test.class
cat << \EOF > $JAVA_TEST
/* #line 8952 "configure" */
public class Test {
}
EOF
if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
  { (eval echo "$as_me:8957: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8960: \$? = $ac_status" >&5
  (exit $ac_status); }; } >/dev/null 2>&1; then
  ac_cv_prog_javac_works=yes
else
  { { echo "$as_me:8964: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
d8594 5
a8598 15
  echo "configure: failed program was:" >&5
  cat $JAVA_TEST >&5
fi
rm -f $JAVA_TEST $CLASS_TEST

fi
echo "$as_me:8973: result: $ac_cv_prog_javac_works" >&5
echo "${ECHO_T}$ac_cv_prog_javac_works" >&6

if test "x$JAVAPREFIX" = x; then
        test "x$JAR" = x && for ac_prog in jar$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:8981: checking for $ac_word" >&5
d8612 2
a8613 2
ac_cv_prog_JAR="$ac_prog"
echo "$as_me:8996: found $ac_dir/$ac_word" >&5
d8621 1
a8621 1
  echo "$as_me:9004: result: $JAR" >&5
d8624 1
a8624 1
  echo "$as_me:9007: result: no" >&5
d8628 6
a8633 9
  test -n "$JAR" && break
done

else
        test "x$JAR" = x && for ac_prog in jar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:9019: checking for $ac_word" >&5
d8635 1
a8635 1
if test "${ac_cv_prog_JAR+set}" = set; then
d8638 2
a8639 2
  if test -n "$JAR"; then
  ac_cv_prog_JAR="$JAR" # Let the user override the test.
d8647 2
a8648 2
ac_cv_prog_JAR="$ac_prog"
echo "$as_me:9034: found $ac_dir/$ac_word" >&5
d8652 1
d8655 4
a8658 4
JAR=$ac_cv_prog_JAR
if test -n "$JAR"; then
  echo "$as_me:9042: result: $JAR" >&5
echo "${ECHO_T}$JAR" >&6
d8660 1
a8660 1
  echo "$as_me:9045: result: no" >&5
d8664 3
a8666 4
  test -n "$JAR" && break
done
test -n "$JAR" || JAR="$JAVAPREFIX"

a8667 3
test "x$JAR" = x && { { echo "$as_me:9054: error: no acceptable jar program found in \$PATH" >&5
echo "$as_me: error: no acceptable jar program found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
d8669 3
a8671 4
JNI_INCLUDE_DIRS=""

test "x$JAVAC" = x && { { echo "$as_me:9060: error: '$JAVAC' undefined" >&5
echo "$as_me: error: '$JAVAC' undefined" >&2;}
d8673 4
a8676 3
# Extract the first word of "$JAVAC", so it can be a program name with args.
set dummy $JAVAC; ac_word=$2
echo "$as_me:9065: checking for $ac_word" >&5
d8678 1
a8678 1
if test "${ac_cv_path__ACJNI_JAVAC+set}" = set; then
d8681 1
a8681 1
  case $_ACJNI_JAVAC in
d8683 1
a8683 1
  ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path.
d8692 2
a8693 2
   ac_cv_path__ACJNI_JAVAC="$ac_dir/$ac_word"
   echo "$as_me:9082: found $ac_dir/$ac_word" >&5
d8698 1
a8698 1
  test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="no"
d8702 1
a8702 1
_ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC
d8704 3
a8706 3
if test -n "$_ACJNI_JAVAC"; then
  echo "$as_me:9094: result: $_ACJNI_JAVAC" >&5
echo "${ECHO_T}$_ACJNI_JAVAC" >&6
d8708 1
a8708 1
  echo "$as_me:9097: result: no" >&5
d8712 3
a8714 3
test "x$_ACJNI_JAVAC" = xno && { { echo "$as_me:9101: error: $JAVAC could not be found in path" >&5
echo "$as_me: error: $JAVAC could not be found in path" >&2;}
   { (exit 1); exit 1; }; }
d8717 17
a8733 9
_cur=""$_ACJNI_JAVAC""
while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do
	echo "$as_me:9108: checking symlink for $_cur" >&5
echo $ECHO_N "checking symlink for $_cur... $ECHO_C" >&6
	_slink=`ls -ld "$_cur" | sed 's/.* -> //'`
	case "$_slink" in
	/*) _cur="$_slink";;
	# 'X' avoids triggering unwanted echo options.
	*) _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";;
d8735 2
a8736 17
	echo "$as_me:9116: result: $_cur" >&5
echo "${ECHO_T}$_cur" >&6
done
_ACJNI_FOLLOWED="$_cur"

_JTOPDIR=`echo "$_ACJNI_FOLLOWED" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
case "$host_os" in
	darwin*)	_JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
			_JINC="$_JTOPDIR/Headers";;
	*)		_JINC="$_JTOPDIR/include";;
esac
if test -f "$_JINC/jni.h"; then
	JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JINC"
else
	_JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
	if test -f "$_JTOPDIR/include/jni.h"; then
		JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include"
d8738 5
a8742 1
		{ { echo "$as_me:9134: error: cannot find java include files" >&5
d8745 1
a8746 1
fi
d8749 5
a8753 16
case "$host_os" in
aix*)		_JNI_INC_SUBDIRS="aix";;
bsdi*)		_JNI_INC_SUBDIRS="bsdos";;
linux*)		_JNI_INC_SUBDIRS="linux genunix";;
osf*)		_JNI_INC_SUBDIRS="alpha";;
solaris*)	_JNI_INC_SUBDIRS="solaris";;
*)		_JNI_INC_SUBDIRS="genunix";;
esac

# add any subdirectories that are present
for JINCSUBDIR in $_JNI_INC_SUBDIRS
do
	if test -d "$_JTOPDIR/include/$JINCSUBDIR"; then
		JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include/$JINCSUBDIR"
	fi
done
d8755 1
a8755 1
	for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
d8757 3
a8759 1
		CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR"
a8760 3

	ADDITIONAL_LANG="$ADDITIONAL_LANG java"
	INSTALL_LIBS="$INSTALL_LIBS \$(libjso_target)"
d8778 1
a8778 1
		echo "$as_me:9182: checking for svc_run" >&5
d8784 1
a8784 1
#line 9188 "configure"
d8815 1
a8815 1
if { (eval echo "$as_me:9219: \"$ac_link\"") >&5
d8818 1
a8818 1
  echo "$as_me:9222: \$? = $ac_status" >&5
d8821 1
a8821 1
  { (eval echo "$as_me:9225: \"$ac_try\"") >&5
d8824 1
a8824 1
  echo "$as_me:9228: \$? = $ac_status" >&5
d8834 1
a8834 1
echo "$as_me:9238: result: $ac_cv_func_svc_run" >&5
d8839 1
a8839 1
  echo "$as_me:9243: checking for svc_run in -lnsl" >&5
d8847 1
a8847 1
#line 9251 "configure"
d8866 1
a8866 1
if { (eval echo "$as_me:9270: \"$ac_link\"") >&5
d8869 1
a8869 1
  echo "$as_me:9273: \$? = $ac_status" >&5
d8872 1
a8872 1
  { (eval echo "$as_me:9276: \"$ac_try\"") >&5
d8875 1
a8875 1
  echo "$as_me:9279: \$? = $ac_status" >&5
d8886 1
a8886 1
echo "$as_me:9290: result: $ac_cv_lib_nsl_svc_run" >&5
d8895 1
a8895 1
		echo "$as_me:9299: checking for svc_run" >&5
d8901 1
a8901 1
#line 9305 "configure"
d8932 1
a8932 1
if { (eval echo "$as_me:9336: \"$ac_link\"") >&5
d8935 1
a8935 1
  echo "$as_me:9339: \$? = $ac_status" >&5
d8938 1
a8938 1
  { (eval echo "$as_me:9342: \"$ac_try\"") >&5
d8941 1
a8941 1
  echo "$as_me:9345: \$? = $ac_status" >&5
d8951 1
a8951 1
echo "$as_me:9355: result: $ac_cv_func_svc_run" >&5
d8957 1
a8957 1
echo "$as_me:9361: checking for svc_run in -lnsl" >&5
d8965 1
a8965 1
#line 9369 "configure"
d8984 1
a8984 1
if { (eval echo "$as_me:9388: \"$ac_link\"") >&5
d8987 1
a8987 1
  echo "$as_me:9391: \$? = $ac_status" >&5
d8990 1
a8990 1
  { (eval echo "$as_me:9394: \"$ac_try\"") >&5
d8993 1
a8993 1
  echo "$as_me:9397: \$? = $ac_status" >&5
d9004 1
a9004 1
echo "$as_me:9408: result: $ac_cv_lib_nsl_svc_run" >&5
d9022 1
a9022 1
		{ { echo "$as_me:9426: error: Tcl requires shared libraries" >&5
d9036 1
a9036 1
		    { { echo "$as_me:9440: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
d9056 1
a9056 1
	    { { echo "$as_me:9460: error: can't find Tcl configuration definitions" >&5
d9063 1
a9063 1
	echo "$as_me:9467: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
d9067 1
a9067 1
		echo "$as_me:9471: result: loading" >&5
d9071 1
a9071 1
		echo "$as_me:9475: result: file not found" >&5
a9082 10
	#
	# If the DB Tcl library isn't loaded with the Tcl spec and library
	# flags on AIX, the resulting libdb_tcl-X.Y.so.0 will drop core at
	# load time. [#4843]
	#
	case "$host_os" in
	aix*)
		LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG";;
	esac

d9089 4
a9092 1
	INSTALL_LIBS="${INSTALL_LIBS} \$(libtso_target)"
d9106 5
a9110 4
# Checks for system/compiler characteristics.
echo "$as_me:9518: checking whether byte ordering is bigendian" >&5
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
if test "${ac_cv_c_bigendian+set}" = set; then
d9113 2
a9114 2
  ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
d9116 108
a9223 1
#line 9526 "configure"
d9240 1
a9240 1
if { (eval echo "$as_me:9543: \"$ac_compile\"") >&5
d9243 1
a9243 1
  echo "$as_me:9546: \$? = $ac_status" >&5
d9246 1
a9246 1
  { (eval echo "$as_me:9549: \"$ac_try\"") >&5
d9249 1
a9249 1
  echo "$as_me:9552: \$? = $ac_status" >&5
d9253 1
a9253 1
#line 9556 "configure"
d9270 1
a9270 1
if { (eval echo "$as_me:9573: \"$ac_compile\"") >&5
d9273 1
a9273 1
  echo "$as_me:9576: \$? = $ac_status" >&5
d9276 1
a9276 1
  { (eval echo "$as_me:9579: \"$ac_try\"") >&5
d9279 1
a9279 1
  echo "$as_me:9582: \$? = $ac_status" >&5
d9295 1
a9295 1
  { { echo "$as_me:9598: error: cannot run test program while cross compiling" >&5
d9300 1
a9300 1
#line 9603 "configure"
d9316 1
a9316 1
if { (eval echo "$as_me:9619: \"$ac_link\"") >&5
d9319 1
a9319 1
  echo "$as_me:9622: \$? = $ac_status" >&5
d9321 1
a9321 1
  { (eval echo "$as_me:9624: \"$ac_try\"") >&5
d9324 1
a9324 1
  echo "$as_me:9627: \$? = $ac_status" >&5
d9333 1
a9333 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9337 1
a9337 1
echo "$as_me:9640: result: $ac_cv_c_bigendian" >&5
d9347 1
a9347 1
echo "$as_me:9650: checking for $CC option to accept ANSI C" >&5
d9355 1
a9355 1
#line 9658 "configure"
d9404 1
a9404 1
if { (eval echo "$as_me:9707: \"$ac_compile\"") >&5
d9407 1
a9407 1
  echo "$as_me:9710: \$? = $ac_status" >&5
d9410 1
a9410 1
  { (eval echo "$as_me:9713: \"$ac_try\"") >&5
d9413 1
a9413 1
  echo "$as_me:9716: \$? = $ac_status" >&5
d9430 1
a9430 1
    echo "$as_me:9733: result: none needed" >&5
d9433 1
a9433 1
    echo "$as_me:9736: result: $ac_cv_prog_cc_stdc" >&5
d9438 1
a9438 1
echo "$as_me:9741: checking for an ANSI C-conforming const" >&5
d9444 1
a9444 1
#line 9747 "configure"
d9502 1
a9502 1
if { (eval echo "$as_me:9805: \"$ac_compile\"") >&5
d9505 1
a9505 1
  echo "$as_me:9808: \$? = $ac_status" >&5
d9508 1
a9508 1
  { (eval echo "$as_me:9811: \"$ac_try\"") >&5
d9511 1
a9511 1
  echo "$as_me:9814: \$? = $ac_status" >&5
d9521 1
a9521 1
echo "$as_me:9824: result: $ac_cv_c_const" >&5
d9532 1
a9532 1
echo "$as_me:9835: checking whether stat file-mode macros are broken" >&5
d9538 1
a9538 1
#line 9841 "configure"
d9577 1
a9577 1
echo "$as_me:9880: result: $ac_cv_header_stat_broken" >&5
d9587 1
a9587 1
echo "$as_me:9890: checking whether time.h and sys/time.h may both be included" >&5
d9593 1
a9593 1
#line 9896 "configure"
d9602 1
a9602 2
if ((struct tm *) 0)
return 0;
d9608 1
a9608 1
if { (eval echo "$as_me:9912: \"$ac_compile\"") >&5
d9611 1
a9611 1
  echo "$as_me:9915: \$? = $ac_status" >&5
d9614 1
a9614 1
  { (eval echo "$as_me:9918: \"$ac_try\"") >&5
d9617 1
a9617 1
  echo "$as_me:9921: \$? = $ac_status" >&5
d9627 1
a9627 1
echo "$as_me:9931: result: $ac_cv_header_time" >&5
d9639 2
a9640 2
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
echo "$as_me:9944: checking for $ac_hdr that defines DIR" >&5
d9642 1
a9642 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d9646 1
a9646 1
#line 9950 "configure"
d9654 1
a9654 2
if ((DIR *) 0)
return 0;
d9660 1
a9660 1
if { (eval echo "$as_me:9965: \"$ac_compile\"") >&5
d9663 1
a9663 1
  echo "$as_me:9968: \$? = $ac_status" >&5
d9666 1
a9666 1
  { (eval echo "$as_me:9971: \"$ac_try\"") >&5
d9669 1
a9669 1
  echo "$as_me:9974: \$? = $ac_status" >&5
d9671 1
a9671 1
  eval "$as_ac_Header=yes"
d9675 1
a9675 1
eval "$as_ac_Header=no"
d9679 3
a9681 3
echo "$as_me:9984: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d9683 1
a9683 1
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d9692 1
a9692 1
  echo "$as_me:9997: checking for opendir in -ldir" >&5
d9700 1
a9700 1
#line 10005 "configure"
d9719 1
a9719 1
if { (eval echo "$as_me:10024: \"$ac_link\"") >&5
d9722 1
a9722 1
  echo "$as_me:10027: \$? = $ac_status" >&5
d9725 1
a9725 1
  { (eval echo "$as_me:10030: \"$ac_try\"") >&5
d9728 1
a9728 1
  echo "$as_me:10033: \$? = $ac_status" >&5
d9739 1
a9739 1
echo "$as_me:10044: result: $ac_cv_lib_dir_opendir" >&5
d9746 1
a9746 1
  echo "$as_me:10051: checking for opendir in -lx" >&5
d9754 1
a9754 1
#line 10059 "configure"
d9773 1
a9773 1
if { (eval echo "$as_me:10078: \"$ac_link\"") >&5
d9776 1
a9776 1
  echo "$as_me:10081: \$? = $ac_status" >&5
d9779 1
a9779 1
  { (eval echo "$as_me:10084: \"$ac_try\"") >&5
d9782 1
a9782 1
  echo "$as_me:10087: \$? = $ac_status" >&5
d9793 1
a9793 1
echo "$as_me:10098: result: $ac_cv_lib_x_opendir" >&5
d9803 2
a9804 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:10109: checking for $ac_header" >&5
d9806 1
a9806 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d9810 1
a9810 1
#line 10115 "configure"
d9814 1
a9814 1
if { (eval echo "$as_me:10119: \"$ac_cpp conftest.$ac_ext\"") >&5
d9820 1
a9820 1
  echo "$as_me:10125: \$? = $ac_status" >&5
d9831 1
a9831 1
  eval "$as_ac_Header=yes"
d9835 1
a9835 1
  eval "$as_ac_Header=no"
d9839 3
a9841 3
echo "$as_me:10144: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d9843 1
a9843 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d9851 2
a9852 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:10157: checking for $ac_header" >&5
d9854 1
a9854 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d9858 1
a9858 1
#line 10163 "configure"
d9862 1
a9862 1
if { (eval echo "$as_me:10167: \"$ac_cpp conftest.$ac_ext\"") >&5
d9868 1
a9868 1
  echo "$as_me:10173: \$? = $ac_status" >&5
d9879 1
a9879 1
  eval "$as_ac_Header=yes"
d9883 1
a9883 1
  eval "$as_ac_Header=no"
d9887 3
a9889 3
echo "$as_me:10192: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d9891 1
a9891 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d9897 1
a9897 1
echo "$as_me:10202: checking for ANSI C header files" >&5
d9903 1
a9903 1
#line 10208 "configure"
d9911 1
a9911 1
if { (eval echo "$as_me:10216: \"$ac_cpp conftest.$ac_ext\"") >&5
d9917 1
a9917 1
  echo "$as_me:10222: \$? = $ac_status" >&5
d9939 1
a9939 1
#line 10244 "configure"
d9957 1
a9957 1
#line 10262 "configure"
d9978 1
a9978 1
#line 10283 "configure"
d10004 1
a10004 1
if { (eval echo "$as_me:10309: \"$ac_link\"") >&5
d10007 1
a10007 1
  echo "$as_me:10312: \$? = $ac_status" >&5
d10009 1
a10009 1
  { (eval echo "$as_me:10314: \"$ac_try\"") >&5
d10012 1
a10012 1
  echo "$as_me:10317: \$? = $ac_status" >&5
d10021 1
a10021 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d10025 1
a10025 1
echo "$as_me:10330: result: $ac_cv_header_stdc" >&5
d10035 1
a10035 4
# On IRIX 5.3, sys/types and inttypes.h are conflicting.

for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                  inttypes.h stdint.h unistd.h
d10037 2
a10038 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:10346: checking for $ac_header" >&5
d10040 1
a10040 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d10044 1
a10044 1
#line 10352 "configure"
a10045 1
$ac_includes_default
d10048 2
a10049 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10358: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d10051 15
a10065 9
  echo "$as_me:10361: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10364: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10367: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
d10068 2
a10069 2
cat conftest.$ac_ext >&5
eval "$as_ac_Header=no"
d10071 1
a10071 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10073 3
a10075 3
echo "$as_me:10377: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d10077 1
a10077 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d10083 1
a10083 1
echo "$as_me:10387: checking for struct stat.st_blksize" >&5
d10089 1
a10089 1
#line 10393 "configure"
d10095 2
a10096 3
static struct stat ac_aggr;
if (ac_aggr.st_blksize)
return 0;
d10102 1
a10102 1
if { (eval echo "$as_me:10407: \"$ac_compile\"") >&5
d10105 1
a10105 1
  echo "$as_me:10410: \$? = $ac_status" >&5
d10108 1
a10108 1
  { (eval echo "$as_me:10413: \"$ac_try\"") >&5
d10111 1
a10111 1
  echo "$as_me:10416: \$? = $ac_status" >&5
d10121 1
a10121 1
echo "$as_me:10426: result: $ac_cv_member_struct_stat_st_blksize" >&5
d10133 53
a10185 1
echo "$as_me:10438: checking for off_t" >&5
d10191 1
a10191 1
#line 10444 "configure"
d10206 1
a10206 1
if { (eval echo "$as_me:10459: \"$ac_compile\"") >&5
d10209 1
a10209 1
  echo "$as_me:10462: \$? = $ac_status" >&5
d10212 1
a10212 1
  { (eval echo "$as_me:10465: \"$ac_try\"") >&5
d10215 1
a10215 1
  echo "$as_me:10468: \$? = $ac_status" >&5
d10225 1
a10225 1
echo "$as_me:10478: result: $ac_cv_type_off_t" >&5
d10237 1
a10237 6
if test "$ac_cv_type_off_t" = no; then
	{ { echo "$as_me:10491: error: No off_t type." >&5
echo "$as_me: error: No off_t type." >&2;}
   { (exit 1); exit 1; }; }
fi
echo "$as_me:10495: checking for pid_t" >&5
d10243 1
a10243 1
#line 10501 "configure"
d10258 1
a10258 1
if { (eval echo "$as_me:10516: \"$ac_compile\"") >&5
d10261 1
a10261 1
  echo "$as_me:10519: \$? = $ac_status" >&5
d10264 1
a10264 1
  { (eval echo "$as_me:10522: \"$ac_try\"") >&5
d10267 1
a10267 1
  echo "$as_me:10525: \$? = $ac_status" >&5
d10277 1
a10277 1
echo "$as_me:10535: result: $ac_cv_type_pid_t" >&5
d10289 1
a10289 6
if test "$ac_cv_type_pid_t" = no; then
	{ { echo "$as_me:10548: error: No pid_t type." >&5
echo "$as_me: error: No pid_t type." >&2;}
   { (exit 1); exit 1; }; }
fi
echo "$as_me:10552: checking for size_t" >&5
d10295 1
a10295 1
#line 10558 "configure"
d10310 1
a10310 1
if { (eval echo "$as_me:10573: \"$ac_compile\"") >&5
d10313 1
a10313 1
  echo "$as_me:10576: \$? = $ac_status" >&5
d10316 1
a10316 1
  { (eval echo "$as_me:10579: \"$ac_try\"") >&5
d10319 1
a10319 1
  echo "$as_me:10582: \$? = $ac_status" >&5
d10329 1
a10329 1
echo "$as_me:10592: result: $ac_cv_type_size_t" >&5
d10341 1
a10341 7
if test "$ac_cv_type_size_t" = no; then
	{ { echo "$as_me:10605: error: No size_t type." >&5
echo "$as_me: error: No size_t type." >&2;}
   { (exit 1); exit 1; }; }
fi

echo "$as_me:10610: checking for u_char" >&5
d10348 1
a10348 1
#line 10617 "configure"
d10360 1
a10360 1
if { (eval echo "$as_me:10629: \"$ac_compile\"") >&5
d10363 1
a10363 1
  echo "$as_me:10632: \$? = $ac_status" >&5
d10366 1
a10366 1
  { (eval echo "$as_me:10635: \"$ac_try\"") >&5
d10369 1
a10369 1
  echo "$as_me:10638: \$? = $ac_status" >&5
d10379 1
a10379 1
echo "$as_me:10648: result: $db_cv_uchar" >&5
d10385 1
a10385 1
echo "$as_me:10654: checking for u_short" >&5
d10392 1
a10392 1
#line 10661 "configure"
d10404 1
a10404 1
if { (eval echo "$as_me:10673: \"$ac_compile\"") >&5
d10407 1
a10407 1
  echo "$as_me:10676: \$? = $ac_status" >&5
d10410 1
a10410 1
  { (eval echo "$as_me:10679: \"$ac_try\"") >&5
d10413 1
a10413 1
  echo "$as_me:10682: \$? = $ac_status" >&5
d10423 1
a10423 1
echo "$as_me:10692: result: $db_cv_ushort" >&5
d10429 1
a10429 1
echo "$as_me:10698: checking for u_int" >&5
d10436 1
a10436 1
#line 10705 "configure"
d10448 1
a10448 1
if { (eval echo "$as_me:10717: \"$ac_compile\"") >&5
d10451 1
a10451 1
  echo "$as_me:10720: \$? = $ac_status" >&5
d10454 1
a10454 1
  { (eval echo "$as_me:10723: \"$ac_try\"") >&5
d10457 1
a10457 1
  echo "$as_me:10726: \$? = $ac_status" >&5
d10467 1
a10467 1
echo "$as_me:10736: result: $db_cv_uint" >&5
d10473 1
a10473 1
echo "$as_me:10742: checking for u_long" >&5
d10480 1
a10480 1
#line 10749 "configure"
d10492 1
a10492 1
if { (eval echo "$as_me:10761: \"$ac_compile\"") >&5
d10495 1
a10495 1
  echo "$as_me:10764: \$? = $ac_status" >&5
d10498 1
a10498 1
  { (eval echo "$as_me:10767: \"$ac_try\"") >&5
d10501 1
a10501 1
  echo "$as_me:10770: \$? = $ac_status" >&5
d10511 1
a10511 1
echo "$as_me:10780: result: $db_cv_ulong" >&5
d10519 1
a10519 1
echo "$as_me:10788: checking for u_int8_t" >&5
d10526 1
a10526 1
#line 10795 "configure"
d10538 1
a10538 1
if { (eval echo "$as_me:10807: \"$ac_compile\"") >&5
d10541 1
a10541 1
  echo "$as_me:10810: \$? = $ac_status" >&5
d10544 1
a10544 1
  { (eval echo "$as_me:10813: \"$ac_try\"") >&5
d10547 1
a10547 1
  echo "$as_me:10816: \$? = $ac_status" >&5
d10554 1
a10554 1
  { { echo "$as_me:10823: error: cannot run test program while cross compiling" >&5
d10559 1
a10559 1
#line 10828 "configure"
d10564 1
a10564 1
if { (eval echo "$as_me:10833: \"$ac_link\"") >&5
d10567 1
a10567 1
  echo "$as_me:10836: \$? = $ac_status" >&5
d10569 1
a10569 1
  { (eval echo "$as_me:10838: \"$ac_try\"") >&5
d10572 1
a10572 1
  echo "$as_me:10841: \$? = $ac_status" >&5
d10581 1
a10581 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d10586 1
a10586 1
echo "$as_me:10855: result: $db_cv_uint8" >&5
d10589 1
a10589 1
	{ { echo "$as_me:10858: error: No unsigned 8-bit integral type." >&5
d10597 1
a10597 1
echo "$as_me:10866: checking for u_int16_t" >&5
d10604 1
a10604 1
#line 10873 "configure"
d10616 1
a10616 1
if { (eval echo "$as_me:10885: \"$ac_compile\"") >&5
d10619 1
a10619 1
  echo "$as_me:10888: \$? = $ac_status" >&5
d10622 1
a10622 1
  { (eval echo "$as_me:10891: \"$ac_try\"") >&5
d10625 1
a10625 1
  echo "$as_me:10894: \$? = $ac_status" >&5
d10632 1
a10632 1
  { { echo "$as_me:10901: error: cannot run test program while cross compiling" >&5
d10637 1
a10637 1
#line 10906 "configure"
d10642 1
a10642 1
if { (eval echo "$as_me:10911: \"$ac_link\"") >&5
d10645 1
a10645 1
  echo "$as_me:10914: \$? = $ac_status" >&5
d10647 1
a10647 1
  { (eval echo "$as_me:10916: \"$ac_try\"") >&5
d10650 1
a10650 1
  echo "$as_me:10919: \$? = $ac_status" >&5
d10658 1
a10658 1
  { { echo "$as_me:10927: error: cannot run test program while cross compiling" >&5
d10663 1
a10663 1
#line 10932 "configure"
d10668 1
a10668 1
if { (eval echo "$as_me:10937: \"$ac_link\"") >&5
d10671 1
a10671 1
  echo "$as_me:10940: \$? = $ac_status" >&5
d10673 1
a10673 1
  { (eval echo "$as_me:10942: \"$ac_try\"") >&5
d10676 1
a10676 1
  echo "$as_me:10945: \$? = $ac_status" >&5
d10685 1
a10685 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d10688 1
a10688 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d10693 1
a10693 1
echo "$as_me:10962: result: $db_cv_uint16" >&5
d10696 1
a10696 1
	{ { echo "$as_me:10965: error: No unsigned 16-bit integral type." >&5
d10704 1
a10704 1
echo "$as_me:10973: checking for int16_t" >&5
d10711 1
a10711 1
#line 10980 "configure"
d10723 1
a10723 1
if { (eval echo "$as_me:10992: \"$ac_compile\"") >&5
d10726 1
a10726 1
  echo "$as_me:10995: \$? = $ac_status" >&5
d10729 1
a10729 1
  { (eval echo "$as_me:10998: \"$ac_try\"") >&5
d10732 1
a10732 1
  echo "$as_me:11001: \$? = $ac_status" >&5
d10739 1
a10739 1
  { { echo "$as_me:11008: error: cannot run test program while cross compiling" >&5
d10744 1
a10744 1
#line 11013 "configure"
d10749 1
a10749 1
if { (eval echo "$as_me:11018: \"$ac_link\"") >&5
d10752 1
a10752 1
  echo "$as_me:11021: \$? = $ac_status" >&5
d10754 1
a10754 1
  { (eval echo "$as_me:11023: \"$ac_try\"") >&5
d10757 1
a10757 1
  echo "$as_me:11026: \$? = $ac_status" >&5
d10765 1
a10765 1
  { { echo "$as_me:11034: error: cannot run test program while cross compiling" >&5
d10770 1
a10770 1
#line 11039 "configure"
d10775 1
a10775 1
if { (eval echo "$as_me:11044: \"$ac_link\"") >&5
d10778 1
a10778 1
  echo "$as_me:11047: \$? = $ac_status" >&5
d10780 1
a10780 1
  { (eval echo "$as_me:11049: \"$ac_try\"") >&5
d10783 1
a10783 1
  echo "$as_me:11052: \$? = $ac_status" >&5
d10792 1
a10792 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d10795 1
a10795 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d10800 1
a10800 1
echo "$as_me:11069: result: $db_cv_int16" >&5
d10803 1
a10803 1
	{ { echo "$as_me:11072: error: No signed 16-bit integral type." >&5
d10811 1
a10811 1
echo "$as_me:11080: checking for u_int32_t" >&5
d10818 1
a10818 1
#line 11087 "configure"
d10830 1
a10830 1
if { (eval echo "$as_me:11099: \"$ac_compile\"") >&5
d10833 1
a10833 1
  echo "$as_me:11102: \$? = $ac_status" >&5
d10836 1
a10836 1
  { (eval echo "$as_me:11105: \"$ac_try\"") >&5
d10839 1
a10839 1
  echo "$as_me:11108: \$? = $ac_status" >&5
d10846 1
a10846 1
  { { echo "$as_me:11115: error: cannot run test program while cross compiling" >&5
d10851 1
a10851 1
#line 11120 "configure"
d10856 1
a10856 1
if { (eval echo "$as_me:11125: \"$ac_link\"") >&5
d10859 1
a10859 1
  echo "$as_me:11128: \$? = $ac_status" >&5
d10861 1
a10861 1
  { (eval echo "$as_me:11130: \"$ac_try\"") >&5
d10864 1
a10864 1
  echo "$as_me:11133: \$? = $ac_status" >&5
d10872 1
a10872 1
  { { echo "$as_me:11141: error: cannot run test program while cross compiling" >&5
d10877 1
a10877 1
#line 11146 "configure"
d10882 1
a10882 1
if { (eval echo "$as_me:11151: \"$ac_link\"") >&5
d10885 1
a10885 1
  echo "$as_me:11154: \$? = $ac_status" >&5
d10887 1
a10887 1
  { (eval echo "$as_me:11156: \"$ac_try\"") >&5
d10890 1
a10890 1
  echo "$as_me:11159: \$? = $ac_status" >&5
d10899 1
a10899 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d10902 1
a10902 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d10907 1
a10907 1
echo "$as_me:11176: result: $db_cv_uint32" >&5
d10910 1
a10910 1
	{ { echo "$as_me:11179: error: No unsigned 32-bit integral type." >&5
d10918 1
a10918 1
echo "$as_me:11187: checking for int32_t" >&5
d10925 1
a10925 1
#line 11194 "configure"
d10937 1
a10937 1
if { (eval echo "$as_me:11206: \"$ac_compile\"") >&5
d10940 1
a10940 1
  echo "$as_me:11209: \$? = $ac_status" >&5
d10943 1
a10943 1
  { (eval echo "$as_me:11212: \"$ac_try\"") >&5
d10946 1
a10946 1
  echo "$as_me:11215: \$? = $ac_status" >&5
d10953 1
a10953 1
  { { echo "$as_me:11222: error: cannot run test program while cross compiling" >&5
d10958 1
a10958 1
#line 11227 "configure"
d10963 1
a10963 1
if { (eval echo "$as_me:11232: \"$ac_link\"") >&5
d10966 1
a10966 1
  echo "$as_me:11235: \$? = $ac_status" >&5
d10968 1
a10968 1
  { (eval echo "$as_me:11237: \"$ac_try\"") >&5
d10971 1
a10971 1
  echo "$as_me:11240: \$? = $ac_status" >&5
d10979 1
a10979 1
  { { echo "$as_me:11248: error: cannot run test program while cross compiling" >&5
d10984 1
a10984 1
#line 11253 "configure"
d10989 1
a10989 1
if { (eval echo "$as_me:11258: \"$ac_link\"") >&5
d10992 1
a10992 1
  echo "$as_me:11261: \$? = $ac_status" >&5
d10994 1
a10994 1
  { (eval echo "$as_me:11263: \"$ac_try\"") >&5
d10997 1
a10997 1
  echo "$as_me:11266: \$? = $ac_status" >&5
d11006 1
a11006 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11009 1
a11009 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11014 1
a11014 1
echo "$as_me:11283: result: $db_cv_int32" >&5
d11017 1
a11017 1
	{ { echo "$as_me:11286: error: No signed 32-bit integral type." >&5
d11026 2
a11027 2
# the same size as a size_t.  Prefer int over anything else, because read,
# write and others historically returned an int.
d11029 1
a11029 1
echo "$as_me:11298: checking for ssize_t" >&5
d11036 1
a11036 1
#line 11305 "configure"
d11047 3
a11049 353
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11317: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11320: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11323: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11326: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_ssize_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11333: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11338 "configure"
#include "confdefs.h"

	#include <sys/types.h>
	main(){exit(sizeof(size_t) != sizeof(int));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11345: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11348: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11350: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11353: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_ssize_t="int"
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11361: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11366 "configure"
#include "confdefs.h"

	#include <sys/types.h>
	main(){exit(sizeof(size_t) != sizeof(long long));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11373: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11376: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11378: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11381: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_ssize_t="long long"
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11389: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11394 "configure"
#include "confdefs.h"

	#include <sys/types.h>
	main(){exit(sizeof(size_t) != sizeof(long));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11401: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11404: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11406: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11409: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_ssize_t="long"
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_ssize_t="int"
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11429: result: $db_cv_ssize_t" >&5
echo "${ECHO_T}$db_cv_ssize_t" >&6
if test "$db_cv_ssize_t" != yes; then
	ssize_t_decl="typedef $db_cv_ssize_t ssize_t;"
fi

# Find the largest integral type.

echo "$as_me:11437: checking for largest integral type" >&5
echo $ECHO_N "checking for largest integral type... $ECHO_C" >&6
if test "${db_cv_align_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 11444 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{
long long foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11456: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11459: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11462: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11465: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_align_t="unsigned long long"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_align_t="unsigned long"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11475: result: $db_cv_align_t" >&5
echo "${ECHO_T}$db_cv_align_t" >&6
db_align_t_decl="typedef $db_cv_align_t db_align_t;"

# Find the integral type which is the same size as a pointer.

echo "$as_me:11481: checking for integral type equal to pointer size" >&5
echo $ECHO_N "checking for integral type equal to pointer size... $ECHO_C" >&6
if test "${db_cv_alignp_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

db_cv_alignp_t=$db_cv_align_t
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11489: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11494 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned int) != sizeof(char *));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11499: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11502: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11504: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11507: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_alignp_t="unsigned int"
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11518: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11523 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned long) != sizeof(char *));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11528: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11531: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11533: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11536: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_alignp_t="unsigned long"
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11547: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11552 "configure"
#include "confdefs.h"
main(){exit(sizeof(unsigned long long) != sizeof(char *));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11557: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11560: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11562: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11565: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_alignp_t="unsigned long long"
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:11576: result: $db_cv_alignp_t" >&5
echo "${ECHO_T}$db_cv_alignp_t" >&6
db_alignp_t_decl="typedef $db_cv_alignp_t db_alignp_t;"

echo "$as_me:11580: checking for ANSI C exit success/failure values" >&5
echo $ECHO_N "checking for ANSI C exit success/failure values... $ECHO_C" >&6
if test "${db_cv_exit_defines+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 11587 "configure"
#include "confdefs.h"
#include <stdlib.h>
int
main ()
{
return (EXIT_SUCCESS);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11599: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11602: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11605: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11608: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_exit_defines=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_exit_defines=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11618: result: $db_cv_exit_defines" >&5
echo "${ECHO_T}$db_cv_exit_defines" >&6
if test "$db_cv_exit_defines" = yes; then
	cat >>confdefs.h <<\EOF
#define HAVE_EXIT_SUCCESS 1
EOF

fi

# Test for various functions/libraries that the test and example programs use:
#	sched_yield function
#	pthreads, socket and math libraries
echo "$as_me:11630: checking for sched_yield" >&5
echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
if test "${ac_cv_func_sched_yield+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11636 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sched_yield (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
choke me
#else
f = sched_yield;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11667: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d11051 1
a11051 1
  echo "$as_me:11670: \$? = $ac_status" >&5
d11053 2
a11054 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11673: \"$ac_try\"") >&5
d11057 1
a11057 1
  echo "$as_me:11676: \$? = $ac_status" >&5
d11059 1
a11059 1
  ac_cv_func_sched_yield=yes
d11063 24
a11086 8
ac_cv_func_sched_yield=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:11686: result: $ac_cv_func_sched_yield" >&5
echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
if test $ac_cv_func_sched_yield = yes; then
  :
d11088 7
a11094 4
  echo "$as_me:11691: checking for library containing sched_yield" >&5
echo $ECHO_N "checking for library containing sched_yield... $ECHO_C" >&6
if test "${ac_cv_search_sched_yield+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11096 2
a11097 4
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_sched_yield=no
cat >conftest.$ac_ext <<_ACEOF
#line 11699 "configure"
d11100 2
a11101 14
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
int
main ()
{
sched_yield ();
  ;
  return 0;
}
d11103 2
a11104 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11718: \"$ac_link\"") >&5
d11107 3
a11109 4
  echo "$as_me:11721: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11724: \"$ac_try\"") >&5
d11112 1
a11112 1
  echo "$as_me:11727: \$? = $ac_status" >&5
d11114 1
a11114 1
  ac_cv_search_sched_yield="none required"
d11116 2
a11117 1
  echo "$as_me: failed program was:" >&5
d11119 7
a11125 7
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_sched_yield" = no; then
  for ac_lib in rt; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
#line 11739 "configure"
d11128 2
a11129 14
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
int
main ()
{
sched_yield ();
  ;
  return 0;
}
d11131 2
a11132 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11758: \"$ac_link\"") >&5
d11135 3
a11137 4
  echo "$as_me:11761: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11764: \"$ac_try\"") >&5
d11140 1
a11140 1
  echo "$as_me:11767: \$? = $ac_status" >&5
d11142 1
a11142 2
  ac_cv_search_sched_yield="-l$ac_lib"
break
d11144 2
a11145 1
  echo "$as_me: failed program was:" >&5
d11147 9
a11156 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done
d11158 1
a11158 1
LIBS=$ac_func_search_save_LIBS
d11160 4
a11163 5
echo "$as_me:11780: result: $ac_cv_search_sched_yield" >&5
echo "${ECHO_T}$ac_cv_search_sched_yield" >&6
if test "$ac_cv_search_sched_yield" != no; then
  test "$ac_cv_search_sched_yield" = "none required" || LIBS="$ac_cv_search_sched_yield $LIBS"
  LOAD_LIBS="$LOAD_LIBS -lrt"
d11166 1
a11166 1
fi
d11168 3
a11170 10
# XXX
# We can't check for pthreads in the same way we did the test for sched_yield
# because the Solaris C library includes pthread interfaces which are not
# thread-safe.  For that reason we always add -lpthread if we find a pthread
# library.  Also we can't depend on any specific call existing (pthread_create,
# for example), as it may be #defined in an include file -- OSF/1 (Tru64) has
# this problem.
echo "$as_me:11796: checking for main in -lpthread" >&5
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
if test "${ac_cv_lib_pthread_main+set}" = set; then
d11173 1
a11173 2
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
d11175 1
a11175 1
#line 11804 "configure"
d11177 1
a11177 1

d11181 1
a11181 1
main ();
d11186 3
a11188 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11816: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d11190 1
a11190 1
  echo "$as_me:11819: \$? = $ac_status" >&5
d11192 2
a11193 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11822: \"$ac_try\"") >&5
d11196 1
a11196 1
  echo "$as_me:11825: \$? = $ac_status" >&5
d11198 1
a11198 1
  ac_cv_lib_pthread_main=yes
d11202 1
a11202 1
ac_cv_lib_pthread_main=no
d11204 1
a11204 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d11206 5
a11210 6
echo "$as_me:11836: result: $ac_cv_lib_pthread_main" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
if test $ac_cv_lib_pthread_main = yes; then
  LOAD_LIBS="$LOAD_LIBS -lpthread"
fi
ac_cv_lib_pthread=ac_cv_lib_pthread_main
d11212 3
a11214 6
# XXX
# We could be more exact about whether these libraries are needed, but we don't
# bother -- if they exist, we load them.
echo "$as_me:11846: checking for main in -lm" >&5
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
if test "${ac_cv_lib_m_main+set}" = set; then
d11217 9
a11225 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11854 "configure"
d11227 1
a11227 8

int
main ()
{
main ();
  ;
  return 0;
}
d11229 2
a11230 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11866: \"$ac_link\"") >&5
d11233 3
a11235 4
  echo "$as_me:11869: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11872: \"$ac_try\"") >&5
d11238 1
a11238 1
  echo "$as_me:11875: \$? = $ac_status" >&5
d11240 1
a11240 1
  ac_cv_lib_m_main=yes
d11242 2
a11243 1
  echo "$as_me: failed program was:" >&5
a11244 1
ac_cv_lib_m_main=no
d11246 1
a11246 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d11248 4
a11251 11
echo "$as_me:11886: result: $ac_cv_lib_m_main" >&5
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
if test $ac_cv_lib_m_main = yes; then
  LOAD_LIBS="$LOAD_LIBS -lm"
fi
ac_cv_lib_m=ac_cv_lib_m_main

echo "$as_me:11893: checking for main in -lsocket" >&5
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11253 2
a11254 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11901 "configure"
d11256 1
a11256 8

int
main ()
{
main ();
  ;
  return 0;
}
d11258 2
a11259 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11913: \"$ac_link\"") >&5
d11262 3
a11264 4
  echo "$as_me:11916: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11919: \"$ac_try\"") >&5
d11267 1
a11267 1
  echo "$as_me:11922: \$? = $ac_status" >&5
d11269 1
a11269 1
  ac_cv_lib_socket_main=yes
d11271 2
a11272 1
  echo "$as_me: failed program was:" >&5
a11273 1
ac_cv_lib_socket_main=no
d11275 1
a11275 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d11277 4
a11280 11
echo "$as_me:11933: result: $ac_cv_lib_socket_main" >&5
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
if test $ac_cv_lib_socket_main = yes; then
  LOAD_LIBS="$LOAD_LIBS -lsocket"
fi
ac_cv_lib_socket=ac_cv_lib_socket_main

echo "$as_me:11940: checking for main in -lnsl" >&5
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11282 2
a11283 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11948 "configure"
d11285 1
a11285 8

int
main ()
{
main ();
  ;
  return 0;
}
d11287 2
a11288 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11960: \"$ac_link\"") >&5
d11291 3
a11293 4
  echo "$as_me:11963: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11966: \"$ac_try\"") >&5
d11296 1
a11296 1
  echo "$as_me:11969: \$? = $ac_status" >&5
d11298 1
a11298 1
  ac_cv_lib_nsl_main=yes
d11300 2
a11301 1
  echo "$as_me: failed program was:" >&5
a11302 1
ac_cv_lib_nsl_main=no
d11304 2
a11305 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d11307 21
a11327 4
echo "$as_me:11980: result: $ac_cv_lib_nsl_main" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
if test $ac_cv_lib_nsl_main = yes; then
  LOAD_LIBS="$LOAD_LIBS -lnsl"
d11329 1
a11329 1
ac_cv_lib_nsl=ac_cv_lib_nsl_main
d11331 1
a11331 2
# Check for mutexes.
# We do this here because it changes $LIBS.
d11336 1
a11336 1
echo "$as_me:11993: checking for mutexes" >&5
d11374 1
a11374 1
  { { echo "$as_me:12031: error: cannot run test program while cross compiling" >&5
d11379 1
a11379 1
#line 12036 "configure"
d11394 1
a11394 1
if { (eval echo "$as_me:12051: \"$ac_link\"") >&5
d11397 1
a11397 1
  echo "$as_me:12054: \$? = $ac_status" >&5
d11399 1
a11399 1
  { (eval echo "$as_me:12056: \"$ac_try\"") >&5
d11402 1
a11402 1
  echo "$as_me:12059: \$? = $ac_status" >&5
d11410 1
a11410 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11420 1
a11420 1
  { { echo "$as_me:12077: error: cannot run test program while cross compiling" >&5
d11425 1
a11425 1
#line 12082 "configure"
d11442 1
a11442 1
if { (eval echo "$as_me:12099: \"$ac_link\"") >&5
d11445 1
a11445 1
  echo "$as_me:12102: \$? = $ac_status" >&5
d11447 1
a11447 1
  { (eval echo "$as_me:12104: \"$ac_try\"") >&5
d11450 1
a11450 1
  echo "$as_me:12107: \$? = $ac_status" >&5
d11458 1
a11458 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11464 1
a11464 1
  { { echo "$as_me:12121: error: cannot run test program while cross compiling" >&5
d11469 1
a11469 1
#line 12126 "configure"
d11486 1
a11486 1
if { (eval echo "$as_me:12143: \"$ac_link\"") >&5
d11489 1
a11489 1
  echo "$as_me:12146: \$? = $ac_status" >&5
d11491 1
a11491 1
  { (eval echo "$as_me:12148: \"$ac_try\"") >&5
d11494 1
a11494 1
  echo "$as_me:12151: \$? = $ac_status" >&5
d11502 1
a11502 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11506 1
a11506 1
	{ { echo "$as_me:12163: error: unable to find UI mutex interfaces" >&5
d11516 1
a11516 1
  { { echo "$as_me:12173: error: cannot run test program while cross compiling" >&5
d11521 1
a11521 1
#line 12178 "configure"
d11546 1
a11546 1
if { (eval echo "$as_me:12203: \"$ac_link\"") >&5
d11549 1
a11549 1
  echo "$as_me:12206: \$? = $ac_status" >&5
d11551 1
a11551 1
  { (eval echo "$as_me:12208: \"$ac_try\"") >&5
d11554 1
a11554 1
  echo "$as_me:12211: \$? = $ac_status" >&5
d11562 1
a11562 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11568 1
a11568 1
  { { echo "$as_me:12225: error: cannot run test program while cross compiling" >&5
d11573 1
a11573 1
#line 12230 "configure"
d11598 1
a11598 1
if { (eval echo "$as_me:12255: \"$ac_link\"") >&5
d11601 1
a11601 1
  echo "$as_me:12258: \$? = $ac_status" >&5
d11603 1
a11603 1
  { (eval echo "$as_me:12260: \"$ac_try\"") >&5
d11606 1
a11606 1
  echo "$as_me:12263: \$? = $ac_status" >&5
d11614 1
a11614 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11619 1
a11619 1
	{ { echo "$as_me:12276: error: unable to find POSIX mutex interfaces" >&5
d11628 1
a11628 1
  { { echo "$as_me:12285: error: cannot run test program while cross compiling" >&5
d11633 1
a11633 1
#line 12290 "configure"
d11651 1
a11651 1
if { (eval echo "$as_me:12308: \"$ac_link\"") >&5
d11654 1
a11654 1
  echo "$as_me:12311: \$? = $ac_status" >&5
d11656 1
a11656 1
  { (eval echo "$as_me:12313: \"$ac_try\"") >&5
d11659 1
a11659 1
  echo "$as_me:12316: \$? = $ac_status" >&5
d11667 1
a11667 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11674 1
a11674 1
  { { echo "$as_me:12331: error: cannot run test program while cross compiling" >&5
d11679 1
a11679 1
#line 12336 "configure"
d11683 1
a11683 1
#include <sys/mman.h>
d11694 1
a11694 1
if { (eval echo "$as_me:12351: \"$ac_link\"") >&5
d11697 1
a11697 1
  echo "$as_me:12354: \$? = $ac_status" >&5
d11699 1
a11699 1
  { (eval echo "$as_me:12356: \"$ac_try\"") >&5
d11702 1
a11702 1
  echo "$as_me:12359: \$? = $ac_status" >&5
d11710 1
a11710 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11718 1
a11718 1
#line 12375 "configure"
d11731 1
a11731 1
if { (eval echo "$as_me:12388: \"$ac_link\"") >&5
d11734 1
a11734 1
  echo "$as_me:12391: \$? = $ac_status" >&5
d11737 1
a11737 1
  { (eval echo "$as_me:12394: \"$ac_try\"") >&5
d11740 1
a11740 1
  echo "$as_me:12397: \$? = $ac_status" >&5
d11754 1
a11754 1
  { { echo "$as_me:12411: error: cannot run test program while cross compiling" >&5
d11759 1
a11759 1
#line 12416 "configure"
d11770 1
a11770 1
if { (eval echo "$as_me:12427: \"$ac_link\"") >&5
d11773 1
a11773 1
  echo "$as_me:12430: \$? = $ac_status" >&5
d11775 1
a11775 1
  { (eval echo "$as_me:12432: \"$ac_try\"") >&5
d11778 1
a11778 1
  echo "$as_me:12435: \$? = $ac_status" >&5
d11786 1
a11786 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11793 1
a11793 1
#line 12450 "configure"
d11806 1
a11806 1
if { (eval echo "$as_me:12463: \"$ac_link\"") >&5
d11809 1
a11809 1
  echo "$as_me:12466: \$? = $ac_status" >&5
d11812 1
a11812 1
  { (eval echo "$as_me:12469: \"$ac_try\"") >&5
d11815 1
a11815 1
  echo "$as_me:12472: \$? = $ac_status" >&5
d11831 1
a11831 1
#line 12488 "configure"
d11845 1
a11845 1
if { (eval echo "$as_me:12502: \"$ac_link\"") >&5
d11848 1
a11848 1
  echo "$as_me:12505: \$? = $ac_status" >&5
d11851 1
a11851 1
  { (eval echo "$as_me:12508: \"$ac_try\"") >&5
d11854 1
a11854 1
  echo "$as_me:12511: \$? = $ac_status" >&5
d11871 1
a11871 1
#line 12528 "configure"
d11885 1
a11885 1
if { (eval echo "$as_me:12542: \"$ac_link\"") >&5
d11888 1
a11888 1
  echo "$as_me:12545: \$? = $ac_status" >&5
d11891 1
a11891 1
  { (eval echo "$as_me:12548: \"$ac_try\"") >&5
d11894 1
a11894 1
  echo "$as_me:12551: \$? = $ac_status" >&5
d11907 1
a11907 1
#line 12564 "configure"
d11919 1
a11919 1
if { (eval echo "$as_me:12576: \"$ac_link\"") >&5
d11922 1
a11922 1
  echo "$as_me:12579: \$? = $ac_status" >&5
d11925 1
a11925 1
  { (eval echo "$as_me:12582: \"$ac_try\"") >&5
d11928 1
a11928 1
  echo "$as_me:12585: \$? = $ac_status" >&5
d11941 1
a11941 1
  { { echo "$as_me:12598: error: cannot run test program while cross compiling" >&5
d11946 1
a11946 1
#line 12603 "configure"
d11957 1
a11957 1
if { (eval echo "$as_me:12614: \"$ac_link\"") >&5
d11960 1
a11960 1
  echo "$as_me:12617: \$? = $ac_status" >&5
d11962 1
a11962 1
  { (eval echo "$as_me:12619: \"$ac_try\"") >&5
d11965 1
a11965 1
  echo "$as_me:12622: \$? = $ac_status" >&5
d11973 1
a11973 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11980 1
a11980 1
  { { echo "$as_me:12637: error: cannot run test program while cross compiling" >&5
d11985 1
a11985 1
#line 12642 "configure"
d11996 1
a11996 1
if { (eval echo "$as_me:12653: \"$ac_link\"") >&5
d11999 1
a11999 1
  echo "$as_me:12656: \$? = $ac_status" >&5
d12001 1
a12001 1
  { (eval echo "$as_me:12658: \"$ac_try\"") >&5
d12004 1
a12004 1
  echo "$as_me:12661: \$? = $ac_status" >&5
d12012 1
a12012 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12019 1
a12019 1
  { { echo "$as_me:12676: error: cannot run test program while cross compiling" >&5
d12024 1
a12024 1
#line 12681 "configure"
d12035 1
a12035 1
if { (eval echo "$as_me:12692: \"$ac_link\"") >&5
d12038 1
a12038 1
  echo "$as_me:12695: \$? = $ac_status" >&5
d12040 1
a12040 1
  { (eval echo "$as_me:12697: \"$ac_try\"") >&5
d12043 1
a12043 1
  echo "$as_me:12700: \$? = $ac_status" >&5
d12051 1
a12051 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12058 1
a12058 1
  { { echo "$as_me:12715: error: cannot run test program while cross compiling" >&5
d12063 1
a12063 1
#line 12720 "configure"
d12075 1
a12075 1
if { (eval echo "$as_me:12732: \"$ac_link\"") >&5
d12078 1
a12078 1
  echo "$as_me:12735: \$? = $ac_status" >&5
d12080 1
a12080 1
  { (eval echo "$as_me:12737: \"$ac_try\"") >&5
d12083 1
a12083 1
  echo "$as_me:12740: \$? = $ac_status" >&5
d12091 1
a12091 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12098 1
a12098 1
  { { echo "$as_me:12755: error: cannot run test program while cross compiling" >&5
d12103 1
a12103 1
#line 12760 "configure"
d12115 1
a12115 1
if { (eval echo "$as_me:12772: \"$ac_link\"") >&5
d12118 1
a12118 1
  echo "$as_me:12775: \$? = $ac_status" >&5
d12120 1
a12120 1
  { (eval echo "$as_me:12777: \"$ac_try\"") >&5
d12123 1
a12123 1
  echo "$as_me:12780: \$? = $ac_status" >&5
d12131 1
a12131 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12138 1
a12138 1
  { { echo "$as_me:12795: error: cannot run test program while cross compiling" >&5
d12143 1
a12143 1
#line 12800 "configure"
d12155 1
a12155 1
if { (eval echo "$as_me:12812: \"$ac_link\"") >&5
d12158 1
a12158 1
  echo "$as_me:12815: \$? = $ac_status" >&5
d12160 1
a12160 1
  { (eval echo "$as_me:12817: \"$ac_try\"") >&5
d12163 1
a12163 1
  echo "$as_me:12820: \$? = $ac_status" >&5
d12171 1
a12171 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12178 1
a12178 1
  { { echo "$as_me:12835: error: cannot run test program while cross compiling" >&5
d12183 1
a12183 1
#line 12840 "configure"
d12195 1
a12195 1
if { (eval echo "$as_me:12852: \"$ac_link\"") >&5
d12198 1
a12198 1
  echo "$as_me:12855: \$? = $ac_status" >&5
d12200 1
a12200 1
  { (eval echo "$as_me:12857: \"$ac_try\"") >&5
d12203 1
a12203 1
  echo "$as_me:12860: \$? = $ac_status" >&5
d12211 1
a12211 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12218 1
a12218 1
  { { echo "$as_me:12875: error: cannot run test program while cross compiling" >&5
d12223 1
a12223 1
#line 12880 "configure"
d12233 1
a12233 1
if { (eval echo "$as_me:12890: \"$ac_link\"") >&5
d12236 1
a12236 1
  echo "$as_me:12893: \$? = $ac_status" >&5
d12238 1
a12238 1
  { (eval echo "$as_me:12895: \"$ac_try\"") >&5
d12241 1
a12241 1
  echo "$as_me:12898: \$? = $ac_status" >&5
d12249 1
a12249 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12254 1
a12254 1
echo "$as_me:12911: result: $db_cv_mutex" >&5
d12258 1
a12258 1
	{ echo "$as_me:12915: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&5
d12409 2
a12410 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13067: checking for $ac_func" >&5
d12412 1
a12412 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12416 1
a12416 1
#line 13073 "configure"
d12447 1
a12447 1
if { (eval echo "$as_me:13104: \"$ac_link\"") >&5
d12450 1
a12450 1
  echo "$as_me:13107: \$? = $ac_status" >&5
d12453 1
a12453 1
  { (eval echo "$as_me:13110: \"$ac_try\"") >&5
d12456 1
a12456 1
  echo "$as_me:13113: \$? = $ac_status" >&5
d12458 1
a12458 1
  eval "$as_ac_var=yes"
d12462 1
a12462 1
eval "$as_ac_var=no"
d12466 3
a12468 3
echo "$as_me:13123: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d12470 1
a12470 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d12480 2
a12481 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13138: checking for $ac_func" >&5
d12483 1
a12483 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12487 1
a12487 1
#line 13144 "configure"
d12518 1
a12518 1
if { (eval echo "$as_me:13175: \"$ac_link\"") >&5
d12521 1
a12521 1
  echo "$as_me:13178: \$? = $ac_status" >&5
d12524 1
a12524 1
  { (eval echo "$as_me:13181: \"$ac_try\"") >&5
d12527 1
a12527 1
  echo "$as_me:13184: \$? = $ac_status" >&5
d12529 1
a12529 1
  eval "$as_ac_var=yes"
d12533 1
a12533 1
eval "$as_ac_var=no"
d12537 3
a12539 3
echo "$as_me:13194: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d12541 1
a12541 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d12560 2
a12561 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13218: checking for $ac_func" >&5
d12563 1
a12563 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12567 1
a12567 1
#line 13224 "configure"
d12598 1
a12598 1
if { (eval echo "$as_me:13255: \"$ac_link\"") >&5
d12601 1
a12601 1
  echo "$as_me:13258: \$? = $ac_status" >&5
d12604 1
a12604 1
  { (eval echo "$as_me:13261: \"$ac_try\"") >&5
d12607 1
a12607 1
  echo "$as_me:13264: \$? = $ac_status" >&5
d12609 1
a12609 1
  eval "$as_ac_var=yes"
d12613 1
a12613 1
eval "$as_ac_var=no"
d12617 3
a12619 3
echo "$as_me:13274: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d12621 1
a12621 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d12627 1
a12627 1
for ac_func in gettimeofday clock_gettime sysconf yield
d12629 2
a12630 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13287: checking for $ac_func" >&5
d12632 1
a12632 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12636 1
a12636 1
#line 13293 "configure"
d12667 1
a12667 1
if { (eval echo "$as_me:13324: \"$ac_link\"") >&5
d12670 1
a12670 1
  echo "$as_me:13327: \$? = $ac_status" >&5
d12673 1
a12673 1
  { (eval echo "$as_me:13330: \"$ac_try\"") >&5
d12676 1
a12676 1
  echo "$as_me:13333: \$? = $ac_status" >&5
d12678 1
a12678 1
  eval "$as_ac_var=yes"
d12682 1
a12682 1
eval "$as_ac_var=no"
d12686 3
a12688 3
echo "$as_me:13343: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d12690 1
a12690 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d12701 1
a12701 1
	{ echo "$as_me:13358: WARNING: pread/pwrite interfaces ignored on $host_os." >&5
d12707 2
a12708 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13365: checking for $ac_func" >&5
d12710 1
a12710 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12714 1
a12714 1
#line 13371 "configure"
d12745 1
a12745 1
if { (eval echo "$as_me:13402: \"$ac_link\"") >&5
d12748 1
a12748 1
  echo "$as_me:13405: \$? = $ac_status" >&5
d12751 1
a12751 1
  { (eval echo "$as_me:13408: \"$ac_try\"") >&5
d12754 1
a12754 1
  echo "$as_me:13411: \$? = $ac_status" >&5
d12756 1
a12756 1
  eval "$as_ac_var=yes"
d12760 1
a12760 1
eval "$as_ac_var=no"
d12764 3
a12766 3
echo "$as_me:13421: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d12768 1
a12768 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d12777 1
a12777 1
echo "$as_me:13434: checking for fcntl/F_SETFD" >&5
d12784 1
a12784 1
  { { echo "$as_me:13441: error: cannot run test program while cross compiling" >&5
d12789 1
a12789 1
#line 13446 "configure"
d12797 1
a12797 1
if { (eval echo "$as_me:13454: \"$ac_link\"") >&5
d12800 1
a12800 1
  echo "$as_me:13457: \$? = $ac_status" >&5
d12802 1
a12802 1
  { (eval echo "$as_me:13459: \"$ac_try\"") >&5
d12805 1
a12805 1
  echo "$as_me:13462: \$? = $ac_status" >&5
d12814 1
a12814 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12817 1
a12817 1
echo "$as_me:13474: result: $db_cv_fcntl_f_setfd" >&5
d12836 2
a12837 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13494: checking for $ac_func" >&5
d12839 1
a12839 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12843 1
a12843 1
#line 13500 "configure"
d12874 1
a12874 1
if { (eval echo "$as_me:13531: \"$ac_link\"") >&5
d12877 1
a12877 1
  echo "$as_me:13534: \$? = $ac_status" >&5
d12880 1
a12880 1
  { (eval echo "$as_me:13537: \"$ac_try\"") >&5
d12883 1
a12883 1
  echo "$as_me:13540: \$? = $ac_status" >&5
d12885 1
a12885 1
  eval "$as_ac_var=yes"
d12889 1
a12889 1
eval "$as_ac_var=no"
d12893 3
a12895 3
echo "$as_me:13550: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d12897 1
a12897 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d12901 1
a12901 1
  { { echo "$as_me:13558: error: No qsort library function." >&5
d12910 1
a12910 1
echo "$as_me:13567: checking for int type sprintf return value" >&5
d12917 1
a12917 1
  { { echo "$as_me:13574: error: cannot run test program while cross compiling" >&5
d12922 1
a12922 1
#line 13579 "configure"
d12927 1
a12927 1
if { (eval echo "$as_me:13584: \"$ac_link\"") >&5
d12930 1
a12930 1
  echo "$as_me:13587: \$? = $ac_status" >&5
d12932 1
a12932 1
  { (eval echo "$as_me:13589: \"$ac_try\"") >&5
d12935 1
a12935 1
  echo "$as_me:13592: \$? = $ac_status" >&5
d12944 1
a12944 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12947 1
a12947 1
echo "$as_me:13604: result: $db_cv_sprintf_count" >&5
d12963 1
a12963 1
{ echo "$as_me:13620: WARNING: Large file and C++ API support are incompatible on HP-UX" >&5
d12965 1
a12965 1
{ echo "$as_me:13622: WARNING: and Solaris 8; large file support has been turned off." >&5
d12978 1
a12978 1
  echo "$as_me:13635: checking for special C compiler options needed for large files" >&5
d12990 1
a12990 1
#line 13647 "configure"
d13010 1
a13010 1
if { (eval echo "$as_me:13667: \"$ac_compile\"") >&5
d13013 1
a13013 1
  echo "$as_me:13670: \$? = $ac_status" >&5
d13016 1
a13016 1
  { (eval echo "$as_me:13673: \"$ac_try\"") >&5
d13019 1
a13019 1
  echo "$as_me:13676: \$? = $ac_status" >&5
d13029 1
a13029 1
if { (eval echo "$as_me:13686: \"$ac_compile\"") >&5
d13032 1
a13032 1
  echo "$as_me:13689: \$? = $ac_status" >&5
d13035 1
a13035 1
  { (eval echo "$as_me:13692: \"$ac_try\"") >&5
d13038 1
a13038 1
  echo "$as_me:13695: \$? = $ac_status" >&5
d13052 1
a13052 1
echo "$as_me:13709: result: $ac_cv_sys_largefile_CC" >&5
d13058 1
a13058 1
  echo "$as_me:13715: checking for _FILE_OFFSET_BITS value needed for large files" >&5
d13066 1
a13066 1
#line 13723 "configure"
d13086 1
a13086 1
if { (eval echo "$as_me:13743: \"$ac_compile\"") >&5
d13089 1
a13089 1
  echo "$as_me:13746: \$? = $ac_status" >&5
d13092 1
a13092 1
  { (eval echo "$as_me:13749: \"$ac_try\"") >&5
d13095 1
a13095 1
  echo "$as_me:13752: \$? = $ac_status" >&5
d13104 1
a13104 1
#line 13761 "configure"
d13125 1
a13125 1
if { (eval echo "$as_me:13782: \"$ac_compile\"") >&5
d13128 1
a13128 1
  echo "$as_me:13785: \$? = $ac_status" >&5
d13131 1
a13131 1
  { (eval echo "$as_me:13788: \"$ac_try\"") >&5
d13134 1
a13134 1
  echo "$as_me:13791: \$? = $ac_status" >&5
d13145 1
a13145 1
echo "$as_me:13802: result: $ac_cv_sys_file_offset_bits" >&5
d13155 1
a13155 1
  echo "$as_me:13812: checking for _LARGE_FILES value needed for large files" >&5
d13163 1
a13163 1
#line 13820 "configure"
d13183 1
a13183 1
if { (eval echo "$as_me:13840: \"$ac_compile\"") >&5
d13186 1
a13186 1
  echo "$as_me:13843: \$? = $ac_status" >&5
d13189 1
a13189 1
  { (eval echo "$as_me:13846: \"$ac_try\"") >&5
d13192 1
a13192 1
  echo "$as_me:13849: \$? = $ac_status" >&5
d13201 1
a13201 1
#line 13858 "configure"
d13222 1
a13222 1
if { (eval echo "$as_me:13879: \"$ac_compile\"") >&5
d13225 1
a13225 1
  echo "$as_me:13882: \$? = $ac_status" >&5
d13228 1
a13228 1
  { (eval echo "$as_me:13885: \"$ac_try\"") >&5
d13231 1
a13231 1
  echo "$as_me:13888: \$? = $ac_status" >&5
d13242 1
a13242 1
echo "$as_me:13899: result: $ac_cv_sys_large_files" >&5
d13270 1
a13270 1
	{ echo "$as_me:13927: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&5
d13276 2
a13277 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13934: checking for $ac_func" >&5
d13279 1
a13279 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d13283 1
a13283 1
#line 13940 "configure"
d13314 1
a13314 1
if { (eval echo "$as_me:13971: \"$ac_link\"") >&5
d13317 1
a13317 1
  echo "$as_me:13974: \$? = $ac_status" >&5
d13320 1
a13320 1
  { (eval echo "$as_me:13977: \"$ac_try\"") >&5
d13323 1
a13323 1
  echo "$as_me:13980: \$? = $ac_status" >&5
d13325 1
a13325 1
  eval "$as_ac_var=yes"
d13329 1
a13329 1
eval "$as_ac_var=no"
d13333 3
a13335 3
echo "$as_me:13990: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d13337 1
a13337 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d13346 1
a13346 1
	{ echo "$as_me:14003: WARNING: mmap(2) interface ignored on Ultrix." >&5
d13353 2
a13354 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:14011: checking for $ac_func" >&5
d13356 1
a13356 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d13360 1
a13360 1
#line 14017 "configure"
d13391 1
a13391 1
if { (eval echo "$as_me:14048: \"$ac_link\"") >&5
d13394 1
a13394 1
  echo "$as_me:14051: \$? = $ac_status" >&5
d13397 1
a13397 1
  { (eval echo "$as_me:14054: \"$ac_try\"") >&5
d13400 1
a13400 1
  echo "$as_me:14057: \$? = $ac_status" >&5
d13402 1
a13402 1
  eval "$as_ac_var=yes"
d13406 1
a13406 1
eval "$as_ac_var=no"
d13410 3
a13412 3
echo "$as_me:14067: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d13414 1
a13414 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d13422 2
a13423 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:14080: checking for $ac_func" >&5
d13425 1
a13425 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d13429 1
a13429 1
#line 14086 "configure"
d13460 1
a13460 1
if { (eval echo "$as_me:14117: \"$ac_link\"") >&5
d13463 1
a13463 1
  echo "$as_me:14120: \$? = $ac_status" >&5
d13466 1
a13466 1
  { (eval echo "$as_me:14123: \"$ac_try\"") >&5
d13469 1
a13469 1
  echo "$as_me:14126: \$? = $ac_status" >&5
d13471 1
a13471 1
  eval "$as_ac_var=yes"
d13475 1
a13475 1
eval "$as_ac_var=no"
d13479 3
a13481 3
echo "$as_me:14136: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d13483 1
a13483 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d13500 1
a13500 1
	{ echo "$as_me:14157: WARNING: shmget(2) interface ignored on SunOS." >&5
d13507 2
a13508 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:14165: checking for $ac_func" >&5
d13510 1
a13510 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d13514 1
a13514 1
#line 14171 "configure"
d13545 1
a13545 1
if { (eval echo "$as_me:14202: \"$ac_link\"") >&5
d13548 1
a13548 1
  echo "$as_me:14205: \$? = $ac_status" >&5
d13551 1
a13551 1
  { (eval echo "$as_me:14208: \"$ac_try\"") >&5
d13554 1
a13554 1
  echo "$as_me:14211: \$? = $ac_status" >&5
d13556 1
a13556 1
  eval "$as_ac_var=yes"
d13560 1
a13560 1
eval "$as_ac_var=no"
d13564 3
a13566 3
echo "$as_me:14221: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d13568 1
a13568 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d13580 1
a13580 1
	{ echo "$as_me:14237: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
a13586 1
    db_cxx.h:$srcdir/../include/db_cxx.in
d13593 1
a13593 1
    CREATE_LIST="$CREATE_LIST
d13596 1
a13596 1
    CREATE_LIST="$CREATE_LIST
d13603 1
a13603 1
    CREATE_LIST="$CREATE_LIST
a13616 1
    rep_ext.h:$srcdir/../include_auto/rep_ext.in
d13625 1
a13625 1
		CREATE_LIST="$CREATE_LIST
d13629 1
a13629 1
		CREATE_LIST="$CREATE_LIST
d13635 1
a13635 1
	CREATE_LIST="$CREATE_LIST db.ecd:../dist/db.ecd.in"
d13638 1
a13638 1
	CREATE_LIST="$CREATE_LIST db.spec:../dist/db.spec.in"
d13641 1
a13641 1
ac_config_files="$ac_config_files $CREATE_LIST"
d13672 1
a13672 1
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
d13677 1
a13677 1
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
d13722 1
a13722 1
{ echo "$as_me:14381: creating $CONFIG_STATUS" >&5
d13851 1
a13851 1
configured by $0, generated by GNU Autoconf 2.52,
d13895 1
a13895 1
    { { echo "$as_me:14554: error: ambiguous option: $1
d13913 4
d13918 1
a13918 1
  -*) { { echo "$as_me:14573: error: unrecognized option: $1
d13923 3
a13925 3

  *) ac_config_targets="$ac_config_targets $1" ;;

d13937 1
a13937 5
This file was extended by $as_me 2.52, executed with
  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
a13944 12
for ac_config_target in $ac_config_targets
do
  case "$ac_config_target" in
  # Handling of arguments.
  "$CREATE_LIST" ) CONFIG_FILES="$CONFIG_FILES $CREATE_LIST" ;;
  "db_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS db_config.h:config.hin" ;;
  *) { { echo "$as_me:14610: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done

d13958 1
a13958 1
  trap '{ (exit 1); exit 1; }' 1 2 13 15
a14010 3
s,@@build_alias@@,$build_alias,;t t
s,@@host_alias@@,$host_alias,;t t
s,@@target_alias@@,$target_alias,;t t
d14027 1
d14047 1
a14054 1
s,@@LOAD_LIBS@@,$LOAD_LIBS,;t t
a14058 2
s,@@MAKEFILE_SOLINK@@,$MAKEFILE_SOLINK,;t t
s,@@MAKEFILE_XSOLINK@@,$MAKEFILE_XSOLINK,;t t
d14064 1
d14066 1
a14112 1
s,@@cxx_have_stdheaders@@,$cxx_have_stdheaders,;t t
d14120 3
a14122 2
s,@@JAVAC@@,$JAVAC,;t t
s,@@_ACJNI_JAVAC@@,$_ACJNI_JAVAC,;t t
d14255 1
a14255 1
    { echo "$as_me:14928: creating $ac_file" >&5
d14273 1
a14273 1
         test -f "$f" || { { echo "$as_me:14946: error: cannot find input file: $f" >&5
d14286 1
a14286 1
           { { echo "$as_me:14959: error: cannot find input file: $f" >&5
d14347 1
a14347 1
  test x"$ac_file" != x- && { echo "$as_me:15020: creating $ac_file" >&5
d14358 1
a14358 1
         test -f "$f" || { { echo "$as_me:15031: error: cannot find input file: $f" >&5
d14371 1
a14371 1
           { { echo "$as_me:15044: error: cannot find input file: $f" >&5
d14488 1
a14488 1
      { echo "$as_me:15161: $ac_file is unchanged" >&5
@


1.1.1.3
log
@track: auto import
@
text
@d2 1
d4 2
a5 1
# Generated by Autoconf 2.50.
a6 2
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
d10 2
a11 228
# Find the correct PATH separator.  Usually this is `:', but
# DJGPP uses `;' like DOS.
if test "X${PATH_SEPARATOR+set}" != Xset; then
  UNAME=${UNAME-`uname 2>/dev/null`}
  case X$UNAME in
    *-DOS) lt_cv_sys_path_separator=';' ;;
    *)     lt_cv_sys_path_separator=':' ;;
  esac
fi

# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}

case X$ECHO in
X*--fallback-echo)
  # Remove one level of quotation (which was required for Make).
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  ;;
esac

echo=${ECHO-echo}
if test "X$1" = X--no-reexec; then
  # Discard the --no-reexec flag, and continue.
  shift
elif test "X$1" = X--fallback-echo; then
  # Avoid inline document here, it may be left over
  :
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  # Yippee, $echo works!
  :
else
  # Restart under the correct shell.
  exec $SHELL "$0" --no-reexec ${1+"$@@"}
fi

if test "X$1" = X--fallback-echo; then
  # used as fallback echo
  shift
  cat <<EOF

EOF
  exit 0
fi

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi

if test -z "$ECHO"; then
if test "X${echo_test_string+set}" != Xset; then
# find a string as large as possible, as long as the shell can cope with it
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
       echo_test_string="`eval $cmd`" &&
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
    then
      break
    fi
  done
fi

if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   test "X$echo_testing_string" = "X$echo_test_string"; then
  :
else
  # The Solaris, AIX, and Digital Unix default echo programs unquote
  # backslashes.  This makes it impossible to quote backslashes using
  #   echo "$something" | sed 's/\\/\\\\/g'
  #
  # So, first we look for a working echo in the user's PATH.

  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  for dir in $PATH /usr/ucb; do
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      echo="$dir/echo"
      break
    fi
  done
  IFS="$save_ifs"

  if test "X$echo" = Xecho; then
    # We didn't find a better echo, so look for alternatives.
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      # This shell has a builtin print -r that does the trick.
      echo='print -r'
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
      # If we have ksh, try running configure again with it.
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
      export ORIGINAL_CONFIG_SHELL
      CONFIG_SHELL=/bin/ksh
      export CONFIG_SHELL
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@@"}
    else
      # Try using printf.
      echo='printf %s\n'
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
	 test "X$echo_testing_string" = "X$echo_test_string"; then
	# Cool, printf works
	:
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
	export CONFIG_SHELL
	SHELL="$CONFIG_SHELL"
	export SHELL
	echo="$CONFIG_SHELL $0 --fallback-echo"
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	echo="$CONFIG_SHELL $0 --fallback-echo"
      else
	# maybe with a smaller string...
	prev=:

	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
	  then
	    break
	  fi
	  prev="$cmd"
	done

	if test "$prev" != 'sed 50q "$0"'; then
	  echo_test_string=`eval $prev`
	  export echo_test_string
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@@"}
	else
	  # Oops.  We lost completely, so just stick with echo.
	  echo=echo
	fi
      fi
    fi
  fi
fi
fi

# Copy echo and quote the copy suitably for passing to libtool from
# the Makefile, instead of quoting the original, which is used later.
ECHO=$echo
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
fi

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

exec 6>&1

#
# Initializations.
#
d13 1
a13 21
cross_compiling=no
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Maximum number of lines to put in a shell here document.
# This variable seems obsolete.  It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}

# Avoid depending upon Character Ranges.
ac_cr_az='abcdefghijklmnopqrstuvwxyz'
ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ac_cr_09='0123456789'
ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09

# Sed expression to map a string onto a valid sh and CPP variable names.
ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"

ac_unique_file="../db/db.c"
d15 42
a56 29
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#else
# if HAVE_STRINGS_H
#  include <strings.h>
# endif
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"
a58 2
ac_init_help=
ac_init_version=false
d61 2
a62 1
cache_file=/dev/null
d64 1
d66 1
d75 1
a78 6

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
d92 6
a97 6
# Identity of this package.
PACKAGE_NAME=
PACKAGE_TARNAME=
PACKAGE_VERSION=
PACKAGE_STRING=
PACKAGE_BUGREPORT=
d102 1
d110 4
a113 1
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
d117 1
a117 1
  case $ac_option in
d122 1
a122 1
    bindir=$ac_optarg ;;
d125 1
a125 1
    ac_prev=build_alias ;;
d127 1
a127 1
    build_alias=$ac_optarg ;;
d134 1
a134 4
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;
d140 1
a140 1
    datadir=$ac_optarg ;;
d143 1
a143 1
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d145 5
a149 5
    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    eval "enable_$ac_feature=no" ;;
d152 1
a152 1
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d154 6
a159 6
    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d162 1
a162 1
    eval "enable_$ac_feature='$ac_optarg'" ;;
d171 1
a171 1
    exec_prefix=$ac_optarg ;;
d177 54
a230 6
  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;
d233 1
a233 1
    ac_prev=host_alias ;;
d235 1
a235 1
    host_alias=$ac_optarg ;;
d242 1
a242 1
    includedir=$ac_optarg ;;
d247 1
a247 1
    infodir=$ac_optarg ;;
d252 1
a252 1
    libdir=$ac_optarg ;;
d259 1
a259 1
    libexecdir=$ac_optarg ;;
d268 1
a268 1
    localstatedir=$ac_optarg ;;
d273 1
a273 1
    mandir=$ac_optarg ;;
d294 1
a294 1
    oldincludedir=$ac_optarg ;;
d299 1
a299 1
    prefix=$ac_optarg ;;
d306 1
a306 1
    program_prefix=$ac_optarg ;;
d313 1
a313 1
    program_suffix=$ac_optarg ;;
d330 1
a330 1
    program_transform_name=$ac_optarg ;;
d340 1
a340 1
    sbindir=$ac_optarg ;;
d351 1
a351 1
    sharedstatedir=$ac_optarg ;;
d356 1
a356 1
    site=$ac_optarg ;;
d361 1
a361 1
    srcdir=$ac_optarg ;;
d368 1
a368 1
    sysconfdir=$ac_optarg ;;
d371 1
a371 1
    ac_prev=target_alias ;;
d373 1
a373 1
    target_alias=$ac_optarg ;;
d378 3
a380 2
  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;
d383 1
a383 1
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d385 3
a387 3
    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
d389 2
a390 2
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d393 1
a393 1
    eval "with_$ac_package='$ac_optarg'" ;;
d396 1
a396 1
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d398 5
a402 5
    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package | sed 's/-/_/g'`
    eval "with_$ac_package=no" ;;
d413 1
a413 1
    x_includes=$ac_optarg ;;
d420 1
a420 1
    x_libraries=$ac_optarg ;;
d422 1
a422 3
  -*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; }
a424 10
  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    eval "$ac_envvar='$ac_optarg'"
    export $ac_envvar ;;

d426 7
a432 5
    # FIXME: should be removed in autoconf 3.0.
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d439 17
a455 3
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  { echo "$as_me: error: missing argument to $ac_option" >&2
   { (exit 1); exit 1; }; }
d457 6
d464 4
a467 4
# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
              localstatedir libdir includedir oldincludedir infodir mandir \
              exec_prefix prefix
d469 8
a476 6
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* ) ;;
    NONE ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
d480 9
a488 16
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: should be removed in autoconf 3.0.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi
d490 4
a493 2
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
d495 3
a497 1
test "$silent" = yes && exec 6>/dev/null
d504 1
a504 1
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
d515 1
a515 2
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
   { (exit 1); exit 1; }; }
d517 1
a517 2
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
   { (exit 1); exit 1; }; }
d520 1
a520 333
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
ac_env_CC_set=${CC+set}
ac_env_CC_value=$CC
ac_cv_env_CC_set=${CC+set}
ac_cv_env_CC_value=$CC
ac_env_CFLAGS_set=${CFLAGS+set}
ac_env_CFLAGS_value=$CFLAGS
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_value=$CFLAGS
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_LDFLAGS_value=$LDFLAGS
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_value=$LDFLAGS
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPPFLAGS_value=$CPPFLAGS
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
ac_env_CXX_set=${CXX+set}
ac_env_CXX_value=$CXX
ac_cv_env_CXX_set=${CXX+set}
ac_cv_env_CXX_value=$CXX
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_env_CXXFLAGS_value=$CXXFLAGS
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<EOF
\`configure' configures this package to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

EOF

  cat <<EOF
Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --infodir=DIR          info documentation [PREFIX/info]
  --mandir=DIR           man documentation [PREFIX/man]
EOF

  cat <<\EOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       build programs to run on HOST [BUILD]
EOF
fi

if test -n "$ac_init_help"; then

  cat <<\EOF

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-bigfile       Obsolete; use --disable-largefile instead.
  --enable-compat185      Build DB 1.85 compatibility API.
  --enable-cxx            Build C++ API.
  --enable-debug          Build a debugging version.
  --enable-debug_rop      Build a version that logs read operations.
  --enable-debug_wop      Build a version that logs write operations.
  --enable-diagnostic     Build a version with run-time diagnostics.
  --enable-dump185        Build db_dump185(1) to dump 1.85 databases.
  --enable-java           Build Java API.
  --enable-posixmutexes   Force use of POSIX standard mutexes.
  --enable-rpc            Build RPC client/server.
  --enable-tcl            Build Tcl API.
  --enable-test           Configure to run the test suite.
  --enable-uimutexes      Force use of Unix International mutexes.
  --enable-umrw           Mask harmless unitialized memory read/writes.
  --enable-shared=PKGS    build shared libraries default=yes
  --enable-static=PKGS    build static libraries default=yes
  --enable-fast-install=PKGS  optimize for fast installation default=yes
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --disable-largefile     omit support for large files

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-embedix=DIR      Embedix install directory location.
  --with-rpm=DIR          Directory location of RPM archive.
  --with-tcl=DIR          Directory location of tclConfig.sh.
  --with-uniquename=NAME  Build a uniquely named library.
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
  --with-pic              try to use only PIC/non-PIC objects default=use both

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CPP         C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

EOF
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  ac_popdir=`pwd`
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    cd $ac_subdir
    # A "../" for each directory in /$ac_subdir.
    ac_dots=`echo $ac_subdir |
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`

    case $srcdir in
    .) # No --srcdir option.  We are building in place.
      ac_sub_srcdir=$srcdir ;;
    [\\/]* | ?:[\\/]* ) # Absolute path.
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
    *) # Relative path.
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    esac

    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f $ac_sub_srcdir/configure.gnu; then
      echo
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_sub_srcdir/configure; then
      echo
      $SHELL $ac_sub_srcdir/configure  --help=recursive
    elif test -f $ac_sub_srcdir/configure.ac ||
           test -f $ac_sub_srcdir/configure.in; then
      echo
      $ac_configure --help
    else
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    fi
    cd $ac_popdir
  done
fi

test -n "$ac_init_help" && exit 0
if $ac_init_version; then
  cat <<\EOF

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
EOF
  exit 0
fi
exec 5>config.log
cat >&5 <<EOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by $as_me, which was
generated by GNU Autoconf 2.50.  Invocation command line was

  $ $0 $@@

EOF
{
cat <<_ASUNAME
## ---------- ##
## Platform.  ##
## ---------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

PATH = $PATH

_ASUNAME
} >&5

cat >&5 <<EOF
## ------------ ##
## Core tests.  ##
## ------------ ##

EOF

# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell meta-characters.
ac_configure_args=
ac_sep=
for ac_arg
do
  case $ac_arg in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    ac_sep=" " ;;
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     ac_sep=" " ;;
  esac
  # Get rid of the leading space.
done

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  echo >&5
  echo "## ----------------- ##" >&5
  echo "## Cache variables.  ##" >&5
  echo "## ----------------- ##" >&5
  echo >&5
  # The following way of writing the cache mishandles newlines in values,
{
  (set) 2>&1 |
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      sed -n \
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
    *)
      sed -n \
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} >&5
  sed "/^$/d" confdefs.h >conftest.log
  if test -s conftest.log; then
    echo >&5
    echo "## ------------ ##" >&5
    echo "## confdefs.h.  ##" >&5
    echo "## ------------ ##" >&5
    echo >&5
    cat conftest.log >&5
  fi
  (echo; echo) >&5
  test "$ac_signal" != 0 &&
    echo "$as_me: caught signal $ac_signal" >&5
  echo "$as_me: exit $exit_status" >&5
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    exit $exit_status
     ' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h
a521 1
# Let the site file select an alternate cache file if it wants to.
d532 1
a532 3
    { echo "$as_me:1045: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
    cat "$ac_site_file" >&5
d538 2
a539 10
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:1056: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi
d541 2
a542 41
  { echo "$as_me:1064: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_suggest_removing_cache=false
for ac_var in `(set) 2>&1 |
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  eval ac_new_val="\$ac_env_${ac_var}_value"
  case $ac_old_set,$ac_new_set in
    set,)
      { echo "$as_me:1080: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_suggest_removing_cache=: ;;
    ,set)
      { echo "$as_me:1084: WARNING: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
      ac_suggest_removing_cache=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
        { echo "$as_me:1090: WARNING: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:1092: WARNING:   former value:  $ac_old_val" >&5
echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:1094: WARNING:   current value: $ac_new_val" >&5
echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
        ac_suggest_removing_cache=:
      fi;;
  esac
done
if $ac_suggest_removing_cache; then
  { echo "$as_me:1101: WARNING: changes in the environment can compromise the build" >&5
echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
  { echo "$as_me:1103: WARNING: consider removing $cache_file and starting over" >&5
echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
d546 1
d548 14
a561 19
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
echo "#! $SHELL" >conftest.sh
echo  "exit 0"   >>conftest.sh
chmod +x conftest.sh
if { (echo "$as_me:1122: PATH=\".;.\"; conftest.sh") >&5
  (PATH=".;."; conftest.sh) 2>&5
  ac_status=$?
  echo "$as_me:1125: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_path_separator=';'
d563 1
a563 1
  ac_path_separator=:
a564 2
PATH_SEPARATOR="$ac_path_separator"
rm -f conftest.sh
a565 1
ac_config_headers="$ac_config_headers db_config.h:config.hin"
d567 2
a568 1
# Configure setup.
a578 4
  elif test -f $ac_dir/shtool; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
d582 5
a586 7
  { { echo "$as_me:1154: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   { (exit 1); exit 1; }; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
d588 42
a629 51
# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:1164: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:1168: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
  ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
  { { echo "$as_me:1177: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   { (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  { { echo "$as_me:1181: error: $ac_config_sub $ac_cv_build_alias failed." >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1186: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

echo "$as_me:1193: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
  ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  { { echo "$as_me:1202: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1207: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
d631 57
a687 9
if test "$program_transform_name" = s,x,x,; then
  program_transform_name=
else
  # Double any \ or $.  echo might interpret backslashes.
  cat <<\EOF >conftest.sed
s,\\,\\\\,g; s,\$,$$,g
EOF
  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  rm -f conftest.sed
d690 1
a690 1
  program_transform_name="s,^,${program_prefix},;$program_transform_name"
d693 1
a693 1
  program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
d696 56
a751 1
test -z "$program_transform_name" && program_transform_name="s,x,x,"
a752 16
# We cannot build in the top-level directory.
echo "$as_me:1234: checking if building in the top-level directory" >&5
echo $ECHO_N "checking if building in the top-level directory... $ECHO_C" >&6
 test -d db_archive  && { { echo "$as_me:1236: error:
Berkeley DB cannot be built in the top-level distribution directory." >&5
echo "$as_me: error:
Berkeley DB cannot be built in the top-level distribution directory." >&2;}
   { (exit 1); exit 1; }; }
echo "$as_me:1241: result: no" >&5
echo "${ECHO_T}no" >&6

# Substitution variables.

# RPM needs the current absolute path.
# RPM needs the list of original arguments, but we don't include the RPM
# option itself.
d757 1
a757 1
# Set the version.
d763 1
a763 1
DB_VERSION_PATCH=11
d767 3
a769 1
DB_VERSION_STRING="\"Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)\""
a770 1
# Set the default installation location.
a771 1
# Process all options before using them.
d773 2
a774 2
# --enable-bigfile was the configuration option that Berkeley DB used before
# autoconf 2.50 was released (which had --enable-largefile integrated in).
d778 11
a788 4
  { { echo "$as_me:1274: error: --enable-bigfile no longer supported, use --enable-largefile" >&5
echo "$as_me: error: --enable-bigfile no longer supported, use --enable-largefile" >&2;}
   { (exit 1); exit 1; }; }
fi;
d790 2
a791 2
echo "$as_me:1279: checking if --enable-compat185 option specified" >&5
echo $ECHO_N "checking if --enable-compat185 option specified... $ECHO_C" >&6
d798 1
a798 3
fi;
echo "$as_me:1288: result: $db_cv_compat185" >&5
echo "${ECHO_T}$db_cv_compat185" >&6
d800 4
a803 2
echo "$as_me:1291: checking if --enable-cxx option specified" >&5
echo $ECHO_N "checking if --enable-cxx option specified... $ECHO_C" >&6
d810 1
a810 3
fi;
echo "$as_me:1300: result: $db_cv_cxx" >&5
echo "${ECHO_T}$db_cv_cxx" >&6
d812 4
a815 2
echo "$as_me:1303: checking if --enable-debug option specified" >&5
echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
d822 1
a822 3
fi;
echo "$as_me:1312: result: $db_cv_debug" >&5
echo "${ECHO_T}$db_cv_debug" >&6
d824 4
a827 2
echo "$as_me:1315: checking if --enable-debug_rop option specified" >&5
echo $ECHO_N "checking if --enable-debug_rop option specified... $ECHO_C" >&6
d834 1
a834 3
fi;
echo "$as_me:1324: result: $db_cv_debug_rop" >&5
echo "${ECHO_T}$db_cv_debug_rop" >&6
d836 4
a839 2
echo "$as_me:1327: checking if --enable-debug_wop option specified" >&5
echo $ECHO_N "checking if --enable-debug_wop option specified... $ECHO_C" >&6
d846 1
a846 3
fi;
echo "$as_me:1336: result: $db_cv_debug_wop" >&5
echo "${ECHO_T}$db_cv_debug_wop" >&6
d848 4
a851 2
echo "$as_me:1339: checking if --enable-diagnostic option specified" >&5
echo $ECHO_N "checking if --enable-diagnostic option specified... $ECHO_C" >&6
d858 1
a858 3
fi;
echo "$as_me:1348: result: $db_cv_diagnostic" >&5
echo "${ECHO_T}$db_cv_diagnostic" >&6
d860 4
a863 2
echo "$as_me:1351: checking if --enable-dump185 option specified" >&5
echo $ECHO_N "checking if --enable-dump185 option specified... $ECHO_C" >&6
d870 13
a882 3
fi;
echo "$as_me:1360: result: $db_cv_dump185" >&5
echo "${ECHO_T}$db_cv_dump185" >&6
d884 4
a887 2
echo "$as_me:1363: checking if --enable-java option specified" >&5
echo $ECHO_N "checking if --enable-java option specified... $ECHO_C" >&6
d894 1
a894 3
fi;
echo "$as_me:1372: result: $db_cv_java" >&5
echo "${ECHO_T}$db_cv_java" >&6
d896 4
a899 2
echo "$as_me:1375: checking if --enable-posixmutexes option specified" >&5
echo $ECHO_N "checking if --enable-posixmutexes option specified... $ECHO_C" >&6
d906 1
a906 3
fi;
echo "$as_me:1384: result: $db_cv_posixmutexes" >&5
echo "${ECHO_T}$db_cv_posixmutexes" >&6
d908 4
a911 2
echo "$as_me:1387: checking if --enable-rpc option specified" >&5
echo $ECHO_N "checking if --enable-rpc option specified... $ECHO_C" >&6
d918 18
a935 3
fi;
echo "$as_me:1396: result: $db_cv_rpc" >&5
echo "${ECHO_T}$db_cv_rpc" >&6
d937 2
a938 2
echo "$as_me:1399: checking if --enable-tcl option specified" >&5
echo $ECHO_N "checking if --enable-tcl option specified... $ECHO_C" >&6
d945 1
a945 3
fi;
echo "$as_me:1408: result: $db_cv_tcl" >&5
echo "${ECHO_T}$db_cv_tcl" >&6
d947 4
a950 2
echo "$as_me:1411: checking if --enable-test option specified" >&5
echo $ECHO_N "checking if --enable-test option specified... $ECHO_C" >&6
d957 1
a957 3
fi;
echo "$as_me:1420: result: $db_cv_test" >&5
echo "${ECHO_T}$db_cv_test" >&6
d959 4
a962 2
echo "$as_me:1423: checking if --enable-uimutexes option specified" >&5
echo $ECHO_N "checking if --enable-uimutexes option specified... $ECHO_C" >&6
d969 1
a969 3
fi;
echo "$as_me:1432: result: $db_cv_uimutexes" >&5
echo "${ECHO_T}$db_cv_uimutexes" >&6
d971 4
a974 2
echo "$as_me:1435: checking if --enable-umrw option specified" >&5
echo $ECHO_N "checking if --enable-umrw option specified... $ECHO_C" >&6
d981 1
a981 3
fi;
echo "$as_me:1444: result: $db_cv_umrw" >&5
echo "${ECHO_T}$db_cv_umrw" >&6
d983 1
a983 2
echo "$as_me:1447: checking if --with-embedix=DIR option specified" >&5
echo $ECHO_N "checking if --with-embedix=DIR option specified... $ECHO_C" >&6
d985 2
d993 2
a994 1
fi;
d997 1
a997 2
	echo "$as_me:1459: result: $with_embedix" >&5
echo "${ECHO_T}$with_embedix" >&6
d1005 1
a1005 2
	echo "$as_me:1468: result: $db_cv_path_embedix_install" >&5
echo "${ECHO_T}$db_cv_path_embedix_install" >&6
d1008 2
a1009 3
echo "$as_me:1472: checking if --with-rpm=DIR option specified" >&5
echo $ECHO_N "checking if --with-rpm=DIR option specified... $ECHO_C" >&6

d1016 2
a1017 1
fi;
d1022 1
a1022 3
		{ { echo "$as_me:1486: error: --with-rpm requires a directory argument" >&5
echo "$as_me: error: --with-rpm requires a directory argument" >&2;}
   { (exit 1); exit 1; }; }
d1027 1
a1027 5
echo "$as_me:1493: result: $with_rpm" >&5
echo "${ECHO_T}$with_rpm" >&6

echo "$as_me:1496: checking if --with-tcl=DIR option specified" >&5
echo $ECHO_N "checking if --with-tcl=DIR option specified... $ECHO_C" >&6
d1029 2
d1037 3
a1039 3
fi;
echo "$as_me:1506: result: $with_tclconfig" >&5
echo "${ECHO_T}$with_tclconfig" >&6
d1044 2
a1045 3
echo "$as_me:1512: checking if --with-uniquename=NAME option specified" >&5
echo $ECHO_N "checking if --with-uniquename=NAME option specified... $ECHO_C" >&6

d1052 2
a1053 1
fi;
d1056 1
a1056 2
	echo "$as_me:1524: result: $with_uniquename" >&5
echo "${ECHO_T}$with_uniquename" >&6
d1062 1
a1062 2
	echo "$as_me:1531: result: $DB_VERSION_UNIQUE_NAME" >&5
echo "${ECHO_T}$DB_VERSION_UNIQUE_NAME" >&6
a1064 1
# Embedix requires RPM.
d1067 10
a1076 3
		{ { echo "$as_me:1538: error: --with-embedix requires --with-rpm" >&5
echo "$as_me: error: --with-embedix requires --with-rpm" >&2;}
   { (exit 1); exit 1; }; }
a1079 1
# Test requires Tcl
d1082 1
a1082 3
		{ { echo "$as_me:1547: error: --enable-test requires --enable-tcl" >&5
echo "$as_me: error: --enable-test requires --enable-tcl" >&2;}
   { (exit 1); exit 1; }; }
d1086 1
a1086 1
# Set some #defines based on configuration options.
d1088 1
a1088 1
	cat >>confdefs.h <<\EOF
d1094 1
a1094 1
	cat >>confdefs.h <<\EOF
d1100 1
a1100 1
	cat >>confdefs.h <<\EOF
d1106 1
a1106 1
	cat >>confdefs.h <<\EOF
d1112 1
a1112 1
	cat >>confdefs.h <<\EOF
d1118 25
a1142 1
# Check for programs used in building and installation.
d1144 1
a1144 2
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
d1146 18
a1163 19
echo "$as_me:1590: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_ar+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_ar"; then
  ac_cv_prog_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_ar="${ac_tool_prefix}ar"
echo "$as_me:1605: found $ac_dir/$ac_word" >&5
break
done

d1166 3
a1168 4
db_cv_path_ar=$ac_cv_prog_db_cv_path_ar
if test -n "$db_cv_path_ar"; then
  echo "$as_me:1613: result: $db_cv_path_ar" >&5
echo "${ECHO_T}$db_cv_path_ar" >&6
d1170 1
a1170 2
  echo "$as_me:1616: result: no" >&5
echo "${ECHO_T}no" >&6
d1173 3
a1175 3
fi
if test -z "$ac_cv_prog_db_cv_path_ar"; then
  ac_ct_db_cv_path_ar=$db_cv_path_ar
d1178 27
a1204 18
echo "$as_me:1625: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_ar+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_ar"; then
  ac_cv_prog_ac_ct_db_cv_path_ar="$ac_ct_db_cv_path_ar" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_ar="ar"
echo "$as_me:1640: found $ac_dir/$ac_word" >&5
break
done
d1206 2
a1207 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_ar" && ac_cv_prog_ac_ct_db_cv_path_ar="missing_ar"
d1210 7
a1216 4
ac_ct_db_cv_path_ar=$ac_cv_prog_ac_ct_db_cv_path_ar
if test -n "$ac_ct_db_cv_path_ar"; then
  echo "$as_me:1649: result: $ac_ct_db_cv_path_ar" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_ar" >&6
d1218 21
a1238 2
  echo "$as_me:1652: result: no" >&5
echo "${ECHO_T}no" >&6
d1240 3
a1242 2

  db_cv_path_ar=$ac_ct_db_cv_path_ar
d1244 1
a1244 1
  db_cv_path_ar="$ac_cv_prog_db_cv_path_ar"
d1248 1
a1248 3
	{ { echo "$as_me:1662: error: No ar utility found." >&5
echo "$as_me: error: No ar utility found." >&2;}
   { (exit 1); exit 1; }; }
d1251 1
a1251 2
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args.
d1253 18
a1270 19
echo "$as_me:1670: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_chmod+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_chmod"; then
  ac_cv_prog_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_chmod="${ac_tool_prefix}chmod"
echo "$as_me:1685: found $ac_dir/$ac_word" >&5
break
done

d1273 3
a1275 4
db_cv_path_chmod=$ac_cv_prog_db_cv_path_chmod
if test -n "$db_cv_path_chmod"; then
  echo "$as_me:1693: result: $db_cv_path_chmod" >&5
echo "${ECHO_T}$db_cv_path_chmod" >&6
d1277 1
a1277 2
  echo "$as_me:1696: result: no" >&5
echo "${ECHO_T}no" >&6
d1280 3
a1282 3
fi
if test -z "$ac_cv_prog_db_cv_path_chmod"; then
  ac_ct_db_cv_path_chmod=$db_cv_path_chmod
d1285 19
a1303 20
echo "$as_me:1705: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_chmod+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_chmod"; then
  ac_cv_prog_ac_ct_db_cv_path_chmod="$ac_ct_db_cv_path_chmod" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_chmod="chmod"
echo "$as_me:1720: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_db_cv_path_chmod" && ac_cv_prog_ac_ct_db_cv_path_chmod="missing_chmod"
d1306 3
a1308 4
ac_ct_db_cv_path_chmod=$ac_cv_prog_ac_ct_db_cv_path_chmod
if test -n "$ac_ct_db_cv_path_chmod"; then
  echo "$as_me:1729: result: $ac_ct_db_cv_path_chmod" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_chmod" >&6
d1310 1
a1310 2
  echo "$as_me:1732: result: no" >&5
echo "${ECHO_T}no" >&6
a1312 1
  db_cv_path_chmod=$ac_ct_db_cv_path_chmod
d1314 1
a1314 1
  db_cv_path_chmod="$ac_cv_prog_db_cv_path_chmod"
a1315 5

if test "$db_cv_path_chmod" = missing_chmod; then
	{ { echo "$as_me:1742: error: No chmod utility found." >&5
echo "$as_me: error: No chmod utility found." >&2;}
   { (exit 1); exit 1; }; }
d1318 28
a1345 22
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cp", so it can be a program name with args.
set dummy ${ac_tool_prefix}cp; ac_word=$2
echo "$as_me:1750: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_cp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_cp"; then
  ac_cv_prog_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_cp="${ac_tool_prefix}cp"
echo "$as_me:1765: found $ac_dir/$ac_word" >&5
break
done

d1347 3
a1349 5
fi
db_cv_path_cp=$ac_cv_prog_db_cv_path_cp
if test -n "$db_cv_path_cp"; then
  echo "$as_me:1773: result: $db_cv_path_cp" >&5
echo "${ECHO_T}$db_cv_path_cp" >&6
d1351 1
a1351 2
  echo "$as_me:1776: result: no" >&5
echo "${ECHO_T}no" >&6
d1354 2
a1356 22
if test -z "$ac_cv_prog_db_cv_path_cp"; then
  ac_ct_db_cv_path_cp=$db_cv_path_cp
  # Extract the first word of "cp", so it can be a program name with args.
set dummy cp; ac_word=$2
echo "$as_me:1785: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_cp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_cp"; then
  ac_cv_prog_ac_ct_db_cv_path_cp="$ac_ct_db_cv_path_cp" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_cp="cp"
echo "$as_me:1800: found $ac_dir/$ac_word" >&5
break
done
d1358 20
a1377 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_cp" && ac_cv_prog_ac_ct_db_cv_path_cp="missing_cp"
d1380 3
a1382 4
ac_ct_db_cv_path_cp=$ac_cv_prog_ac_ct_db_cv_path_cp
if test -n "$ac_ct_db_cv_path_cp"; then
  echo "$as_me:1809: result: $ac_ct_db_cv_path_cp" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_cp" >&6
d1384 1
a1384 2
  echo "$as_me:1812: result: no" >&5
echo "${ECHO_T}no" >&6
d1387 9
a1395 1
  db_cv_path_cp=$ac_ct_db_cv_path_cp
d1397 62
a1458 1
  db_cv_path_cp="$ac_cv_prog_db_cv_path_cp"
d1462 1
a1462 3
	{ { echo "$as_me:1822: error: No cp utility found." >&5
echo "$as_me: error: No cp utility found." >&2;}
   { (exit 1); exit 1; }; }
d1466 1
a1466 2
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ldconfig", so it can be a program name with args.
d1468 4
a1471 4
echo "$as_me:1831: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_path_ldconfig+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1476 10
a1485 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_path_ldconfig="${ac_tool_prefix}ldconfig"
echo "$as_me:1846: found $ac_dir/$ac_word" >&5
break
done

d1488 1
a1488 1
path_ldconfig=$ac_cv_prog_path_ldconfig
d1490 1
a1490 2
  echo "$as_me:1854: result: $path_ldconfig" >&5
echo "${ECHO_T}$path_ldconfig" >&6
d1492 1
a1492 2
  echo "$as_me:1857: result: no" >&5
echo "${ECHO_T}no" >&6
d1495 1
a1495 1
fi
d1497 1
a1497 1
  ac_ct_path_ldconfig=$path_ldconfig
d1500 19
a1518 20
echo "$as_me:1866: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_path_ldconfig+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_path_ldconfig"; then
  ac_cv_prog_ac_ct_path_ldconfig="$ac_ct_path_ldconfig" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_path_ldconfig="ldconfig"
echo "$as_me:1881: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_path_ldconfig" && ac_cv_prog_ac_ct_path_ldconfig="missing_ldconfig"
d1521 3
a1523 4
ac_ct_path_ldconfig=$ac_cv_prog_ac_ct_path_ldconfig
if test -n "$ac_ct_path_ldconfig"; then
  echo "$as_me:1890: result: $ac_ct_path_ldconfig" >&5
echo "${ECHO_T}$ac_ct_path_ldconfig" >&6
d1525 1
a1525 2
  echo "$as_me:1893: result: no" >&5
echo "${ECHO_T}no" >&6
a1527 1
  path_ldconfig=$ac_ct_path_ldconfig
d1529 2
a1530 1
  path_ldconfig="$ac_cv_prog_path_ldconfig"
d1535 4
a1538 4
echo "$as_me:1904: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_db_cv_path_ldconfig+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1540 2
a1541 2
  case $db_cv_path_ldconfig in
  [\\/]* | ?:[\\/]*)
d1544 3
d1548 10
a1557 12
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_db_cv_path_ldconfig="$ac_dir/$ac_word"
   echo "$as_me:1921: found $ac_dir/$ac_word" >&5
   break
fi
done

d1562 1
a1562 2
db_cv_path_ldconfig=$ac_cv_path_db_cv_path_ldconfig

d1564 1
a1564 2
  echo "$as_me:1933: result: $db_cv_path_ldconfig" >&5
echo "${ECHO_T}$db_cv_path_ldconfig" >&6
d1566 1
a1566 2
  echo "$as_me:1936: result: no" >&5
echo "${ECHO_T}no" >&6
d1575 1
a1575 2
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ln", so it can be a program name with args.
d1577 18
a1594 19
echo "$as_me:1949: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_ln+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_ln"; then
  ac_cv_prog_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_ln="${ac_tool_prefix}ln"
echo "$as_me:1964: found $ac_dir/$ac_word" >&5
break
done

d1597 3
a1599 4
db_cv_path_ln=$ac_cv_prog_db_cv_path_ln
if test -n "$db_cv_path_ln"; then
  echo "$as_me:1972: result: $db_cv_path_ln" >&5
echo "${ECHO_T}$db_cv_path_ln" >&6
d1601 1
a1601 2
  echo "$as_me:1975: result: no" >&5
echo "${ECHO_T}no" >&6
d1604 3
a1606 3
fi
if test -z "$ac_cv_prog_db_cv_path_ln"; then
  ac_ct_db_cv_path_ln=$db_cv_path_ln
d1609 27
a1635 18
echo "$as_me:1984: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_ln+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_ln"; then
  ac_cv_prog_ac_ct_db_cv_path_ln="$ac_ct_db_cv_path_ln" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_ln="ln"
echo "$as_me:1999: found $ac_dir/$ac_word" >&5
break
done
d1637 2
a1638 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_ln" && ac_cv_prog_ac_ct_db_cv_path_ln="missing_ln"
d1641 7
a1647 4
ac_ct_db_cv_path_ln=$ac_cv_prog_ac_ct_db_cv_path_ln
if test -n "$ac_ct_db_cv_path_ln"; then
  echo "$as_me:2008: result: $ac_ct_db_cv_path_ln" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_ln" >&6
d1649 21
a1669 2
  echo "$as_me:2011: result: no" >&5
echo "${ECHO_T}no" >&6
d1671 3
a1673 2

  db_cv_path_ln=$ac_ct_db_cv_path_ln
d1675 1
a1675 1
  db_cv_path_ln="$ac_cv_prog_db_cv_path_ln"
d1679 1
a1679 3
	{ { echo "$as_me:2021: error: No ln utility found." >&5
echo "$as_me: error: No ln utility found." >&2;}
   { (exit 1); exit 1; }; }
d1682 1
a1682 2
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}mkdir", so it can be a program name with args.
d1684 18
a1701 19
echo "$as_me:2029: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_mkdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_mkdir"; then
  ac_cv_prog_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_mkdir="${ac_tool_prefix}mkdir"
echo "$as_me:2044: found $ac_dir/$ac_word" >&5
break
done

d1704 3
a1706 4
db_cv_path_mkdir=$ac_cv_prog_db_cv_path_mkdir
if test -n "$db_cv_path_mkdir"; then
  echo "$as_me:2052: result: $db_cv_path_mkdir" >&5
echo "${ECHO_T}$db_cv_path_mkdir" >&6
d1708 1
a1708 2
  echo "$as_me:2055: result: no" >&5
echo "${ECHO_T}no" >&6
d1711 3
a1713 3
fi
if test -z "$ac_cv_prog_db_cv_path_mkdir"; then
  ac_ct_db_cv_path_mkdir=$db_cv_path_mkdir
d1716 27
a1742 18
echo "$as_me:2064: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_mkdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_mkdir"; then
  ac_cv_prog_ac_ct_db_cv_path_mkdir="$ac_ct_db_cv_path_mkdir" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_mkdir="mkdir"
echo "$as_me:2079: found $ac_dir/$ac_word" >&5
break
done
d1744 2
a1745 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_mkdir" && ac_cv_prog_ac_ct_db_cv_path_mkdir="missing_mkdir"
d1748 7
a1754 4
ac_ct_db_cv_path_mkdir=$ac_cv_prog_ac_ct_db_cv_path_mkdir
if test -n "$ac_ct_db_cv_path_mkdir"; then
  echo "$as_me:2088: result: $ac_ct_db_cv_path_mkdir" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_mkdir" >&6
d1756 21
a1776 2
  echo "$as_me:2091: result: no" >&5
echo "${ECHO_T}no" >&6
d1778 3
a1780 2

  db_cv_path_mkdir=$ac_ct_db_cv_path_mkdir
d1782 1
a1782 1
  db_cv_path_mkdir="$ac_cv_prog_db_cv_path_mkdir"
d1786 1
a1786 3
	{ { echo "$as_me:2101: error: No mkdir utility found." >&5
echo "$as_me: error: No mkdir utility found." >&2;}
   { (exit 1); exit 1; }; }
d1789 1
a1789 4
# We need a complete path for ranlib, because it doesn't exist on some
# architectures because the ar utility packages the library itself.
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
d1791 4
a1794 4
echo "$as_me:2111: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_path_ranlib+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1799 10
a1808 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_path_ranlib="${ac_tool_prefix}ranlib"
echo "$as_me:2126: found $ac_dir/$ac_word" >&5
break
done

d1811 1
a1811 1
path_ranlib=$ac_cv_prog_path_ranlib
d1813 1
a1813 2
  echo "$as_me:2134: result: $path_ranlib" >&5
echo "${ECHO_T}$path_ranlib" >&6
d1815 1
a1815 2
  echo "$as_me:2137: result: no" >&5
echo "${ECHO_T}no" >&6
d1818 1
a1818 1
fi
d1820 1
a1820 1
  ac_ct_path_ranlib=$path_ranlib
d1823 19
a1841 20
echo "$as_me:2146: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_path_ranlib+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_path_ranlib"; then
  ac_cv_prog_ac_ct_path_ranlib="$ac_ct_path_ranlib" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_path_ranlib="ranlib"
echo "$as_me:2161: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_path_ranlib" && ac_cv_prog_ac_ct_path_ranlib="missing_ranlib"
d1844 3
a1846 4
ac_ct_path_ranlib=$ac_cv_prog_ac_ct_path_ranlib
if test -n "$ac_ct_path_ranlib"; then
  echo "$as_me:2170: result: $ac_ct_path_ranlib" >&5
echo "${ECHO_T}$ac_ct_path_ranlib" >&6
d1848 1
a1848 2
  echo "$as_me:2173: result: no" >&5
echo "${ECHO_T}no" >&6
a1850 1
  path_ranlib=$ac_ct_path_ranlib
d1852 2
a1853 1
  path_ranlib="$ac_cv_prog_path_ranlib"
d1858 4
a1861 4
echo "$as_me:2184: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_db_cv_path_ranlib+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1863 2
a1864 2
  case $db_cv_path_ranlib in
  [\\/]* | ?:[\\/]*)
d1867 3
d1871 10
a1880 12
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_db_cv_path_ranlib="$ac_dir/$ac_word"
   echo "$as_me:2201: found $ac_dir/$ac_word" >&5
   break
fi
done

d1885 1
a1885 2
db_cv_path_ranlib=$ac_cv_path_db_cv_path_ranlib

d1887 1
a1887 2
  echo "$as_me:2213: result: $db_cv_path_ranlib" >&5
echo "${ECHO_T}$db_cv_path_ranlib" >&6
d1889 1
a1889 2
  echo "$as_me:2216: result: no" >&5
echo "${ECHO_T}no" >&6
d1892 2
a1893 2
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}rm", so it can be a program name with args.
d1895 18
a1912 19
echo "$as_me:2223: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_rm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_rm"; then
  ac_cv_prog_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_rm="${ac_tool_prefix}rm"
echo "$as_me:2238: found $ac_dir/$ac_word" >&5
break
done

d1915 3
a1917 4
db_cv_path_rm=$ac_cv_prog_db_cv_path_rm
if test -n "$db_cv_path_rm"; then
  echo "$as_me:2246: result: $db_cv_path_rm" >&5
echo "${ECHO_T}$db_cv_path_rm" >&6
d1919 1
a1919 2
  echo "$as_me:2249: result: no" >&5
echo "${ECHO_T}no" >&6
d1922 3
a1924 3
fi
if test -z "$ac_cv_prog_db_cv_path_rm"; then
  ac_ct_db_cv_path_rm=$db_cv_path_rm
d1927 27
a1953 18
echo "$as_me:2258: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_rm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_rm"; then
  ac_cv_prog_ac_ct_db_cv_path_rm="$ac_ct_db_cv_path_rm" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_rm="rm"
echo "$as_me:2273: found $ac_dir/$ac_word" >&5
break
done
d1955 2
a1956 1
  test -z "$ac_cv_prog_ac_ct_db_cv_path_rm" && ac_cv_prog_ac_ct_db_cv_path_rm="missing_rm"
d1959 7
a1965 4
ac_ct_db_cv_path_rm=$ac_cv_prog_ac_ct_db_cv_path_rm
if test -n "$ac_ct_db_cv_path_rm"; then
  echo "$as_me:2282: result: $ac_ct_db_cv_path_rm" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_rm" >&6
d1967 21
a1987 2
  echo "$as_me:2285: result: no" >&5
echo "${ECHO_T}no" >&6
d1989 3
a1991 2

  db_cv_path_rm=$ac_ct_db_cv_path_rm
d1993 1
a1993 1
  db_cv_path_rm="$ac_cv_prog_db_cv_path_rm"
d1997 1
a1997 3
	{ { echo "$as_me:2295: error: No rm utility found." >&5
echo "$as_me: error: No rm utility found." >&2;}
   { (exit 1); exit 1; }; }
d2001 1
a2001 2
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}rpm", so it can be a program name with args.
d2003 18
a2020 19
echo "$as_me:2304: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_rpm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_rpm"; then
  ac_cv_prog_db_cv_path_rpm="$db_cv_path_rpm" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_rpm="${ac_tool_prefix}rpm"
echo "$as_me:2319: found $ac_dir/$ac_word" >&5
break
done

d2023 3
a2025 4
db_cv_path_rpm=$ac_cv_prog_db_cv_path_rpm
if test -n "$db_cv_path_rpm"; then
  echo "$as_me:2327: result: $db_cv_path_rpm" >&5
echo "${ECHO_T}$db_cv_path_rpm" >&6
d2027 1
a2027 2
  echo "$as_me:2330: result: no" >&5
echo "${ECHO_T}no" >&6
d2030 3
a2032 3
fi
if test -z "$ac_cv_prog_db_cv_path_rpm"; then
  ac_ct_db_cv_path_rpm=$db_cv_path_rpm
d2035 4
a2038 26
echo "$as_me:2339: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_rpm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_rpm"; then
  ac_cv_prog_ac_ct_db_cv_path_rpm="$ac_ct_db_cv_path_rpm" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_rpm="rpm"
echo "$as_me:2354: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_db_cv_path_rpm" && ac_cv_prog_ac_ct_db_cv_path_rpm="missing_rpm"
fi
fi
ac_ct_db_cv_path_rpm=$ac_cv_prog_ac_ct_db_cv_path_rpm
if test -n "$ac_ct_db_cv_path_rpm"; then
  echo "$as_me:2363: result: $ac_ct_db_cv_path_rpm" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_rpm" >&6
d2040 2
a2041 5
  echo "$as_me:2366: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  db_cv_path_rpm=$ac_ct_db_cv_path_rpm
d2043 59
a2101 1
  db_cv_path_rpm="$ac_cv_prog_db_cv_path_rpm"
d2105 1
a2105 3
		{ { echo "$as_me:2376: error: No rpm utility found." >&5
echo "$as_me: error: No rpm utility found." >&2;}
   { (exit 1); exit 1; }; }
d2109 1
a2109 4
# We need a complete path for sh, because some implementations of make
# get upset if SHELL is set to just the command name.
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}sh", so it can be a program name with args.
d2111 4
a2114 4
echo "$as_me:2387: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_path_sh+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2119 10
a2128 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_path_sh="${ac_tool_prefix}sh"
echo "$as_me:2402: found $ac_dir/$ac_word" >&5
break
done

d2131 1
a2131 1
path_sh=$ac_cv_prog_path_sh
d2133 1
a2133 2
  echo "$as_me:2410: result: $path_sh" >&5
echo "${ECHO_T}$path_sh" >&6
d2135 1
a2135 2
  echo "$as_me:2413: result: no" >&5
echo "${ECHO_T}no" >&6
d2138 1
a2138 1
fi
d2140 1
a2140 1
  ac_ct_path_sh=$path_sh
d2143 19
a2161 20
echo "$as_me:2422: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_path_sh+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_path_sh"; then
  ac_cv_prog_ac_ct_path_sh="$ac_ct_path_sh" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_path_sh="sh"
echo "$as_me:2437: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_path_sh" && ac_cv_prog_ac_ct_path_sh="missing_sh"
d2164 3
a2166 4
ac_ct_path_sh=$ac_cv_prog_ac_ct_path_sh
if test -n "$ac_ct_path_sh"; then
  echo "$as_me:2446: result: $ac_ct_path_sh" >&5
echo "${ECHO_T}$ac_ct_path_sh" >&6
d2168 1
a2168 2
  echo "$as_me:2449: result: no" >&5
echo "${ECHO_T}no" >&6
a2170 1
  path_sh=$ac_ct_path_sh
d2172 2
a2173 1
  path_sh="$ac_cv_prog_path_sh"
d2178 4
a2181 4
echo "$as_me:2460: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_db_cv_path_sh+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2183 2
a2184 2
  case $db_cv_path_sh in
  [\\/]* | ?:[\\/]*)
d2187 3
d2191 10
a2200 12
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_db_cv_path_sh="$ac_dir/$ac_word"
   echo "$as_me:2477: found $ac_dir/$ac_word" >&5
   break
fi
done

d2205 1
a2205 2
db_cv_path_sh=$ac_cv_path_db_cv_path_sh

d2207 1
a2207 2
  echo "$as_me:2489: result: $db_cv_path_sh" >&5
echo "${ECHO_T}$db_cv_path_sh" >&6
d2209 1
a2209 2
  echo "$as_me:2492: result: no" >&5
echo "${ECHO_T}no" >&6
d2213 1
a2213 3
	{ { echo "$as_me:2497: error: No sh utility found." >&5
echo "$as_me: error: No sh utility found." >&2;}
   { (exit 1); exit 1; }; }
d2216 1
a2216 4
# We need a complete path for ranlib, because it doesn't exist on some
# architectures because the ar utility packages the library itself.
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
d2218 4
a2221 4
echo "$as_me:2507: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_path_strip+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2226 10
a2235 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_path_strip="${ac_tool_prefix}strip"
echo "$as_me:2522: found $ac_dir/$ac_word" >&5
break
done

d2238 1
a2238 1
path_strip=$ac_cv_prog_path_strip
d2240 1
a2240 2
  echo "$as_me:2530: result: $path_strip" >&5
echo "${ECHO_T}$path_strip" >&6
d2242 1
a2242 2
  echo "$as_me:2533: result: no" >&5
echo "${ECHO_T}no" >&6
d2245 1
a2245 1
fi
d2247 1
a2247 1
  ac_ct_path_strip=$path_strip
d2250 19
a2268 20
echo "$as_me:2542: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_path_strip+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_path_strip"; then
  ac_cv_prog_ac_ct_path_strip="$ac_ct_path_strip" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_path_strip="strip"
echo "$as_me:2557: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_path_strip" && ac_cv_prog_ac_ct_path_strip="missing_strip"
d2271 3
a2273 4
ac_ct_path_strip=$ac_cv_prog_ac_ct_path_strip
if test -n "$ac_ct_path_strip"; then
  echo "$as_me:2566: result: $ac_ct_path_strip" >&5
echo "${ECHO_T}$ac_ct_path_strip" >&6
d2275 1
a2275 2
  echo "$as_me:2569: result: no" >&5
echo "${ECHO_T}no" >&6
a2277 1
  path_strip=$ac_ct_path_strip
d2279 2
a2280 1
  path_strip="$ac_cv_prog_path_strip"
d2285 4
a2288 4
echo "$as_me:2580: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_db_cv_path_strip+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2290 2
a2291 2
  case $db_cv_path_strip in
  [\\/]* | ?:[\\/]*)
d2294 3
d2298 10
a2307 12
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_db_cv_path_strip="$ac_dir/$ac_word"
   echo "$as_me:2597: found $ac_dir/$ac_word" >&5
   break
fi
done

d2312 1
a2312 2
db_cv_path_strip=$ac_cv_path_db_cv_path_strip

d2314 1
a2314 2
  echo "$as_me:2609: result: $db_cv_path_strip" >&5
echo "${ECHO_T}$db_cv_path_strip" >&6
d2316 1
a2316 2
  echo "$as_me:2612: result: no" >&5
echo "${ECHO_T}no" >&6
d2320 1
a2320 3
	{ { echo "$as_me:2617: error: No strip utility found." >&5
echo "$as_me: error: No strip utility found." >&2;}
   { (exit 1); exit 1; }; }
d2324 1
a2324 2
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}kill", so it can be a program name with args.
d2326 18
a2343 19
echo "$as_me:2626: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_db_cv_path_kill+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$db_cv_path_kill"; then
  ac_cv_prog_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_db_cv_path_kill="${ac_tool_prefix}kill"
echo "$as_me:2641: found $ac_dir/$ac_word" >&5
break
done

d2346 3
a2348 4
db_cv_path_kill=$ac_cv_prog_db_cv_path_kill
if test -n "$db_cv_path_kill"; then
  echo "$as_me:2649: result: $db_cv_path_kill" >&5
echo "${ECHO_T}$db_cv_path_kill" >&6
d2350 1
a2350 2
  echo "$as_me:2652: result: no" >&5
echo "${ECHO_T}no" >&6
d2353 3
a2355 3
fi
if test -z "$ac_cv_prog_db_cv_path_kill"; then
  ac_ct_db_cv_path_kill=$db_cv_path_kill
d2358 19
a2376 20
echo "$as_me:2661: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_db_cv_path_kill+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_db_cv_path_kill"; then
  ac_cv_prog_ac_ct_db_cv_path_kill="$ac_ct_db_cv_path_kill" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_db_cv_path_kill="kill"
echo "$as_me:2676: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_db_cv_path_kill" && ac_cv_prog_ac_ct_db_cv_path_kill="missing_kill"
d2379 3
a2381 4
ac_ct_db_cv_path_kill=$ac_cv_prog_ac_ct_db_cv_path_kill
if test -n "$ac_ct_db_cv_path_kill"; then
  echo "$as_me:2685: result: $ac_ct_db_cv_path_kill" >&5
echo "${ECHO_T}$ac_ct_db_cv_path_kill" >&6
d2383 1
a2383 2
  echo "$as_me:2688: result: no" >&5
echo "${ECHO_T}no" >&6
a2385 1
  db_cv_path_kill=$ac_ct_db_cv_path_kill
d2387 1
a2387 1
  db_cv_path_kill="$ac_cv_prog_db_cv_path_kill"
a2388 6

	if test "$db_cv_path_kill" = missing_kill; then
		{ { echo "$as_me:2698: error: No kill utility found." >&5
echo "$as_me: error: No kill utility found." >&2;}
   { (exit 1); exit 1; }; }
	fi
d2391 6
a2396 17
# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo "$as_me:2716: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2398 16
a2413 30
    ac_save_IFS=$IFS; IFS=$ac_path_separator
  for ac_dir in $PATH; do
    IFS=$ac_save_IFS
    # Account for people who put trailing slashes in PATH elements.
    case $ac_dir/ in
    / | ./ | .// | /cC/* \
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
    | /usr/ucb/* ) ;;
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
        if $as_executable_p "$ac_dir/$ac_prog"; then
	  if test $ac_prog = install &&
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
d2415 4
a2418 1

d2420 5
a2424 9
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
    INSTALL=$ac_install_sh
  fi
a2425 2
echo "$as_me:2765: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6
d2427 4
a2430 3
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
a2431 1
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a2432 1
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
a2433 1
# RPM/Embedix support: change the standard make and install targets
a2447 18
# This is where we handle stuff that autoconf can't handle: compiler,
# preprocessor and load flags, libraries that the standard tests don't
# look for.  The default optimization is -O.  We would like to set the
# default optimization for systems using gcc to -O2, but we can't.  By
# the time we know we're using gcc, it's too late to set optimization
# flags.
#
# There are additional libraries we need for some compiler/architecture
# combinations.
#
# Some architectures require DB to be compiled with special flags and/or
# libraries for threaded applications
#
# The makefile CC may be different than the CC used in config testing,
# because the makefile CC may be set to use $(LIBTOOL).
#
# XXX
# Don't override anything if it's already set from the environment.
d2469 1
a2469 1
*qnx)	   cat >>confdefs.h <<\EOF
a2471 1

a2479 3
# Set CFLAGS/CXXFLAGS.  We MUST set the flags before we call autoconf
# compiler configuration macros, because if we don't, they set CFLAGS
# to no optimization and -g, which isn't what we want.
a2482 5
# If the user wants a debugging environment, add -g to the CFLAGS value.
#
# XXX
# Some compilers can't mix optimizing and debug flags.  The only way to
# handle this is to specify CFLAGS in the environment before configuring.
d2484 1
a2484 1
	cat >>confdefs.h <<\EOF
d2492 1
a2492 5
# The default compiler is cc (NOT gcc), the default CFLAGS is as specified
# above, NOT what is set by AC_PROG_CC, as it won't set optimization flags.
# We still call AC_PROG_CC so that we get the other side-effects.
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d2494 4
a2497 4
echo "$as_me:2868: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2502 10
a2511 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}cc"
echo "$as_me:2883: found $ac_dir/$ac_word" >&5
break
done

d2514 1
a2514 1
CC=$ac_cv_prog_CC
d2516 1
a2516 2
  echo "$as_me:2891: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d2518 1
a2518 2
  echo "$as_me:2894: result: no" >&5
echo "${ECHO_T}no" >&6
d2521 1
a2521 1
fi
d2523 1
a2523 1
  ac_ct_CC=$CC
d2526 19
a2544 19
echo "$as_me:2903: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="cc"
echo "$as_me:2918: found $ac_dir/$ac_word" >&5
break
done

d2547 3
a2549 4
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:2926: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
d2551 1
a2551 2
  echo "$as_me:2929: result: no" >&5
echo "${ECHO_T}no" >&6
a2553 1
  CC=$ac_ct_CC
d2555 2
a2556 1
  CC="$ac_cv_prog_CC"
d2559 1
a2559 2
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
d2561 4
a2564 4
echo "$as_me:2941: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2569 10
a2578 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}gcc"
echo "$as_me:2956: found $ac_dir/$ac_word" >&5
break
done

d2581 1
a2581 1
CC=$ac_cv_prog_CC
d2583 1
a2583 2
  echo "$as_me:2964: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d2585 1
a2585 2
  echo "$as_me:2967: result: no" >&5
echo "${ECHO_T}no" >&6
d2588 1
a2588 1
fi
d2590 1
a2590 1
  ac_ct_CC=$CC
d2593 19
a2611 19
echo "$as_me:2976: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="gcc"
echo "$as_me:2991: found $ac_dir/$ac_word" >&5
break
done

d2614 3
a2616 4
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:2999: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
d2618 1
a2618 2
  echo "$as_me:3002: result: no" >&5
echo "${ECHO_T}no" >&6
a2620 1
  CC=$ac_ct_CC
d2622 2
a2623 1
  CC="$ac_cv_prog_CC"
d2626 6
a2631 12
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "$as_me:3019: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2636 10
a2645 85
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}gcc"
echo "$as_me:3034: found $ac_dir/$ac_word" >&5
break
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:3042: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:3045: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:3054: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="gcc"
echo "$as_me:3069: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:3077: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:3080: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
echo "$as_me:3093: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}cc"
echo "$as_me:3108: found $ac_dir/$ac_word" >&5
break
done

d2648 1
a2648 1
CC=$ac_cv_prog_CC
d2650 1
a2650 43
  echo "$as_me:3116: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:3119: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:3128: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="cc"
echo "$as_me:3143: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:3151: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:3154: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CC=$ac_ct_CC
d2652 1
a2652 1
  CC="$ac_cv_prog_CC"
a2654 1
fi
d2658 4
a2661 4
echo "$as_me:3167: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2666 1
d2668 13
a2680 15
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  ac_prog_rejected=yes
  continue
fi
ac_cv_prog_CC="cc"
echo "$as_me:3187: found $ac_dir/$ac_word" >&5
break
done

d2685 1
a2685 1
  if test $# != 0; then
d2690 1
a2690 1
    set dummy "$ac_dir/$ac_word" ${1+"$@@"}
d2697 1
a2697 1
CC=$ac_cv_prog_CC
d2699 1
a2699 2
  echo "$as_me:3209: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d2701 1
a2701 2
  echo "$as_me:3212: result: no" >&5
echo "${ECHO_T}no" >&6
d2704 9
a2712 11
fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:3223: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2717 10
a2726 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
echo "$as_me:3238: found $ac_dir/$ac_word" >&5
break
done

d2729 1
a2729 1
CC=$ac_cv_prog_CC
d2731 1
a2731 2
  echo "$as_me:3246: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d2733 1
a2733 2
  echo "$as_me:3249: result: no" >&5
echo "${ECHO_T}no" >&6
d2735 4
a2738 38

    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:3262: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="$ac_prog"
echo "$as_me:3277: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:3285: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:3288: result: no" >&5
echo "${ECHO_T}no" >&6
d2741 2
a2742 2
  test -n "$ac_ct_CC" && break
done
d2744 6
a2749 4
  CC=$ac_ct_CC
fi

fi
d2751 1
a2751 3
test -z "$CC" && { { echo "$as_me:3300: error: no acceptable cc found in \$PATH" >&5
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
d2753 1
a2753 2
cat >conftest.$ac_ext <<_ACEOF
#line 3305 "configure"
d2756 7
a2762 59
int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compiler, and finding out an intuition
# of exeext.
echo "$as_me:3321: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:3324: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:3327: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    a.out ) # We found the default executable, but exeext='' is most
            # certainly right.
            break;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:3344: error: C compiler cannot create executables" >&5
echo "$as_me: error: C compiler cannot create executables" >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext
echo "$as_me:3350: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6

# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:3355: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (eval echo "$as_me:3361: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3364: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
d2764 1
a2764 9
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { echo "$as_me:3371: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&2;}
   { (exit 1); exit 1; }; }
    fi
d2766 4
d2771 7
a2777 2
echo "$as_me:3379: result: yes" >&5
echo "${ECHO_T}yes" >&6
d2779 3
a2781 33
rm -f a.out a.exe conftest$ac_cv_exeext
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:3386: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:3388: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6

echo "$as_me:3391: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if { (eval echo "$as_me:3393: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:3396: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  { { echo "$as_me:3412: error: cannot compute EXEEXT: cannot compile and link" >&5
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   { (exit 1); exit 1; }; }
d2783 4
d2788 12
a2799 11
rm -f conftest$ac_cv_exeext
echo "$as_me:3418: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "$as_me:3424: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2801 3
a2803 3
  cat >conftest.$ac_ext <<_ACEOF
#line 3430 "configure"
#include "confdefs.h"
d2805 1
a2805 3
int
main ()
{
d2807 2
a2808 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:3442: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3445: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
d2810 1
a2810 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:3457: error: cannot compute OBJEXT: cannot compile" >&5
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   { (exit 1); exit 1; }; }
d2813 7
a2819 10
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
echo "$as_me:3464: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:3468: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2821 2
a2822 72
  cat >conftest.$ac_ext <<_ACEOF
#line 3474 "configure"
#include "confdefs.h"

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:3489: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3492: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3495: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3498: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:3510: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
echo "$as_me:3516: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 3522 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:3534: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3537: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3540: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3543: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2825 1
a2825 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cc_g=no
d2827 2
a2828 1
rm -f conftest.$ac_objext conftest.$ac_ext
d2830 2
a2831 2
echo "$as_me:3553: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
d2833 1
a2833 1
  CFLAGS=$ac_save_CFLAGS
a2846 96
# Some people use a C++ compiler to compile C.  Since we use `exit',
# in C++ we need to declare it.  In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
  choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:3580: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3583: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3586: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3589: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line 3601 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:3614: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3617: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3620: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3623: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 3633 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:3645: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3648: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3651: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3654: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
echo '#ifdef __cplusplus' >>confdefs.h
echo $ac_declaration      >>confdefs.h
echo '#endif'             >>confdefs.h
d2848 1
a2848 14
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

# Because of shared library building, the ${CC} used for config tests
# may be different than the ${CC} we want to put in the Makefile.
# The latter is known as ${MAKEFILE_CC} in this script.
a2853 7
# See if we need the C++ compiler at all.  If so, we'd like to find one that
# interoperates with the C compiler we chose.  Since we prefered cc over gcc,
# we'll also prefer the vendor's compiler over g++/gcc.  If we're wrong, the
# user can set CC and CXX in their environment before running configure.
#
# AC_PROG_CXX sets CXX, but it uses $CXX and $CCC (in that order) as its
# first choices.
d2857 1
a2857 2
		aix*)		if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}xlC_r", so it can be a program name with args.
d2859 4
a2862 4
echo "$as_me:3699: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2867 10
a2876 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CCC="${ac_tool_prefix}xlC_r"
echo "$as_me:3714: found $ac_dir/$ac_word" >&5
break
done

d2879 1
a2879 1
CCC=$ac_cv_prog_CCC
d2881 1
a2881 2
  echo "$as_me:3722: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6
d2883 1
a2883 2
  echo "$as_me:3725: result: no" >&5
echo "${ECHO_T}no" >&6
d2886 1
a2886 1
fi
d2888 1
a2888 1
  ac_ct_CCC=$CCC
d2891 19
a2909 19
echo "$as_me:3734: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CCC"; then
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CCC="xlC_r"
echo "$as_me:3749: found $ac_dir/$ac_word" >&5
break
done

d2912 3
a2914 4
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
if test -n "$ac_ct_CCC"; then
  echo "$as_me:3757: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6
d2916 1
a2916 2
  echo "$as_me:3760: result: no" >&5
echo "${ECHO_T}no" >&6
a2918 1
  CCC=$ac_ct_CCC
d2920 2
a2921 1
  CCC="$ac_cv_prog_CCC"
d2924 1
a2924 2
		hpux*)		if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}aCC", so it can be a program name with args.
d2926 4
a2929 4
echo "$as_me:3772: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2934 10
a2943 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CCC="${ac_tool_prefix}aCC"
echo "$as_me:3787: found $ac_dir/$ac_word" >&5
break
done

d2946 1
a2946 1
CCC=$ac_cv_prog_CCC
d2948 1
a2948 2
  echo "$as_me:3795: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6
d2950 1
a2950 2
  echo "$as_me:3798: result: no" >&5
echo "${ECHO_T}no" >&6
d2953 1
a2953 1
fi
d2955 1
a2955 1
  ac_ct_CCC=$CCC
d2958 19
a2976 19
echo "$as_me:3807: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CCC"; then
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CCC="aCC"
echo "$as_me:3822: found $ac_dir/$ac_word" >&5
break
done

d2979 3
a2981 4
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
if test -n "$ac_ct_CCC"; then
  echo "$as_me:3830: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6
d2983 1
a2983 2
  echo "$as_me:3833: result: no" >&5
echo "${ECHO_T}no" >&6
a2985 1
  CCC=$ac_ct_CCC
d2987 2
a2988 1
  CCC="$ac_cv_prog_CCC"
d2991 1
a2991 2
		osf*)		if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cxx", so it can be a program name with args.
d2993 4
a2996 4
echo "$as_me:3845: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3001 10
a3010 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CCC="${ac_tool_prefix}cxx"
echo "$as_me:3860: found $ac_dir/$ac_word" >&5
break
done

d3013 1
a3013 1
CCC=$ac_cv_prog_CCC
d3015 1
a3015 2
  echo "$as_me:3868: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6
d3017 1
a3017 2
  echo "$as_me:3871: result: no" >&5
echo "${ECHO_T}no" >&6
d3020 1
a3020 1
fi
d3022 1
a3022 1
  ac_ct_CCC=$CCC
d3025 19
a3043 19
echo "$as_me:3880: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CCC"; then
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CCC="cxx"
echo "$as_me:3895: found $ac_dir/$ac_word" >&5
break
done

d3046 3
a3048 4
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
if test -n "$ac_ct_CCC"; then
  echo "$as_me:3903: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6
d3050 1
a3050 2
  echo "$as_me:3906: result: no" >&5
echo "${ECHO_T}no" >&6
a3052 1
  CCC=$ac_ct_CCC
d3054 2
a3055 1
  CCC="$ac_cv_prog_CCC"
d3058 1
a3058 2
		solaris*)	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
d3060 4
a3063 4
echo "$as_me:3918: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3068 10
a3077 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CCC="${ac_tool_prefix}CC"
echo "$as_me:3933: found $ac_dir/$ac_word" >&5
break
done

d3080 1
a3080 1
CCC=$ac_cv_prog_CCC
d3082 1
a3082 2
  echo "$as_me:3941: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6
d3084 1
a3084 2
  echo "$as_me:3944: result: no" >&5
echo "${ECHO_T}no" >&6
d3087 1
a3087 1
fi
d3089 1
a3089 1
  ac_ct_CCC=$CCC
d3092 19
a3110 19
echo "$as_me:3953: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CCC"; then
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CCC="CC"
echo "$as_me:3968: found $ac_dir/$ac_word" >&5
break
done

d3113 3
a3115 4
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
if test -n "$ac_ct_CCC"; then
  echo "$as_me:3976: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6
d3117 1
a3117 2
  echo "$as_me:3979: result: no" >&5
echo "${ECHO_T}no" >&6
a3119 1
  CCC=$ac_ct_CCC
d3121 2
a3122 1
  CCC="$ac_cv_prog_CCC"
d3127 8
a3134 14
	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:4000: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3139 10
a3148 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
echo "$as_me:4015: found $ac_dir/$ac_word" >&5
break
done

d3151 1
a3151 1
CXX=$ac_cv_prog_CXX
d3153 1
a3153 2
  echo "$as_me:4023: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
d3155 1
a3155 2
  echo "$as_me:4026: result: no" >&5
echo "${ECHO_T}no" >&6
d3158 1
a3158 26
    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:4039: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CXX="$ac_prog"
echo "$as_me:4054: found $ac_dir/$ac_word" >&5
break
d3160 1
a3161 10
fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  echo "$as_me:4062: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6
else
  echo "$as_me:4065: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d3163 2
a3164 3
  test -n "$ac_ct_CXX" && break
done
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
d3166 6
a3171 11
  CXX=$ac_ct_CXX
fi

echo "$as_me:4076: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4082 "configure"
#include "confdefs.h"
d3173 1
a3173 6
int
main ()
{
#ifndef __GNUC__
       choke me
#endif
d3175 1
a3175 39
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4097: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4100: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4103: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4106: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:4118: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
GXX=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="-g"
echo "$as_me:4124: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cxx_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4130 "configure"
d3178 7
a3184 35
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4142: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4145: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4148: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4151: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cxx_g=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:4161: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
d3186 1
a3186 1
    CXXFLAGS="-g"
d3189 3
a3191 5
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
d3193 1
a3193 76
for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line 4188 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4201: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4204: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4207: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4210: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 4220 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4232: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4235: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4238: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4241: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
echo '#ifdef __cplusplus' >>confdefs.h
echo $ac_declaration      >>confdefs.h
echo '#endif'             >>confdefs.h

d3195 1
d3197 3
a3199 3
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d3201 3
a3203 2
	MAKEFILE_CXX=${CXX}
	MAKEFILE_CXXLINK="\$(CXX)"
d3205 4
d3210 14
a3223 63
# Do some gcc specific configuration.

if test "$GCC" = "yes"; then
    echo "$as_me:4267: checking for gcc 2.96 for-loop bug" >&5
echo $ECHO_N "checking for gcc 2.96 for-loop bug... $ECHO_C" >&6
if test "${db_cv_gcc_2_96_forloop_bug+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    if test "$cross_compiling" = yes; then
  { { echo "$as_me:4274: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4279 "configure"
#include "confdefs.h"
void bug(unsigned int n) {
	int i;
	int shift = -1;
	for (i=0; ((i < 10) && (shift < 0)) ; i++) {
		if ((1UL << i) == n)
			shift = i;
	}
	if (shift < 0)
		exit(1);
    }
    int main() {
	bug(64);
	exit(0);
    }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:4297: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4300: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:4302: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4305: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_gcc_2_96_forloop_bug=no
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_gcc_2_96_forloop_bug=yes
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
fi
fi
echo "$as_me:4317: result: $db_cv_gcc_2_96_forloop_bug" >&5
echo "${ECHO_T}$db_cv_gcc_2_96_forloop_bug" >&6
    if test "$db_cv_gcc_2_96_forloop_bug" = "yes"; then
	CFLAGS=`echo "$CFLAGS" | sed 's/-O2/-O/'`
	CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2/-O/'`
	{ echo "$as_me:4322: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&5
echo "$as_me: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&2;}
	{ echo "$as_me:4324: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&5
echo "$as_me: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&2;}
    fi
a3224 9

if test "$GXX" = "yes"; then
	CXXVERSION=`${MAKEFILE_CXX} --version`
	case ${CXXVERSION} in
	1.*|2.[01234567].*|*-1.*|*-2.[01234567].*)
		CXXFLAGS="-fhandle-exceptions $CXXFLAGS";;
	*)
		CXXFLAGS="-fexceptions $CXXFLAGS";;
	esac
d3227 1
a3227 71
# Export our compiler preferences for the libtool configuration.
export CC CCC
CCC=CXX

# Libtool configuration.
# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
  enableval="$enable_shared"
  p=${PACKAGE-default}
case $enableval in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
  enable_shared=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_shared=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_shared=yes
fi;
# Check whether --enable-static or --disable-static was given.
if test "${enable_static+set}" = set; then
  enableval="$enable_static"
  p=${PACKAGE-default}
case $enableval in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
  enable_static=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_static=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_static=yes
fi;
# Check whether --enable-fast-install or --disable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
  enableval="$enable_fast_install"
  p=${PACKAGE-default}
case $enableval in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
  enable_fast_install=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_fast_install=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_fast_install=yes
fi;
d3229 2
a3230 42
# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
  withval="$with_gnu_ld"
  test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi;
ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  echo "$as_me:4421: checking for ld used by GCC" >&5
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | [A-Za-z]:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the path of ld
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  echo "$as_me:4451: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
d3232 1
a3232 2
  echo "$as_me:4454: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
d3234 8
a3241 2
if test "${lt_cv_path_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3243 3
a3245 17
  if test -z "$LD"; then
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some GNU ld's only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
	test "$with_gnu_ld" != no && break
      else
	test "$with_gnu_ld" != yes && break
      fi
    fi
  done
  IFS="$ac_save_ifs"
d3247 1
a3247 2
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
d3249 1
a3250 72
LD="$lt_cv_path_LD"
if test -n "$LD"; then
  echo "$as_me:4484: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
else
  echo "$as_me:4487: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -z "$LD" && { { echo "$as_me:4490: error: no acceptable ld found in \$PATH" >&5
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
echo "$as_me:4493: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
if test "${lt_cv_prog_gnu_ld+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  lt_cv_prog_gnu_ld=yes
else
  lt_cv_prog_gnu_ld=no
fi
fi
echo "$as_me:4505: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
with_gnu_ld=$lt_cv_prog_gnu_ld

echo "$as_me:4509: checking for $LD option to reload object files" >&5
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
if test "${lt_cv_ld_reload_flag+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_ld_reload_flag='-r'
fi
echo "$as_me:4516: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
reload_flag=$lt_cv_ld_reload_flag
test -n "$reload_flag" && reload_flag=" $reload_flag"

echo "$as_me:4521: checking for BSD-compatible nm" >&5
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
if test "${lt_cv_path_NM+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    test -z "$ac_dir" && ac_dir=.
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
      # Check to see if the nm accepts a BSD-compat flag.
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
      #   nm: unknown option "B" ignored
      # Tru64's nm complains that /dev/null is an invalid object file
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
	lt_cv_path_NM="$tmp_nm -B"
	break
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	lt_cv_path_NM="$tmp_nm -p"
	break
      else
	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	continue # so that we can try to find one that supports BSD flags
      fi
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
fi
d3253 6
a3258 78
NM="$lt_cv_path_NM"
echo "$as_me:4557: result: $NM" >&5
echo "${ECHO_T}$NM" >&6

echo "$as_me:4560: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  echo "$as_me:4564: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:4567: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6
fi

echo "$as_me:4571: checking how to recognise dependant libraries" >&5
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
if test "${lt_cv_deplibs_check_method+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# ['file_magic [regex]'] -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given egrep regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix4* | aix5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi4*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin* | mingw* | pw32*)
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  case "$host_os" in
  rhapsody* | darwin1.012)
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
    ;;
  *) # Darwin 1.3 on
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
    ;;
  esac
  ;;

freebsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
d3260 1
a3260 52
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20*|hpux11*)
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
  ;;

irix5* | irix6*)
  case $host_os in
  irix5*)
    # this will be overridden with pass_all, but let us keep it just in case
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
    ;;
  *)
    case $LD in
    *-32|*"-32 ") libmagic=32-bit;;
    *-n32|*"-n32 ") libmagic=N32;;
    *-64|*"-64 ") libmagic=64-bit;;
    *) libmagic=never-match;;
    esac
    # this will be overridden with pass_all, but let us keep it just in case
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
    ;;
  esac
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux-gnu*)
  case $host_cpu in
  alpha* | i*86 | powerpc* | sparc* | ia64* )
    lt_cv_deplibs_check_method=pass_all ;;
  *)
    # glibc up to 2.1.1 does not perform some relocations on ARM
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  esac
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
a3261 67
  ;;

newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;

#### local change for Sleepycat DB:
# Add in the QNX support from QNX.
nto-qnx)
  lt_cv_deplibs_check_method=pass_all
  ;;

osf3* | osf4* | osf5*)
  # this will be overridden with pass_all, but let us keep it just in case
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  lt_cv_file_magic_test_file=/shlib/libc.so
  lt_cv_deplibs_check_method=pass_all
  ;;

sco3.2v5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  lt_cv_file_magic_test_file=/lib/libc.so
  ;;

sysv5uw[78]* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  esac
  ;;
esac

fi
echo "$as_me:4745: result: $lt_cv_deplibs_check_method" >&5
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method

# Check for command to grab the raw symbol name followed by C symbol from nm.
echo "$as_me:4751: checking command to parse $NM output" >&5
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3263 2
a3264 152

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Transform the above into a raw symbol and a C symbol.
symxfrm='\1 \2\3 \3'

# Transform an extracted symbol line into a proper C declaration
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32*)
  symcode='[ABCDGISTW]'
  ;;
hpux*) # Its linker distinguishes data from code symbols
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  ;;
irix*)
  symcode='[BCDEGRST]'
  ;;
solaris* | sysv5*)
  symcode='[BDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# Handle CRLF in mingw tool chain
opt_cr=
case $host_os in
mingw*)
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  symcode='[ABCDGISTW]'
fi

# Try without a prefix undercore, then with it.
for ac_symprfx in "" "_"; do

  # Write the raw and C identifiers.
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"

  # Check to see that the pipe works correctly.
  pipe_works=no
  rm -f conftest*
  cat > conftest.$ac_ext <<EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
EOF

  if { (eval echo "$as_me:4828: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4831: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { (eval echo "$as_me:4835: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  ac_status=$?
  echo "$as_me:4838: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<EOF > conftest.$ac_ext
#ifdef __cplusplus
extern "C" {
#endif

EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'

	  cat <<EOF >> conftest.$ac_ext
#if defined (__STDC__) && __STDC__
# define lt_ptr_t void *
#else
# define lt_ptr_t char *
# define const
#endif

/* The mapping between symbol names and symbols. */
const struct {
  const char *name;
  lt_ptr_t address;
}
lt_preloaded_symbols[] =
{
EOF
	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
	  cat <<\EOF >> conftest.$ac_ext
  {0, (lt_ptr_t) 0}
};

#ifdef __cplusplus
}
#endif
EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  save_LIBS="$LIBS"
	  save_CFLAGS="$CFLAGS"
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$no_builtin_flag"
	  if { (eval echo "$as_me:4890: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4893: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest; then
	    pipe_works=yes
	  fi
	  LIBS="$save_LIBS"
	  CFLAGS="$save_CFLAGS"
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
d3266 1
a3266 73
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -f conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
if test -z "$lt_cv_sys_global_symbol_pipe"; then
  global_symbol_to_cdecl=
else
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
fi
if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
  echo "$as_me:4931: result: failed" >&5
echo "${ECHO_T}failed" >&6
else
  echo "$as_me:4934: result: ok" >&5
echo "${ECHO_T}ok" >&6
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
echo "$as_me:4943: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      # break 2 since there is a loop in there.
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 4965 "configure"
#include "confdefs.h"
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:4970: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4976: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
a3267 10
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
a3268 1
rm -f conftest.err conftest.$ac_ext
d3270 2
a3271 22
  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 4999 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:5003: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5009: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
a3272 3396
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break 2
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
echo "$as_me:5046: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 5056 "configure"
#include "confdefs.h"
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:5061: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5067: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 5090 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:5094: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5100: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:5128: error: C preprocessor \"$CPP\" fails sanity check" >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

for ac_header in dlfcn.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:5142: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5148 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:5152: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5158: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5177: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

# Only perform the check for file, if the check method requires it
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    echo "$as_me:5191: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
  /*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
  ?:/*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  ;;
  *)
  ac_save_MAGIC_CMD="$MAGIC_CMD"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="/usr/bin:$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    egrep "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$ac_save_ifs"
  MAGIC_CMD="$ac_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  echo "$as_me:5246: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
else
  echo "$as_me:5249: result: no" >&5
echo "${ECHO_T}no" >&6
fi

if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    echo "$as_me:5255: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
  /*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
  ?:/*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  ;;
  *)
  ac_save_MAGIC_CMD="$MAGIC_CMD"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="/usr/bin:$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    egrep "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$ac_save_ifs"
  MAGIC_CMD="$ac_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  echo "$as_me:5310: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
else
  echo "$as_me:5313: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "$as_me:5329: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
echo "$as_me:5344: found $ac_dir/$ac_word" >&5
break
done

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  echo "$as_me:5352: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
  echo "$as_me:5355: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "$as_me:5364: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_RANLIB="ranlib"
echo "$as_me:5379: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  echo "$as_me:5388: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
else
  echo "$as_me:5391: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  RANLIB=$ac_ct_RANLIB
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo "$as_me:5403: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
echo "$as_me:5418: found $ac_dir/$ac_word" >&5
break
done

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  echo "$as_me:5426: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
else
  echo "$as_me:5429: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo "$as_me:5438: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_STRIP="strip"
echo "$as_me:5453: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  echo "$as_me:5462: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6
else
  echo "$as_me:5465: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  STRIP=$ac_ct_STRIP
else
  STRIP="$ac_cv_prog_STRIP"
fi

enable_dlopen=no
enable_win32_dll=no

# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval="$enable_libtool_lock"

fi;
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 5489 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:5490: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5493: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
      ;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  echo "$as_me:5514: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
if test "${lt_cv_cc_needs_belf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat >conftest.$ac_ext <<_ACEOF
#line 5527 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5539: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5542: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5545: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5548: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  lt_cv_cc_needs_belf=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
lt_cv_cc_needs_belf=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
echo "$as_me:5564: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;

esac

# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='sed -e s/^X//'
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Constants:
rm="rm -f"

# Global variables:
default_ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except M$VC,
# which needs '.lib').
libext=a
ltmain="$ac_aux_dir/ltmain.sh"
ofile="$default_ofile"
with_gnu_ld="$lt_cv_prog_gnu_ld"
need_locks="$enable_libtool_lock"

old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru
test -z "$AS" && AS=as
test -z "$CC" && CC=cc
test -z "$DLLTOOL" && DLLTOOL=dlltool
test -z "$LD" && LD=ld
test -z "$LN_S" && LN_S="ln -s"
test -z "$MAGIC_CMD" && MAGIC_CMD=file
test -z "$NM" && NM=nm
test -z "$OBJDUMP" && OBJDUMP=objdump
test -z "$RANLIB" && RANLIB=:
test -z "$STRIP" && STRIP=:
test -z "$ac_objext" && ac_objext=o

if test x"$host" != x"$build"; then
  ac_tool_prefix=${host_alias}-
else
  ac_tool_prefix=
fi

# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
case $host_os in
linux-gnu*) ;;
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
esac

case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac

# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
fi

# Allow CC to be a program name with arguments.
set dummy $CC
compiler="$2"

## FIXME: this should be a separate macro
##
echo "$as_me:5659: checking for objdir" >&5
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  objdir=_libs
fi
rmdir .libs 2>/dev/null
echo "$as_me:5670: result: $objdir" >&5
echo "${ECHO_T}$objdir" >&6
##
## END FIXME

## FIXME: this should be a separate macro
##

# Check whether --with-pic or --without-pic was given.
if test "${with_pic+set}" = set; then
  withval="$with_pic"
  pic_mode="$withval"
else
  pic_mode=default
fi;
test -z "$pic_mode" && pic_mode=default

# We assume here that the value for lt_cv_prog_cc_pic will not be cached
# in isolation, and that seeing it set (from the cache) indicates that
# the associated values are set (in the cache) correctly too.
echo "$as_me:5690: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
if test "${lt_cv_prog_cc_pic+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
   lt_cv_prog_cc_pic=
  lt_cv_prog_cc_shlib=
  lt_cv_prog_cc_wl=
  lt_cv_prog_cc_static=
  lt_cv_prog_cc_no_builtin=
  lt_cv_prog_cc_can_build_shared=$can_build_shared

  if test "$GCC" = yes; then
    lt_cv_prog_cc_wl='-Wl,'
    lt_cv_prog_cc_static='-static'

    case $host_os in
    aix*)
      # Below there is a dirty hack to force normal static linking with -ldl
      # The problem is because libdl dynamically linked with both libc and
      # libC (AIX C++ library), which obviously doesn't included in libraries
      # list by gcc. This cause undefined symbols with -static flags.
      # This hack allows C programs to be linked with "-static -ldl", but
      # we not sure about C++ programs.
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
      ;;
    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
      ;;
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_cv_prog_cc_pic='-fno-common'
      ;;
    cygwin* | mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	 lt_cv_prog_cc_pic=-Kconform_pic
      fi
      ;;
    *)
      lt_cv_prog_cc_pic='-fPIC'
      ;;
    esac
  else
    # PORTME Check for PIC flags for the system compiler.
    case $host_os in
    aix3* | aix4* | aix5*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
        # AIX 5 now supports IA64 processor
        lt_cv_prog_cc_static='-Bstatic'
        lt_cv_prog_cc_wl='-Wl,'
      else
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;

    hpux9* | hpux10* | hpux11*)
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
      lt_cv_prog_cc_wl='-Wl,'
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
      lt_cv_prog_cc_pic='+Z'
      ;;

    irix5* | irix6*)
      lt_cv_prog_cc_wl='-Wl,'
      lt_cv_prog_cc_static='-non_shared'
      # PIC (with -KPIC) is the default.
      ;;

    cygwin* | mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
      ;;

    newsos6)
      lt_cv_prog_cc_pic='-KPIC'
      lt_cv_prog_cc_static='-Bstatic'
      ;;

    osf3* | osf4* | osf5*)
      # All OSF/1 code is PIC.
      lt_cv_prog_cc_wl='-Wl,'
      lt_cv_prog_cc_static='-non_shared'
      ;;

    sco3.2v5*)
      lt_cv_prog_cc_pic='-Kpic'
      lt_cv_prog_cc_static='-dn'
      lt_cv_prog_cc_shlib='-belf'
      ;;

    solaris*)
      lt_cv_prog_cc_pic='-KPIC'
      lt_cv_prog_cc_static='-Bstatic'
      lt_cv_prog_cc_wl='-Wl,'
      ;;

    sunos4*)
      lt_cv_prog_cc_pic='-PIC'
      lt_cv_prog_cc_static='-Bstatic'
      lt_cv_prog_cc_wl='-Qoption ld '
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
      lt_cv_prog_cc_pic='-KPIC'
      lt_cv_prog_cc_static='-Bstatic'
      if test "x$host_vendor" = xsni; then
        lt_cv_prog_cc_wl='-LD'
      else
        lt_cv_prog_cc_wl='-Wl,'
      fi
      ;;

    uts4*)
      lt_cv_prog_cc_pic='-pic'
      lt_cv_prog_cc_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_cv_prog_cc_pic='-Kconform_pic'
	lt_cv_prog_cc_static='-Bstatic'
      fi
      ;;

    *)
      lt_cv_prog_cc_can_build_shared=no
      ;;
    esac
  fi

fi

if test -z "$lt_cv_prog_cc_pic"; then
  echo "$as_me:5837: result: none" >&5
echo "${ECHO_T}none" >&6
else
  echo "$as_me:5840: result: $lt_cv_prog_cc_pic" >&5
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6

  # Check to make sure the pic_flag actually works.
  echo "$as_me:5844: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      save_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
    cat >conftest.$ac_ext <<_ACEOF
#line 5852 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5864: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5867: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5870: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5873: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
        case $host_os in
      hpux9* | hpux10* | hpux11*)
	# On HP-UX, both CC and GCC only warn that PIC is supported... then
	# they create non-PIC objects.  So, if there were any warnings, we
	# assume that PIC is not supported.
	if test -s conftest.err; then
	  lt_cv_prog_cc_pic_works=no
	else
	  lt_cv_prog_cc_pic_works=yes
	fi
	;;
      *)
	lt_cv_prog_cc_pic_works=yes
	;;
      esac

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
      lt_cv_prog_cc_pic_works=no

fi
rm -f conftest.$ac_objext conftest.$ac_ext
    CFLAGS="$save_CFLAGS"

fi

  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
    lt_cv_prog_cc_pic=
    lt_cv_prog_cc_can_build_shared=no
  else
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  fi

  echo "$as_me:5909: result: $lt_cv_prog_cc_pic_works" >&5
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
fi
##
## END FIXME

# Check for any special shared library compilation flags.
if test -n "$lt_cv_prog_cc_shlib"; then
  { echo "$as_me:5917: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
  else
   { echo "$as_me:5921: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
    lt_cv_prog_cc_can_build_shared=no
  fi
fi

## FIXME: this should be a separate macro
##
echo "$as_me:5929: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
if test "${lt_cv_prog_cc_static_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
    lt_cv_prog_cc_static_works=no
  save_LDFLAGS="$LDFLAGS"
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  cat >conftest.$ac_ext <<_ACEOF
#line 5938 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5950: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5953: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5956: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5959: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  lt_cv_prog_cc_static_works=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  LDFLAGS="$save_LDFLAGS"

fi

# Belt *and* braces to stop my trousers falling down:
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
echo "$as_me:5973: result: $lt_cv_prog_cc_static_works" >&5
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6

pic_flag="$lt_cv_prog_cc_pic"
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
wl="$lt_cv_prog_cc_wl"
link_static_flag="$lt_cv_prog_cc_static"
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
can_build_shared="$lt_cv_prog_cc_can_build_shared"
##
## END FIXME

## FIXME: this should be a separate macro
##
# Check to see if options -o and -c are simultaneously supported by compiler
echo "$as_me:5988: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
if test "${lt_cv_compiler_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

$rm -r conftest 2>/dev/null
mkdir conftest
cd conftest
echo "int some_variable = 0;" > conftest.$ac_ext
mkdir out
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
# that will create temporary files in the current directory regardless of
# the output directory.  Thus, making CWD read-only will cause this test
# to fail, enabling locking or at least warning the user not to do parallel
# builds.
chmod -w .
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
compiler_c_o=no
if { (eval echo configure:6008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  # The compiler can only warn and ignore the option if not recognized
  # So say no if there are warnings
  if test -s out/conftest.err; then
    lt_cv_compiler_c_o=no
  else
    lt_cv_compiler_c_o=yes
  fi
else
  # Append any errors to the config.log.
  cat out/conftest.err 1>&5
  lt_cv_compiler_c_o=no
fi
CFLAGS="$save_CFLAGS"
chmod u+w .
$rm conftest* out/*
rmdir out
cd ..
rmdir conftest
$rm -r conftest 2>/dev/null

fi

compiler_c_o=$lt_cv_compiler_c_o
echo "$as_me:6032: result: $compiler_c_o" >&5
echo "${ECHO_T}$compiler_c_o" >&6

if test x"$compiler_c_o" = x"yes"; then
  # Check to see if we can write to a .lo
  echo "$as_me:6037: checking if $compiler supports -c -o file.lo" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  if test "${lt_cv_compiler_o_lo+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  lt_cv_compiler_o_lo=no
  save_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -c -o conftest.lo"
  cat >conftest.$ac_ext <<_ACEOF
#line 6047 "configure"
#include "confdefs.h"

int
main ()
{
int some_variable = 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6059: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6062: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6065: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6068: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
      # The compiler can only warn and ignore the option if not recognized
    # So say no if there are warnings
    if test -s conftest.err; then
      lt_cv_compiler_o_lo=no
    else
      lt_cv_compiler_o_lo=yes
    fi

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  CFLAGS="$save_CFLAGS"

fi

  compiler_o_lo=$lt_cv_compiler_o_lo
  echo "$as_me:6088: result: $compiler_c_lo" >&5
echo "${ECHO_T}$compiler_c_lo" >&6
else
  compiler_o_lo=no
fi
##
## END FIXME

## FIXME: this should be a separate macro
##
# Check to see if we can do hard links to lock some files if needed
hard_links="nottested"
if test "$compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  echo "$as_me:6102: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  echo "$as_me:6110: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
  if test "$hard_links" = no; then
    { echo "$as_me:6113: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi
##
## END FIXME

## FIXME: this should be a separate macro
##
if test "$GCC" = yes; then
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  echo "$as_me:6127: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  echo "int some_variable = 0;" > conftest.$ac_ext
  save_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  compiler_rtti_exceptions=no
  cat >conftest.$ac_ext <<_ACEOF
#line 6134 "configure"
#include "confdefs.h"

int
main ()
{
int some_variable = 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6146: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6149: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6152: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6155: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
      # The compiler can only warn and ignore the option if not recognized
    # So say no if there are warnings
    if test -s conftest.err; then
      compiler_rtti_exceptions=no
    else
      compiler_rtti_exceptions=yes
    fi

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  CFLAGS="$save_CFLAGS"
  echo "$as_me:6171: result: $compiler_rtti_exceptions" >&5
echo "${ECHO_T}$compiler_rtti_exceptions" >&6

  if test "$compiler_rtti_exceptions" = "yes"; then
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  else
    no_builtin_flag=' -fno-builtin'
  fi
fi
##
## END FIXME

## FIXME: this should be a separate macro
##
# See if the linker supports building shared libraries.
echo "$as_me:6186: checking whether the linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6

allow_undefined_flag=
no_undefined_flag=
need_lib_prefix=unknown
need_version=unknown
# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
archive_cmds=
archive_expsym_cmds=
old_archive_from_new_cmds=
old_archive_from_expsyms_cmds=
export_dynamic_flag_spec=
whole_archive_flag_spec=
thread_safe_flag_spec=
hardcode_into_libs=no
hardcode_libdir_flag_spec=
hardcode_libdir_separator=
hardcode_direct=no
hardcode_minus_L=no
hardcode_shlibpath_var=unsupported
runpath_var=
link_all_deplibs=unknown
always_export_symbols=no
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
# include_expsyms should be a list of space-separated symbols to be *always*
# included in the symbol list
include_expsyms=
# exclude_expsyms can be an egrep regular expression of symbols to exclude
# it will be wrapped by ` (' and `)$', so one must not match beginning or
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
# as well as any symbol that contains `d'.
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
# platforms (ab)use it in PIC code, but their linkers get confused if
# the symbol is explicitly referenced.  Since portable code cannot
# rely on this symbol name, it's probably fine to never include it in
# preloaded symbol tables.
extract_expsyms_cmds=

case $host_os in
cygwin* | mingw* | pw32* )
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
  # When not using gcc, we currently assume that we are using
  # Microsoft Visual C++.
  if test "$GCC" != yes; then
    with_gnu_ld=no
  fi
  ;;

esac

ld_shlibs=yes
if test "$with_gnu_ld" = yes; then
  # If archive_cmds runs LD, not CC, wlarc should be empty
  wlarc='${wl}'

  # See if GNU ld supports shared libraries.
  case $host_os in
  aix3* | aix4* | aix5*)
    # On AIX, the GNU linker is very broken
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
    ld_shlibs=no
    cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
    ;;

  amigaos*)
    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_minus_L=yes

    # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
    # that the semantics of dynamic libraries on AmigaOS, at least up
    # to version 4, is to share data among multiple programs linked
    # with the same dynamic library.  Since this doesn't match the
    # behavior of shared libraries on other platforms, we can use
    # them.
    ld_shlibs=no
    ;;

  beos*)
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
      allow_undefined_flag=unsupported
      # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
      # support --undefined.  This deserves some investigation.  FIXME
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    else
      ld_shlibs=no
    fi
    ;;

  cygwin* | mingw* | pw32*)
    # hardcode_libdir_flag_spec is actually meaningless, as there is
    # no search path for DLLs.
    hardcode_libdir_flag_spec='-L$libdir'
    allow_undefined_flag=unsupported
    always_export_symbols=yes

    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
      else $CC -o impgen impgen.c ; fi)~
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'

    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'

    # cygwin and mingw dlls have different entry points and sets of symbols
    # to exclude.
    # FIXME: what about values for MSVC?
    dll_entry=__cygwin_dll_entry@@12
    dll_exclude_symbols=DllMain@@12,_cygwin_dll_entry@@12,_cygwin_noncygwin_dll_entry@@12~
    case $host_os in
    mingw*)
      # mingw values
      dll_entry=_DllMainCRTStartup@@12
      dll_exclude_symbols=DllMain@@12,DllMainCRTStartup@@12,DllEntryPoint@@12~
      ;;
    esac

    # mingw and cygwin differ, and it's simplest to just exclude the union
    # of the two symbol sets.
    dll_exclude_symbols=DllMain@@12,_cygwin_dll_entry@@12,_cygwin_noncygwin_dll_entry@@12,DllMainCRTStartup@@12,DllEntryPoint@@12

    # recent cygwin and mingw systems supply a stub DllMain which the user
    # can override, but on older systems we have to supply one (in ltdll.c)
    if test "x$lt_cv_need_dllmain" = "xyes"; then
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
    else
      ltdll_obj=
      ltdll_cmds=
    fi

    # Extract the symbol export list from an `--export-all' def file,
    # then regenerate the def file from the symbol export list, so that
    # the compiled dll only exports the symbol export list.
    # Be careful not to strip the DATA tag left be newer dlltools.
    export_symbols_cmds="$ltdll_cmds"'
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
      sed -e "1,/EXPORTS/d" -e "s/ @@ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'

    # If the export-symbols file already is a .def file (1st line
    # is EXPORTS), use it as is.
    # If DATA tags from a recent dlltool are present, honour them!
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
        cp $export_symbols $output_objdir/$soname-def;
      else
        echo EXPORTS > $output_objdir/$soname-def;
        _lt_hint=1;
        cat $export_symbols | while read symbol; do
         set dummy \$symbol;
         case \$# in
           2) echo "   \$2 @@ \$_lt_hint ; " >> $output_objdir/$soname-def;;
           *) echo "     \$2 @@ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
         esac;
         _lt_hint=`expr 1 + \$_lt_hint`;
        done;
      fi~
      '"$ltdll_cmds"'
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
    ;;

  netbsd*)
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
      wlarc=
    else
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    fi
    ;;

  solaris* | sysv5*)
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
      ld_shlibs=no
      cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    else
      ld_shlibs=no
    fi
    ;;

  sunos4*)
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    wlarc=
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  *)
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    else
      ld_shlibs=no
    fi
    ;;
  esac

  if test "$ld_shlibs" = yes; then
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    case $host_os in
    cygwin* | mingw* | pw32*)
      # dlltool doesn't understand --whole-archive et. al.
      whole_archive_flag_spec=
      ;;
    *)
      # ancient GNU ld didn't support --whole-archive et. al.
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
	whole_archive_flag_spec=
      fi
      ;;
    esac
  fi
else
  # PORTME fill in a description of your system's linker (not GNU ld)
  case $host_os in
  aix3*)
    allow_undefined_flag=unsupported
    always_export_symbols=yes
    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
    # Note: this linker hardcodes the directories in LIBPATH if there
    # are no directories specified by -L.
    hardcode_minus_L=yes
    if test "$GCC" = yes && test -z "$link_static_flag"; then
      # Neither direct hardcoding nor static linking is supported with a
      # broken collect2.
      hardcode_direct=unsupported
    fi
    ;;

  aix4* | aix5*)
    # When large executables or shared objects are built, AIX ld can
    # have problems creating the table of contents.  If linking a library
    # or program results in "error TOC overflow" add -mminimal-toc to
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

    archive_cmds=''
    hardcode_libdir_separator=':'
    if test "$GCC" = yes; then
      collect2name=`${CC} -print-prog-name=collect2`
      if test -f "$collect2name" && \
	 strings "$collect2name" | grep resolve_lib_name >/dev/null
      then
	# We have reworked collect2
	hardcode_direct=yes
      else
        # We have old collect2
        hardcode_direct=unsupported
        # It fails to find uninstalled libraries when the uninstalled
        # path is not listed in the libpath.  Setting hardcode_minus_L
        # to unsupported forces relinking
        hardcode_minus_L=yes
        hardcode_libdir_flag_spec='-L$libdir'
        hardcode_libdir_separator=
      fi
      shared_flag='-shared'
    else
      if test "$host_cpu" = ia64; then
        shared_flag='-G'
      else
        shared_flag='${wl}-bM:SRE'
      fi
      hardcode_direct=yes
    fi

    if test "$host_cpu" = ia64; then
      # On IA64, the linker does run time linking by default, so we don't
      # have to do anything special.
      aix_use_runtimelinking=no
      exp_sym_flag='-Bexport'
      no_entry_flag=""
    else
      # Test if we are trying to use run time linking, or normal AIX style linking.
      # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
      aix_use_runtimelinking=no
      for ld_flag in $LDFLAGS; do
        if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
          aix_use_runtimelinking=yes
          break
        fi
      done
      exp_sym_flag='-bexport'
      no_entry_flag='-bnoentry'
    fi
    # It seems that -bexpall can do strange things, so it is better to
    # generate a list of symbols to export.
    always_export_symbols=yes
    if test "$aix_use_runtimelinking" = yes; then
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
      allow_undefined_flag=' -Wl,-G'
      archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
    else
      if test "$host_cpu" = ia64; then
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
       allow_undefined_flag="-znodefs"
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
      else
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
        # Warning - without using the other run time loading flags, -berok will
        #           link without error, but may produce a broken library.
        allow_undefined_flag='${wl}-berok"
        # This is a bit strange, but is similar to how AIX traditionally builds
        # it's shared libraries.
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
      fi
    fi
    ;;

  amigaos*)
    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_minus_L=yes
    # see comment about different semantics on the GNU ld section
    ld_shlibs=no
    ;;

  cygwin* | mingw* | pw32*)
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    # hardcode_libdir_flag_spec is actually meaningless, as there is
    # no search path for DLLs.
    hardcode_libdir_flag_spec=' '
    allow_undefined_flag=unsupported
    # Tell ltmain to make .lib files, not .a files.
    libext=lib
    # FIXME: Setting linknames here is a bad hack.
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
    # The linker will automatically build a .lib file if we build a DLL.
    old_archive_from_new_cmds='true'
    # FIXME: Should let the user specify the lib program.
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
    fix_srcfile_path='`cygpath -w "$srcfile"`'
    ;;

  darwin* | rhapsody*)
    allow_undefined_flag='-undefined suppress'
    # FIXME: Relying on posixy $() will cause problems for
    #        cross-compilation, but unfortunately the echo tests do not
    #        yet detect zsh echo's removal of \ escapes.
    archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
    # We need to add '_' to the symbols in $export_symbols first
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    whole_archive_flag_spec='-all_load $convenience'
    ;;

  freebsd1*)
    ld_shlibs=no
    ;;

  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  # support.  Future versions do this automatically, but an explicit c++rt0.o
  # does not break anything, and helps significantly (at the cost of a little
  # extra space).
  freebsd2.2*)
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  freebsd2*)
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    hardcode_direct=yes
    hardcode_minus_L=yes
    hardcode_shlibpath_var=no
    ;;

  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  freebsd*)
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  hpux9* | hpux10* | hpux11*)
    case $host_os in
    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
    esac
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
    hardcode_libdir_separator=:
    hardcode_direct=yes
    hardcode_minus_L=yes # Not in the search PATH, but as the default
			 # location of the library.
    export_dynamic_flag_spec='${wl}-E'
    ;;

  irix5* | irix6*)
    if test "$GCC" = yes; then
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    else
      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    fi
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator=:
    link_all_deplibs=yes
    ;;

  netbsd*)
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
    else
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
    fi
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  newsos6)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
    hardcode_direct=yes
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator=:
    hardcode_shlibpath_var=no
    ;;

  openbsd*)
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  os2*)
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_minus_L=yes
    allow_undefined_flag=unsupported
    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    ;;

  osf3*)
    if test "$GCC" = yes; then
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    else
      allow_undefined_flag=' -expect_unresolved \*'
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    fi
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator=:
    ;;

  osf4* | osf5*)	# as osf3* with the addition of -msym flag
    if test "$GCC" = yes; then
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    else
      allow_undefined_flag=' -expect_unresolved \*'
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'

      #Both c and cxx compiler support -rpath directly
      hardcode_libdir_flag_spec='-rpath $libdir'
    fi
    hardcode_libdir_separator=:
    ;;

  sco3.2v5*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_shlibpath_var=no
    runpath_var=LD_RUN_PATH
    hardcode_runpath_var=yes
    ;;

  solaris*)
    no_undefined_flag=' -z defs'
    # $CC -shared without GNU ld will not create a library from C++
    # object files and a static libstdc++, better avoid it by now
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_shlibpath_var=no
    case $host_os in
    solaris2.[0-5] | solaris2.[0-5].*) ;;
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
    esac
    link_all_deplibs=yes
    ;;

  sunos4*)
    if test "x$host_vendor" = xsequent; then
      # Use $CC to link under sequent, because it throws in some extra .o
      # files that make .init and .fini sections work.
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
    else
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
    fi
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_direct=yes
    hardcode_minus_L=yes
    hardcode_shlibpath_var=no
    ;;

  sysv4)
    if test "x$host_vendor" = xsno; then
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
      hardcode_direct=yes # is this really true???
    else
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
    fi
    runpath_var='LD_RUN_PATH'
    hardcode_shlibpath_var=no
    ;;

  sysv4.3*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_shlibpath_var=no
    export_dynamic_flag_spec='-Bexport'
    ;;

  sysv5*)
    no_undefined_flag=' -z text'
    # $CC -shared without GNU ld will not create a library from C++
    # object files and a static libstdc++, better avoid it by now
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    hardcode_libdir_flag_spec=
    hardcode_shlibpath_var=no
    runpath_var='LD_RUN_PATH'
    ;;

  uts4*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_shlibpath_var=no
    ;;

  dgux*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_shlibpath_var=no
    ;;

  sysv4*MP*)
    if test -d /usr/nec; then
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      runpath_var=LD_RUN_PATH
      hardcode_runpath_var=yes
      ld_shlibs=yes
    fi
    ;;

  sysv4.2uw2*)
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    hardcode_direct=yes
    hardcode_minus_L=no
    hardcode_shlibpath_var=no
    hardcode_runpath_var=yes
    runpath_var=LD_RUN_PATH
    ;;

  sysv5uw7* | unixware7*)
    no_undefined_flag='${wl}-z ${wl}text'
    if test "$GCC" = yes; then
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    else
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    fi
    runpath_var='LD_RUN_PATH'
    hardcode_shlibpath_var=no
    ;;

  *)
    ld_shlibs=no
    ;;
  esac
fi
echo "$as_me:6798: result: $ld_shlibs" >&5
echo "${ECHO_T}$ld_shlibs" >&6
test "$ld_shlibs" = no && can_build_shared=no
##
## END FIXME

## FIXME: this should be a separate macro
##
# Check hardcoding attributes.
echo "$as_me:6807: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" || \
   test -n "$runpath_var"; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$hardcode_shlibpath_var" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
echo "$as_me:6831: result: $hardcode_action" >&5
echo "${ECHO_T}$hardcode_action" >&6
##
## END FIXME

## FIXME: this should be a separate macro
##
striplib=
old_striplib=
echo "$as_me:6840: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:6845: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:6848: result: no" >&5
echo "${ECHO_T}no" >&6
fi
##
## END FIXME

reload_cmds='$LD$reload_flag -o $output$reload_objs'
test -z "$deplibs_check_method" && deplibs_check_method=unknown

## FIXME: this should be a separate macro
##
# PORTME Fill in your ld.so characteristics
echo "$as_me:6860: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
library_names_spec=
libname_spec='lib$name'
soname_spec=
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}.so$major'
  ;;

aix4* | aix5*)
  version_type=linux
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
       aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
           echo ' yes '
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
        :
      else
        can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
      # lib<name>.a to let people know that these are not typical AIX shared libraries.
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}.so$major'
    fi
    shlibpath_var=LIBPATH
    deplibs_check_method=pass_all
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}.so'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi4*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  export_dynamic_flag_spec=-rdynamic
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  need_version=no
  need_lib_prefix=no
  case $GCC,$host_os in
  yes,cygwin*)
    library_names_spec='$libname.dll.a'
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog .libs/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    ;;
  yes,mingw*)
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
    ;;
  yes,pw32*)
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
    ;;
  *)
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  # FIXME: Relying on posixy $() will cause problems for
  #        cross-compilation, but unfortunately the echo tests do not
  #        yet detect zsh echo's removal of \ escapes.
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd*)
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  *)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  dynamic_linker="$host_os dld.sl"
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  shlibpath_var=SHLIB_PATH
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  soname_spec='${libname}${release}.sl$major'
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

irix5* | irix6*)
  version_type=irix
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}.so$major'
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  case $host_os in
  irix5*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux-gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
    soname_spec='${libname}${release}.so$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
    need_version=no
  fi
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

os2*)
  libname_spec='$name'
  need_lib_prefix=no
  library_names_spec='$libname.dll $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_version=no
  soname_spec='${libname}${release}.so'
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

sco3.2v5*)
  version_type=osf
  soname_spec='${libname}${release}.so$major'
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
    soname_spec='$libname.so.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

#### local change for Sleepycat DB:
# Add in the QNX support from QNX.
nto-qnx)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*)
  dynamic_linker=no
  ;;
esac
echo "$as_me:7254: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
test "$dynamic_linker" = no && can_build_shared=no
##
## END FIXME

## FIXME: this should be a separate macro
##
# Report the final consequences.
echo "$as_me:7263: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
echo "$as_me:7265: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6
##
## END FIXME

if test "$hardcode_action" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  cygwin* | mingw* | pw32*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
   ;;

  *)
    echo "$as_me:7305: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 7313 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7332: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7335: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7338: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7341: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dl_dlopen=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:7352: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  echo "$as_me:7357: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_func_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7363 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlopen) || defined (__stub___dlopen)
choke me
#else
f = dlopen;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7394: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7397: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7400: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7403: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_dlopen=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7413: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
if test $ac_cv_func_dlopen = yes; then
  lt_cv_dlopen="dlopen"
else
  echo "$as_me:7418: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
if test "${ac_cv_func_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7424 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shl_load) || defined (__stub___shl_load)
choke me
#else
f = shl_load;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7455: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7458: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7461: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7464: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_shl_load=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7474: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
if test $ac_cv_func_shl_load = yes; then
  lt_cv_dlopen="shl_load"
else
  echo "$as_me:7479: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 7487 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7506: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7509: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7512: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7515: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_svld_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_svld_dlopen=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:7526: result: $ac_cv_lib_svld_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
if test $ac_cv_lib_svld_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  echo "$as_me:7531: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 7539 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
int
main ()
{
shl_load ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7558: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7561: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7564: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7567: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dld_shl_load=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:7578: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
if test $ac_cv_lib_dld_shl_load = yes; then
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
fi

fi

fi

fi

fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    echo "$as_me:7612: checking whether a program can dlopen itself" >&5
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 7623 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { (eval echo "$as_me:7684: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7687: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*

fi
echo "$as_me:7704: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6

    if test "x$lt_cv_dlopen_self" = xyes; then
      LDFLAGS="$LDFLAGS $link_static_flag"
      echo "$as_me:7709: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self_static+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 7720 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { (eval echo "$as_me:7781: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7784: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*

fi
echo "$as_me:7801: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi

## FIXME: this should be a separate macro
##
if test "$enable_shared" = yes && test "$GCC" = yes; then
  case $archive_cmds in
  *'~'*)
    # FIXME: we may have to deal with multi-command sequences.
    ;;
  '$CC '*)
    # Test whether the compiler implicitly links with -lc since on some
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
    # to ld, don't add -lc before -lgcc.
    echo "$as_me:7833: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  $rm conftest*
    echo 'static int dummy;' > conftest.$ac_ext

    if { (eval echo "$as_me:7841: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7844: \$? = $ac_status" >&5
  (exit $ac_status); }; then
      soname=conftest
      lib=conftest
      libobjs=conftest.$ac_objext
      deplibs=
      wl=$lt_cv_prog_cc_wl
      compiler_flags=-v
      linker_flags=-v
      verstring=
      output_objdir=.
      libname=conftest
      save_allow_undefined_flag=$allow_undefined_flag
      allow_undefined_flag=
      if { (eval echo "$as_me:7858: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:7861: \$? = $ac_status" >&5
  (exit $ac_status); }
      then
	lt_cv_archive_cmds_need_lc=no
      else
	lt_cv_archive_cmds_need_lc=yes
      fi
      allow_undefined_flag=$save_allow_undefined_flag
    else
      cat conftest.err 1>&5
    fi
fi

    echo "$as_me:7874: result: $lt_cv_archive_cmds_need_lc" >&5
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
    ;;
  esac
fi
need_lc=${lt_cv_archive_cmds_need_lc-yes}
##
## END FIXME

## FIXME: this should be a separate macro
##
# The second clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  :
else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  test -f Makefile && make "$ltmain"
fi

if test -f "$ltmain"; then
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  $rm -f "${ofile}T"

  echo creating $ofile

  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS \
    AR AR_FLAGS CC LD LN_S NM SHELL \
    reload_flag reload_cmds wl \
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
    library_names_spec soname_spec \
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
    old_striplib striplib file_magic_cmd export_symbols_cmds \
    deplibs_check_method allow_undefined_flag no_undefined_flag \
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do

    case $var in
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  cat <<__EOF__ > "${ofile}T"
#! $SHELL

# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@@gnu.ai.mit.edu>, 1996
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="sed -e s/^X//"

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi

# ### BEGIN LIBTOOL CONFIG

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$need_lc

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# The default C compiler.
CC=$lt_CC

# Is the compiler the GNU C compiler?
with_gcc=$GCC

# The linker used to build libraries.
LD=$lt_LD

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_wl

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_pic_flag
pic_mode=$pic_mode

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_compiler_c_o

# Can we write directly to a .lo ?
compiler_o_lo=$lt_compiler_o_lo

# Must we lock files when doing compilation ?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_link_static_flag

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_no_builtin_flag

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# ### END LIBTOOL CONFIG

__EOF__

  case $host_os in
  aix3*)
    cat <<\EOF >> "${ofile}T"

# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
EOF
    ;;
  esac

  case $host_os in
  cygwin* | mingw* | pw32* | os2*)
    cat <<'EOF' >> "${ofile}T"
      # This is a source program that is used to create dlls on Windows
      # Don't remove nor modify the starting and closing comments
# /* ltdll.c starts here */
# #define WIN32_LEAN_AND_MEAN
# #include <windows.h>
# #undef WIN32_LEAN_AND_MEAN
# #include <stdio.h>
#
# #ifndef __CYGWIN__
# #  ifdef __CYGWIN32__
# #    define __CYGWIN__ __CYGWIN32__
# #  endif
# #endif
#
# #ifdef __cplusplus
# extern "C" {
# #endif
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
# #ifdef __cplusplus
# }
# #endif
#
# #ifdef __CYGWIN__
# #include <cygwin/cygwin_dll.h>
# DECLARE_CYGWIN_DLL( DllMain );
# #endif
# HINSTANCE __hDllInstance_base;
#
# BOOL APIENTRY
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
# {
#   __hDllInstance_base = hInst;
#   return TRUE;
# }
# /* ltdll.c ends here */
        # This is a source program that is used to create import libraries
        # on Windows for dlls which lack them. Don't remove nor modify the
        # starting and closing comments
# /* impgen.c starts here */
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
#
#  This file is part of GNU libtool.
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#  */
#
# #include <stdio.h>		/* for printf() */
# #include <unistd.h>		/* for open(), lseek(), read() */
# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
# #include <string.h>		/* for strdup() */
#
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
# #ifndef O_BINARY
# #define O_BINARY 0
# #endif
#
# static unsigned int
# pe_get16 (fd, offset)
#      int fd;
#      int offset;
# {
#   unsigned char b[2];
#   lseek (fd, offset, SEEK_SET);
#   read (fd, b, 2);
#   return b[0] + (b[1]<<8);
# }
#
# static unsigned int
# pe_get32 (fd, offset)
#     int fd;
#     int offset;
# {
#   unsigned char b[4];
#   lseek (fd, offset, SEEK_SET);
#   read (fd, b, 4);
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
# }
#
# static unsigned int
# pe_as32 (ptr)
#      void *ptr;
# {
#   unsigned char *b = ptr;
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
# }
#
# int
# main (argc, argv)
#     int argc;
#     char *argv[];
# {
#     int dll;
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
#     unsigned long name_rvas, nexp;
#     unsigned char *expdata, *erva;
#     char *filename, *dll_name;
#
#     filename = argv[1];
#
#     dll = open(filename, O_RDONLY|O_BINARY);
#     if (dll < 1)
# 	return 1;
#
#     dll_name = filename;
#
#     for (i=0; filename[i]; i++)
# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
# 	    dll_name = filename + i +1;
#
#     pe_header_offset = pe_get32 (dll, 0x3c);
#     opthdr_ofs = pe_header_offset + 4 + 20;
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
#
#     if (num_entries < 1) /* no exports */
# 	return 1;
#
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
#     secptr = (pe_header_offset + 4 + 20 +
# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
#
#     expptr = 0;
#     for (i = 0; i < nsections; i++)
#     {
# 	char sname[8];
# 	unsigned long secptr1 = secptr + 40 * i;
# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
# 	lseek(dll, secptr1, SEEK_SET);
# 	read(dll, sname, 8);
# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
# 	{
# 	    expptr = fptr + (export_rva - vaddr);
# 	    if (export_rva + export_size > vaddr + vsize)
# 		export_size = vsize - (export_rva - vaddr);
# 	    break;
# 	}
#     }
#
#     expdata = (unsigned char*)malloc(export_size);
#     lseek (dll, expptr, SEEK_SET);
#     read (dll, expdata, export_size);
#     erva = expdata - export_rva;
#
#     nexp = pe_as32 (expdata+24);
#     name_rvas = pe_as32 (expdata+32);
#
#     printf ("EXPORTS\n");
#     for (i = 0; i<nexp; i++)
#     {
# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
# 	printf ("\t%s @@ %ld ;\n", erva+name_rva, 1+ i);
#     }
#
#     return 0;
# }
# /* impgen.c ends here */
d3274 8
a3281 3
EOF
    ;;
  esac
d3283 2
a3284 31
  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)

  mv -f "${ofile}T" "$ofile" || \
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  chmod +x "$ofile"
fi
##
## END FIXME

# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'

# Prevent multiple expansion

LIBTOOL="\$(SHELL) ./libtool"
SOSUFFIX=`sed -e '/^library_names_spec=/!d' -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/' ./libtool`
SOFLAGS="-rpath \$(libdir)"

SAVE_CC="${MAKEFILE_CC}"
SAVE_CXX="${MAKEFILE_CXX}"
MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${SAVE_CC}"
MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${SAVE_CXX}"
MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${SAVE_CC}"
MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${SAVE_CXX}"
d3286 13
a3298 2
SOLINK="\$(LIBTOOL) --mode=link ${SAVE_CC} -avoid-version"
INSTALLER="\$(LIBTOOL) --mode=install cp"
d3300 1
a3300 13
# Configure for shared libraries, static libraries, or both.  If both are
# configured, build the utilities and example programs with shared versions.
#
# $o is set to ".o" or ".lo", and is the file suffix used in the Makefile
# instead of .o
if test "$enable_shared" = "no"; then
	DEFAULT_LIB="\$(libdb)"
	DEFAULT_LIB_CXX="\$(libcxx)"
	DEFAULT_INSTALL="install_static"
	POSTLINK="@@true"
	o=".o"
fi
if test "$enable_shared" = "yes"; then
d3302 11
a3312 2
	DEFAULT_LIB_CXX="\$(libxso_target)"
	DEFAULT_INSTALL="${DEFAULT_INSTALL} install_shared"
d3314 2
d3317 10
a3328 1
# Optional C++ API.
d3330 5
a3334 1
	if test "$enable_shared" = "no"; then
a3336 4
	if test "$enable_shared" = "yes"; then
		ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libxso_target)"
		DEFAULT_INSTALL="${DEFAULT_INSTALL} install_shared_cxx"
	fi
d3338 1
a3338 2
	# Fill in C++ library for Embedix.
	EMBEDIX_ECD_CXX='<OPTION db-extra>\
a3358 1
# Optional Java API.
d3360 2
a3361 5
	# Java requires shared libraries.
	if test "$enable_shared" = "no"; then
		{ { echo "$as_me:8511: error: Java requires shared libraries" >&5
echo "$as_me: error: Java requires shared libraries" >&2;}
   { (exit 1); exit 1; }; }
d3364 1
a3364 2
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}javac", so it can be a program name with args.
d3366 4
a3369 4
echo "$as_me:8519: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_JAVAC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3374 10
a3383 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_JAVAC="${ac_tool_prefix}javac"
echo "$as_me:8534: found $ac_dir/$ac_word" >&5
break
done

d3386 1
a3386 1
JAVAC=$ac_cv_prog_JAVAC
d3388 1
a3388 2
  echo "$as_me:8542: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6
d3390 1
a3390 2
  echo "$as_me:8545: result: no" >&5
echo "${ECHO_T}no" >&6
d3393 1
a3393 1
fi
d3395 1
a3395 1
  ac_ct_JAVAC=$JAVAC
d3398 19
a3416 20
echo "$as_me:8554: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_JAVAC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_JAVAC"; then
  ac_cv_prog_ac_ct_JAVAC="$ac_ct_JAVAC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_JAVAC="javac"
echo "$as_me:8569: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_JAVAC" && ac_cv_prog_ac_ct_JAVAC="nojavac"
d3419 3
a3421 4
ac_ct_JAVAC=$ac_cv_prog_ac_ct_JAVAC
if test -n "$ac_ct_JAVAC"; then
  echo "$as_me:8578: result: $ac_ct_JAVAC" >&5
echo "${ECHO_T}$ac_ct_JAVAC" >&6
d3423 1
a3423 2
  echo "$as_me:8581: result: no" >&5
echo "${ECHO_T}no" >&6
a3425 1
  JAVAC=$ac_ct_JAVAC
d3427 2
a3428 1
  JAVAC="$ac_cv_prog_JAVAC"
d3432 1
a3432 3
		{ { echo "$as_me:8591: error: no javac compiler in PATH" >&5
echo "$as_me: error: no javac compiler in PATH" >&2;}
   { (exit 1); exit 1; }; }
d3434 1
a3434 2
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}jar", so it can be a program name with args.
d3436 4
a3439 4
echo "$as_me:8598: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_JAR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3444 10
a3453 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_JAR="${ac_tool_prefix}jar"
echo "$as_me:8613: found $ac_dir/$ac_word" >&5
break
done

d3456 1
a3456 1
JAR=$ac_cv_prog_JAR
d3458 1
a3458 2
  echo "$as_me:8621: result: $JAR" >&5
echo "${ECHO_T}$JAR" >&6
d3460 1
a3460 2
  echo "$as_me:8624: result: no" >&5
echo "${ECHO_T}no" >&6
d3463 1
a3463 1
fi
d3465 1
a3465 1
  ac_ct_JAR=$JAR
d3468 19
a3486 20
echo "$as_me:8633: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_JAR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_JAR"; then
  ac_cv_prog_ac_ct_JAR="$ac_ct_JAR" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_JAR="jar"
echo "$as_me:8648: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_JAR" && ac_cv_prog_ac_ct_JAR="nojar"
d3489 3
a3491 4
ac_ct_JAR=$ac_cv_prog_ac_ct_JAR
if test -n "$ac_ct_JAR"; then
  echo "$as_me:8657: result: $ac_ct_JAR" >&5
echo "${ECHO_T}$ac_ct_JAR" >&6
d3493 1
a3493 2
  echo "$as_me:8660: result: no" >&5
echo "${ECHO_T}no" >&6
a3495 1
  JAR=$ac_ct_JAR
d3497 2
a3498 1
  JAR="$ac_cv_prog_JAR"
d3502 1
a3502 3
		{ { echo "$as_me:8670: error: no jar utility in PATH" >&5
echo "$as_me: error: no jar utility in PATH" >&2;}
   { (exit 1); exit 1; }; }
d3506 4
a3509 4
echo "$as_me:8676: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_JAVACABS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3511 2
a3512 2
  case $JAVACABS in
  [\\/]* | ?:[\\/]*)
d3515 3
d3519 10
a3528 12
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_JAVACABS="$ac_dir/$ac_word"
   echo "$as_me:8693: found $ac_dir/$ac_word" >&5
   break
fi
done

d3533 1
a3533 2
JAVACABS=$ac_cv_path_JAVACABS

d3535 1
a3535 2
  echo "$as_me:8705: result: $JAVACABS" >&5
echo "${ECHO_T}$JAVACABS" >&6
d3537 1
a3537 2
  echo "$as_me:8708: result: no" >&5
echo "${ECHO_T}no" >&6
a3543 1
# find the include directory relative to the javac executable
d3545 2
a3546 2
		echo "$as_me:8718: checking symlink for $JAVACABS" >&5
echo $ECHO_N "checking symlink for $JAVACABS... $ECHO_C" >&6
a3549 1
# 'X' avoids triggering unwanted echo options.
d3552 1
a3552 2
		echo "$as_me:8726: result: $JAVACABS" >&5
echo "${ECHO_T}$JAVACABS" >&6
d3567 1
a3567 3
			{ { echo "$as_me:8742: error: cannot find java include files" >&5
echo "$as_me: error: cannot find java include files" >&2;}
   { (exit 1); exit 1; }; }
a3570 1
# get the likely subdirectories for system specific java includes
a3586 1
# Optional RPC client/server.
d3588 1
a3588 1
	cat >>confdefs.h <<\EOF
d3592 1
d3599 5
a3603 5
	hpux*)
		echo "$as_me:8778: checking for svc_run" >&5
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
if test "${ac_cv_func_svc_run+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3605 2
a3606 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8784 "configure"
d3609 1
a3609 1
    which can conflict with char svc_run (); below.  */
a3611 3
#ifdef __cplusplus
extern "C"
#endif
d3613 5
a3617 7
   builtin and then its argument prototype would still apply.  */
char svc_run ();
char (*f) ();

int
main ()
{
d3624 1
a3624 1
f = svc_run;
d3627 16
a3642 27
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8815: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8818: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8821: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8824: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_svc_run=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_svc_run=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8834: result: $ac_cv_func_svc_run" >&5
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
if test $ac_cv_func_svc_run = yes; then
d3645 6
a3650 4
  echo "$as_me:8839: checking for svc_run in -lnsl" >&5
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3652 1
a3652 1
  ac_check_lib_save_LIBS=$LIBS
d3654 2
a3655 2
cat >conftest.$ac_ext <<_ACEOF
#line 8847 "configure"
a3656 1

a3657 3
#ifdef __cplusplus
extern "C"
#endif
d3659 22
a3680 34
   builtin and then its argument prototype would still apply.  */
char svc_run ();
int
main ()
{
svc_run ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8866: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8869: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8872: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8875: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_nsl_svc_run=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_nsl_svc_run=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:8886: result: $ac_cv_lib_nsl_svc_run" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
if test $ac_cv_lib_nsl_svc_run = yes; then
d3682 2
d3689 4
a3692 4
		echo "$as_me:8895: checking for svc_run" >&5
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
if test "${ac_cv_func_svc_run+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3694 2
a3695 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8901 "configure"
d3698 1
a3698 1
    which can conflict with char svc_run (); below.  */
a3700 3
#ifdef __cplusplus
extern "C"
#endif
d3702 5
a3706 7
   builtin and then its argument prototype would still apply.  */
char svc_run ();
char (*f) ();

int
main ()
{
d3713 1
a3713 1
f = svc_run;
d3716 16
a3731 27
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8932: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8935: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8938: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8941: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_svc_run=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_svc_run=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8951: result: $ac_cv_func_svc_run" >&5
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
if test $ac_cv_func_svc_run = yes; then
d3734 6
a3739 5

echo "$as_me:8957: checking for svc_run in -lnsl" >&5
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3741 1
a3741 1
  ac_check_lib_save_LIBS=$LIBS
d3743 2
a3744 2
cat >conftest.$ac_ext <<_ACEOF
#line 8965 "configure"
a3745 1

a3746 3
#ifdef __cplusplus
extern "C"
#endif
d3748 26
a3773 36
   builtin and then its argument prototype would still apply.  */
char svc_run ();
int
main ()
{
svc_run ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8984: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8987: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8990: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8993: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_nsl_svc_run=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_nsl_svc_run=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9004: result: $ac_cv_lib_nsl_svc_run" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
if test $ac_cv_lib_nsl_svc_run = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBNSL 1
d3778 2
a3786 6
if test "$db_cv_tcl" = "yes"; then
	if test "$enable_shared" = "no"; then
		{ { echo "$as_me:9022: error: Tcl requires shared libraries" >&5
echo "$as_me: error: Tcl requires shared libraries" >&2;}
   { (exit 1); exit 1; }; }
	fi
d3788 6
a3793 2
	if test "${ac_cv_c_tclconfig+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3795 1
d3802 1
a3802 3
		    { { echo "$as_me:9036: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
   { (exit 1); exit 1; }; }
d3816 1
d3819 1
d3822 1
a3822 3
	    { { echo "$as_me:9056: error: can't find Tcl configuration definitions" >&5
echo "$as_me: error: can't find Tcl configuration definitions" >&2;}
   { (exit 1); exit 1; }; }
d3827 3
a3829 2
	echo "$as_me:9063: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
d3832 1
a3832 2
		echo "$as_me:9067: result: loading" >&5
echo "${ECHO_T}loading" >&6
d3835 1
a3835 2
		echo "$as_me:9071: result: file not found" >&5
echo "${ECHO_T}file not found" >&6
d3846 5
d3853 1
a3863 1
# Optional DB 1.85 compatibility API.
a3868 1
# Optional utilities.
d3873 10
a3882 11
# test servers, example programs.
# Include -lpthread if the library exists.
echo "$as_me:9108: checking for sched_yield in -lrt" >&5
echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9116 "configure"
a3883 1

a3884 3
#ifdef __cplusplus
extern "C"
#endif
d3886 23
a3908 41
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
int
main ()
{
sched_yield ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9135: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9138: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9141: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9144: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_rt_sched_yield=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_rt_sched_yield=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9155: result: $ac_cv_lib_rt_sched_yield" >&5
echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
if test $ac_cv_lib_rt_sched_yield = yes; then
  TEST_LIBS="-lrt $TEST_LIBS"
fi

echo "$as_me:9161: checking for pthread_create in -lpthread" >&5
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3910 3
a3912 5
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9169 "configure"
#include "confdefs.h"
d3914 4
a3917 47
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pthread_create ();
int
main ()
{
pthread_create ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9188: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9191: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9194: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9197: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_pthread_pthread_create=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_pthread_pthread_create=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9208: result: $ac_cv_lib_pthread_pthread_create" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
if test $ac_cv_lib_pthread_pthread_create = yes; then
  TEST_LIBS="-lpthread $TEST_LIBS"
fi

# Checks for system/compiler characteristics.
echo "$as_me:9215: checking whether byte ordering is bigendian" >&5
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
if test "${ac_cv_c_bigendian+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3921 2
a3922 2
cat >conftest.$ac_ext <<_ACEOF
#line 9223 "configure"
d3926 1
a3927 3
int
main ()
{
d3931 4
a3934 17

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9240: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9243: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9246: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9249: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d3936 2
a3937 2
cat >conftest.$ac_ext <<_ACEOF
#line 9253 "configure"
d3941 1
a3942 3
int
main ()
{
d3946 4
a3949 17

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9270: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9273: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9276: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9279: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d3952 4
a3955 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_bigendian=no
d3957 1
a3957 1
rm -f conftest.$ac_objext conftest.$ac_ext
d3959 2
a3960 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d3962 1
a3962 1
rm -f conftest.$ac_objext conftest.$ac_ext
d3965 6
a3970 10
  { { echo "$as_me:9295: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9300 "configure"
#include "confdefs.h"
int
main ()
{
d3980 3
a3982 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:9316: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9319: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:9321: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9324: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d3985 4
a3988 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_bigendian=yes
d3990 1
a3990 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d3992 1
d3995 2
a3996 2
echo "$as_me:9337: result: $ac_cv_c_bigendian" >&5
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
d3998 1
a3998 2

cat >>confdefs.h <<\EOF
d4004 7
a4010 9
echo "$as_me:9347: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
#line 9355 "configure"
d4012 40
a4051 12
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
d4053 2
a4054 8
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
d4056 83
a4138 38
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX 10.20 and later	-Ae
# HP-UX older versions	-Aa -D_HPUX_SOURCE
# SVR4			-Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (eval echo "$as_me:9404: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9407: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9410: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9413: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_stdc=$ac_arg
break
d4140 5
a4144 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d4146 1
a4146 5
rm -f conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC

d4148 1
a4148 91

case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$as_me:9430: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
  *)
    echo "$as_me:9433: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    CC="$CC $ac_cv_prog_cc_stdc" ;;
esac

echo "$as_me:9438: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9444 "configure"
#include "confdefs.h"

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9502: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9505: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9508: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9511: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
d4150 2
a4151 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4153 3
a4155 8
echo "$as_me:9521: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then

cat >>confdefs.h <<\EOF
#define const
EOF

d4157 1
d4159 4
a4162 5
# Checks for include files, structures.
echo "$as_me:9532: checking whether stat file-mode macros are broken" >&5
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
if test "${ac_cv_header_stat_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4164 2
a4165 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9538 "configure"
d4194 1
a4194 1
_ACEOF
d4197 1
d4200 1
d4206 2
a4207 2
echo "$as_me:9577: result: $ac_cv_header_stat_broken" >&5
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
d4209 1
a4209 2

cat >>confdefs.h <<\EOF
d4215 4
a4218 4
echo "$as_me:9587: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4220 2
a4221 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9593 "configure"
d4226 1
a4226 4

int
main ()
{
d4228 4
a4231 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9608: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9611: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9614: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9617: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4234 4
a4237 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
d4239 1
a4239 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4241 2
a4242 2
echo "$as_me:9627: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
d4244 1
a4244 2

cat >>confdefs.h <<\EOF
d4250 4
a4253 7
ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
echo "$as_me:9640: checking for $ac_hdr that defines DIR" >&5
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4255 2
a4256 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9646 "configure"
d4259 4
a4262 35
#include <$ac_hdr>

int
main ()
{
DIR *dirp = 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9660: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9663: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9666: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9669: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_Header=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9679: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
d4264 3
a4266 65

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  echo "$as_me:9692: checking for opendir in -ldir" >&5
echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
if test "${ac_cv_lib_dir_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldir  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9700 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9719: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9722: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9725: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9728: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dir_opendir=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dir_opendir=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9739: result: $ac_cv_lib_dir_opendir" >&5
echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
if test $ac_cv_lib_dir_opendir = yes; then
  LIBS="$LIBS -ldir"
fi

else
  echo "$as_me:9746: checking for opendir in -lx" >&5
echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
if test "${ac_cv_lib_x_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4268 1
a4268 83
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lx  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9754 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9773: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9776: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9779: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9782: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_x_opendir=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_x_opendir=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9793: result: $ac_cv_lib_x_opendir" >&5
echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
if test $ac_cv_lib_x_opendir = yes; then
  LIBS="$LIBS -lx"
fi

fi

for ac_header in sys/select.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:9804: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9810 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:9814: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9820: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
d4270 2
a4271 1
  eval "$ac_ac_Header=no"
d4273 1
a4273 1
rm -f conftest.err conftest.$ac_ext
a4274 9
echo "$as_me:9839: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done
d4276 4
a4279 43
for ac_header in sys/time.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:9852: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9858 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:9862: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9868: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:9887: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
a4282 1
done
d4284 4
a4287 4
echo "$as_me:9897: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4289 2
a4290 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9903 "configure"
d4296 6
a4301 19

_ACEOF
if { (eval echo "$as_me:9911: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9917: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
d4304 2
a4305 1
  echo "$as_me: failed program was:" >&5
d4307 1
d4310 1
a4310 1
rm -f conftest.err conftest.$ac_ext
d4314 2
a4315 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9939 "configure"
d4318 1
a4318 2

_ACEOF
d4323 1
d4332 2
a4333 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9957 "configure"
d4336 1
a4336 2

_ACEOF
d4341 1
d4350 1
a4350 1
  if test "$cross_compiling" = yes; then
d4353 2
a4354 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9978 "configure"
d4357 6
a4362 9
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
d4364 3
a4366 23
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10004: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10007: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10009: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10012: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4369 4
a4372 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
d4374 1
a4374 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4376 1
d4379 2
a4380 2
echo "$as_me:10025: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
d4382 1
a4382 2

cat >>confdefs.h <<\EOF
d4388 4
a4391 26
for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:10038: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10044 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:10048: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:10054: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d4393 13
a4405 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
d4407 2
a4408 3
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
d4410 1
a4410 8
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:10073: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF
d4413 4
a4416 46
done

echo "$as_me:10083: checking for struct stat.st_blksize" >&5
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10089 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
struct stat foo;
foo.st_blksize;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10102: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10105: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10108: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10111: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_stat_st_blksize=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_member_struct_stat_st_blksize=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:10121: result: $ac_cv_member_struct_stat_st_blksize" >&5
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
if test $ac_cv_member_struct_stat_st_blksize = yes; then

cat >>confdefs.h <<EOF
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
d4421 4
a4424 35
# Check for C types.

echo "$as_me:10133: checking for mode_t" >&5
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
if test "${ac_cv_type_mode_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10139 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((mode_t *) 0)
  return 0;
if (sizeof (mode_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10154: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10157: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10160: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10163: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_mode_t=yes
d4426 8
a4433 14
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_mode_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:10173: result: $ac_cv_type_mode_t" >&5
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
if test $ac_cv_type_mode_t = yes; then
  :
else

cat >>confdefs.h <<EOF
#define mode_t int
d4435 3
a4437 35

fi

echo "$as_me:10185: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
if test "${ac_cv_type_off_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10191 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((off_t *) 0)
  return 0;
if (sizeof (off_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10206: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10209: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10212: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10215: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4440 4
a4443 11
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_off_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:10225: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6
if test $ac_cv_type_off_t = yes; then
  :
else
d4445 4
a4448 1
cat >>confdefs.h <<EOF
d4454 17
a4470 32
echo "$as_me:10237: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10243 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((pid_t *) 0)
  return 0;
if (sizeof (pid_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10258: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10261: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10264: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10267: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4473 4
a4476 11
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_pid_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:10277: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else
d4478 4
a4481 1
cat >>confdefs.h <<EOF
d4487 17
a4503 32
echo "$as_me:10289: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10295 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10310: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10313: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10316: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10319: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4506 4
a4509 11
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_size_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:10329: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
else
d4511 4
a4514 1
cat >>confdefs.h <<EOF
d4520 19
a4538 4
echo "$as_me:10341: checking for u_char" >&5
echo $ECHO_N "checking for u_char... $ECHO_C" >&6
if test "${db_cv_uchar+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4540 12
d4553 8
a4560 2
cat >conftest.$ac_ext <<_ACEOF
#line 10348 "configure"
d4563 1
a4563 3
int
main ()
{
d4565 4
a4568 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10360: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10363: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10366: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10369: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4571 4
a4574 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_uchar=no
d4576 1
a4576 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4578 2
a4579 2
echo "$as_me:10379: result: $db_cv_uchar" >&5
echo "${ECHO_T}$db_cv_uchar" >&6
d4584 5
a4588 4
echo "$as_me:10385: checking for u_short" >&5
echo $ECHO_N "checking for u_short... $ECHO_C" >&6
if test "${db_cv_ushort+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4590 2
a4591 3

cat >conftest.$ac_ext <<_ACEOF
#line 10392 "configure"
d4594 1
a4594 3
int
main ()
{
d4596 4
a4599 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10404: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10407: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10410: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10413: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4602 4
a4605 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_ushort=no
d4607 1
a4607 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4609 2
a4610 2
echo "$as_me:10423: result: $db_cv_ushort" >&5
echo "${ECHO_T}$db_cv_ushort" >&6
d4615 5
a4619 4
echo "$as_me:10429: checking for u_int" >&5
echo $ECHO_N "checking for u_int... $ECHO_C" >&6
if test "${db_cv_uint+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4621 2
a4622 3

cat >conftest.$ac_ext <<_ACEOF
#line 10436 "configure"
d4625 1
a4625 3
int
main ()
{
d4627 4
a4630 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10448: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10451: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10454: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10457: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4633 4
a4636 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_uint=no
d4638 1
a4638 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4640 2
a4641 2
echo "$as_me:10467: result: $db_cv_uint" >&5
echo "${ECHO_T}$db_cv_uint" >&6
d4646 5
a4650 4
echo "$as_me:10473: checking for u_long" >&5
echo $ECHO_N "checking for u_long... $ECHO_C" >&6
if test "${db_cv_ulong+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4652 2
a4653 3

cat >conftest.$ac_ext <<_ACEOF
#line 10480 "configure"
d4656 1
a4656 3
int
main ()
{
d4658 4
a4661 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10492: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10495: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10498: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10501: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4664 4
a4667 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_ulong=no
d4669 1
a4669 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4671 2
a4672 2
echo "$as_me:10511: result: $db_cv_ulong" >&5
echo "${ECHO_T}$db_cv_ulong" >&6
a4676 1
# DB/Vi use specific integer sizes.
d4678 4
a4681 4
echo "$as_me:10519: checking for u_int8_t" >&5
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
if test "${db_cv_uint8+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4683 2
a4684 3

cat >conftest.$ac_ext <<_ACEOF
#line 10526 "configure"
d4687 1
a4687 3
int
main ()
{
d4689 4
a4692 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10538: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10541: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10544: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10547: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4695 5
a4699 6
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10554: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4701 2
a4702 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10559 "configure"
d4705 3
a4707 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10564: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10567: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10569: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10572: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4710 4
a4713 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_uint8=no
d4715 1
a4715 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4717 1
d4719 1
a4719 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4721 2
a4722 2
echo "$as_me:10586: result: $db_cv_uint8" >&5
echo "${ECHO_T}$db_cv_uint8" >&6
d4724 1
a4724 3
	{ { echo "$as_me:10589: error: No unsigned 8-bit integral type." >&5
echo "$as_me: error: No unsigned 8-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
d4730 5
a4734 4
echo "$as_me:10597: checking for u_int16_t" >&5
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
if test "${db_cv_uint16+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4736 2
a4737 3

cat >conftest.$ac_ext <<_ACEOF
#line 10604 "configure"
d4740 1
a4740 3
int
main ()
{
d4742 4
a4745 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10616: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10619: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10622: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10625: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4748 5
a4752 6
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10632: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4754 2
a4755 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10637 "configure"
d4758 3
a4760 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10642: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10645: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10647: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10650: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4763 5
a4767 7
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10658: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4769 2
a4770 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10663 "configure"
d4773 3
a4775 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10668: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10671: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10673: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10676: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4778 4
a4781 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_uint16=no
d4783 1
a4783 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4785 1
d4787 1
a4787 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4789 1
d4791 1
a4791 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4793 2
a4794 2
echo "$as_me:10693: result: $db_cv_uint16" >&5
echo "${ECHO_T}$db_cv_uint16" >&6
d4796 1
a4796 3
	{ { echo "$as_me:10696: error: No unsigned 16-bit integral type." >&5
echo "$as_me: error: No unsigned 16-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
d4802 5
a4806 4
echo "$as_me:10704: checking for int16_t" >&5
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
if test "${db_cv_int16+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4808 2
a4809 3

cat >conftest.$ac_ext <<_ACEOF
#line 10711 "configure"
d4812 1
a4812 3
int
main ()
{
d4814 4
a4817 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10723: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10726: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10729: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10732: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4820 5
a4824 6
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10739: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4826 2
a4827 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10744 "configure"
d4830 3
a4832 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10749: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10752: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10754: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10757: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4835 5
a4839 7
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10765: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4841 2
a4842 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10770 "configure"
d4845 3
a4847 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10775: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10778: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10780: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10783: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4850 4
a4853 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_int16=no
d4855 1
a4855 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4857 1
d4859 1
a4859 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4861 1
d4863 1
a4863 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4865 2
a4866 2
echo "$as_me:10800: result: $db_cv_int16" >&5
echo "${ECHO_T}$db_cv_int16" >&6
d4868 1
a4868 3
	{ { echo "$as_me:10803: error: No signed 16-bit integral type." >&5
echo "$as_me: error: No signed 16-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
d4874 5
a4878 4
echo "$as_me:10811: checking for u_int32_t" >&5
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
if test "${db_cv_uint32+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4880 2
a4881 3

cat >conftest.$ac_ext <<_ACEOF
#line 10818 "configure"
d4884 1
a4884 3
int
main ()
{
d4886 4
a4889 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10830: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10833: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10836: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10839: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4892 5
a4896 6
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10846: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4898 2
a4899 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10851 "configure"
d4902 3
a4904 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10856: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10859: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10861: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10864: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4907 5
a4911 7
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10872: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4913 2
a4914 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10877 "configure"
d4917 3
a4919 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10882: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10885: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10887: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10890: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4922 4
a4925 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_uint32=no
d4927 1
a4927 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4929 1
d4931 1
a4931 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d4933 1
d4935 1
a4935 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4937 2
a4938 2
echo "$as_me:10907: result: $db_cv_uint32" >&5
echo "${ECHO_T}$db_cv_uint32" >&6
d4940 1
a4940 3
	{ { echo "$as_me:10910: error: No unsigned 32-bit integral type." >&5
echo "$as_me: error: No unsigned 32-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
d4946 5
a4950 4
echo "$as_me:10918: checking for int32_t" >&5
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
if test "${db_cv_int32+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4952 2
a4953 3

cat >conftest.$ac_ext <<_ACEOF
#line 10925 "configure"
d4956 1
a4956 3
int
main ()
{
d4958 4
a4961 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10937: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10940: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10943: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10946: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4964 5
a4968 6
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10953: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4970 2
a4971 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10958 "configure"
d4974 3
a4976 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10963: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10966: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10968: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10971: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4979 5
a4983 7
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:10979: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4985 2
a4986 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10984 "configure"
d4989 3
a4991 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10989: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10992: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10994: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10997: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4994 4
a4997 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_int32=no
d4999 1
a4999 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5001 1
d5003 1
a5003 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5005 1
d5007 1
a5007 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5009 2
a5010 2
echo "$as_me:11014: result: $db_cv_int32" >&5
echo "${ECHO_T}$db_cv_int32" >&6
d5012 1
a5012 3
	{ { echo "$as_me:11017: error: No signed 32-bit integral type." >&5
echo "$as_me: error: No signed 32-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
d5018 5
a5022 8
# Check for ssize_t -- if none exists, find a signed integral type that's
# the same size as a size_t.  Prefer int over long, because it read/write
# and others historically returned an int.

echo "$as_me:11029: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${db_cv_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5024 2
a5025 3

cat >conftest.$ac_ext <<_ACEOF
#line 11036 "configure"
d5028 24
a5051 21
int
main ()
{
ssize_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11048: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11051: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11054: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11057: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_ssize_t=yes
d5053 1
a5053 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5055 1
a5055 59
  { { echo "$as_me:11064: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11069 "configure"
#include "confdefs.h"

	#include <sys/types.h>
	main(){exit(sizeof(size_t) != sizeof(int));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11076: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11079: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11081: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11084: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_ssize_t="int"
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11092: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11097 "configure"
#include "confdefs.h"

	#include <sys/types.h>
	main(){exit(sizeof(size_t) != sizeof(long long));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11104: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11107: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11109: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11112: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_ssize_t="long long"
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11120: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5057 2
a5058 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11125 "configure"
d5060 5
a5064 16

	#include <sys/types.h>
	main(){exit(sizeof(size_t) != sizeof(long));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11132: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11135: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11137: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11140: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_ssize_t="long"
d5066 2
a5067 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_ssize_t="int"
d5069 1
a5069 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5071 15
d5087 1
a5087 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5089 15
d5105 1
a5105 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5107 1
a5107 7
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11160: result: $db_cv_ssize_t" >&5
echo "${ECHO_T}$db_cv_ssize_t" >&6
if test "$db_cv_ssize_t" != yes; then
	ssize_t_decl="typedef $db_cv_ssize_t ssize_t;"
d5110 4
a5113 1
# Find the largest integral type.
d5115 8
a5122 4
echo "$as_me:11168: checking for largest integral type" >&5
echo $ECHO_N "checking for largest integral type... $ECHO_C" >&6
if test "${db_cv_align_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5124 2
a5125 3

cat >conftest.$ac_ext <<_ACEOF
#line 11175 "configure"
d5128 8
a5135 21
int
main ()
{
long long foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11187: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11190: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11193: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11196: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_align_t="unsigned long long"
d5137 6
a5142 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_align_t="unsigned long"
d5144 9
a5152 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5154 18
a5171 3
echo "$as_me:11206: result: $db_cv_align_t" >&5
echo "${ECHO_T}$db_cv_align_t" >&6
db_align_t_decl="typedef $db_cv_align_t db_align_t;"
d5173 15
a5187 1
# Find the integral type which is the same size as a pointer.
d5189 4
a5192 4
echo "$as_me:11212: checking for integral type equal to pointer size" >&5
echo $ECHO_N "checking for integral type equal to pointer size... $ECHO_C" >&6
if test "${db_cv_alignp_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5194 2
a5196 5
db_cv_alignp_t=$db_cv_align_t
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11220: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5198 10
a5207 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11225 "configure"
d5209 25
a5233 14
main(){exit(sizeof(unsigned int) != sizeof(char *));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11230: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11233: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11235: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11238: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_alignp_t="unsigned int"
d5235 1
a5235 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5237 1
a5237 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5239 8
a5246 4
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11249: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5248 2
a5249 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11254 "configure"
d5251 8
a5258 14
main(){exit(sizeof(unsigned long) != sizeof(char *));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11259: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11262: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11264: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11267: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_alignp_t="unsigned long"
d5260 7
a5266 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5268 9
a5276 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5278 9
a5286 4
if test "$cross_compiling" = yes; then
  { { echo "$as_me:11278: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5288 2
a5289 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11283 "configure"
d5291 8
a5298 14
main(){exit(sizeof(unsigned long long) != sizeof(char *));}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11288: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11291: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11293: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11296: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_alignp_t="unsigned long long"
d5300 5
a5304 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5306 1
a5306 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5308 9
d5318 1
a5318 16
echo "$as_me:11307: result: $db_cv_alignp_t" >&5
echo "${ECHO_T}$db_cv_alignp_t" >&6
db_alignp_t_decl="typedef $db_cv_alignp_t db_alignp_t;"

# Check for ANSI C exit success/failure values.
cat >conftest.$ac_ext <<_ACEOF
#line 11313 "configure"
#include "confdefs.h"

    #include <stdlib.h>
    #ifdef EXIT_SUCCESS
    yes
    #endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
a5319 6
    cat >>confdefs.h <<\EOF
#define HAVE_EXIT_SUCCESS 1
EOF

fi
rm -f conftest*
a5320 1
# Check for mutexes.  We do this here because it changes $LIBS.
a5321 2
# Mutexes we don't test for, but want the #defines to exist for
# other ports.
d5323 4
a5326 4
echo "$as_me:11336: checking for mutexes" >&5
echo $ECHO_N "checking for mutexes... $ECHO_C" >&6
if test "${db_cv_mutex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5328 1
a5328 2

db_cv_mutex=no
a5331 4
# User-specified POSIX mutexes.
#
# Assume that -lpthread exists when the user specifies POSIX mutexes.  (I
# only expect this option to be used on Solaris, which has -lpthread.)
a5335 4
# User-specified UI mutexes.
#
# Assume that -lthread exists when the user specifies UI mutexes.  (I only
# expect this option to be used on Solaris, which has -lthread.)
a5339 10
# LWP threads: _lwp_XXX
#
# Test for LWP threads before testing for UI/POSIX threads, we prefer them
# on Solaris.  There are two reasons: the Solaris C library has UI/POSIX
# interface stubs, but they're broken, configuring them for inter-process
# mutexes doesn't return an error, but it doesn't work either.  Second,
# there's a bug in SunOS 5.7 where applications get pwrite, not pwrite64,
# if they load the C library before the appropriate threads library, e.g.,
# tclsh using dlopen to load the DB library.  Anyway, by using LWP threads
# we avoid answering lots of user questions, not to mention the bugs.
d5342 1
a5342 3
  { { echo "$as_me:11374: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5344 2
a5345 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11379 "configure"
d5358 3
a5360 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11394: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11397: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11399: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11402: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5363 2
a5364 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5366 1
a5366 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5368 1
a5370 3
# UI threads: thr_XXX
#
# Try with and without the -lthread library.
d5374 1
a5374 3
  { { echo "$as_me:11420: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5376 2
a5377 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11425 "configure"
d5392 3
a5394 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11442: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11445: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11447: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11450: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5397 2
a5398 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5400 1
a5400 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5402 1
d5407 1
a5407 3
  { { echo "$as_me:11464: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5409 2
a5410 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11469 "configure"
d5425 3
a5427 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11486: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11489: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11491: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11494: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5430 2
a5431 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5433 1
a5433 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5435 1
d5438 1
a5438 3
	{ { echo "$as_me:11506: error: unable to find UI mutex interfaces" >&5
echo "$as_me: error: unable to find UI mutex interfaces" >&2;}
   { (exit 1); exit 1; }; }
d5441 1
a5441 3
# POSIX.1 pthreads: pthread_XXX
#
# Try with and without the -lpthread library.
d5444 1
a5444 3
  { { echo "$as_me:11516: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5446 2
a5447 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11521 "configure"
d5470 3
a5472 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11546: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11549: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11551: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11554: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5475 2
a5476 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5478 1
a5478 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5480 1
d5485 1
a5485 3
  { { echo "$as_me:11568: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5487 2
a5488 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11573 "configure"
d5511 3
a5513 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11598: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11601: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11603: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11606: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5516 2
a5517 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5519 1
a5519 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5521 1
d5525 1
a5525 3
	{ { echo "$as_me:11619: error: unable to find POSIX mutex interfaces" >&5
echo "$as_me: error: unable to find POSIX mutex interfaces" >&2;}
   { (exit 1); exit 1; }; }
a5527 2
# msemaphore: HPPA only
# Try HPPA before general msem test, it needs special alignment.
d5530 1
a5530 3
  { { echo "$as_me:11628: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5532 2
a5533 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11633 "configure"
d5549 3
a5551 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11651: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11654: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11656: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11659: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5554 2
a5555 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5557 1
a5557 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5559 1
a5561 1
# msemaphore: AIX, OSF/1
d5564 1
a5564 3
  { { echo "$as_me:11674: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5566 2
a5567 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11679 "configure"
d5580 3
a5582 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11694: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11697: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11699: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11702: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5585 2
a5586 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5588 1
a5588 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5590 1
a5592 1
# ReliantUNIX
d5595 2
a5596 2
cat >conftest.$ac_ext <<_ACEOF
#line 11718 "configure"
d5599 1
a5599 3
int
main ()
{
d5602 4
a5605 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11731: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11734: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11737: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11740: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5608 2
a5609 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5611 1
a5611 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a5614 1
# SCO: UnixWare has threads in libthread, but OpenServer doesn't.
d5617 1
a5617 3
  { { echo "$as_me:11754: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5619 2
a5620 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11759 "configure"
d5629 3
a5631 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11770: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11773: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11775: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11778: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5634 2
a5635 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5637 1
a5637 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5639 1
a5641 1
# abilock_t: SGI
d5643 2
a5644 2
cat >conftest.$ac_ext <<_ACEOF
#line 11793 "configure"
d5647 1
a5647 3
int
main ()
{
d5650 4
a5653 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11806: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11809: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11812: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11815: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5656 2
a5657 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5659 1
a5659 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a5661 4
# sema_t: Solaris
# The sema_XXX calls do not work on Solaris 5.5.  I see no reason to ever
# turn this test on, unless we find some other platform that uses the old
# POSIX.1 interfaces.  (I plan to move directly to pthreads on Solaris.)
d5663 2
a5664 2
cat >conftest.$ac_ext <<_ACEOF
#line 11831 "configure"
d5667 1
a5667 3
int
main ()
{
d5671 4
a5674 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11845: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11848: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11851: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11854: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5677 2
a5678 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5680 1
a5680 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a5682 5
# _lock_try/_lock_clear: Solaris
# On Solaris systems without Pthread or UI mutex interfaces, DB uses the
# undocumented _lock_try _lock_clear function calls instead of either the
# sema_trywait(3T) or sema_wait(3T) function calls.  This is because of
# problems in those interfaces in some releases of the Solaris C library.
d5684 2
a5685 2
cat >conftest.$ac_ext <<_ACEOF
#line 11871 "configure"
d5688 1
a5688 3
int
main ()
{
d5692 4
a5695 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11885: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11888: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11891: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11894: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5698 2
a5699 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5701 1
a5701 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a5703 1
# _check_lock/_clear_lock: AIX
d5705 2
a5706 2
cat >conftest.$ac_ext <<_ACEOF
#line 11907 "configure"
d5709 1
a5709 3
int
main ()
{
d5711 4
a5714 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11919: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11922: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11925: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11928: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5717 2
a5718 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5720 1
a5720 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a5722 1
# Alpha/gcc: OSF/1
d5725 1
a5725 3
  { { echo "$as_me:11941: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5727 2
a5728 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11946 "configure"
d5737 3
a5739 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11957: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11960: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11962: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11965: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5742 2
a5743 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5745 1
a5745 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5747 1
a5749 1
# PaRisc/gcc: HP/UX
d5752 1
a5752 3
  { { echo "$as_me:11980: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5754 2
a5755 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11985 "configure"
d5764 3
a5766 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11996: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11999: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12001: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12004: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5769 2
a5770 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5772 1
a5772 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5774 1
a5776 1
# PPC/gcc:
d5779 1
a5779 3
  { { echo "$as_me:12019: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5781 2
a5782 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12024 "configure"
d5791 3
a5793 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12035: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12038: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12040: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12043: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5796 2
a5797 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5799 1
a5799 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5801 1
a5803 1
# Sparc/gcc: SunOS, Solaris
d5806 1
a5806 3
  { { echo "$as_me:12058: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5808 2
a5809 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12063 "configure"
d5819 3
a5821 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12075: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12078: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12080: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12083: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5824 2
a5825 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5827 1
a5827 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5829 1
a5831 1
# 68K/gcc: SunOS
d5834 1
a5834 3
  { { echo "$as_me:12098: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5836 2
a5837 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12103 "configure"
d5847 3
a5849 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12115: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12118: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12120: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12123: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5852 2
a5853 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5855 1
a5855 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5857 1
a5859 1
# x86/gcc: FreeBSD, NetBSD, BSD/OS, Linux
d5862 1
a5862 3
  { { echo "$as_me:12138: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5864 2
a5865 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12143 "configure"
d5875 3
a5877 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12155: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12158: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12160: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12163: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5880 2
a5881 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5883 1
a5883 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5885 1
a5887 1
# ia86/gcc: Linux
d5890 1
a5890 3
  { { echo "$as_me:12178: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5892 2
a5893 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12183 "configure"
d5903 3
a5905 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12195: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12198: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12200: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12203: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5908 2
a5909 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5911 1
a5911 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5913 1
a5915 1
# uts/cc: UTS
d5918 1
a5918 3
  { { echo "$as_me:12218: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d5920 2
a5921 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12223 "configure"
d5929 3
a5931 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12233: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12236: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12238: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12241: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5934 2
a5935 3
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5937 1
a5937 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d5939 1
d5943 2
a5944 2
echo "$as_me:12254: result: $db_cv_mutex" >&5
echo "${ECHO_T}$db_cv_mutex" >&6
d5947 1
a5947 2
	{ echo "$as_me:12258: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&5
echo "$as_me: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&2;}
d5950 1
a5950 1
	cat >>confdefs.h <<\EOF
d5958 1
a5958 1
			cat >>confdefs.h <<\EOF
a5960 1

d5963 1
a5963 1
			cat >>confdefs.h <<\EOF
a5965 1

d5968 1
a5968 1
			cat >>confdefs.h <<\EOF
a5970 1

d5973 1
a5973 1
			cat >>confdefs.h <<\EOF
a5975 1

d5978 1
a5978 1
			cat >>confdefs.h <<\EOF
a5980 1

d5983 1
a5983 1
			cat >>confdefs.h <<\EOF
a5985 1

d5988 1
a5988 1
			cat >>confdefs.h <<\EOF
a5990 1

d5994 1
a5994 1
			cat >>confdefs.h <<\EOF
a5996 1

d5999 1
a5999 1
			cat >>confdefs.h <<\EOF
a6001 1

d6005 1
a6005 1
			cat >>confdefs.h <<\EOF
a6007 1

d6010 1
a6010 1
			cat >>confdefs.h <<\EOF
a6012 1

d6015 1
a6015 1
			cat >>confdefs.h <<\EOF
a6017 1

d6020 1
a6020 1
			cat >>confdefs.h <<\EOF
a6022 1

d6025 1
a6025 1
			cat >>confdefs.h <<\EOF
a6027 1

d6030 1
a6030 1
			cat >>confdefs.h <<\EOF
a6032 1

d6035 1
a6035 1
			cat >>confdefs.h <<\EOF
a6037 1

d6041 1
a6041 1
			cat >>confdefs.h <<\EOF
a6043 1

d6046 1
a6046 1
			cat >>confdefs.h <<\EOF
a6048 1

d6051 1
a6051 1
			cat >>confdefs.h <<\EOF
a6053 1

d6056 1
a6056 1
			cat >>confdefs.h <<\EOF
a6058 1

d6061 1
a6061 1
			cat >>confdefs.h <<\EOF
a6063 1

a6066 6
# Checks for system functions for which we have replacements.
#
# XXX
# The only portable getcwd call is getcwd(char *, size_t), where the
# buffer is non-NULL -- Solaris can't handle a NULL buffer, and they
# deleted getwd().
d6070 4
a6073 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12410: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6075 2
a6076 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12416 "configure"
d6079 1
a6079 1
    which can conflict with char $ac_func (); below.  */
a6081 3
#ifdef __cplusplus
extern "C"
#endif
d6083 5
a6087 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6094 1
a6094 1
f = $ac_func;
d6097 1
a6097 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12447: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12450: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12453: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12456: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12466: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6099 11
d6111 7
d6119 2
a6120 1
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
d6124 1
d6127 4
a6130 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12481: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6132 2
a6133 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12487 "configure"
d6136 1
a6136 1
    which can conflict with char $ac_func (); below.  */
a6138 3
#ifdef __cplusplus
extern "C"
#endif
d6140 5
a6144 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6151 1
a6151 1
f = $ac_func;
d6154 1
a6154 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12518: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12521: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12524: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12527: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12537: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6156 11
d6168 7
d6176 2
a6177 1
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
d6181 2
a6182 4
# XXX
# Nasty hack.  AC_REPLACE_FUNCS added entries of the form xxx.o to the
# LIBOBJS variable.  They have to be xxx.lo if we are building shared
# libraries.  Use sed, configure already requires it.
a6185 2
# Check for system functions we optionally use.

d6188 4
a6191 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12561: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6193 2
a6194 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12567 "configure"
d6197 1
a6197 1
    which can conflict with char $ac_func (); below.  */
a6199 3
#ifdef __cplusplus
extern "C"
#endif
d6201 5
a6205 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6212 1
a6212 1
f = $ac_func;
d6215 1
a6215 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12598: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12601: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12604: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12607: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12617: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6217 11
d6229 9
d6243 4
a6246 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12630: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6248 2
a6249 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12636 "configure"
d6252 1
a6252 1
    which can conflict with char $ac_func (); below.  */
a6254 3
#ifdef __cplusplus
extern "C"
#endif
d6256 5
a6260 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6267 1
a6267 1
f = $ac_func;
d6270 1
a6270 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12667: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12670: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12673: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12676: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12686: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6272 11
d6284 9
d6296 1
a6296 3
# Pread/pwrite.
#
# HP-UX has pread/pwrite, but it doesn't work with bigfile support.
d6299 2
a6300 5
	{ echo "$as_me:12701: WARNING: pread/pwrite interfaces ignored on $host_os." >&5
echo "$as_me: WARNING: pread/pwrite interfaces ignored on $host_os." >&2;};;
*)

for ac_func in pread pwrite
d6302 4
a6305 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12708: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6307 2
a6308 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12714 "configure"
d6311 1
a6311 1
    which can conflict with char $ac_func (); below.  */
a6313 3
#ifdef __cplusplus
extern "C"
#endif
d6315 5
a6319 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6326 1
a6326 1
f = $ac_func;
d6329 1
a6329 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12745: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12748: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12751: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12754: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12764: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6331 11
d6343 9
d6357 4
a6360 5
# Check for fcntl(2) to deny child process access to file descriptors.
echo "$as_me:12777: checking for fcntl/F_SETFD" >&5
echo $ECHO_N "checking for fcntl/F_SETFD... $ECHO_C" >&6
if test "${db_cv_fcntl_f_setfd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6362 2
a6363 5

if test "$cross_compiling" = yes; then
  { { echo "$as_me:12784: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d6365 2
a6366 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12789 "configure"
d6372 3
a6374 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12797: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12800: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12802: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12805: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6377 4
a6380 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_fcntl_f_setfd=no
d6382 1
a6382 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d6384 1
d6386 2
a6387 2
echo "$as_me:12817: result: $db_cv_fcntl_f_setfd" >&5
echo "${ECHO_T}$db_cv_fcntl_f_setfd" >&6
d6389 1
a6389 1
	cat >>confdefs.h <<\EOF
a6394 1
# A/UX has a broken getopt(3).
a6398 3
# Checks for system functions for which we don't have replacements.
# We require qsort(3).

d6401 4
a6404 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12837: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6406 2
a6407 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12843 "configure"
d6410 1
a6410 1
    which can conflict with char $ac_func (); below.  */
a6412 3
#ifdef __cplusplus
extern "C"
#endif
d6414 5
a6418 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6425 1
a6425 1
f = $ac_func;
d6428 19
a6446 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12874: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12877: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12880: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12883: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12893: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6448 1
a6448 1

d6450 2
a6451 3
  { { echo "$as_me:12901: error: No qsort library function." >&5
echo "$as_me: error: No qsort library function." >&2;}
   { (exit 1); exit 1; }; }
d6455 5
a6459 7
# Some versions of sprintf return a pointer to the first argument instead
# of a character count.  We assume that the return value of snprintf and
# vsprintf etc. will be the same as sprintf, and check the easy one.
echo "$as_me:12910: checking for int type sprintf return value" >&5
echo $ECHO_N "checking for int type sprintf return value... $ECHO_C" >&6
if test "${db_cv_sprintf_count+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6461 2
a6462 5

if test "$cross_compiling" = yes; then
  { { echo "$as_me:12917: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d6464 2
a6465 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12922 "configure"
d6468 3
a6470 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12927: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12930: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12932: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12935: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6473 4
a6476 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_sprintf_count=no
d6478 1
a6478 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
d6480 1
d6482 2
a6483 2
echo "$as_me:12947: result: $db_cv_sprintf_count" >&5
echo "${ECHO_T}$db_cv_sprintf_count" >&6
d6485 1
a6485 1
	cat >>confdefs.h <<\EOF
d6491 9
a6499 195
# You can't build C++ with big-file support on HP-UX, the include files
# are wrong.  On Solaris 8, the <fcntl.h> included with big-file support
# is not compatible with C++.
largefile_ok=yes
case "$host_os" in
solaris2.8|hpux*)
	if test "$db_cv_cxx" = "yes"; then
{ echo "$as_me:12963: WARNING: Large file and C++ API support are incompatible on HP-UX" >&5
echo "$as_me: WARNING: Large file and C++ API support are incompatible on HP-UX" >&2;}
{ echo "$as_me:12965: WARNING: and Solaris 8; large file support has been turned off." >&5
echo "$as_me: WARNING: and Solaris 8; large file support has been turned off." >&2;}
		largefile_ok=no
	fi;;
esac
if test "$largefile_ok" = yes; then
	# Check whether --enable-largefile or --disable-largefile was given.
if test "${enable_largefile+set}" = set; then
  enableval="$enable_largefile"

fi;
if test "$enable_largefile" != no; then

  echo "$as_me:12978: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
     	 # IRIX 6.2 and later do not support large files by default,
     	 # so use the C compiler's -n32 option if that helps.
         cat >conftest.$ac_ext <<_ACEOF
#line 12990 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:13010: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13013: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13016: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13019: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
     	 CC="$CC -n32"
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:13029: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13032: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13035: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13038: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_largefile_CC=' -n32'; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
         break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
fi
echo "$as_me:13052: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi

  echo "$as_me:13058: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_file_offset_bits=no
  cat >conftest.$ac_ext <<_ACEOF
#line 13066 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13086: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13089: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13092: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13095: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 13104 "configure"
#include "confdefs.h"
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13125: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13128: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13131: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13134: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_file_offset_bits=64; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:13145: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
if test "$ac_cv_sys_file_offset_bits" != no; then

cat >>confdefs.h <<EOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
d6502 4
a6505 95
fi
rm -f conftest*
  echo "$as_me:13155: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_large_files+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_large_files=no
  cat >conftest.$ac_ext <<_ACEOF
#line 13163 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13183: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13186: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13189: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13192: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 13201 "configure"
#include "confdefs.h"
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13222: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13225: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13228: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13231: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_large_files=1; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:13242: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
if test "$ac_cv_sys_large_files" != no; then

cat >>confdefs.h <<EOF
#define _LARGE_FILES $ac_cv_sys_large_files
d6507 2
a6508 5

fi
rm -f conftest*
fi

a6510 11
# Figure out how to create shared regions.
#
# First, we look for mmap.
#
# BSD/OS has mlock(2), but it doesn't work until the 4.1 release.
#
# Nextstep (version 3.3) apparently supports mmap(2) (the mmap symbol
# is defined in the C library) but does not support munmap(2).  Don't
# try to use mmap if we can't find munmap.
#
# Ultrix has mmap(2), but it doesn't work.
d6514 1
a6514 2
	{ echo "$as_me:13270: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&5
echo "$as_me: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&2;}
d6516 1
a6516 2

for ac_func in mmap munmap
d6518 4
a6521 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:13277: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6523 2
a6524 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13283 "configure"
d6527 1
a6527 1
    which can conflict with char $ac_func (); below.  */
a6529 3
#ifdef __cplusplus
extern "C"
#endif
d6531 5
a6535 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6542 1
a6542 1
f = $ac_func;
d6545 1
a6545 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13314: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13317: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13320: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13323: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13333: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6547 11
d6559 7
d6567 2
a6568 1
  mmap_ok=no
d6573 1
a6573 2
	{ echo "$as_me:13346: WARNING: mmap(2) interface ignored on Ultrix." >&5
echo "$as_me: WARNING: mmap(2) interface ignored on Ultrix." >&2;};;
d6576 1
a6576 2

for ac_func in mlock munlock
d6578 4
a6581 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:13354: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6583 2
a6584 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13360 "configure"
d6587 1
a6587 1
    which can conflict with char $ac_func (); below.  */
a6589 3
#ifdef __cplusplus
extern "C"
#endif
d6591 5
a6595 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6602 1
a6602 1
f = $ac_func;
d6605 1
a6605 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13391: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13394: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13397: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13400: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13410: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6607 11
d6619 9
d6631 1
a6631 1
for ac_func in mmap munmap
d6633 4
a6636 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:13423: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6638 2
a6639 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13429 "configure"
d6642 1
a6642 1
    which can conflict with char $ac_func (); below.  */
a6644 3
#ifdef __cplusplus
extern "C"
#endif
d6646 5
a6650 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6657 1
a6657 1
f = $ac_func;
d6660 1
a6660 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13460: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13463: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13466: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13469: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13479: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6662 11
d6674 7
d6682 2
a6683 1
  mmap_ok=no
a6688 4
# Second, we look for shmget.
#
# SunOS has the shmget(2) interfaces, but there appears to be a missing
# #include <debug/debug.h> file, so we ignore them.
d6692 1
a6692 2
	{ echo "$as_me:13500: WARNING: shmget(2) interface ignored on SunOS." >&5
echo "$as_me: WARNING: shmget(2) interface ignored on SunOS." >&2;};;
d6695 1
a6695 2

for ac_func in shmget
d6697 4
a6700 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:13508: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6702 2
a6703 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13514 "configure"
d6706 1
a6706 1
    which can conflict with char $ac_func (); below.  */
a6708 3
#ifdef __cplusplus
extern "C"
#endif
d6710 5
a6714 7
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
d6721 1
a6721 1
f = $ac_func;
d6724 1
a6724 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13545: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13548: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13551: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13554: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13564: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d6726 11
d6738 7
d6746 2
a6747 1
  shmget_ok=no
a6752 1
# We require either mmap/munmap(2) or shmget(2).
d6754 1
a6754 2
	{ echo "$as_me:13580: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
echo "$as_me: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&2;}
a6756 1
# Initial output file list.
a6760 3
# Create the db.h file -- append the global function prototypes to the
# file.  If the user has requested unique names, use the file that does
# DB_VERSION_UNIQUE_NAME substitution.
a6768 2
# Create the function prototype include files.  If the user has requested
# unique names, use the files that do DB_VERSION_UNIQUE_NAME substitution.
d6808 2
a6809 3
ac_config_files="$ac_config_files ${CREATE_LIST}"

cat >confcache <<\_ACEOF
d6812 2
a6813 3
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
d6815 8
a6822 2
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
d6824 1
a6824 6
# `ac_cv_env_foo' variables (set or unset) will be overriden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

d6830 17
a6846 25
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
        "s/'/'\\\\''/g;
    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if cmp -s $cache_file confcache; then :; else
d6848 2
a6849 2
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
d6856 2
d6862 3
a6864 4
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
d6866 1
a6866 8
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@@srcdir@@:*/:/;
s/^\([^=]*=[ 	]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ 	]*$//;
}'
d6869 2
d6873 1
d6875 5
a6879 6
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:13722: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
d6882 5
d6888 1
a6888 1
# configure, is in config.log if it exists.
d6890 2
a6891 136
debug=false
SHELL=\${CONFIG_SHELL-$SHELL}
ac_cs_invocation="\$0 \$@@"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

exec 6>&1

_ACEOF

# Files that config.status was made for.
if test -n "$ac_config_files"; then
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_headers"; then
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_links"; then
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_commands"; then
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi

cat >>$CONFIG_STATUS <<\EOF

ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number, then exit
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Report bugs to <bug-autoconf@@gnu.org>."
EOF

cat >>$CONFIG_STATUS <<EOF
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.50,
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
INSTALL="$INSTALL"
EOF

cat >>$CONFIG_STATUS <<\EOF
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
d6893 1
a6893 18
  case $1 in
  --*=*)
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    shift
    set dummy "$ac_option" "$ac_optarg" ${1+"$@@"}
    shift
    ;;
  -*);;
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_need_defaults=false;;
  esac

  case $1 in
  # Handling of the options.
EOF
cat >>$CONFIG_STATUS <<EOF
d6895 8
a6902 39
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
EOF
cat >>$CONFIG_STATUS <<\EOF
  --version | --vers* | -V )
    echo "$ac_cs_version"; exit 0 ;;
  --he | --h)
    # Conflict between --help and --header
    { { echo "$as_me:13895: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit 0 ;;
  --debug | --d* | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    shift
    CONFIG_FILES="$CONFIG_FILES $1"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    shift
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
    ac_need_defaults=false;;

  # Handling of arguments.
  '${CREATE_LIST}' ) CONFIG_FILES="$CONFIG_FILES ${CREATE_LIST}" ;;
  'db_config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS db_config.h:config.hin" ;;

  # This is an error.
  -*) { { echo "$as_me:13918: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; } ;;
  *) { { echo "$as_me:13923: error: invalid argument: $1" >&5
echo "$as_me: error: invalid argument: $1" >&2;}
   { (exit 1); exit 1; }; };;
a6903 1
  shift
d6906 2
a6907 45
exec 5>>config.log
cat >&5 << _ACEOF

## ----------------------- ##
## Running config.status.  ##
## ----------------------- ##

This file was extended by $as_me 2.50, executed with
  > $ac_cs_invocation
on `(hostname || uname -n) 2>/dev/null | sed 1q`

_ACEOF
EOF

cat >>$CONFIG_STATUS <<\EOF
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
fi

# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  trap '{ (exit $?); exit $?; }' 1 2 13 15
}

# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=$TMPDIR/cs$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   { (exit 1); exit 1; }
}
d6909 1
d6911 1
d6913 134
a7046 5
cat >>$CONFIG_STATUS <<EOF

#
# CONFIG_FILES section.
#
a7047 157
# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@@/@@@@/; s/@@,/@@@@/; s/,;t t\$/@@;t t/; /@@;t t\$/s/[\\\\&,]/\\\\&/g;
   s/@@@@/,@@/; s/@@@@/@@,/; s/@@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@@SHELL@@,$SHELL,;t t
s,@@exec_prefix@@,$exec_prefix,;t t
s,@@prefix@@,$prefix,;t t
s,@@program_transform_name@@,$program_transform_name,;t t
s,@@bindir@@,$bindir,;t t
s,@@sbindir@@,$sbindir,;t t
s,@@libexecdir@@,$libexecdir,;t t
s,@@datadir@@,$datadir,;t t
s,@@sysconfdir@@,$sysconfdir,;t t
s,@@sharedstatedir@@,$sharedstatedir,;t t
s,@@localstatedir@@,$localstatedir,;t t
s,@@libdir@@,$libdir,;t t
s,@@includedir@@,$includedir,;t t
s,@@oldincludedir@@,$oldincludedir,;t t
s,@@infodir@@,$infodir,;t t
s,@@mandir@@,$mandir,;t t
s,@@PACKAGE_NAME@@,$PACKAGE_NAME,;t t
s,@@PACKAGE_TARNAME@@,$PACKAGE_TARNAME,;t t
s,@@PACKAGE_VERSION@@,$PACKAGE_VERSION,;t t
s,@@PACKAGE_STRING@@,$PACKAGE_STRING,;t t
s,@@PACKAGE_BUGREPORT@@,$PACKAGE_BUGREPORT,;t t
s,@@ECHO_C@@,$ECHO_C,;t t
s,@@ECHO_N@@,$ECHO_N,;t t
s,@@ECHO_T@@,$ECHO_T,;t t
s,@@PATH_SEPARATOR@@,$PATH_SEPARATOR,;t t
s,@@DEFS@@,$DEFS,;t t
s,@@LIBS@@,$LIBS,;t t
s,@@build@@,$build,;t t
s,@@build_cpu@@,$build_cpu,;t t
s,@@build_vendor@@,$build_vendor,;t t
s,@@build_os@@,$build_os,;t t
s,@@host@@,$host,;t t
s,@@host_cpu@@,$host_cpu,;t t
s,@@host_vendor@@,$host_vendor,;t t
s,@@host_os@@,$host_os,;t t
s,@@ADDITIONAL_INCS@@,$ADDITIONAL_INCS,;t t
s,@@ADDITIONAL_LANG@@,$ADDITIONAL_LANG,;t t
s,@@ADDITIONAL_LIBS@@,$ADDITIONAL_LIBS,;t t
s,@@ADDITIONAL_OBJS@@,$ADDITIONAL_OBJS,;t t
s,@@ADDITIONAL_PROGS@@,$ADDITIONAL_PROGS,;t t
s,@@BUILD_TARGET@@,$BUILD_TARGET,;t t
s,@@CFLAGS@@,$CFLAGS,;t t
s,@@CONFIGURATION_ARGS@@,$CONFIGURATION_ARGS,;t t
s,@@CONFIGURATION_PATH@@,$CONFIGURATION_PATH,;t t
s,@@CPPFLAGS@@,$CPPFLAGS,;t t
s,@@CXX@@,$CXX,;t t
s,@@CXXFLAGS@@,$CXXFLAGS,;t t
s,@@DEFAULT_INSTALL@@,$DEFAULT_INSTALL,;t t
s,@@DEFAULT_LIB@@,$DEFAULT_LIB,;t t
s,@@DEFAULT_LIB_CXX@@,$DEFAULT_LIB_CXX,;t t
s,@@EMBEDIX_ECD_CXX@@,$EMBEDIX_ECD_CXX,;t t
s,@@EMBEDIX_ECD_RPC@@,$EMBEDIX_ECD_RPC,;t t
s,@@EMBEDIX_ROOT@@,$EMBEDIX_ROOT,;t t
s,@@INSTALLER@@,$INSTALLER,;t t
s,@@INSTALL_LIBS@@,$INSTALL_LIBS,;t t
s,@@INSTALL_TARGET@@,$INSTALL_TARGET,;t t
s,@@JAR@@,$JAR,;t t
s,@@JAVAC@@,$JAVAC,;t t
s,@@JAVACFLAGS@@,$JAVACFLAGS,;t t
s,@@LDFLAGS@@,$LDFLAGS,;t t
s,@@LIBJSO_LIBS@@,$LIBJSO_LIBS,;t t
s,@@LIBSO_LIBS@@,$LIBSO_LIBS,;t t
s,@@LIBTOOL@@,$LIBTOOL,;t t
s,@@LIBTSO_LIBS@@,$LIBTSO_LIBS,;t t
s,@@LIBXSO_LIBS@@,$LIBXSO_LIBS,;t t
s,@@MAKEFILE_CC@@,$MAKEFILE_CC,;t t
s,@@MAKEFILE_CCLINK@@,$MAKEFILE_CCLINK,;t t
s,@@MAKEFILE_CXX@@,$MAKEFILE_CXX,;t t
s,@@MAKEFILE_CXXLINK@@,$MAKEFILE_CXXLINK,;t t
s,@@POSTLINK@@,$POSTLINK,;t t
s,@@RPC_CLIENT_OBJS@@,$RPC_CLIENT_OBJS,;t t
s,@@RPM_POST_INSTALL@@,$RPM_POST_INSTALL,;t t
s,@@RPM_POST_UNINSTALL@@,$RPM_POST_UNINSTALL,;t t
s,@@SOFLAGS@@,$SOFLAGS,;t t
s,@@SOLINK@@,$SOLINK,;t t
s,@@SOSUFFIX@@,$SOSUFFIX,;t t
s,@@TEST_LIBS@@,$TEST_LIBS,;t t
s,@@db_cv_path_embedix_install@@,$db_cv_path_embedix_install,;t t
s,@@db_cv_path_rpm_archive@@,$db_cv_path_rpm_archive,;t t
s,@@o@@,$o,;t t
s,@@DB_VERSION_MAJOR@@,$DB_VERSION_MAJOR,;t t
s,@@DB_VERSION_MINOR@@,$DB_VERSION_MINOR,;t t
s,@@DB_VERSION_PATCH@@,$DB_VERSION_PATCH,;t t
s,@@DB_VERSION_UNIQUE_NAME@@,$DB_VERSION_UNIQUE_NAME,;t t
s,@@DB_VERSION_STRING@@,$DB_VERSION_STRING,;t t
s,@@db_cv_path_ar@@,$db_cv_path_ar,;t t
s,@@ac_ct_db_cv_path_ar@@,$ac_ct_db_cv_path_ar,;t t
s,@@db_cv_path_chmod@@,$db_cv_path_chmod,;t t
s,@@ac_ct_db_cv_path_chmod@@,$ac_ct_db_cv_path_chmod,;t t
s,@@db_cv_path_cp@@,$db_cv_path_cp,;t t
s,@@ac_ct_db_cv_path_cp@@,$ac_ct_db_cv_path_cp,;t t
s,@@path_ldconfig@@,$path_ldconfig,;t t
s,@@ac_ct_path_ldconfig@@,$ac_ct_path_ldconfig,;t t
s,@@db_cv_path_ldconfig@@,$db_cv_path_ldconfig,;t t
s,@@db_cv_path_ln@@,$db_cv_path_ln,;t t
s,@@ac_ct_db_cv_path_ln@@,$ac_ct_db_cv_path_ln,;t t
s,@@db_cv_path_mkdir@@,$db_cv_path_mkdir,;t t
s,@@ac_ct_db_cv_path_mkdir@@,$ac_ct_db_cv_path_mkdir,;t t
s,@@path_ranlib@@,$path_ranlib,;t t
s,@@ac_ct_path_ranlib@@,$ac_ct_path_ranlib,;t t
s,@@db_cv_path_ranlib@@,$db_cv_path_ranlib,;t t
s,@@db_cv_path_rm@@,$db_cv_path_rm,;t t
s,@@ac_ct_db_cv_path_rm@@,$ac_ct_db_cv_path_rm,;t t
s,@@db_cv_path_rpm@@,$db_cv_path_rpm,;t t
s,@@ac_ct_db_cv_path_rpm@@,$ac_ct_db_cv_path_rpm,;t t
s,@@path_sh@@,$path_sh,;t t
s,@@ac_ct_path_sh@@,$ac_ct_path_sh,;t t
s,@@db_cv_path_sh@@,$db_cv_path_sh,;t t
s,@@path_strip@@,$path_strip,;t t
s,@@ac_ct_path_strip@@,$ac_ct_path_strip,;t t
s,@@db_cv_path_strip@@,$db_cv_path_strip,;t t
s,@@db_cv_path_kill@@,$db_cv_path_kill,;t t
s,@@ac_ct_db_cv_path_kill@@,$ac_ct_db_cv_path_kill,;t t
s,@@INSTALL_PROGRAM@@,$INSTALL_PROGRAM,;t t
s,@@INSTALL_SCRIPT@@,$INSTALL_SCRIPT,;t t
s,@@INSTALL_DATA@@,$INSTALL_DATA,;t t
s,@@CC@@,$CC,;t t
s,@@ac_ct_CC@@,$ac_ct_CC,;t t
s,@@EXEEXT@@,$EXEEXT,;t t
s,@@OBJEXT@@,$OBJEXT,;t t
s,@@CCC@@,$CCC,;t t
s,@@ac_ct_CCC@@,$ac_ct_CCC,;t t
s,@@ac_ct_CXX@@,$ac_ct_CXX,;t t
s,@@LN_S@@,$LN_S,;t t
s,@@ECHO@@,$ECHO,;t t
s,@@RANLIB@@,$RANLIB,;t t
s,@@ac_ct_RANLIB@@,$ac_ct_RANLIB,;t t
s,@@STRIP@@,$STRIP,;t t
s,@@ac_ct_STRIP@@,$ac_ct_STRIP,;t t
s,@@CPP@@,$CPP,;t t
s,@@ac_ct_JAVAC@@,$ac_ct_JAVAC,;t t
s,@@ac_ct_JAR@@,$ac_ct_JAR,;t t
s,@@JAVACABS@@,$JAVACABS,;t t
s,@@TCFLAGS@@,$TCFLAGS,;t t
s,@@TCL_BIN_DIR@@,$TCL_BIN_DIR,;t t
s,@@TCL_SRC_DIR@@,$TCL_SRC_DIR,;t t
s,@@TCL_LIB_FILE@@,$TCL_LIB_FILE,;t t
s,@@TCL_TCLSH@@,$TCL_TCLSH,;t t
s,@@u_char_decl@@,$u_char_decl,;t t
s,@@u_short_decl@@,$u_short_decl,;t t
s,@@u_int_decl@@,$u_int_decl,;t t
s,@@u_long_decl@@,$u_long_decl,;t t
s,@@u_int8_decl@@,$u_int8_decl,;t t
s,@@u_int16_decl@@,$u_int16_decl,;t t
s,@@int16_decl@@,$int16_decl,;t t
s,@@u_int32_decl@@,$u_int32_decl,;t t
s,@@int32_decl@@,$int32_decl,;t t
s,@@ssize_t_decl@@,$ssize_t_decl,;t t
s,@@db_align_t_decl@@,$db_align_t_decl,;t t
s,@@db_alignp_t_decl@@,$db_alignp_t_decl,;t t
s,@@LIBOBJS@@,$LIBOBJS,;t t
d7049 1
d7051 1
a7051 1
EOF
d7053 20
a7072 17
  cat >>$CONFIG_STATUS <<\EOF
  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # Line after last line for current file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
d7074 1
a7074 14
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
d7076 3
a7078 3
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
d7080 5
a7084 1
fi # test -n "$CONFIG_FILES"
d7086 3
d7090 2
a7091 2
cat >>$CONFIG_STATUS <<\EOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
d7093 4
a7096 8
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
d7099 4
a7102 12
  # Compute @@srcdir@@, @@top_srcdir@@, and @@INSTALL@@ for subdirectories.
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d7104 3
a7106 17
    { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
d7108 1
a7108 1
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
d7113 5
a7117 10
  case $srcdir in
  .)  ac_srcdir=.
      if test -z "$ac_dots"; then
         ac_top_srcdir=.
      else
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
      fi ;;
  [\\/]* | ?:[\\/]* )
      ac_srcdir=$srcdir$ac_dir_suffix;
      ac_top_srcdir=$srcdir ;;
d7119 2
a7120 2
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_dots$srcdir ;;
d7123 3
a7125 3
  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_dots$INSTALL ;;
d7128 8
a7135 62
  if test x"$ac_file" != x-; then
    { echo "$as_me:14255: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    rm -f "$ac_file"
  fi
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  configure_input="Generated automatically from `echo $ac_file_in |
                                                 sed 's,.*/,,'` by configure."

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:14273: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:14286: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
EOF
cat >>$CONFIG_STATUS <<EOF
  sed "$ac_vpsub
$extrasub
EOF
cat >>$CONFIG_STATUS <<\EOF
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s,@@configure_input@@,$configure_input,;t t
s,@@srcdir@@,$ac_srcdir,;t t
s,@@top_srcdir@@,$ac_top_srcdir,;t t
s,@@INSTALL@@,$ac_INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi

done
EOF
cat >>$CONFIG_STATUS <<\EOF
d7137 9
a7145 3
#
# CONFIG_HEADER section.
#
d7151 7
a7157 7
ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='[ 	].*$,\1#\2'
ac_dC=' '
ac_dD=',;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='$,\1#\2define\3'
d7159 6
a7164 1
ac_uD=',;t'
d7166 8
a7173 1
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
d7175 4
a7178 8
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
d7181 1
a7181 2
  test x"$ac_file" != x- && { echo "$as_me:14347: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
d7183 3
a7185 29
  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:14358: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:14371: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
  # Remove the trailing spaces.
  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
d7189 14
a7202 30
# Transform confdefs.h into two sed scripts, `conftest.defines' and
# `conftest.undefs', that substitutes the proper values into
# config.h.in to produce config.h.  The first handles `#define'
# templates, and the second `#undef' templates.
# And first: Protect against being on the right side of a sed subst in
# config.status.  Protect against being in an unquoted here document
# in config.status.
rm -f conftest.defines conftest.undefs
# Using a here document instead of a string reduces the quoting nightmare.
# Putting comments in sed scripts is not portable.
#
# `end' is used to avoid that the second main sed command (meant for
# 0-ary CPP macros) applies to n-ary macro definitions.
# See the Autoconf documentation for `clear'.
cat >confdef2sed.sed <<\EOF
s/[\\&,]/\\&/g
s,[\\$`],\\&,g
t clear
: clear
s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
t end
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
: end
EOF
# If some macros were called several times there might be several times
# the same #defines, which is useless.  Nevertheless, we may not want to
# sort them, since we want the *last* AC-DEFINE to be honored.
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
rm -f confdef2sed.sed
d7207 2
a7208 2
cat >>conftest.undefs <<\EOF
s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
d7211 3
a7213 33
# Break up conftest.defines because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
echo '  :' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.defines >/dev/null
do
  # Write a limited-size here document to $tmp/defines.sed.
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#define' lines.
  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  echo 'CEOF
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  rm -f conftest.defines
  mv conftest.tail conftest.defines
done
rm -f conftest.defines
echo '  fi # egrep' >>$CONFIG_STATUS
echo >>$CONFIG_STATUS

# Break up conftest.undefs because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
d7215 1
a7215 1
while grep . conftest.undefs >/dev/null
d7217 6
a7222 8
  # Write a limited-size here document to $tmp/undefs.sed.
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#undef'
  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
d7224 18
a7241 16
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  rm -f conftest.undefs
  mv conftest.tail conftest.undefs
done
rm -f conftest.undefs

cat >>$CONFIG_STATUS <<\EOF
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  if test x"$ac_file" = x-; then
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
d7243 2
a7244 20
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
  if test x"$ac_file" != x-; then
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
      { echo "$as_me:14488: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d7246 2
a7247 19
        { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

      fi
      rm -f $ac_file
      mv $tmp/config.h $ac_file
d7249 2
a7250 3
  else
    cat $tmp/config.h
    rm -f $tmp/config.h
d7252 2
a7253 1
done
d7255 1
d7257 2
a7258 1
cat >>$CONFIG_STATUS <<\EOF
d7260 1
a7260 1
{ (exit 0); exit 0; }
d7263 2
a7264 1
ac_clean_files=$ac_clean_files_save
a7265 17
# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi
@


1.1.1.4
log
@track: auto import
@
text
@a17 1
  PATH_SEPARATOR=$lt_cv_sys_path_separator
d83 1
a83 1
  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d835 2
a836 2
  --enable-shared=PKGS  build shared libraries default=yes
  --enable-static=PKGS  build static libraries default=yes
d1045 1
a1045 1
    { echo "$as_me:1046: loading site script $ac_site_file" >&5
d1056 1
a1056 1
    { echo "$as_me:1057: loading cache $cache_file" >&5
d1064 1
a1064 1
  { echo "$as_me:1065: creating cache $cache_file" >&5
d1080 1
a1080 1
      { echo "$as_me:1081: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
d1084 1
a1084 1
      { echo "$as_me:1085: WARNING: \`$ac_var' was not set in the previous run" >&5
d1090 1
a1090 1
        { echo "$as_me:1091: WARNING: \`$ac_var' has changed since the previous run:" >&5
d1092 1
a1092 1
        { echo "$as_me:1093: WARNING:   former value:  $ac_old_val" >&5
d1094 1
a1094 1
        { echo "$as_me:1095: WARNING:   current value: $ac_new_val" >&5
d1101 1
a1101 1
  { echo "$as_me:1102: WARNING: changes in the environment can compromise the build" >&5
d1103 1
a1103 1
  { echo "$as_me:1104: WARNING: consider removing $cache_file and starting over" >&5
d1122 1
a1122 1
if { (echo "$as_me:1123: PATH=\".;.\"; conftest.sh") >&5
d1125 1
a1125 1
  echo "$as_me:1126: \$? = $ac_status" >&5
d1154 1
a1154 1
  { { echo "$as_me:1155: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
d1164 1
a1164 1
  { { echo "$as_me:1165: error: cannot run $ac_config_sub" >&5
d1168 1
a1168 1
echo "$as_me:1169: checking build system type" >&5
d1177 1
a1177 1
  { { echo "$as_me:1178: error: cannot guess build type; you must specify one" >&5
d1181 1
a1181 1
  { { echo "$as_me:1182: error: $ac_config_sub $ac_cv_build_alias failed." >&5
d1186 1
a1186 1
echo "$as_me:1187: result: $ac_cv_build" >&5
d1193 1
a1193 1
echo "$as_me:1194: checking host system type" >&5
d1202 1
a1202 1
  { { echo "$as_me:1203: error: $ac_config_sub $ac_cv_host_alias failed" >&5
d1207 1
a1207 1
echo "$as_me:1208: result: $ac_cv_host" >&5
d1234 1
a1234 1
echo "$as_me:1235: checking if building in the top-level directory" >&5
d1236 1
a1236 1
 test -d db_archive  && { { echo "$as_me:1237: error:
d1241 1
a1241 1
echo "$as_me:1242: result: no" >&5
d1255 1
a1255 1
DB_VERSION_MAJOR=4
d1257 1
a1257 1
DB_VERSION_MINOR=0
d1259 1
a1259 1
DB_VERSION_PATCH=7
d1261 1
a1261 1
DB_VERSION_UNIQUE_NAME=_4000
d1263 1
a1263 1
DB_VERSION_STRING="\"Sleepycat Software: Berkeley DB 4.0.7: (October 14, 2001)\""
d1274 1
a1274 1
  { { echo "$as_me:1275: error: --enable-bigfile no longer supported, use --enable-largefile" >&5
d1279 1
a1279 1
echo "$as_me:1280: checking if --enable-compat185 option specified" >&5
d1288 1
a1288 1
echo "$as_me:1289: result: $db_cv_compat185" >&5
d1291 1
a1291 1
echo "$as_me:1292: checking if --enable-cxx option specified" >&5
d1300 1
a1300 1
echo "$as_me:1301: result: $db_cv_cxx" >&5
d1303 1
a1303 1
echo "$as_me:1304: checking if --enable-debug option specified" >&5
d1312 1
a1312 1
echo "$as_me:1313: result: $db_cv_debug" >&5
d1315 1
a1315 1
echo "$as_me:1316: checking if --enable-debug_rop option specified" >&5
d1324 1
a1324 1
echo "$as_me:1325: result: $db_cv_debug_rop" >&5
d1327 1
a1327 1
echo "$as_me:1328: checking if --enable-debug_wop option specified" >&5
d1336 1
a1336 1
echo "$as_me:1337: result: $db_cv_debug_wop" >&5
d1339 1
a1339 1
echo "$as_me:1340: checking if --enable-diagnostic option specified" >&5
d1348 1
a1348 1
echo "$as_me:1349: result: $db_cv_diagnostic" >&5
d1351 1
a1351 1
echo "$as_me:1352: checking if --enable-dump185 option specified" >&5
d1360 1
a1360 1
echo "$as_me:1361: result: $db_cv_dump185" >&5
d1363 1
a1363 1
echo "$as_me:1364: checking if --enable-java option specified" >&5
d1372 1
a1372 1
echo "$as_me:1373: result: $db_cv_java" >&5
d1375 1
a1375 1
echo "$as_me:1376: checking if --enable-posixmutexes option specified" >&5
d1384 1
a1384 1
echo "$as_me:1385: result: $db_cv_posixmutexes" >&5
d1387 1
a1387 1
echo "$as_me:1388: checking if --enable-rpc option specified" >&5
d1396 1
a1396 1
echo "$as_me:1397: result: $db_cv_rpc" >&5
d1399 1
a1399 1
echo "$as_me:1400: checking if --enable-tcl option specified" >&5
d1408 1
a1408 1
echo "$as_me:1409: result: $db_cv_tcl" >&5
d1411 1
a1411 1
echo "$as_me:1412: checking if --enable-test option specified" >&5
d1420 1
a1420 1
echo "$as_me:1421: result: $db_cv_test" >&5
d1423 1
a1423 1
echo "$as_me:1424: checking if --enable-uimutexes option specified" >&5
d1432 1
a1432 1
echo "$as_me:1433: result: $db_cv_uimutexes" >&5
d1435 1
a1435 1
echo "$as_me:1436: checking if --enable-umrw option specified" >&5
d1444 1
a1444 1
echo "$as_me:1445: result: $db_cv_umrw" >&5
d1447 1
a1447 1
echo "$as_me:1448: checking if --with-embedix=DIR option specified" >&5
d1459 1
a1459 1
	echo "$as_me:1460: result: $with_embedix" >&5
d1468 1
a1468 1
	echo "$as_me:1469: result: $db_cv_path_embedix_install" >&5
d1472 1
a1472 1
echo "$as_me:1473: checking if --with-rpm=DIR option specified" >&5
d1486 1
a1486 1
		{ { echo "$as_me:1487: error: --with-rpm requires a directory argument" >&5
d1493 1
a1493 1
echo "$as_me:1494: result: $with_rpm" >&5
d1496 1
a1496 1
echo "$as_me:1497: checking if --with-tcl=DIR option specified" >&5
d1506 1
a1506 1
echo "$as_me:1507: result: $with_tclconfig" >&5
d1512 1
a1512 1
echo "$as_me:1513: checking if --with-uniquename=NAME option specified" >&5
d1524 1
a1524 1
	echo "$as_me:1525: result: $with_uniquename" >&5
d1531 1
a1531 1
	echo "$as_me:1532: result: $DB_VERSION_UNIQUE_NAME" >&5
d1538 1
a1538 1
		{ { echo "$as_me:1539: error: --with-embedix requires --with-rpm" >&5
d1547 1
a1547 1
		{ { echo "$as_me:1548: error: --enable-test requires --enable-tcl" >&5
d1590 1
a1590 1
echo "$as_me:1591: checking for $ac_word" >&5
d1605 1
a1605 1
echo "$as_me:1606: found $ac_dir/$ac_word" >&5
d1613 1
a1613 1
  echo "$as_me:1614: result: $db_cv_path_ar" >&5
d1616 1
a1616 1
  echo "$as_me:1617: result: no" >&5
d1625 1
a1625 1
echo "$as_me:1626: checking for $ac_word" >&5
d1640 1
a1640 1
echo "$as_me:1641: found $ac_dir/$ac_word" >&5
d1649 1
a1649 1
  echo "$as_me:1650: result: $ac_ct_db_cv_path_ar" >&5
d1652 1
a1652 1
  echo "$as_me:1653: result: no" >&5
d1662 1
a1662 1
	{ { echo "$as_me:1663: error: No ar utility found." >&5
d1670 1
a1670 1
echo "$as_me:1671: checking for $ac_word" >&5
d1685 1
a1685 1
echo "$as_me:1686: found $ac_dir/$ac_word" >&5
d1693 1
a1693 1
  echo "$as_me:1694: result: $db_cv_path_chmod" >&5
d1696 1
a1696 1
  echo "$as_me:1697: result: no" >&5
d1705 1
a1705 1
echo "$as_me:1706: checking for $ac_word" >&5
d1720 1
a1720 1
echo "$as_me:1721: found $ac_dir/$ac_word" >&5
d1729 1
a1729 1
  echo "$as_me:1730: result: $ac_ct_db_cv_path_chmod" >&5
d1732 1
a1732 1
  echo "$as_me:1733: result: no" >&5
d1742 1
a1742 1
	{ { echo "$as_me:1743: error: No chmod utility found." >&5
d1750 1
a1750 1
echo "$as_me:1751: checking for $ac_word" >&5
d1765 1
a1765 1
echo "$as_me:1766: found $ac_dir/$ac_word" >&5
d1773 1
a1773 1
  echo "$as_me:1774: result: $db_cv_path_cp" >&5
d1776 1
a1776 1
  echo "$as_me:1777: result: no" >&5
d1785 1
a1785 1
echo "$as_me:1786: checking for $ac_word" >&5
d1800 1
a1800 1
echo "$as_me:1801: found $ac_dir/$ac_word" >&5
d1809 1
a1809 1
  echo "$as_me:1810: result: $ac_ct_db_cv_path_cp" >&5
d1812 1
a1812 1
  echo "$as_me:1813: result: no" >&5
d1822 1
a1822 1
	{ { echo "$as_me:1823: error: No cp utility found." >&5
d1831 1
a1831 1
echo "$as_me:1832: checking for $ac_word" >&5
d1846 1
a1846 1
echo "$as_me:1847: found $ac_dir/$ac_word" >&5
d1854 1
a1854 1
  echo "$as_me:1855: result: $path_ldconfig" >&5
d1857 1
a1857 1
  echo "$as_me:1858: result: no" >&5
d1866 1
a1866 1
echo "$as_me:1867: checking for $ac_word" >&5
d1881 1
a1881 1
echo "$as_me:1882: found $ac_dir/$ac_word" >&5
d1890 1
a1890 1
  echo "$as_me:1891: result: $ac_ct_path_ldconfig" >&5
d1893 1
a1893 1
  echo "$as_me:1894: result: no" >&5
d1904 1
a1904 1
echo "$as_me:1905: checking for $ac_word" >&5
d1921 1
a1921 1
   echo "$as_me:1922: found $ac_dir/$ac_word" >&5
d1933 1
a1933 1
  echo "$as_me:1934: result: $db_cv_path_ldconfig" >&5
d1936 1
a1936 1
  echo "$as_me:1937: result: no" >&5
d1949 1
a1949 1
echo "$as_me:1950: checking for $ac_word" >&5
d1964 1
a1964 1
echo "$as_me:1965: found $ac_dir/$ac_word" >&5
d1972 1
a1972 1
  echo "$as_me:1973: result: $db_cv_path_ln" >&5
d1975 1
a1975 1
  echo "$as_me:1976: result: no" >&5
d1984 1
a1984 1
echo "$as_me:1985: checking for $ac_word" >&5
d1999 1
a1999 1
echo "$as_me:2000: found $ac_dir/$ac_word" >&5
d2008 1
a2008 1
  echo "$as_me:2009: result: $ac_ct_db_cv_path_ln" >&5
d2011 1
a2011 1
  echo "$as_me:2012: result: no" >&5
d2021 1
a2021 1
	{ { echo "$as_me:2022: error: No ln utility found." >&5
d2029 1
a2029 1
echo "$as_me:2030: checking for $ac_word" >&5
d2044 1
a2044 1
echo "$as_me:2045: found $ac_dir/$ac_word" >&5
d2052 1
a2052 1
  echo "$as_me:2053: result: $db_cv_path_mkdir" >&5
d2055 1
a2055 1
  echo "$as_me:2056: result: no" >&5
d2064 1
a2064 1
echo "$as_me:2065: checking for $ac_word" >&5
d2079 1
a2079 1
echo "$as_me:2080: found $ac_dir/$ac_word" >&5
d2088 1
a2088 1
  echo "$as_me:2089: result: $ac_ct_db_cv_path_mkdir" >&5
d2091 1
a2091 1
  echo "$as_me:2092: result: no" >&5
d2101 1
a2101 1
	{ { echo "$as_me:2102: error: No mkdir utility found." >&5
d2111 1
a2111 1
echo "$as_me:2112: checking for $ac_word" >&5
d2126 1
a2126 1
echo "$as_me:2127: found $ac_dir/$ac_word" >&5
d2134 1
a2134 1
  echo "$as_me:2135: result: $path_ranlib" >&5
d2137 1
a2137 1
  echo "$as_me:2138: result: no" >&5
d2146 1
a2146 1
echo "$as_me:2147: checking for $ac_word" >&5
d2161 1
a2161 1
echo "$as_me:2162: found $ac_dir/$ac_word" >&5
d2170 1
a2170 1
  echo "$as_me:2171: result: $ac_ct_path_ranlib" >&5
d2173 1
a2173 1
  echo "$as_me:2174: result: no" >&5
d2184 1
a2184 1
echo "$as_me:2185: checking for $ac_word" >&5
d2201 1
a2201 1
   echo "$as_me:2202: found $ac_dir/$ac_word" >&5
d2213 1
a2213 1
  echo "$as_me:2214: result: $db_cv_path_ranlib" >&5
d2216 1
a2216 1
  echo "$as_me:2217: result: no" >&5
d2223 1
a2223 1
echo "$as_me:2224: checking for $ac_word" >&5
d2238 1
a2238 1
echo "$as_me:2239: found $ac_dir/$ac_word" >&5
d2246 1
a2246 1
  echo "$as_me:2247: result: $db_cv_path_rm" >&5
d2249 1
a2249 1
  echo "$as_me:2250: result: no" >&5
d2258 1
a2258 1
echo "$as_me:2259: checking for $ac_word" >&5
d2273 1
a2273 1
echo "$as_me:2274: found $ac_dir/$ac_word" >&5
d2282 1
a2282 1
  echo "$as_me:2283: result: $ac_ct_db_cv_path_rm" >&5
d2285 1
a2285 1
  echo "$as_me:2286: result: no" >&5
d2295 1
a2295 1
	{ { echo "$as_me:2296: error: No rm utility found." >&5
d2304 1
a2304 1
echo "$as_me:2305: checking for $ac_word" >&5
d2319 1
a2319 1
echo "$as_me:2320: found $ac_dir/$ac_word" >&5
d2327 1
a2327 1
  echo "$as_me:2328: result: $db_cv_path_rpm" >&5
d2330 1
a2330 1
  echo "$as_me:2331: result: no" >&5
d2339 1
a2339 1
echo "$as_me:2340: checking for $ac_word" >&5
d2354 1
a2354 1
echo "$as_me:2355: found $ac_dir/$ac_word" >&5
d2363 1
a2363 1
  echo "$as_me:2364: result: $ac_ct_db_cv_path_rpm" >&5
d2366 1
a2366 1
  echo "$as_me:2367: result: no" >&5
d2376 1
a2376 1
		{ { echo "$as_me:2377: error: No rpm utility found." >&5
d2387 1
a2387 1
echo "$as_me:2388: checking for $ac_word" >&5
d2402 1
a2402 1
echo "$as_me:2403: found $ac_dir/$ac_word" >&5
d2410 1
a2410 1
  echo "$as_me:2411: result: $path_sh" >&5
d2413 1
a2413 1
  echo "$as_me:2414: result: no" >&5
d2422 1
a2422 1
echo "$as_me:2423: checking for $ac_word" >&5
d2437 1
a2437 1
echo "$as_me:2438: found $ac_dir/$ac_word" >&5
d2446 1
a2446 1
  echo "$as_me:2447: result: $ac_ct_path_sh" >&5
d2449 1
a2449 1
  echo "$as_me:2450: result: no" >&5
d2460 1
a2460 1
echo "$as_me:2461: checking for $ac_word" >&5
d2477 1
a2477 1
   echo "$as_me:2478: found $ac_dir/$ac_word" >&5
d2489 1
a2489 1
  echo "$as_me:2490: result: $db_cv_path_sh" >&5
d2492 1
a2492 1
  echo "$as_me:2493: result: no" >&5
d2497 1
a2497 1
	{ { echo "$as_me:2498: error: No sh utility found." >&5
d2502 3
a2504 5
# Don't strip the binaries if --enable-debug was specified.
if test "$db_cv_debug" = yes; then
	db_cv_path_strip=debug_build_no_strip
else
	if test -n "$ac_tool_prefix"; then
d2507 1
a2507 1
echo "$as_me:2510: checking for $ac_word" >&5
d2522 1
a2522 1
echo "$as_me:2525: found $ac_dir/$ac_word" >&5
d2530 1
a2530 1
  echo "$as_me:2533: result: $path_strip" >&5
d2533 1
a2533 1
  echo "$as_me:2536: result: no" >&5
d2542 1
a2542 1
echo "$as_me:2545: checking for $ac_word" >&5
d2557 1
a2557 1
echo "$as_me:2560: found $ac_dir/$ac_word" >&5
d2566 1
a2566 1
  echo "$as_me:2569: result: $ac_ct_path_strip" >&5
d2569 1
a2569 1
  echo "$as_me:2572: result: no" >&5
d2578 1
a2578 1
	# Extract the first word of "$path_strip", so it can be a program name with args.
d2580 1
a2580 1
echo "$as_me:2583: checking for $ac_word" >&5
d2597 1
a2597 1
   echo "$as_me:2600: found $ac_dir/$ac_word" >&5
d2609 1
a2609 1
  echo "$as_me:2612: result: $db_cv_path_strip" >&5
d2612 1
a2612 1
  echo "$as_me:2615: result: no" >&5
d2616 4
d2626 1
a2626 1
echo "$as_me:2625: checking for $ac_word" >&5
d2641 1
a2641 1
echo "$as_me:2640: found $ac_dir/$ac_word" >&5
d2649 1
a2649 1
  echo "$as_me:2648: result: $db_cv_path_kill" >&5
d2652 1
a2652 1
  echo "$as_me:2651: result: no" >&5
d2661 1
a2661 1
echo "$as_me:2660: checking for $ac_word" >&5
d2676 1
a2676 1
echo "$as_me:2675: found $ac_dir/$ac_word" >&5
d2685 1
a2685 1
  echo "$as_me:2684: result: $ac_ct_db_cv_path_kill" >&5
d2688 1
a2688 1
  echo "$as_me:2687: result: no" >&5
d2698 1
a2698 1
		{ { echo "$as_me:2697: error: No kill utility found." >&5
d2716 1
a2716 1
echo "$as_me:2715: checking for a BSD compatible install" >&5
d2765 1
a2765 1
echo "$as_me:2764: result: $INSTALL" >&5
d2811 20
a2830 29
aix4.3.12)
	optimize_def="-O2"
	CC=${CC-"xlc_r"}
	CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
	LIBTSO_LIBS="\$(LIBS)";;
aix4.3.3)
	optimize_def="-O2"
	CC=${CC-"xlc_r"}
	CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
	LDFLAGS="$LDFLAGS -pthread"
	LIBTSO_LIBS="\$(LIBS)";;
bsdi3*)	optimize_def="-O2"
	CC=${CC-"shlicc2"}
	LIBS="$LIBS -lipc";;
bsdi*)	optimize_def="-O2";;
freebsd*)
	optimize_def="-O2"
	CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
	LDFLAGS="$LDFLAGS -pthread";;
hpux*)	CPPFLAGS="$CPPFLAGS -D_REENTRANT";;
irix*)	optimize_def="-O2"
	CPPFLAGS="$CPPFLAGS -D_SGI_MP_SOURCE";;
linux*)	optimize_def="-O2"
	CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_REENTRANT";;
mpeix*)	CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE -D_SOCKET_SOURCE"
	LIBS="$LIBS -lsocket -lsvipc";;
osf*)	CPPFLAGS="$CPPFLAGS -D_REENTRANT"
	LDFLAGS="$LDFLAGS -pthread";;
*qnx)	cat >>confdefs.h <<\EOF
d2835 5
a2839 7
sco3.2v4*)
	CC=${CC-"cc -belf"}
	LIBS="$LIBS -lsocket -lnsl_s";;
sco*)	CC=${CC-"cc -belf"}
	LIBS="$LIBS -lsocket -lnsl";;
solaris*)
	CPPFLAGS="$CPPFLAGS -D_REENTRANT";;
d2868 1
a2868 1
echo "$as_me:2878: checking for $ac_word" >&5
d2883 1
a2883 1
echo "$as_me:2893: found $ac_dir/$ac_word" >&5
d2891 1
a2891 1
  echo "$as_me:2901: result: $CC" >&5
d2894 1
a2894 1
  echo "$as_me:2904: result: no" >&5
d2903 1
a2903 1
echo "$as_me:2913: checking for $ac_word" >&5
d2918 1
a2918 1
echo "$as_me:2928: found $ac_dir/$ac_word" >&5
d2926 1
a2926 1
  echo "$as_me:2936: result: $ac_ct_CC" >&5
d2929 1
a2929 1
  echo "$as_me:2939: result: no" >&5
d2941 1
a2941 1
echo "$as_me:2951: checking for $ac_word" >&5
d2956 1
a2956 1
echo "$as_me:2966: found $ac_dir/$ac_word" >&5
d2964 1
a2964 1
  echo "$as_me:2974: result: $CC" >&5
d2967 1
a2967 1
  echo "$as_me:2977: result: no" >&5
d2976 1
a2976 1
echo "$as_me:2986: checking for $ac_word" >&5
d2991 1
a2991 1
echo "$as_me:3001: found $ac_dir/$ac_word" >&5
d2999 1
a2999 1
  echo "$as_me:3009: result: $ac_ct_CC" >&5
d3002 1
a3002 1
  echo "$as_me:3012: result: no" >&5
d3019 1
a3019 1
echo "$as_me:3029: checking for $ac_word" >&5
d3034 1
a3034 1
echo "$as_me:3044: found $ac_dir/$ac_word" >&5
d3042 1
a3042 1
  echo "$as_me:3052: result: $CC" >&5
d3045 1
a3045 1
  echo "$as_me:3055: result: no" >&5
d3054 1
a3054 1
echo "$as_me:3064: checking for $ac_word" >&5
d3069 1
a3069 1
echo "$as_me:3079: found $ac_dir/$ac_word" >&5
d3077 1
a3077 1
  echo "$as_me:3087: result: $ac_ct_CC" >&5
d3080 1
a3080 1
  echo "$as_me:3090: result: no" >&5
d3093 1
a3093 1
echo "$as_me:3103: checking for $ac_word" >&5
d3108 1
a3108 1
echo "$as_me:3118: found $ac_dir/$ac_word" >&5
d3116 1
a3116 1
  echo "$as_me:3126: result: $CC" >&5
d3119 1
a3119 1
  echo "$as_me:3129: result: no" >&5
d3128 1
a3128 1
echo "$as_me:3138: checking for $ac_word" >&5
d3143 1
a3143 1
echo "$as_me:3153: found $ac_dir/$ac_word" >&5
d3151 1
a3151 1
  echo "$as_me:3161: result: $ac_ct_CC" >&5
d3154 1
a3154 1
  echo "$as_me:3164: result: no" >&5
d3167 1
a3167 1
echo "$as_me:3177: checking for $ac_word" >&5
d3187 1
a3187 1
echo "$as_me:3197: found $ac_dir/$ac_word" >&5
d3209 1
a3209 1
  echo "$as_me:3219: result: $CC" >&5
d3212 1
a3212 1
  echo "$as_me:3222: result: no" >&5
d3223 1
a3223 1
echo "$as_me:3233: checking for $ac_word" >&5
d3238 1
a3238 1
echo "$as_me:3248: found $ac_dir/$ac_word" >&5
d3246 1
a3246 1
  echo "$as_me:3256: result: $CC" >&5
d3249 1
a3249 1
  echo "$as_me:3259: result: no" >&5
d3262 1
a3262 1
echo "$as_me:3272: checking for $ac_word" >&5
d3277 1
a3277 1
echo "$as_me:3287: found $ac_dir/$ac_word" >&5
d3285 1
a3285 1
  echo "$as_me:3295: result: $ac_ct_CC" >&5
d3288 1
a3288 1
  echo "$as_me:3298: result: no" >&5
d3300 1
a3300 1
test -z "$CC" && { { echo "$as_me:3310: error: no acceptable cc found in \$PATH" >&5
d3305 1
a3305 1
#line 3315 "configure"
d3321 1
a3321 1
echo "$as_me:3331: checking for C compiler default output" >&5
d3324 1
a3324 1
if { (eval echo "$as_me:3334: \"$ac_link_default\"") >&5
d3327 1
a3327 1
  echo "$as_me:3337: \$? = $ac_status" >&5
d3344 1
a3344 1
{ { echo "$as_me:3354: error: C compiler cannot create executables" >&5
d3350 1
a3350 1
echo "$as_me:3360: result: $ac_file" >&5
d3355 1
a3355 1
echo "$as_me:3365: checking whether the C compiler works" >&5
d3361 1
a3361 1
  { (eval echo "$as_me:3371: \"$ac_try\"") >&5
d3364 1
a3364 1
  echo "$as_me:3374: \$? = $ac_status" >&5
d3371 1
a3371 1
	{ { echo "$as_me:3381: error: cannot run C compiled programs.
d3379 1
a3379 1
echo "$as_me:3389: result: yes" >&5
d3386 1
a3386 1
echo "$as_me:3396: checking whether we are cross compiling" >&5
d3388 1
a3388 1
echo "$as_me:3398: result: $cross_compiling" >&5
d3391 1
a3391 1
echo "$as_me:3401: checking for executable suffix" >&5
d3393 1
a3393 1
if { (eval echo "$as_me:3403: \"$ac_link\"") >&5
d3396 1
a3396 1
  echo "$as_me:3406: \$? = $ac_status" >&5
d3412 1
a3412 1
  { { echo "$as_me:3422: error: cannot compute EXEEXT: cannot compile and link" >&5
d3418 1
a3418 1
echo "$as_me:3428: result: $ac_cv_exeext" >&5
d3424 1
a3424 1
echo "$as_me:3434: checking for object suffix" >&5
d3430 1
a3430 1
#line 3440 "configure"
d3442 1
a3442 1
if { (eval echo "$as_me:3452: \"$ac_compile\"") >&5
d3445 1
a3445 1
  echo "$as_me:3455: \$? = $ac_status" >&5
d3457 1
a3457 1
{ { echo "$as_me:3467: error: cannot compute OBJEXT: cannot compile" >&5
d3464 1
a3464 1
echo "$as_me:3474: result: $ac_cv_objext" >&5
d3468 1
a3468 1
echo "$as_me:3478: checking whether we are using the GNU C compiler" >&5
d3474 1
a3474 1
#line 3484 "configure"
d3489 1
a3489 1
if { (eval echo "$as_me:3499: \"$ac_compile\"") >&5
d3492 1
a3492 1
  echo "$as_me:3502: \$? = $ac_status" >&5
d3495 1
a3495 1
  { (eval echo "$as_me:3505: \"$ac_try\"") >&5
d3498 1
a3498 1
  echo "$as_me:3508: \$? = $ac_status" >&5
d3510 1
a3510 1
echo "$as_me:3520: result: $ac_cv_c_compiler_gnu" >&5
d3516 1
a3516 1
echo "$as_me:3526: checking whether $CC accepts -g" >&5
d3522 1
a3522 1
#line 3532 "configure"
d3534 1
a3534 1
if { (eval echo "$as_me:3544: \"$ac_compile\"") >&5
d3537 1
a3537 1
  echo "$as_me:3547: \$? = $ac_status" >&5
d3540 1
a3540 1
  { (eval echo "$as_me:3550: \"$ac_try\"") >&5
d3543 1
a3543 1
  echo "$as_me:3553: \$? = $ac_status" >&5
d3553 1
a3553 1
echo "$as_me:3563: result: $ac_cv_prog_cc_g" >&5
d3580 1
a3580 1
if { (eval echo "$as_me:3590: \"$ac_compile\"") >&5
d3583 1
a3583 1
  echo "$as_me:3593: \$? = $ac_status" >&5
d3586 1
a3586 1
  { (eval echo "$as_me:3596: \"$ac_try\"") >&5
d3589 1
a3589 1
  echo "$as_me:3599: \$? = $ac_status" >&5
d3601 1
a3601 1
#line 3611 "configure"
d3614 1
a3614 1
if { (eval echo "$as_me:3624: \"$ac_compile\"") >&5
d3617 1
a3617 1
  echo "$as_me:3627: \$? = $ac_status" >&5
d3620 1
a3620 1
  { (eval echo "$as_me:3630: \"$ac_try\"") >&5
d3623 1
a3623 1
  echo "$as_me:3633: \$? = $ac_status" >&5
d3633 1
a3633 1
#line 3643 "configure"
d3645 1
a3645 1
if { (eval echo "$as_me:3655: \"$ac_compile\"") >&5
d3648 1
a3648 1
  echo "$as_me:3658: \$? = $ac_status" >&5
d3651 1
a3651 1
  { (eval echo "$as_me:3661: \"$ac_try\"") >&5
d3654 1
a3654 1
  echo "$as_me:3664: \$? = $ac_status" >&5
d3681 2
a3682 2
MAKEFILE_CC="${CC}"
MAKEFILE_CCLINK="${CC}"
d3699 1
a3699 1
echo "$as_me:3709: checking for $ac_word" >&5
d3714 1
a3714 1
echo "$as_me:3724: found $ac_dir/$ac_word" >&5
d3722 1
a3722 1
  echo "$as_me:3732: result: $CCC" >&5
d3725 1
a3725 1
  echo "$as_me:3735: result: no" >&5
d3734 1
a3734 1
echo "$as_me:3744: checking for $ac_word" >&5
d3749 1
a3749 1
echo "$as_me:3759: found $ac_dir/$ac_word" >&5
d3757 1
a3757 1
  echo "$as_me:3767: result: $ac_ct_CCC" >&5
d3760 1
a3760 1
  echo "$as_me:3770: result: no" >&5
d3768 1
a3768 3

				LIBXSO_LIBS="-lC_r $LIBXSO_LIBS"
				LIBS="-lC_r $LIBS";;
d3772 1
a3772 1
echo "$as_me:3784: checking for $ac_word" >&5
d3787 1
a3787 1
echo "$as_me:3799: found $ac_dir/$ac_word" >&5
d3795 1
a3795 1
  echo "$as_me:3807: result: $CCC" >&5
d3798 1
a3798 1
  echo "$as_me:3810: result: no" >&5
d3807 1
a3807 1
echo "$as_me:3819: checking for $ac_word" >&5
d3822 1
a3822 1
echo "$as_me:3834: found $ac_dir/$ac_word" >&5
d3830 1
a3830 1
  echo "$as_me:3842: result: $ac_ct_CCC" >&5
d3833 1
a3833 1
  echo "$as_me:3845: result: no" >&5
d3845 1
a3845 1
echo "$as_me:3857: checking for $ac_word" >&5
d3860 1
a3860 1
echo "$as_me:3872: found $ac_dir/$ac_word" >&5
d3868 1
a3868 1
  echo "$as_me:3880: result: $CCC" >&5
d3871 1
a3871 1
  echo "$as_me:3883: result: no" >&5
d3880 1
a3880 1
echo "$as_me:3892: checking for $ac_word" >&5
d3895 1
a3895 1
echo "$as_me:3907: found $ac_dir/$ac_word" >&5
d3903 1
a3903 1
  echo "$as_me:3915: result: $ac_ct_CCC" >&5
d3906 1
a3906 1
  echo "$as_me:3918: result: no" >&5
d3918 1
a3918 1
echo "$as_me:3930: checking for $ac_word" >&5
d3933 1
a3933 1
echo "$as_me:3945: found $ac_dir/$ac_word" >&5
d3941 1
a3941 1
  echo "$as_me:3953: result: $CCC" >&5
d3944 1
a3944 1
  echo "$as_me:3956: result: no" >&5
d3953 1
a3953 1
echo "$as_me:3965: checking for $ac_word" >&5
d3968 1
a3968 1
echo "$as_me:3980: found $ac_dir/$ac_word" >&5
d3976 1
a3976 1
  echo "$as_me:3988: result: $ac_ct_CCC" >&5
d3979 1
a3979 1
  echo "$as_me:3991: result: no" >&5
d4000 1
a4000 1
echo "$as_me:4012: checking for $ac_word" >&5
d4015 1
a4015 1
echo "$as_me:4027: found $ac_dir/$ac_word" >&5
d4023 1
a4023 1
  echo "$as_me:4035: result: $CXX" >&5
d4026 1
a4026 1
  echo "$as_me:4038: result: no" >&5
d4039 1
a4039 1
echo "$as_me:4051: checking for $ac_word" >&5
d4054 1
a4054 1
echo "$as_me:4066: found $ac_dir/$ac_word" >&5
d4062 1
a4062 1
  echo "$as_me:4074: result: $ac_ct_CXX" >&5
d4065 1
a4065 1
  echo "$as_me:4077: result: no" >&5
d4076 1
a4076 1
echo "$as_me:4088: checking whether we are using the GNU C++ compiler" >&5
d4082 1
a4082 1
#line 4094 "configure"
d4097 1
a4097 1
if { (eval echo "$as_me:4109: \"$ac_compile\"") >&5
d4100 1
a4100 1
  echo "$as_me:4112: \$? = $ac_status" >&5
d4103 1
a4103 1
  { (eval echo "$as_me:4115: \"$ac_try\"") >&5
d4106 1
a4106 1
  echo "$as_me:4118: \$? = $ac_status" >&5
d4118 1
a4118 1
echo "$as_me:4130: result: $ac_cv_cxx_compiler_gnu" >&5
d4124 1
a4124 1
echo "$as_me:4136: checking whether $CXX accepts -g" >&5
d4130 1
a4130 1
#line 4142 "configure"
d4142 1
a4142 1
if { (eval echo "$as_me:4154: \"$ac_compile\"") >&5
d4145 1
a4145 1
  echo "$as_me:4157: \$? = $ac_status" >&5
d4148 1
a4148 1
  { (eval echo "$as_me:4160: \"$ac_try\"") >&5
d4151 1
a4151 1
  echo "$as_me:4163: \$? = $ac_status" >&5
d4161 1
a4161 1
echo "$as_me:4173: result: $ac_cv_prog_cxx_g" >&5
d4188 1
a4188 1
#line 4200 "configure"
d4201 1
a4201 1
if { (eval echo "$as_me:4213: \"$ac_compile\"") >&5
d4204 1
a4204 1
  echo "$as_me:4216: \$? = $ac_status" >&5
d4207 1
a4207 1
  { (eval echo "$as_me:4219: \"$ac_try\"") >&5
d4210 1
a4210 1
  echo "$as_me:4222: \$? = $ac_status" >&5
d4220 1
a4220 1
#line 4232 "configure"
d4232 1
a4232 1
if { (eval echo "$as_me:4244: \"$ac_compile\"") >&5
d4235 1
a4235 1
  echo "$as_me:4247: \$? = $ac_status" >&5
d4238 1
a4238 1
  { (eval echo "$as_me:4250: \"$ac_try\"") >&5
d4241 1
a4241 1
  echo "$as_me:4253: \$? = $ac_status" >&5
d4260 2
a4261 2
	MAKEFILE_CXX="${CXX}"
	MAKEFILE_CXXLINK="${CXX}"
d4267 1
a4267 1
    echo "$as_me:4279: checking for gcc 2.96 for-loop bug" >&5
d4274 1
a4274 1
  { { echo "$as_me:4286: error: cannot run test program while cross compiling" >&5
d4279 1
a4279 1
#line 4291 "configure"
d4297 1
a4297 1
if { (eval echo "$as_me:4309: \"$ac_link\"") >&5
d4300 1
a4300 1
  echo "$as_me:4312: \$? = $ac_status" >&5
d4302 1
a4302 1
  { (eval echo "$as_me:4314: \"$ac_try\"") >&5
d4305 1
a4305 1
  echo "$as_me:4317: \$? = $ac_status" >&5
d4317 1
a4317 1
echo "$as_me:4329: result: $db_cv_gcc_2_96_forloop_bug" >&5
d4322 1
a4322 1
	{ echo "$as_me:4334: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&5
d4324 1
a4324 1
	{ echo "$as_me:4336: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&5
a4409 10
# Find the correct PATH separator.  Usually this is `:', but
# DJGPP uses `;' like DOS.
if test "X${PATH_SEPARATOR+set}" != Xset; then
  UNAME=${UNAME-`uname 2>/dev/null`}
  case X$UNAME in
    *-DOS) lt_cv_sys_path_separator=';' ;;
    *)     lt_cv_sys_path_separator=':' ;;
  esac
  PATH_SEPARATOR=$lt_cv_sys_path_separator
fi
d4421 1
a4421 1
  echo "$as_me:4443: checking for ld used by GCC" >&5
d4451 1
a4451 1
  echo "$as_me:4473: checking for GNU ld" >&5
d4454 1
a4454 1
  echo "$as_me:4476: checking for non-GNU ld" >&5
d4461 1
a4461 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d4484 1
a4484 1
  echo "$as_me:4506: result: $LD" >&5
d4487 1
a4487 1
  echo "$as_me:4509: result: no" >&5
d4490 1
a4490 1
test -z "$LD" && { { echo "$as_me:4512: error: no acceptable ld found in \$PATH" >&5
d4493 1
a4493 1
echo "$as_me:4515: checking if the linker ($LD) is GNU ld" >&5
d4505 1
a4505 1
echo "$as_me:4527: result: $lt_cv_prog_gnu_ld" >&5
d4509 1
a4509 1
echo "$as_me:4531: checking for $LD option to reload object files" >&5
d4516 1
a4516 1
echo "$as_me:4538: result: $lt_cv_ld_reload_flag" >&5
d4521 1
a4521 1
echo "$as_me:4543: checking for BSD-compatible nm" >&5
d4530 1
a4530 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d4557 1
a4557 1
echo "$as_me:4579: result: $NM" >&5
d4560 1
a4560 1
echo "$as_me:4582: checking whether ln -s works" >&5
d4564 1
a4564 1
  echo "$as_me:4586: result: yes" >&5
d4567 1
a4567 1
  echo "$as_me:4589: result: no, using $LN_S" >&5
d4571 1
a4571 1
echo "$as_me:4593: checking how to recognise dependant libraries" >&5
d4585 1
a4585 1
# 'file_magic [[regex]]' -- check by looking for files in library path
d4614 1
a4614 1
  rhapsody* | darwin1.[012])
d4673 1
a4673 1
  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
d4696 2
d4699 1
a4699 11
  lt_cv_deplibs_check_method=unknown
  ;;

openbsd*)
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  else
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  fi
d4745 1
a4745 1
echo "$as_me:4775: result: $lt_cv_deplibs_check_method" >&5
d4751 1
a4751 1
echo "$as_me:4781: checking command to parse $NM output" >&5
a4771 3
# Transform an extracted symbol line into symbol name and symbol address
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"

a4781 1
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
d4828 1
a4828 1
  if { (eval echo "$as_me:4862: \"$ac_compile\"") >&5
d4831 1
a4831 1
  echo "$as_me:4865: \$? = $ac_status" >&5
d4835 1
a4835 1
    if { (eval echo "$as_me:4869: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
d4838 1
a4838 1
  echo "$as_me:4872: \$? = $ac_status" >&5
d4861 1
a4861 1
# define lt_ptr void *
d4863 1
a4863 1
# define lt_ptr char *
d4870 1
a4870 1
  lt_ptr address;
d4875 1
a4875 1
	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
d4877 1
a4877 1
  {0, (lt_ptr) 0}
d4890 1
a4890 1
	  if { (eval echo "$as_me:4924: \"$ac_link\"") >&5
d4893 1
a4893 1
  echo "$as_me:4927: \$? = $ac_status" >&5
a4926 1
  global_symbol_to_c_name_address=
a4928 1
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
d4930 2
a4931 3
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
then
  echo "$as_me:4968: result: failed" >&5
d4934 1
a4934 1
  echo "$as_me:4971: result: ok" >&5
d4943 1
a4943 1
echo "$as_me:4980: checking how to run the C preprocessor" >&5
d4965 1
a4965 1
#line 5002 "configure"
d4970 1
a4970 1
if { (eval echo "$as_me:5007: \"$ac_cpp conftest.$ac_ext\"") >&5
d4976 1
a4976 1
  echo "$as_me:5013: \$? = $ac_status" >&5
d4999 1
a4999 1
#line 5036 "configure"
d5003 1
a5003 1
if { (eval echo "$as_me:5040: \"$ac_cpp conftest.$ac_ext\"") >&5
d5009 1
a5009 1
  echo "$as_me:5046: \$? = $ac_status" >&5
d5046 1
a5046 1
echo "$as_me:5083: result: $CPP" >&5
d5056 1
a5056 1
#line 5093 "configure"
d5061 1
a5061 1
if { (eval echo "$as_me:5098: \"$ac_cpp conftest.$ac_ext\"") >&5
d5067 1
a5067 1
  echo "$as_me:5104: \$? = $ac_status" >&5
d5090 1
a5090 1
#line 5127 "configure"
d5094 1
a5094 1
if { (eval echo "$as_me:5131: \"$ac_cpp conftest.$ac_ext\"") >&5
d5100 1
a5100 1
  echo "$as_me:5137: \$? = $ac_status" >&5
d5128 1
a5128 1
  { { echo "$as_me:5165: error: C preprocessor \"$CPP\" fails sanity check" >&5
d5142 1
a5142 1
echo "$as_me:5179: checking for $ac_header" >&5
d5148 1
a5148 1
#line 5185 "configure"
d5152 1
a5152 1
if { (eval echo "$as_me:5189: \"$ac_cpp conftest.$ac_ext\"") >&5
d5158 1
a5158 1
  echo "$as_me:5195: \$? = $ac_status" >&5
d5177 1
a5177 1
echo "$as_me:5214: result: `eval echo '${'$ac_ac_Header'}'`" >&5
d5191 1
a5191 1
    echo "$as_me:5228: checking for ${ac_tool_prefix}file" >&5
d5246 1
a5246 1
  echo "$as_me:5283: result: $MAGIC_CMD" >&5
d5249 1
a5249 1
  echo "$as_me:5286: result: no" >&5
d5255 1
a5255 1
    echo "$as_me:5292: checking for file" >&5
d5310 1
a5310 1
  echo "$as_me:5347: result: $MAGIC_CMD" >&5
d5313 1
a5313 1
  echo "$as_me:5350: result: no" >&5
d5329 1
a5329 1
echo "$as_me:5366: checking for $ac_word" >&5
d5344 1
a5344 1
echo "$as_me:5381: found $ac_dir/$ac_word" >&5
d5352 1
a5352 1
  echo "$as_me:5389: result: $RANLIB" >&5
d5355 1
a5355 1
  echo "$as_me:5392: result: no" >&5
d5364 1
a5364 1
echo "$as_me:5401: checking for $ac_word" >&5
d5379 1
a5379 1
echo "$as_me:5416: found $ac_dir/$ac_word" >&5
d5388 1
a5388 1
  echo "$as_me:5425: result: $ac_ct_RANLIB" >&5
d5391 1
a5391 1
  echo "$as_me:5428: result: no" >&5
d5403 1
a5403 1
echo "$as_me:5440: checking for $ac_word" >&5
d5418 1
a5418 1
echo "$as_me:5455: found $ac_dir/$ac_word" >&5
d5426 1
a5426 1
  echo "$as_me:5463: result: $STRIP" >&5
d5429 1
a5429 1
  echo "$as_me:5466: result: no" >&5
d5438 1
a5438 1
echo "$as_me:5475: checking for $ac_word" >&5
d5453 1
a5453 1
echo "$as_me:5490: found $ac_dir/$ac_word" >&5
d5462 1
a5462 1
  echo "$as_me:5499: result: $ac_ct_STRIP" >&5
d5465 1
a5465 1
  echo "$as_me:5502: result: no" >&5
d5489 2
a5490 2
  echo '#line 5526 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:5527: \"$ac_compile\"") >&5
d5493 1
a5493 1
  echo "$as_me:5530: \$? = $ac_status" >&5
d5514 1
a5514 1
  echo "$as_me:5551: checking whether the C compiler needs -belf" >&5
d5527 1
a5527 1
#line 5564 "configure"
d5539 1
a5539 1
if { (eval echo "$as_me:5576: \"$ac_link\"") >&5
d5542 1
a5542 1
  echo "$as_me:5579: \$? = $ac_status" >&5
d5545 1
a5545 1
  { (eval echo "$as_me:5582: \"$ac_try\"") >&5
d5548 1
a5548 1
  echo "$as_me:5585: \$? = $ac_status" >&5
d5564 1
a5564 1
echo "$as_me:5601: result: $lt_cv_cc_needs_belf" >&5
a5648 8
  case $host_os in
  openbsd*)
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
    ;;
  *)
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
    ;;
  esac
d5650 1
d5659 1
a5659 1
echo "$as_me:5703: checking for objdir" >&5
d5670 1
a5670 1
echo "$as_me:5714: result: $objdir" >&5
d5690 1
a5690 1
echo "$as_me:5734: checking for $compiler option to produce PIC" >&5
d5713 1
a5713 1
      # not sure about C++ programs.
a5747 1
      lt_cv_prog_cc_wl='-Wl,'
d5750 3
a5752 2
	# AIX 5 now supports IA64 processor
	lt_cv_prog_cc_static='-Bstatic'
d5754 1
a5754 1
	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
d5810 1
a5810 1
	lt_cv_prog_cc_wl='-LD'
d5812 1
a5812 1
	lt_cv_prog_cc_wl='-Wl,'
d5837 1
a5837 1
  echo "$as_me:5881: result: none" >&5
d5840 1
a5840 1
  echo "$as_me:5884: result: $lt_cv_prog_cc_pic" >&5
d5844 1
a5844 1
  echo "$as_me:5888: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
d5852 1
a5852 1
#line 5896 "configure"
d5864 1
a5864 1
if { (eval echo "$as_me:5908: \"$ac_compile\"") >&5
d5867 1
a5867 1
  echo "$as_me:5911: \$? = $ac_status" >&5
d5870 1
a5870 1
  { (eval echo "$as_me:5914: \"$ac_try\"") >&5
d5873 1
a5873 1
  echo "$as_me:5917: \$? = $ac_status" >&5
d5909 1
a5909 1
  echo "$as_me:5953: result: $lt_cv_prog_cc_pic_works" >&5
d5917 1
a5917 1
  { echo "$as_me:5961: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
d5921 1
a5921 1
   { echo "$as_me:5965: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
d5929 1
a5929 1
echo "$as_me:5973: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
d5938 1
a5938 1
#line 5982 "configure"
d5950 1
a5950 1
if { (eval echo "$as_me:5994: \"$ac_link\"") >&5
d5953 1
a5953 1
  echo "$as_me:5997: \$? = $ac_status" >&5
d5956 1
a5956 1
  { (eval echo "$as_me:6000: \"$ac_try\"") >&5
d5959 1
a5959 1
  echo "$as_me:6003: \$? = $ac_status" >&5
d5973 1
a5973 1
echo "$as_me:6017: result: $lt_cv_prog_cc_static_works" >&5
d5988 1
a5988 1
echo "$as_me:6032: checking if $compiler supports -c -o file.$ac_objext" >&5
d6008 1
a6008 1
if { (eval echo configure:6052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
d6032 1
a6032 1
echo "$as_me:6076: result: $compiler_c_o" >&5
d6037 1
a6037 1
  echo "$as_me:6081: checking if $compiler supports -c -o file.lo" >&5
a6045 2
  save_objext="$ac_objext"
  ac_objext=lo
d6047 1
a6047 1
#line 6093 "configure"
d6059 1
a6059 1
if { (eval echo "$as_me:6105: \"$ac_compile\"") >&5
d6062 1
a6062 1
  echo "$as_me:6108: \$? = $ac_status" >&5
d6065 1
a6065 1
  { (eval echo "$as_me:6111: \"$ac_try\"") >&5
d6068 1
a6068 1
  echo "$as_me:6114: \$? = $ac_status" >&5
a6082 1
  ac_objext="$save_objext"
d6088 2
a6089 2
  echo "$as_me:6135: result: $compiler_o_lo" >&5
echo "${ECHO_T}$compiler_o_lo" >&6
d6102 1
a6102 1
  echo "$as_me:6149: checking if we can lock with hard links" >&5
d6110 1
a6110 1
  echo "$as_me:6157: result: $hard_links" >&5
d6113 1
a6113 1
    { echo "$as_me:6160: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
d6127 1
a6127 1
  echo "$as_me:6174: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
d6134 1
a6134 1
#line 6181 "configure"
d6146 1
a6146 1
if { (eval echo "$as_me:6193: \"$ac_compile\"") >&5
d6149 1
a6149 1
  echo "$as_me:6196: \$? = $ac_status" >&5
d6152 1
a6152 1
  { (eval echo "$as_me:6199: \"$ac_try\"") >&5
d6155 1
a6155 1
  echo "$as_me:6202: \$? = $ac_status" >&5
d6171 1
a6171 1
  echo "$as_me:6218: result: $compiler_rtti_exceptions" >&5
d6186 1
a6186 1
echo "$as_me:6233: checking whether the linker ($LD) supports shared libraries" >&5
d6228 1
a6228 1
cygwin* | mingw* | pw32*)
d6236 1
a6236 3
openbsd*)
  with_gnu_ld=no
  ;;
d6323 1
a6323 1
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
d6342 1
a6342 1
	cp $export_symbols $output_objdir/$soname-def;
d6344 10
a6353 10
	echo EXPORTS > $output_objdir/$soname-def;
	_lt_hint=1;
	cat $export_symbols | while read symbol; do
	 set dummy \$symbol;
	 case \$# in
	   2) echo "   \$2 @@ \$_lt_hint ; " >> $output_objdir/$soname-def;;
	   *) echo "     \$2 @@ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
	 esac;
	 _lt_hint=`expr 1 + \$_lt_hint`;
	done;
a6447 25
    if test "$host_cpu" = ia64; then
      # On IA64, the linker does run time linking by default, so we don't
      # have to do anything special.
      aix_use_runtimelinking=no
      exp_sym_flag='-Bexport'
      no_entry_flag=""
    else
      aix_use_runtimelinking=no

      # Test if we are trying to use run time linking or normal
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
      # need to do runtime linking.
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	for ld_flag in $LDFLAGS; do
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
	done
      esac

      exp_sym_flag='-bexport'
      no_entry_flag='-bnoentry'
    fi

a6453 1
    hardcode_direct=yes
d6457 16
a6472 19
      case $host_os in aix4.[012]|aix4.[012].*)
	collect2name=`${CC} -print-prog-name=collect2`
	if test -f "$collect2name" && \
	  strings "$collect2name" | grep resolve_lib_name >/dev/null
	then
	  # We have reworked collect2
	  hardcode_direct=yes
	else
	  # We have old collect2
	  hardcode_direct=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L=yes
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_libdir_separator=
	fi
      esac

a6474 1
      # not using gcc
d6476 1
a6476 1
	shared_flag='${wl}-G'
d6478 1
a6478 5
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag='${wl}-G'
	else
	  shared_flag='${wl}-bM:SRE'
	fi
d6480 1
d6483 19
a6505 3
      # Warning - without using the other runtime loading flags (-brtl),
      # -berok will link without error, but may produce a broken library.
      allow_undefined_flag='-berok'
d6507 2
a6508 1
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d6511 3
a6513 3
	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	allow_undefined_flag="-z nodefs"
	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
d6515 7
a6521 7
	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
	# Warning - without using the other run time loading flags,
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='${wl}-berok'
	# This is a bit strange, but is similar to how AIX traditionally builds
	# it's shared libraries.
	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
d6553 1
a6553 8
    case "$host_os" in
    rhapsody* | darwin1.[012])
      allow_undefined_flag='-undefined suppress'
      ;;
    *) # Darwin 1.3 on
      allow_undefined_flag='-flat_namespace -undefined suppress'
      ;;
    esac
d6557 1
a6557 1
    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
d6632 1
a6632 1
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
d6640 2
a6643 16
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
    else
      case "$host_os" in
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	hardcode_libdir_flag_spec='-R$libdir'
        ;;
      *)
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
        ;;
      esac
    fi
a6687 1
    export_dynamic_flag_spec='${wl}-Bexport'
a6690 8
    # gcc --version < 3.0 without binutils cannot create self contained
    # shared libraries reliably, requiring libgcc.a to resolve some of
    # the object symbols generated in some cases.  Libraries that use
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
    # a copy of libgcc.a into every shared library to guarantee resolving
    # such symbols causes other problems:  According to Tim Van Holder
    # <tim.van.holder@@pandora.be>, C++ libraries end up with a separate
    # (to the application) exception stack for one thing.
a6691 20
    if test "$GCC" = yes; then
      case `$CC --version 2>/dev/null` in
      [12].*)
	cat <<EOF 1>&2

*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
*** create self contained shared libraries on Solaris systems, without
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
*** -no-undefined support, which will at least allow you to build shared
*** libraries.  However, you may find that when you link such libraries
*** into an application without using GCC, you have to manually add
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
*** upgrade to a newer version of GCC.  Another option is to rebuild your
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.

EOF
        no_undefined_flag=
	;;
      esac
    fi
d6723 1
a6723 1
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
d6798 1
a6798 1
echo "$as_me:6913: result: $ld_shlibs" >&5
d6807 1
a6807 1
echo "$as_me:6922: checking how to hardcode library paths into programs" >&5
d6831 1
a6831 1
echo "$as_me:6946: result: $hardcode_action" >&5
d6840 1
a6840 1
echo "$as_me:6955: checking whether stripping libraries is possible" >&5
d6845 1
a6845 1
  echo "$as_me:6960: result: yes" >&5
d6848 1
a6848 1
  echo "$as_me:6963: result: no" >&5
d6860 1
a6860 1
echo "$as_me:6975: checking dynamic linker characteristics" >&5
d6899 9
a6907 9
      aix4 | aix4.[01] | aix4.[01].*)
	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	     echo ' yes '
	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	  :
	else
	  can_build_shared=no
	fi
	;;
d6909 3
a6911 4
    # AIX (on Power*) has no versioning support, so currently we can
    # not hardcode correct soname into executable. Probably we can
    # add versioning support to collect2, so additional links can
    # be useful in future.
d6913 2
a6914 3
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
d6923 1
a7133 10
nto-qnx)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

d7136 3
a7138 13
  need_lib_prefix=no
  need_version=no
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case "$host_os" in
    openbsd2.[89] | openbsd2.[89].*)
      shlibpath_overrides_runpath=no
      ;;
    *)
      shlibpath_overrides_runpath=yes
      ;;
    esac
  else
    shlibpath_overrides_runpath=yes
d7238 12
d7254 1
a7254 1
echo "$as_me:7378: result: $dynamic_linker" >&5
d7263 1
a7263 1
echo "$as_me:7387: checking if libtool supports shared libraries" >&5
d7265 1
a7265 1
echo "$as_me:7389: result: $can_build_shared" >&5
a7269 39
## FIXME: this should be a separate macro
##
echo "$as_me:7396: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
test "$can_build_shared" = "no" && enable_shared=no

# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case "$host_os" in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;

aix4*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
  fi
  ;;
esac
echo "$as_me:7417: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6
##
## END FIXME

## FIXME: this should be a separate macro
##
echo "$as_me:7424: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
echo "$as_me:7428: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6
##
## END FIXME

d7305 3
a7307 64
    echo "$as_me:7468: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
if test "${ac_cv_func_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7474 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shl_load) || defined (__stub___shl_load)
choke me
#else
f = shl_load;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7505: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7508: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7511: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7514: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_shl_load=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7524: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
if test $ac_cv_func_shl_load = yes; then
  lt_cv_dlopen="shl_load"
else
  echo "$as_me:7529: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
d7311 1
a7311 1
LIBS="-ldld  $LIBS"
d7313 1
a7313 1
#line 7537 "configure"
d7322 1
a7322 1
char shl_load ();
d7326 1
a7326 1
shl_load ();
d7332 1
a7332 1
if { (eval echo "$as_me:7556: \"$ac_link\"") >&5
d7335 1
a7335 1
  echo "$as_me:7559: \$? = $ac_status" >&5
d7338 1
a7338 1
  { (eval echo "$as_me:7562: \"$ac_try\"") >&5
d7341 1
a7341 1
  echo "$as_me:7565: \$? = $ac_status" >&5
d7343 1
a7343 1
  ac_cv_lib_dld_shl_load=yes
d7347 1
a7347 1
ac_cv_lib_dld_shl_load=no
d7352 4
a7355 4
echo "$as_me:7576: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
if test $ac_cv_lib_dld_shl_load = yes; then
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
d7357 1
a7357 1
  echo "$as_me:7581: checking for dlopen" >&5
d7363 1
a7363 1
#line 7587 "configure"
d7394 1
a7394 1
if { (eval echo "$as_me:7618: \"$ac_link\"") >&5
d7397 1
a7397 1
  echo "$as_me:7621: \$? = $ac_status" >&5
d7400 1
a7400 1
  { (eval echo "$as_me:7624: \"$ac_try\"") >&5
d7403 1
a7403 1
  echo "$as_me:7627: \$? = $ac_status" >&5
d7413 1
a7413 1
echo "$as_me:7637: result: $ac_cv_func_dlopen" >&5
d7418 3
a7420 3
  echo "$as_me:7642: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7423 2
a7424 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 7650 "configure"
d7426 3
a7428 1

d7435 3
a7437 1
char dlopen ();
d7441 9
a7449 1
dlopen ();
d7455 1
a7455 1
if { (eval echo "$as_me:7669: \"$ac_link\"") >&5
d7458 1
a7458 1
  echo "$as_me:7672: \$? = $ac_status" >&5
d7461 1
a7461 1
  { (eval echo "$as_me:7675: \"$ac_try\"") >&5
d7464 1
a7464 1
  echo "$as_me:7678: \$? = $ac_status" >&5
d7466 1
a7466 1
  ac_cv_lib_dl_dlopen=yes
d7470 1
a7470 1
ac_cv_lib_dl_dlopen=no
a7472 1
LIBS=$ac_check_lib_save_LIBS
d7474 4
a7477 4
echo "$as_me:7689: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7479 1
a7479 1
  echo "$as_me:7694: checking for dlopen in -lsvld" >&5
d7487 1
a7487 1
#line 7702 "configure"
d7506 1
a7506 1
if { (eval echo "$as_me:7721: \"$ac_link\"") >&5
d7509 1
a7509 1
  echo "$as_me:7724: \$? = $ac_status" >&5
d7512 1
a7512 1
  { (eval echo "$as_me:7727: \"$ac_try\"") >&5
d7515 1
a7515 1
  echo "$as_me:7730: \$? = $ac_status" >&5
d7526 1
a7526 1
echo "$as_me:7741: result: $ac_cv_lib_svld_dlopen" >&5
d7531 3
a7533 3
  echo "$as_me:7746: checking for dld_link in -ldld" >&5
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
d7539 1
a7539 1
#line 7754 "configure"
d7548 1
a7548 1
char dld_link ();
d7552 1
a7552 1
dld_link ();
d7558 1
a7558 1
if { (eval echo "$as_me:7773: \"$ac_link\"") >&5
d7561 1
a7561 1
  echo "$as_me:7776: \$? = $ac_status" >&5
d7564 1
a7564 1
  { (eval echo "$as_me:7779: \"$ac_try\"") >&5
d7567 1
a7567 1
  echo "$as_me:7782: \$? = $ac_status" >&5
d7569 1
a7569 1
  ac_cv_lib_dld_dld_link=yes
d7573 1
a7573 1
ac_cv_lib_dld_dld_link=no
d7578 3
a7580 3
echo "$as_me:7793: result: $ac_cv_lib_dld_dld_link" >&5
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
if test $ac_cv_lib_dld_dld_link = yes; then
a7591 2
fi

d7612 1
a7612 1
    echo "$as_me:7829: checking whether a program can dlopen itself" >&5
d7623 1
a7623 1
#line 7840 "configure"
d7684 1
a7684 1
  if { (eval echo "$as_me:7901: \"$ac_link\"") >&5
d7687 1
a7687 1
  echo "$as_me:7904: \$? = $ac_status" >&5
d7704 1
a7704 1
echo "$as_me:7921: result: $lt_cv_dlopen_self" >&5
d7709 1
a7709 1
      echo "$as_me:7926: checking whether a statically linked program can dlopen itself" >&5
d7720 1
a7720 1
#line 7937 "configure"
d7781 1
a7781 1
  if { (eval echo "$as_me:7998: \"$ac_link\"") >&5
d7784 1
a7784 1
  echo "$as_me:8001: \$? = $ac_status" >&5
d7801 1
a7801 1
echo "$as_me:8018: result: $lt_cv_dlopen_self_static" >&5
d7833 1
a7833 1
    echo "$as_me:8050: checking whether -lc should be explicitly linked in" >&5
d7841 1
a7841 1
    if { (eval echo "$as_me:8058: \"$ac_compile\"") >&5
d7844 1
a7844 1
  echo "$as_me:8061: \$? = $ac_status" >&5
d7858 1
a7858 1
      if { (eval echo "$as_me:8075: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
d7861 1
a7861 1
  echo "$as_me:8078: \$? = $ac_status" >&5
d7874 1
a7874 1
    echo "$as_me:8091: result: $lt_cv_archive_cmds_need_lc" >&5
a7918 1
    global_symbol_to_c_name_address \
d7985 3
a7990 3
# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$need_lc

a8155 3
# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address

d8278 3
a8280 3
	# This is a source program that is used to create import libraries
	# on Windows for dlls which lack them. Don't remove nor modify the
	# starting and closing comments
d8442 1
d8445 6
a8450 23
echo "$as_me:8665: checking SOSUFFIX from libtool" >&5
echo $ECHO_N "checking SOSUFFIX from libtool... $ECHO_C" >&6
# $library_names_spec is a snippet of shell that may
# defined in terms of $versuffix, $release, $libname.
# All we want is to eval it and grab the suffix used
# for shared objects.
versuffix=""
release=""
libname=libfoo
eval library_names=\"$library_names_spec\"
SOSUFFIX=`echo "$library_names" | sed -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/'`
echo "$as_me:8676: result: $SOSUFFIX" >&5
echo "${ECHO_T}$SOSUFFIX" >&6

if test "$SOSUFFIX" = '' ; then
	SOSUFFIX=so
	if test "$enable_shared" = "yes"; then
		{ echo "$as_me:8682: WARNING: libtool may not know about this architecture." >&5
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
		{ echo "$as_me:8684: WARNING: assuming .$SOSUFFIX suffix for dynamic libraries." >&5
echo "$as_me: WARNING: assuming .$SOSUFFIX suffix for dynamic libraries." >&2;}
	fi
fi
d8452 1
a8454 7
MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}"
MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version"
MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}"
MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}"
MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}"

d8462 2
d8469 2
a8473 1
INSTALL_LIBS="$DEFAULT_LIB"
d8478 1
a8478 1
		DEFAULT_LIB_CXX="\$(libcxx)"
d8481 2
a8482 1
		DEFAULT_LIB_CXX="\$(libxso_target)"
a8483 1
	INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_CXX"
d8511 1
a8511 1
		{ { echo "$as_me:8751: error: Java requires shared libraries" >&5
d8516 4
a8519 6
if test "x$JAVAPREFIX" = x; then
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:8761: checking for $ac_word" >&5
d8533 2
a8534 2
ac_cv_prog_JAVAC="$ac_prog"
echo "$as_me:8776: found $ac_dir/$ac_word" >&5
d8542 1
a8542 1
  echo "$as_me:8784: result: $JAVAC" >&5
d8545 1
a8545 1
  echo "$as_me:8787: result: no" >&5
d8549 6
a8554 9
  test -n "$JAVAC" && break
done

else
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:8799: checking for $ac_word" >&5
d8556 1
a8556 1
if test "${ac_cv_prog_JAVAC+set}" = set; then
d8559 2
a8560 2
  if test -n "$JAVAC"; then
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
d8568 2
a8569 2
ac_cv_prog_JAVAC="$ac_prog"
echo "$as_me:8814: found $ac_dir/$ac_word" >&5
d8573 1
d8576 4
a8579 4
JAVAC=$ac_cv_prog_JAVAC
if test -n "$JAVAC"; then
  echo "$as_me:8822: result: $JAVAC" >&5
echo "${ECHO_T}$JAVAC" >&6
d8581 1
a8581 1
  echo "$as_me:8825: result: no" >&5
d8585 3
a8587 4
  test -n "$JAVAC" && break
done
test -n "$JAVAC" || JAVAC="$JAVAPREFIX"

a8588 9
test "x$JAVAC" = x && { { echo "$as_me:8834: error: no acceptable Java compiler found in \$PATH" >&5
echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:8838: checking if $JAVAC works" >&5
echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
if test "${ac_cv_prog_javac_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d8590 3
a8592 17
JAVA_TEST=Test.java
CLASS_TEST=Test.class
cat << \EOF > $JAVA_TEST
/* #line 8847 "configure" */
public class Test {
}
EOF
if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
  { (eval echo "$as_me:8852: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8855: \$? = $ac_status" >&5
  (exit $ac_status); }; } >/dev/null 2>&1; then
  ac_cv_prog_javac_works=yes
else
  { { echo "$as_me:8859: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
d8594 5
a8598 15
  echo "configure: failed program was:" >&5
  cat $JAVA_TEST >&5
fi
rm -f $JAVA_TEST $CLASS_TEST

fi
echo "$as_me:8868: result: $ac_cv_prog_javac_works" >&5
echo "${ECHO_T}$ac_cv_prog_javac_works" >&6

if test "x$JAVAPREFIX" = x; then
        test "x$JAR" = x && for ac_prog in jar$EXEEXT
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:8876: checking for $ac_word" >&5
d8612 2
a8613 2
ac_cv_prog_JAR="$ac_prog"
echo "$as_me:8891: found $ac_dir/$ac_word" >&5
d8621 1
a8621 1
  echo "$as_me:8899: result: $JAR" >&5
d8624 1
a8624 1
  echo "$as_me:8902: result: no" >&5
d8628 6
a8633 9
  test -n "$JAR" && break
done

else
        test "x$JAR" = x && for ac_prog in jar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:8914: checking for $ac_word" >&5
d8635 1
a8635 1
if test "${ac_cv_prog_JAR+set}" = set; then
d8638 2
a8639 2
  if test -n "$JAR"; then
  ac_cv_prog_JAR="$JAR" # Let the user override the test.
d8647 2
a8648 2
ac_cv_prog_JAR="$ac_prog"
echo "$as_me:8929: found $ac_dir/$ac_word" >&5
d8652 1
d8655 4
a8658 4
JAR=$ac_cv_prog_JAR
if test -n "$JAR"; then
  echo "$as_me:8937: result: $JAR" >&5
echo "${ECHO_T}$JAR" >&6
d8660 1
a8660 1
  echo "$as_me:8940: result: no" >&5
d8664 3
a8666 4
  test -n "$JAR" && break
done
test -n "$JAR" || JAR="$JAVAPREFIX"

a8667 5
test "x$JAR" = x && { { echo "$as_me:8949: error: no acceptable jar program found in \$PATH" >&5
echo "$as_me: error: no acceptable jar program found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }

JNI_INCLUDE_DIRS=""
d8669 3
a8671 2
test "x$JAVAC" = x && { { echo "$as_me:8955: error: '$JAVAC' undefined" >&5
echo "$as_me: error: '$JAVAC' undefined" >&2;}
d8673 4
a8676 3
# Extract the first word of "$JAVAC", so it can be a program name with args.
set dummy $JAVAC; ac_word=$2
echo "$as_me:8960: checking for $ac_word" >&5
d8678 1
a8678 1
if test "${ac_cv_path__ACJNI_JAVAC+set}" = set; then
d8681 1
a8681 1
  case $_ACJNI_JAVAC in
d8683 1
a8683 1
  ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path.
d8692 2
a8693 2
   ac_cv_path__ACJNI_JAVAC="$ac_dir/$ac_word"
   echo "$as_me:8977: found $ac_dir/$ac_word" >&5
d8698 1
a8698 1
  test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="no"
d8702 1
a8702 1
_ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC
d8704 3
a8706 3
if test -n "$_ACJNI_JAVAC"; then
  echo "$as_me:8989: result: $_ACJNI_JAVAC" >&5
echo "${ECHO_T}$_ACJNI_JAVAC" >&6
d8708 1
a8708 1
  echo "$as_me:8992: result: no" >&5
d8712 3
a8714 3
test "x$_ACJNI_JAVAC" = xno && { { echo "$as_me:8996: error: $JAVAC could not be found in path" >&5
echo "$as_me: error: $JAVAC could not be found in path" >&2;}
   { (exit 1); exit 1; }; }
d8717 17
a8733 9
_cur=""$_ACJNI_JAVAC""
while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do
	echo "$as_me:9003: checking symlink for $_cur" >&5
echo $ECHO_N "checking symlink for $_cur... $ECHO_C" >&6
	_slink=`ls -ld "$_cur" | sed 's/.* -> //'`
	case "$_slink" in
	/*) _cur="$_slink";;
	# 'X' avoids triggering unwanted echo options.
	*) _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";;
d8735 2
a8736 17
	echo "$as_me:9011: result: $_cur" >&5
echo "${ECHO_T}$_cur" >&6
done
_ACJNI_FOLLOWED="$_cur"

_JTOPDIR=`echo "$_ACJNI_FOLLOWED" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
case "$host_os" in
	darwin*)	_JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
			_JINC="$_JTOPDIR/Headers";;
	*)		_JINC="$_JTOPDIR/include";;
esac
if test -f "$_JINC/jni.h"; then
	JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JINC"
else
	_JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
	if test -f "$_JTOPDIR/include/jni.h"; then
		JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include"
d8738 5
a8742 1
		{ { echo "$as_me:9029: error: cannot find java include files" >&5
d8745 1
a8746 1
fi
d8749 5
a8753 8
case "$host_os" in
aix*)		_JNI_INC_SUBDIRS="aix";;
bsdi*)		_JNI_INC_SUBDIRS="bsdos";;
linux*)		_JNI_INC_SUBDIRS="linux genunix";;
osf*)		_JNI_INC_SUBDIRS="alpha";;
solaris*)	_JNI_INC_SUBDIRS="solaris";;
*)		_JNI_INC_SUBDIRS="genunix";;
esac
d8755 1
a8755 9
# add any subdirectories that are present
for JINCSUBDIR in $_JNI_INC_SUBDIRS
do
	if test -d "$_JTOPDIR/include/$JINCSUBDIR"; then
		JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include/$JINCSUBDIR"
	fi
done

	for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
d8757 3
a8759 1
		CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR"
a8760 3

	ADDITIONAL_LANG="$ADDITIONAL_LANG java"
	INSTALL_LIBS="$INSTALL_LIBS \$(libjso_target)"
d8778 1
a8778 1
		echo "$as_me:9077: checking for svc_run" >&5
d8784 1
a8784 1
#line 9083 "configure"
d8815 1
a8815 1
if { (eval echo "$as_me:9114: \"$ac_link\"") >&5
d8818 1
a8818 1
  echo "$as_me:9117: \$? = $ac_status" >&5
d8821 1
a8821 1
  { (eval echo "$as_me:9120: \"$ac_try\"") >&5
d8824 1
a8824 1
  echo "$as_me:9123: \$? = $ac_status" >&5
d8834 1
a8834 1
echo "$as_me:9133: result: $ac_cv_func_svc_run" >&5
d8839 1
a8839 1
  echo "$as_me:9138: checking for svc_run in -lnsl" >&5
d8847 1
a8847 1
#line 9146 "configure"
d8866 1
a8866 1
if { (eval echo "$as_me:9165: \"$ac_link\"") >&5
d8869 1
a8869 1
  echo "$as_me:9168: \$? = $ac_status" >&5
d8872 1
a8872 1
  { (eval echo "$as_me:9171: \"$ac_try\"") >&5
d8875 1
a8875 1
  echo "$as_me:9174: \$? = $ac_status" >&5
d8886 1
a8886 1
echo "$as_me:9185: result: $ac_cv_lib_nsl_svc_run" >&5
d8895 1
a8895 1
		echo "$as_me:9194: checking for svc_run" >&5
d8901 1
a8901 1
#line 9200 "configure"
d8932 1
a8932 1
if { (eval echo "$as_me:9231: \"$ac_link\"") >&5
d8935 1
a8935 1
  echo "$as_me:9234: \$? = $ac_status" >&5
d8938 1
a8938 1
  { (eval echo "$as_me:9237: \"$ac_try\"") >&5
d8941 1
a8941 1
  echo "$as_me:9240: \$? = $ac_status" >&5
d8951 1
a8951 1
echo "$as_me:9250: result: $ac_cv_func_svc_run" >&5
d8957 1
a8957 1
echo "$as_me:9256: checking for svc_run in -lnsl" >&5
d8965 1
a8965 1
#line 9264 "configure"
d8984 1
a8984 1
if { (eval echo "$as_me:9283: \"$ac_link\"") >&5
d8987 1
a8987 1
  echo "$as_me:9286: \$? = $ac_status" >&5
d8990 1
a8990 1
  { (eval echo "$as_me:9289: \"$ac_try\"") >&5
d8993 1
a8993 1
  echo "$as_me:9292: \$? = $ac_status" >&5
d9004 1
a9004 1
echo "$as_me:9303: result: $ac_cv_lib_nsl_svc_run" >&5
d9022 1
a9022 1
		{ { echo "$as_me:9321: error: Tcl requires shared libraries" >&5
d9036 1
a9036 1
		    { { echo "$as_me:9335: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
d9056 1
a9056 1
	    { { echo "$as_me:9355: error: can't find Tcl configuration definitions" >&5
d9063 1
a9063 1
	echo "$as_me:9362: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
d9067 1
a9067 1
		echo "$as_me:9366: result: loading" >&5
d9071 1
a9071 1
		echo "$as_me:9370: result: file not found" >&5
d9089 4
a9092 1
	INSTALL_LIBS="${INSTALL_LIBS} \$(libtso_target)"
d9106 108
d9215 1
a9215 1
echo "$as_me:9403: checking whether byte ordering is bigendian" >&5
d9223 1
a9223 1
#line 9411 "configure"
d9240 1
a9240 1
if { (eval echo "$as_me:9428: \"$ac_compile\"") >&5
d9243 1
a9243 1
  echo "$as_me:9431: \$? = $ac_status" >&5
d9246 1
a9246 1
  { (eval echo "$as_me:9434: \"$ac_try\"") >&5
d9249 1
a9249 1
  echo "$as_me:9437: \$? = $ac_status" >&5
d9253 1
a9253 1
#line 9441 "configure"
d9270 1
a9270 1
if { (eval echo "$as_me:9458: \"$ac_compile\"") >&5
d9273 1
a9273 1
  echo "$as_me:9461: \$? = $ac_status" >&5
d9276 1
a9276 1
  { (eval echo "$as_me:9464: \"$ac_try\"") >&5
d9279 1
a9279 1
  echo "$as_me:9467: \$? = $ac_status" >&5
d9295 1
a9295 1
  { { echo "$as_me:9483: error: cannot run test program while cross compiling" >&5
d9300 1
a9300 1
#line 9488 "configure"
d9316 1
a9316 1
if { (eval echo "$as_me:9504: \"$ac_link\"") >&5
d9319 1
a9319 1
  echo "$as_me:9507: \$? = $ac_status" >&5
d9321 1
a9321 1
  { (eval echo "$as_me:9509: \"$ac_try\"") >&5
d9324 1
a9324 1
  echo "$as_me:9512: \$? = $ac_status" >&5
d9337 1
a9337 1
echo "$as_me:9525: result: $ac_cv_c_bigendian" >&5
d9347 1
a9347 1
echo "$as_me:9535: checking for $CC option to accept ANSI C" >&5
d9355 1
a9355 1
#line 9543 "configure"
d9404 1
a9404 1
if { (eval echo "$as_me:9592: \"$ac_compile\"") >&5
d9407 1
a9407 1
  echo "$as_me:9595: \$? = $ac_status" >&5
d9410 1
a9410 1
  { (eval echo "$as_me:9598: \"$ac_try\"") >&5
d9413 1
a9413 1
  echo "$as_me:9601: \$? = $ac_status" >&5
d9430 1
a9430 1
    echo "$as_me:9618: result: none needed" >&5
d9433 1
a9433 1
    echo "$as_me:9621: result: $ac_cv_prog_cc_stdc" >&5
d9438 1
a9438 1
echo "$as_me:9626: checking for an ANSI C-conforming const" >&5
d9444 1
a9444 1
#line 9632 "configure"
d9502 1
a9502 1
if { (eval echo "$as_me:9690: \"$ac_compile\"") >&5
d9505 1
a9505 1
  echo "$as_me:9693: \$? = $ac_status" >&5
d9508 1
a9508 1
  { (eval echo "$as_me:9696: \"$ac_try\"") >&5
d9511 1
a9511 1
  echo "$as_me:9699: \$? = $ac_status" >&5
d9521 1
a9521 1
echo "$as_me:9709: result: $ac_cv_c_const" >&5
d9532 1
a9532 1
echo "$as_me:9720: checking whether stat file-mode macros are broken" >&5
d9538 1
a9538 1
#line 9726 "configure"
d9577 1
a9577 1
echo "$as_me:9765: result: $ac_cv_header_stat_broken" >&5
d9587 1
a9587 1
echo "$as_me:9775: checking whether time.h and sys/time.h may both be included" >&5
d9593 1
a9593 1
#line 9781 "configure"
d9608 1
a9608 1
if { (eval echo "$as_me:9796: \"$ac_compile\"") >&5
d9611 1
a9611 1
  echo "$as_me:9799: \$? = $ac_status" >&5
d9614 1
a9614 1
  { (eval echo "$as_me:9802: \"$ac_try\"") >&5
d9617 1
a9617 1
  echo "$as_me:9805: \$? = $ac_status" >&5
d9627 1
a9627 1
echo "$as_me:9815: result: $ac_cv_header_time" >&5
d9640 1
a9640 1
echo "$as_me:9828: checking for $ac_hdr that defines DIR" >&5
d9646 1
a9646 1
#line 9834 "configure"
d9660 1
a9660 1
if { (eval echo "$as_me:9848: \"$ac_compile\"") >&5
d9663 1
a9663 1
  echo "$as_me:9851: \$? = $ac_status" >&5
d9666 1
a9666 1
  { (eval echo "$as_me:9854: \"$ac_try\"") >&5
d9669 1
a9669 1
  echo "$as_me:9857: \$? = $ac_status" >&5
d9679 1
a9679 1
echo "$as_me:9867: result: `eval echo '${'$ac_ac_Header'}'`" >&5
d9692 1
a9692 1
  echo "$as_me:9880: checking for opendir in -ldir" >&5
d9700 1
a9700 1
#line 9888 "configure"
d9719 1
a9719 1
if { (eval echo "$as_me:9907: \"$ac_link\"") >&5
d9722 1
a9722 1
  echo "$as_me:9910: \$? = $ac_status" >&5
d9725 1
a9725 1
  { (eval echo "$as_me:9913: \"$ac_try\"") >&5
d9728 1
a9728 1
  echo "$as_me:9916: \$? = $ac_status" >&5
d9739 1
a9739 1
echo "$as_me:9927: result: $ac_cv_lib_dir_opendir" >&5
d9746 1
a9746 1
  echo "$as_me:9934: checking for opendir in -lx" >&5
d9754 1
a9754 1
#line 9942 "configure"
d9773 1
a9773 1
if { (eval echo "$as_me:9961: \"$ac_link\"") >&5
d9776 1
a9776 1
  echo "$as_me:9964: \$? = $ac_status" >&5
d9779 1
a9779 1
  { (eval echo "$as_me:9967: \"$ac_try\"") >&5
d9782 1
a9782 1
  echo "$as_me:9970: \$? = $ac_status" >&5
d9793 1
a9793 1
echo "$as_me:9981: result: $ac_cv_lib_x_opendir" >&5
d9804 1
a9804 1
echo "$as_me:9992: checking for $ac_header" >&5
d9810 1
a9810 1
#line 9998 "configure"
d9814 1
a9814 1
if { (eval echo "$as_me:10002: \"$ac_cpp conftest.$ac_ext\"") >&5
d9820 1
a9820 1
  echo "$as_me:10008: \$? = $ac_status" >&5
d9839 1
a9839 1
echo "$as_me:10027: result: `eval echo '${'$ac_ac_Header'}'`" >&5
d9852 1
a9852 1
echo "$as_me:10040: checking for $ac_header" >&5
d9858 1
a9858 1
#line 10046 "configure"
d9862 1
a9862 1
if { (eval echo "$as_me:10050: \"$ac_cpp conftest.$ac_ext\"") >&5
d9868 1
a9868 1
  echo "$as_me:10056: \$? = $ac_status" >&5
d9887 1
a9887 1
echo "$as_me:10075: result: `eval echo '${'$ac_ac_Header'}'`" >&5
d9897 1
a9897 1
echo "$as_me:10085: checking for ANSI C header files" >&5
d9903 1
a9903 1
#line 10091 "configure"
d9911 1
a9911 1
if { (eval echo "$as_me:10099: \"$ac_cpp conftest.$ac_ext\"") >&5
d9917 1
a9917 1
  echo "$as_me:10105: \$? = $ac_status" >&5
d9939 1
a9939 1
#line 10127 "configure"
d9957 1
a9957 1
#line 10145 "configure"
d9978 1
a9978 1
#line 10166 "configure"
d10004 1
a10004 1
if { (eval echo "$as_me:10192: \"$ac_link\"") >&5
d10007 1
a10007 1
  echo "$as_me:10195: \$? = $ac_status" >&5
d10009 1
a10009 1
  { (eval echo "$as_me:10197: \"$ac_try\"") >&5
d10012 1
a10012 1
  echo "$as_me:10200: \$? = $ac_status" >&5
d10025 1
a10025 1
echo "$as_me:10213: result: $ac_cv_header_stdc" >&5
d10038 1
a10038 1
echo "$as_me:10226: checking for $ac_header" >&5
d10044 1
a10044 1
#line 10232 "configure"
d10048 1
a10048 1
if { (eval echo "$as_me:10236: \"$ac_cpp conftest.$ac_ext\"") >&5
d10054 1
a10054 1
  echo "$as_me:10242: \$? = $ac_status" >&5
d10073 1
a10073 1
echo "$as_me:10261: result: `eval echo '${'$ac_ac_Header'}'`" >&5
d10083 1
a10083 1
echo "$as_me:10271: checking for struct stat.st_blksize" >&5
d10089 1
a10089 1
#line 10277 "configure"
d10102 1
a10102 1
if { (eval echo "$as_me:10290: \"$ac_compile\"") >&5
d10105 1
a10105 1
  echo "$as_me:10293: \$? = $ac_status" >&5
d10108 1
a10108 1
  { (eval echo "$as_me:10296: \"$ac_try\"") >&5
d10111 1
a10111 1
  echo "$as_me:10299: \$? = $ac_status" >&5
d10121 1
a10121 1
echo "$as_me:10309: result: $ac_cv_member_struct_stat_st_blksize" >&5
d10133 53
a10185 1
echo "$as_me:10321: checking for off_t" >&5
d10191 1
a10191 1
#line 10327 "configure"
d10206 1
a10206 1
if { (eval echo "$as_me:10342: \"$ac_compile\"") >&5
d10209 1
a10209 1
  echo "$as_me:10345: \$? = $ac_status" >&5
d10212 1
a10212 1
  { (eval echo "$as_me:10348: \"$ac_try\"") >&5
d10215 1
a10215 1
  echo "$as_me:10351: \$? = $ac_status" >&5
d10225 1
a10225 1
echo "$as_me:10361: result: $ac_cv_type_off_t" >&5
d10237 1
a10237 6
if test "$ac_cv_type_off_t" = no; then
	{ { echo "$as_me:10374: error: No off_t type." >&5
echo "$as_me: error: No off_t type." >&2;}
   { (exit 1); exit 1; }; }
fi
echo "$as_me:10378: checking for pid_t" >&5
d10243 1
a10243 1
#line 10384 "configure"
d10258 1
a10258 1
if { (eval echo "$as_me:10399: \"$ac_compile\"") >&5
d10261 1
a10261 1
  echo "$as_me:10402: \$? = $ac_status" >&5
d10264 1
a10264 1
  { (eval echo "$as_me:10405: \"$ac_try\"") >&5
d10267 1
a10267 1
  echo "$as_me:10408: \$? = $ac_status" >&5
d10277 1
a10277 1
echo "$as_me:10418: result: $ac_cv_type_pid_t" >&5
d10289 1
a10289 6
if test "$ac_cv_type_pid_t" = no; then
	{ { echo "$as_me:10431: error: No pid_t type." >&5
echo "$as_me: error: No pid_t type." >&2;}
   { (exit 1); exit 1; }; }
fi
echo "$as_me:10435: checking for size_t" >&5
d10295 1
a10295 1
#line 10441 "configure"
d10310 1
a10310 1
if { (eval echo "$as_me:10456: \"$ac_compile\"") >&5
d10313 1
a10313 1
  echo "$as_me:10459: \$? = $ac_status" >&5
d10316 1
a10316 1
  { (eval echo "$as_me:10462: \"$ac_try\"") >&5
d10319 1
a10319 1
  echo "$as_me:10465: \$? = $ac_status" >&5
d10329 1
a10329 1
echo "$as_me:10475: result: $ac_cv_type_size_t" >&5
d10341 1
a10341 7
if test "$ac_cv_type_size_t" = no; then
	{ { echo "$as_me:10488: error: No size_t type." >&5
echo "$as_me: error: No size_t type." >&2;}
   { (exit 1); exit 1; }; }
fi

echo "$as_me:10493: checking for u_char" >&5
d10348 1
a10348 1
#line 10500 "configure"
d10360 1
a10360 1
if { (eval echo "$as_me:10512: \"$ac_compile\"") >&5
d10363 1
a10363 1
  echo "$as_me:10515: \$? = $ac_status" >&5
d10366 1
a10366 1
  { (eval echo "$as_me:10518: \"$ac_try\"") >&5
d10369 1
a10369 1
  echo "$as_me:10521: \$? = $ac_status" >&5
d10379 1
a10379 1
echo "$as_me:10531: result: $db_cv_uchar" >&5
d10385 1
a10385 1
echo "$as_me:10537: checking for u_short" >&5
d10392 1
a10392 1
#line 10544 "configure"
d10404 1
a10404 1
if { (eval echo "$as_me:10556: \"$ac_compile\"") >&5
d10407 1
a10407 1
  echo "$as_me:10559: \$? = $ac_status" >&5
d10410 1
a10410 1
  { (eval echo "$as_me:10562: \"$ac_try\"") >&5
d10413 1
a10413 1
  echo "$as_me:10565: \$? = $ac_status" >&5
d10423 1
a10423 1
echo "$as_me:10575: result: $db_cv_ushort" >&5
d10429 1
a10429 1
echo "$as_me:10581: checking for u_int" >&5
d10436 1
a10436 1
#line 10588 "configure"
d10448 1
a10448 1
if { (eval echo "$as_me:10600: \"$ac_compile\"") >&5
d10451 1
a10451 1
  echo "$as_me:10603: \$? = $ac_status" >&5
d10454 1
a10454 1
  { (eval echo "$as_me:10606: \"$ac_try\"") >&5
d10457 1
a10457 1
  echo "$as_me:10609: \$? = $ac_status" >&5
d10467 1
a10467 1
echo "$as_me:10619: result: $db_cv_uint" >&5
d10473 1
a10473 1
echo "$as_me:10625: checking for u_long" >&5
d10480 1
a10480 1
#line 10632 "configure"
d10492 1
a10492 1
if { (eval echo "$as_me:10644: \"$ac_compile\"") >&5
d10495 1
a10495 1
  echo "$as_me:10647: \$? = $ac_status" >&5
d10498 1
a10498 1
  { (eval echo "$as_me:10650: \"$ac_try\"") >&5
d10501 1
a10501 1
  echo "$as_me:10653: \$? = $ac_status" >&5
d10511 1
a10511 1
echo "$as_me:10663: result: $db_cv_ulong" >&5
d10519 1
a10519 1
echo "$as_me:10671: checking for u_int8_t" >&5
d10526 1
a10526 1
#line 10678 "configure"
d10538 1
a10538 1
if { (eval echo "$as_me:10690: \"$ac_compile\"") >&5
d10541 1
a10541 1
  echo "$as_me:10693: \$? = $ac_status" >&5
d10544 1
a10544 1
  { (eval echo "$as_me:10696: \"$ac_try\"") >&5
d10547 1
a10547 1
  echo "$as_me:10699: \$? = $ac_status" >&5
d10554 1
a10554 1
  { { echo "$as_me:10706: error: cannot run test program while cross compiling" >&5
d10559 1
a10559 1
#line 10711 "configure"
d10564 1
a10564 1
if { (eval echo "$as_me:10716: \"$ac_link\"") >&5
d10567 1
a10567 1
  echo "$as_me:10719: \$? = $ac_status" >&5
d10569 1
a10569 1
  { (eval echo "$as_me:10721: \"$ac_try\"") >&5
d10572 1
a10572 1
  echo "$as_me:10724: \$? = $ac_status" >&5
d10586 1
a10586 1
echo "$as_me:10738: result: $db_cv_uint8" >&5
d10589 1
a10589 1
	{ { echo "$as_me:10741: error: No unsigned 8-bit integral type." >&5
d10597 1
a10597 1
echo "$as_me:10749: checking for u_int16_t" >&5
d10604 1
a10604 1
#line 10756 "configure"
d10616 1
a10616 1
if { (eval echo "$as_me:10768: \"$ac_compile\"") >&5
d10619 1
a10619 1
  echo "$as_me:10771: \$? = $ac_status" >&5
d10622 1
a10622 1
  { (eval echo "$as_me:10774: \"$ac_try\"") >&5
d10625 1
a10625 1
  echo "$as_me:10777: \$? = $ac_status" >&5
d10632 1
a10632 1
  { { echo "$as_me:10784: error: cannot run test program while cross compiling" >&5
d10637 1
a10637 1
#line 10789 "configure"
d10642 1
a10642 1
if { (eval echo "$as_me:10794: \"$ac_link\"") >&5
d10645 1
a10645 1
  echo "$as_me:10797: \$? = $ac_status" >&5
d10647 1
a10647 1
  { (eval echo "$as_me:10799: \"$ac_try\"") >&5
d10650 1
a10650 1
  echo "$as_me:10802: \$? = $ac_status" >&5
d10658 1
a10658 1
  { { echo "$as_me:10810: error: cannot run test program while cross compiling" >&5
d10663 1
a10663 1
#line 10815 "configure"
d10668 1
a10668 1
if { (eval echo "$as_me:10820: \"$ac_link\"") >&5
d10671 1
a10671 1
  echo "$as_me:10823: \$? = $ac_status" >&5
d10673 1
a10673 1
  { (eval echo "$as_me:10825: \"$ac_try\"") >&5
d10676 1
a10676 1
  echo "$as_me:10828: \$? = $ac_status" >&5
d10693 1
a10693 1
echo "$as_me:10845: result: $db_cv_uint16" >&5
d10696 1
a10696 1
	{ { echo "$as_me:10848: error: No unsigned 16-bit integral type." >&5
d10704 1
a10704 1
echo "$as_me:10856: checking for int16_t" >&5
d10711 1
a10711 1
#line 10863 "configure"
d10723 1
a10723 1
if { (eval echo "$as_me:10875: \"$ac_compile\"") >&5
d10726 1
a10726 1
  echo "$as_me:10878: \$? = $ac_status" >&5
d10729 1
a10729 1
  { (eval echo "$as_me:10881: \"$ac_try\"") >&5
d10732 1
a10732 1
  echo "$as_me:10884: \$? = $ac_status" >&5
d10739 1
a10739 1
  { { echo "$as_me:10891: error: cannot run test program while cross compiling" >&5
d10744 1
a10744 1
#line 10896 "configure"
d10749 1
a10749 1
if { (eval echo "$as_me:10901: \"$ac_link\"") >&5
d10752 1
a10752 1
  echo "$as_me:10904: \$? = $ac_status" >&5
d10754 1
a10754 1
  { (eval echo "$as_me:10906: \"$ac_try\"") >&5
d10757 1
a10757 1
  echo "$as_me:10909: \$? = $ac_status" >&5
d10765 1
a10765 1
  { { echo "$as_me:10917: error: cannot run test program while cross compiling" >&5
d10770 1
a10770 1
#line 10922 "configure"
d10775 1
a10775 1
if { (eval echo "$as_me:10927: \"$ac_link\"") >&5
d10778 1
a10778 1
  echo "$as_me:10930: \$? = $ac_status" >&5
d10780 1
a10780 1
  { (eval echo "$as_me:10932: \"$ac_try\"") >&5
d10783 1
a10783 1
  echo "$as_me:10935: \$? = $ac_status" >&5
d10800 1
a10800 1
echo "$as_me:10952: result: $db_cv_int16" >&5
d10803 1
a10803 1
	{ { echo "$as_me:10955: error: No signed 16-bit integral type." >&5
d10811 1
a10811 1
echo "$as_me:10963: checking for u_int32_t" >&5
d10818 1
a10818 1
#line 10970 "configure"
d10830 1
a10830 1
if { (eval echo "$as_me:10982: \"$ac_compile\"") >&5
d10833 1
a10833 1
  echo "$as_me:10985: \$? = $ac_status" >&5
d10836 1
a10836 1
  { (eval echo "$as_me:10988: \"$ac_try\"") >&5
d10839 1
a10839 1
  echo "$as_me:10991: \$? = $ac_status" >&5
d10846 1
a10846 1
  { { echo "$as_me:10998: error: cannot run test program while cross compiling" >&5
d10851 1
a10851 1
#line 11003 "configure"
d10856 1
a10856 1
if { (eval echo "$as_me:11008: \"$ac_link\"") >&5
d10859 1
a10859 1
  echo "$as_me:11011: \$? = $ac_status" >&5
d10861 1
a10861 1
  { (eval echo "$as_me:11013: \"$ac_try\"") >&5
d10864 1
a10864 1
  echo "$as_me:11016: \$? = $ac_status" >&5
d10872 1
a10872 1
  { { echo "$as_me:11024: error: cannot run test program while cross compiling" >&5
d10877 1
a10877 1
#line 11029 "configure"
d10882 1
a10882 1
if { (eval echo "$as_me:11034: \"$ac_link\"") >&5
d10885 1
a10885 1
  echo "$as_me:11037: \$? = $ac_status" >&5
d10887 1
a10887 1
  { (eval echo "$as_me:11039: \"$ac_try\"") >&5
d10890 1
a10890 1
  echo "$as_me:11042: \$? = $ac_status" >&5
d10907 1
a10907 1
echo "$as_me:11059: result: $db_cv_uint32" >&5
d10910 1
a10910 1
	{ { echo "$as_me:11062: error: No unsigned 32-bit integral type." >&5
d10918 1
a10918 1
echo "$as_me:11070: checking for int32_t" >&5
d10925 1
a10925 1
#line 11077 "configure"
d10937 1
a10937 1
if { (eval echo "$as_me:11089: \"$ac_compile\"") >&5
d10940 1
a10940 1
  echo "$as_me:11092: \$? = $ac_status" >&5
d10943 1
a10943 1
  { (eval echo "$as_me:11095: \"$ac_try\"") >&5
d10946 1
a10946 1
  echo "$as_me:11098: \$? = $ac_status" >&5
d10953 1
a10953 1
  { { echo "$as_me:11105: error: cannot run test program while cross compiling" >&5
d10958 1
a10958 1
#line 11110 "configure"
d10963 1
a10963 1
if { (eval echo "$as_me:11115: \"$ac_link\"") >&5
d10966 1
a10966 1
  echo "$as_me:11118: \$? = $ac_status" >&5
d10968 1
a10968 1
  { (eval echo "$as_me:11120: \"$ac_try\"") >&5
d10971 1
a10971 1
  echo "$as_me:11123: \$? = $ac_status" >&5
d10979 1
a10979 1
  { { echo "$as_me:11131: error: cannot run test program while cross compiling" >&5
d10984 1
a10984 1
#line 11136 "configure"
d10989 1
a10989 1
if { (eval echo "$as_me:11141: \"$ac_link\"") >&5
d10992 1
a10992 1
  echo "$as_me:11144: \$? = $ac_status" >&5
d10994 1
a10994 1
  { (eval echo "$as_me:11146: \"$ac_try\"") >&5
d10997 1
a10997 1
  echo "$as_me:11149: \$? = $ac_status" >&5
d11014 1
a11014 1
echo "$as_me:11166: result: $db_cv_int32" >&5
d11017 1
a11017 1
	{ { echo "$as_me:11169: error: No signed 32-bit integral type." >&5
d11026 2
a11027 2
# the same size as a size_t.  Prefer int over anything else, because read,
# write and others historically returned an int.
d11029 1
a11029 1
echo "$as_me:11181: checking for ssize_t" >&5
d11036 1
a11036 1
#line 11188 "configure"
d11048 1
a11048 1
if { (eval echo "$as_me:11200: \"$ac_compile\"") >&5
d11051 1
a11051 1
  echo "$as_me:11203: \$? = $ac_status" >&5
d11054 1
a11054 1
  { (eval echo "$as_me:11206: \"$ac_try\"") >&5
d11057 1
a11057 1
  echo "$as_me:11209: \$? = $ac_status" >&5
d11064 1
a11064 1
  { { echo "$as_me:11216: error: cannot run test program while cross compiling" >&5
d11069 1
a11069 1
#line 11221 "configure"
d11076 1
a11076 1
if { (eval echo "$as_me:11228: \"$ac_link\"") >&5
d11079 1
a11079 1
  echo "$as_me:11231: \$? = $ac_status" >&5
d11081 1
a11081 1
  { (eval echo "$as_me:11233: \"$ac_try\"") >&5
d11084 1
a11084 1
  echo "$as_me:11236: \$? = $ac_status" >&5
d11092 1
a11092 1
  { { echo "$as_me:11244: error: cannot run test program while cross compiling" >&5
d11097 1
a11097 1
#line 11249 "configure"
d11104 1
a11104 1
if { (eval echo "$as_me:11256: \"$ac_link\"") >&5
d11107 1
a11107 1
  echo "$as_me:11259: \$? = $ac_status" >&5
d11109 1
a11109 1
  { (eval echo "$as_me:11261: \"$ac_try\"") >&5
d11112 1
a11112 1
  echo "$as_me:11264: \$? = $ac_status" >&5
d11120 1
a11120 1
  { { echo "$as_me:11272: error: cannot run test program while cross compiling" >&5
d11125 1
a11125 1
#line 11277 "configure"
d11132 1
a11132 1
if { (eval echo "$as_me:11284: \"$ac_link\"") >&5
d11135 1
a11135 1
  echo "$as_me:11287: \$? = $ac_status" >&5
d11137 1
a11137 1
  { (eval echo "$as_me:11289: \"$ac_try\"") >&5
d11140 1
a11140 1
  echo "$as_me:11292: \$? = $ac_status" >&5
d11160 1
a11160 1
echo "$as_me:11312: result: $db_cv_ssize_t" >&5
d11168 1
a11168 1
echo "$as_me:11320: checking for largest integral type" >&5
d11175 1
a11175 1
#line 11327 "configure"
d11187 1
a11187 1
if { (eval echo "$as_me:11339: \"$ac_compile\"") >&5
d11190 1
a11190 1
  echo "$as_me:11342: \$? = $ac_status" >&5
d11193 1
a11193 1
  { (eval echo "$as_me:11345: \"$ac_try\"") >&5
d11196 1
a11196 1
  echo "$as_me:11348: \$? = $ac_status" >&5
d11206 1
a11206 1
echo "$as_me:11358: result: $db_cv_align_t" >&5
d11212 1
a11212 1
echo "$as_me:11364: checking for integral type equal to pointer size" >&5
d11220 1
a11220 1
  { { echo "$as_me:11372: error: cannot run test program while cross compiling" >&5
d11225 1
a11225 1
#line 11377 "configure"
d11230 1
a11230 1
if { (eval echo "$as_me:11382: \"$ac_link\"") >&5
d11233 1
a11233 1
  echo "$as_me:11385: \$? = $ac_status" >&5
d11235 1
a11235 1
  { (eval echo "$as_me:11387: \"$ac_try\"") >&5
d11238 1
a11238 1
  echo "$as_me:11390: \$? = $ac_status" >&5
d11249 1
a11249 1
  { { echo "$as_me:11401: error: cannot run test program while cross compiling" >&5
d11254 1
a11254 1
#line 11406 "configure"
d11259 1
a11259 1
if { (eval echo "$as_me:11411: \"$ac_link\"") >&5
d11262 1
a11262 1
  echo "$as_me:11414: \$? = $ac_status" >&5
d11264 1
a11264 1
  { (eval echo "$as_me:11416: \"$ac_try\"") >&5
d11267 1
a11267 1
  echo "$as_me:11419: \$? = $ac_status" >&5
d11278 1
a11278 1
  { { echo "$as_me:11430: error: cannot run test program while cross compiling" >&5
d11283 1
a11283 1
#line 11435 "configure"
d11288 1
a11288 1
if { (eval echo "$as_me:11440: \"$ac_link\"") >&5
d11291 1
a11291 1
  echo "$as_me:11443: \$? = $ac_status" >&5
d11293 1
a11293 1
  { (eval echo "$as_me:11445: \"$ac_try\"") >&5
d11296 1
a11296 1
  echo "$as_me:11448: \$? = $ac_status" >&5
d11307 1
a11307 1
echo "$as_me:11459: result: $db_cv_alignp_t" >&5
d11311 1
a11311 6
echo "$as_me:11463: checking for ANSI C exit success/failure values" >&5
echo $ECHO_N "checking for ANSI C exit success/failure values... $ECHO_C" >&6
if test "${db_cv_exit_defines+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

d11313 1
a11313 1
#line 11470 "configure"
d11315 5
a11319 8
#include <stdlib.h>
int
main ()
{
return (EXIT_SUCCESS);
  ;
  return 0;
}
d11321 4
a11324 24
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11482: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11485: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11488: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11491: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_exit_defines=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
db_cv_exit_defines=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11501: result: $db_cv_exit_defines" >&5
echo "${ECHO_T}$db_cv_exit_defines" >&6
if test "$db_cv_exit_defines" = yes; then
	cat >>confdefs.h <<\EOF
d11329 1
d11331 1
a11331 133
# Test for sched_yield, the test programs use it.
# We do this here because it changes $LIBS.
echo "$as_me:11512: checking for sched_yield in current configuration" >&5
echo $ECHO_N "checking for sched_yield in current configuration... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 11515 "configure"
#include "confdefs.h"
#include <sched.h>
int
main ()
{
(void)sched_yield();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11527: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11530: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11533: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11536: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:11538: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

	echo "$as_me:11544: result: no" >&5
echo "${ECHO_T}no" >&6
	echo "$as_me:11546: checking for sched_yield in -lrt" >&5
echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
	saved_libs=$LIBS
	LIBS="$LIBS -lrt"
	cat >conftest.$ac_ext <<_ACEOF
#line 11551 "configure"
#include "confdefs.h"
#include <sched.h>
int
main ()
{
(void)sched_yield();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11563: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11566: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11569: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11572: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:11574: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
LIBS="$saved_libs"; echo "$as_me:11579: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

# Test for a pthreads library, the test programs use it.
# We do this here because it changes $LIBS.
#
# XXX
# We can't do checking similar to the above because the Solaris C library
# includes pthread interfaces which are not thread-safe.  For that reason
# we always add -lpthread if we can find a pthread library.  Also we can't
# depend on any specific call existing (pthread_create, for example), as
# it may be #defined in an include file -- OSF/1 (Tru64) has this problem.
echo "$as_me:11595: checking for main in -lpthread" >&5
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
if test "${ac_cv_lib_pthread_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11603 "configure"
#include "confdefs.h"

int
main ()
{
main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11615: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11618: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11621: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11624: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_pthread_main=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_pthread_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11635: result: $ac_cv_lib_pthread_main" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
if test $ac_cv_lib_pthread_main = yes; then
  TEST_LIBS="$TEST_LIBS -lpthread"
fi

# Check for mutexes.
# We do this here because it changes $LIBS.
d11336 1
a11336 1
echo "$as_me:11647: checking for mutexes" >&5
d11374 1
a11374 1
  { { echo "$as_me:11685: error: cannot run test program while cross compiling" >&5
d11379 1
a11379 1
#line 11690 "configure"
d11394 1
a11394 1
if { (eval echo "$as_me:11705: \"$ac_link\"") >&5
d11397 1
a11397 1
  echo "$as_me:11708: \$? = $ac_status" >&5
d11399 1
a11399 1
  { (eval echo "$as_me:11710: \"$ac_try\"") >&5
d11402 1
a11402 1
  echo "$as_me:11713: \$? = $ac_status" >&5
d11420 1
a11420 1
  { { echo "$as_me:11731: error: cannot run test program while cross compiling" >&5
d11425 1
a11425 1
#line 11736 "configure"
d11442 1
a11442 1
if { (eval echo "$as_me:11753: \"$ac_link\"") >&5
d11445 1
a11445 1
  echo "$as_me:11756: \$? = $ac_status" >&5
d11447 1
a11447 1
  { (eval echo "$as_me:11758: \"$ac_try\"") >&5
d11450 1
a11450 1
  echo "$as_me:11761: \$? = $ac_status" >&5
d11464 1
a11464 1
  { { echo "$as_me:11775: error: cannot run test program while cross compiling" >&5
d11469 1
a11469 1
#line 11780 "configure"
d11486 1
a11486 1
if { (eval echo "$as_me:11797: \"$ac_link\"") >&5
d11489 1
a11489 1
  echo "$as_me:11800: \$? = $ac_status" >&5
d11491 1
a11491 1
  { (eval echo "$as_me:11802: \"$ac_try\"") >&5
d11494 1
a11494 1
  echo "$as_me:11805: \$? = $ac_status" >&5
d11506 1
a11506 1
	{ { echo "$as_me:11817: error: unable to find UI mutex interfaces" >&5
d11516 1
a11516 1
  { { echo "$as_me:11827: error: cannot run test program while cross compiling" >&5
d11521 1
a11521 1
#line 11832 "configure"
d11546 1
a11546 1
if { (eval echo "$as_me:11857: \"$ac_link\"") >&5
d11549 1
a11549 1
  echo "$as_me:11860: \$? = $ac_status" >&5
d11551 1
a11551 1
  { (eval echo "$as_me:11862: \"$ac_try\"") >&5
d11554 1
a11554 1
  echo "$as_me:11865: \$? = $ac_status" >&5
d11568 1
a11568 1
  { { echo "$as_me:11879: error: cannot run test program while cross compiling" >&5
d11573 1
a11573 1
#line 11884 "configure"
d11598 1
a11598 1
if { (eval echo "$as_me:11909: \"$ac_link\"") >&5
d11601 1
a11601 1
  echo "$as_me:11912: \$? = $ac_status" >&5
d11603 1
a11603 1
  { (eval echo "$as_me:11914: \"$ac_try\"") >&5
d11606 1
a11606 1
  echo "$as_me:11917: \$? = $ac_status" >&5
d11619 1
a11619 1
	{ { echo "$as_me:11930: error: unable to find POSIX mutex interfaces" >&5
d11628 1
a11628 1
  { { echo "$as_me:11939: error: cannot run test program while cross compiling" >&5
d11633 1
a11633 1
#line 11944 "configure"
d11651 1
a11651 1
if { (eval echo "$as_me:11962: \"$ac_link\"") >&5
d11654 1
a11654 1
  echo "$as_me:11965: \$? = $ac_status" >&5
d11656 1
a11656 1
  { (eval echo "$as_me:11967: \"$ac_try\"") >&5
d11659 1
a11659 1
  echo "$as_me:11970: \$? = $ac_status" >&5
d11674 1
a11674 1
  { { echo "$as_me:11985: error: cannot run test program while cross compiling" >&5
d11679 1
a11679 1
#line 11990 "configure"
d11683 1
a11683 1
#include <sys/mman.h>
d11694 1
a11694 1
if { (eval echo "$as_me:12005: \"$ac_link\"") >&5
d11697 1
a11697 1
  echo "$as_me:12008: \$? = $ac_status" >&5
d11699 1
a11699 1
  { (eval echo "$as_me:12010: \"$ac_try\"") >&5
d11702 1
a11702 1
  echo "$as_me:12013: \$? = $ac_status" >&5
d11718 1
a11718 1
#line 12029 "configure"
d11731 1
a11731 1
if { (eval echo "$as_me:12042: \"$ac_link\"") >&5
d11734 1
a11734 1
  echo "$as_me:12045: \$? = $ac_status" >&5
d11737 1
a11737 1
  { (eval echo "$as_me:12048: \"$ac_try\"") >&5
d11740 1
a11740 1
  echo "$as_me:12051: \$? = $ac_status" >&5
d11754 1
a11754 1
  { { echo "$as_me:12065: error: cannot run test program while cross compiling" >&5
d11759 1
a11759 1
#line 12070 "configure"
d11770 1
a11770 1
if { (eval echo "$as_me:12081: \"$ac_link\"") >&5
d11773 1
a11773 1
  echo "$as_me:12084: \$? = $ac_status" >&5
d11775 1
a11775 1
  { (eval echo "$as_me:12086: \"$ac_try\"") >&5
d11778 1
a11778 1
  echo "$as_me:12089: \$? = $ac_status" >&5
d11793 1
a11793 1
#line 12104 "configure"
d11806 1
a11806 1
if { (eval echo "$as_me:12117: \"$ac_link\"") >&5
d11809 1
a11809 1
  echo "$as_me:12120: \$? = $ac_status" >&5
d11812 1
a11812 1
  { (eval echo "$as_me:12123: \"$ac_try\"") >&5
d11815 1
a11815 1
  echo "$as_me:12126: \$? = $ac_status" >&5
d11831 1
a11831 1
#line 12142 "configure"
d11845 1
a11845 1
if { (eval echo "$as_me:12156: \"$ac_link\"") >&5
d11848 1
a11848 1
  echo "$as_me:12159: \$? = $ac_status" >&5
d11851 1
a11851 1
  { (eval echo "$as_me:12162: \"$ac_try\"") >&5
d11854 1
a11854 1
  echo "$as_me:12165: \$? = $ac_status" >&5
d11871 1
a11871 1
#line 12182 "configure"
d11885 1
a11885 1
if { (eval echo "$as_me:12196: \"$ac_link\"") >&5
d11888 1
a11888 1
  echo "$as_me:12199: \$? = $ac_status" >&5
d11891 1
a11891 1
  { (eval echo "$as_me:12202: \"$ac_try\"") >&5
d11894 1
a11894 1
  echo "$as_me:12205: \$? = $ac_status" >&5
d11907 1
a11907 1
#line 12218 "configure"
d11919 1
a11919 1
if { (eval echo "$as_me:12230: \"$ac_link\"") >&5
d11922 1
a11922 1
  echo "$as_me:12233: \$? = $ac_status" >&5
d11925 1
a11925 1
  { (eval echo "$as_me:12236: \"$ac_try\"") >&5
d11928 1
a11928 1
  echo "$as_me:12239: \$? = $ac_status" >&5
d11941 1
a11941 1
  { { echo "$as_me:12252: error: cannot run test program while cross compiling" >&5
d11946 1
a11946 1
#line 12257 "configure"
d11957 1
a11957 1
if { (eval echo "$as_me:12268: \"$ac_link\"") >&5
d11960 1
a11960 1
  echo "$as_me:12271: \$? = $ac_status" >&5
d11962 1
a11962 1
  { (eval echo "$as_me:12273: \"$ac_try\"") >&5
d11965 1
a11965 1
  echo "$as_me:12276: \$? = $ac_status" >&5
d11980 1
a11980 1
  { { echo "$as_me:12291: error: cannot run test program while cross compiling" >&5
d11985 1
a11985 1
#line 12296 "configure"
d11996 1
a11996 1
if { (eval echo "$as_me:12307: \"$ac_link\"") >&5
d11999 1
a11999 1
  echo "$as_me:12310: \$? = $ac_status" >&5
d12001 1
a12001 1
  { (eval echo "$as_me:12312: \"$ac_try\"") >&5
d12004 1
a12004 1
  echo "$as_me:12315: \$? = $ac_status" >&5
d12019 1
a12019 1
  { { echo "$as_me:12330: error: cannot run test program while cross compiling" >&5
d12024 1
a12024 1
#line 12335 "configure"
d12035 1
a12035 1
if { (eval echo "$as_me:12346: \"$ac_link\"") >&5
d12038 1
a12038 1
  echo "$as_me:12349: \$? = $ac_status" >&5
d12040 1
a12040 1
  { (eval echo "$as_me:12351: \"$ac_try\"") >&5
d12043 1
a12043 1
  echo "$as_me:12354: \$? = $ac_status" >&5
d12058 1
a12058 1
  { { echo "$as_me:12369: error: cannot run test program while cross compiling" >&5
d12063 1
a12063 1
#line 12374 "configure"
d12075 1
a12075 1
if { (eval echo "$as_me:12386: \"$ac_link\"") >&5
d12078 1
a12078 1
  echo "$as_me:12389: \$? = $ac_status" >&5
d12080 1
a12080 1
  { (eval echo "$as_me:12391: \"$ac_try\"") >&5
d12083 1
a12083 1
  echo "$as_me:12394: \$? = $ac_status" >&5
d12098 1
a12098 1
  { { echo "$as_me:12409: error: cannot run test program while cross compiling" >&5
d12103 1
a12103 1
#line 12414 "configure"
d12115 1
a12115 1
if { (eval echo "$as_me:12426: \"$ac_link\"") >&5
d12118 1
a12118 1
  echo "$as_me:12429: \$? = $ac_status" >&5
d12120 1
a12120 1
  { (eval echo "$as_me:12431: \"$ac_try\"") >&5
d12123 1
a12123 1
  echo "$as_me:12434: \$? = $ac_status" >&5
d12138 1
a12138 1
  { { echo "$as_me:12449: error: cannot run test program while cross compiling" >&5
d12143 1
a12143 1
#line 12454 "configure"
d12155 1
a12155 1
if { (eval echo "$as_me:12466: \"$ac_link\"") >&5
d12158 1
a12158 1
  echo "$as_me:12469: \$? = $ac_status" >&5
d12160 1
a12160 1
  { (eval echo "$as_me:12471: \"$ac_try\"") >&5
d12163 1
a12163 1
  echo "$as_me:12474: \$? = $ac_status" >&5
d12178 1
a12178 1
  { { echo "$as_me:12489: error: cannot run test program while cross compiling" >&5
d12183 1
a12183 1
#line 12494 "configure"
d12195 1
a12195 1
if { (eval echo "$as_me:12506: \"$ac_link\"") >&5
d12198 1
a12198 1
  echo "$as_me:12509: \$? = $ac_status" >&5
d12200 1
a12200 1
  { (eval echo "$as_me:12511: \"$ac_try\"") >&5
d12203 1
a12203 1
  echo "$as_me:12514: \$? = $ac_status" >&5
d12218 1
a12218 1
  { { echo "$as_me:12529: error: cannot run test program while cross compiling" >&5
d12223 1
a12223 1
#line 12534 "configure"
d12233 1
a12233 1
if { (eval echo "$as_me:12544: \"$ac_link\"") >&5
d12236 1
a12236 1
  echo "$as_me:12547: \$? = $ac_status" >&5
d12238 1
a12238 1
  { (eval echo "$as_me:12549: \"$ac_try\"") >&5
d12241 1
a12241 1
  echo "$as_me:12552: \$? = $ac_status" >&5
d12254 1
a12254 1
echo "$as_me:12565: result: $db_cv_mutex" >&5
d12258 1
a12258 1
	{ echo "$as_me:12569: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&5
d12410 1
a12410 1
echo "$as_me:12721: checking for $ac_func" >&5
d12416 1
a12416 1
#line 12727 "configure"
d12447 1
a12447 1
if { (eval echo "$as_me:12758: \"$ac_link\"") >&5
d12450 1
a12450 1
  echo "$as_me:12761: \$? = $ac_status" >&5
d12453 1
a12453 1
  { (eval echo "$as_me:12764: \"$ac_try\"") >&5
d12456 1
a12456 1
  echo "$as_me:12767: \$? = $ac_status" >&5
d12466 1
a12466 1
echo "$as_me:12777: result: `eval echo '${'$ac_ac_var'}'`" >&5
d12481 1
a12481 1
echo "$as_me:12792: checking for $ac_func" >&5
d12487 1
a12487 1
#line 12798 "configure"
d12518 1
a12518 1
if { (eval echo "$as_me:12829: \"$ac_link\"") >&5
d12521 1
a12521 1
  echo "$as_me:12832: \$? = $ac_status" >&5
d12524 1
a12524 1
  { (eval echo "$as_me:12835: \"$ac_try\"") >&5
d12527 1
a12527 1
  echo "$as_me:12838: \$? = $ac_status" >&5
d12537 1
a12537 1
echo "$as_me:12848: result: `eval echo '${'$ac_ac_var'}'`" >&5
d12561 1
a12561 1
echo "$as_me:12872: checking for $ac_func" >&5
d12567 1
a12567 1
#line 12878 "configure"
d12598 1
a12598 1
if { (eval echo "$as_me:12909: \"$ac_link\"") >&5
d12601 1
a12601 1
  echo "$as_me:12912: \$? = $ac_status" >&5
d12604 1
a12604 1
  { (eval echo "$as_me:12915: \"$ac_try\"") >&5
d12607 1
a12607 1
  echo "$as_me:12918: \$? = $ac_status" >&5
d12617 1
a12617 1
echo "$as_me:12928: result: `eval echo '${'$ac_ac_var'}'`" >&5
d12627 1
a12627 1
for ac_func in gettimeofday clock_gettime sysconf yield
d12630 1
a12630 1
echo "$as_me:12941: checking for $ac_func" >&5
d12636 1
a12636 1
#line 12947 "configure"
d12667 1
a12667 1
if { (eval echo "$as_me:12978: \"$ac_link\"") >&5
d12670 1
a12670 1
  echo "$as_me:12981: \$? = $ac_status" >&5
d12673 1
a12673 1
  { (eval echo "$as_me:12984: \"$ac_try\"") >&5
d12676 1
a12676 1
  echo "$as_me:12987: \$? = $ac_status" >&5
d12686 1
a12686 1
echo "$as_me:12997: result: `eval echo '${'$ac_ac_var'}'`" >&5
d12701 1
a12701 1
	{ echo "$as_me:13012: WARNING: pread/pwrite interfaces ignored on $host_os." >&5
d12708 1
a12708 1
echo "$as_me:13019: checking for $ac_func" >&5
d12714 1
a12714 1
#line 13025 "configure"
d12745 1
a12745 1
if { (eval echo "$as_me:13056: \"$ac_link\"") >&5
d12748 1
a12748 1
  echo "$as_me:13059: \$? = $ac_status" >&5
d12751 1
a12751 1
  { (eval echo "$as_me:13062: \"$ac_try\"") >&5
d12754 1
a12754 1
  echo "$as_me:13065: \$? = $ac_status" >&5
d12764 1
a12764 1
echo "$as_me:13075: result: `eval echo '${'$ac_ac_var'}'`" >&5
d12777 1
a12777 1
echo "$as_me:13088: checking for fcntl/F_SETFD" >&5
d12784 1
a12784 1
  { { echo "$as_me:13095: error: cannot run test program while cross compiling" >&5
d12789 1
a12789 1
#line 13100 "configure"
d12797 1
a12797 1
if { (eval echo "$as_me:13108: \"$ac_link\"") >&5
d12800 1
a12800 1
  echo "$as_me:13111: \$? = $ac_status" >&5
d12802 1
a12802 1
  { (eval echo "$as_me:13113: \"$ac_try\"") >&5
d12805 1
a12805 1
  echo "$as_me:13116: \$? = $ac_status" >&5
d12817 1
a12817 1
echo "$as_me:13128: result: $db_cv_fcntl_f_setfd" >&5
d12837 1
a12837 1
echo "$as_me:13148: checking for $ac_func" >&5
d12843 1
a12843 1
#line 13154 "configure"
d12874 1
a12874 1
if { (eval echo "$as_me:13185: \"$ac_link\"") >&5
d12877 1
a12877 1
  echo "$as_me:13188: \$? = $ac_status" >&5
d12880 1
a12880 1
  { (eval echo "$as_me:13191: \"$ac_try\"") >&5
d12883 1
a12883 1
  echo "$as_me:13194: \$? = $ac_status" >&5
d12893 1
a12893 1
echo "$as_me:13204: result: `eval echo '${'$ac_ac_var'}'`" >&5
d12901 1
a12901 1
  { { echo "$as_me:13212: error: No qsort library function." >&5
d12910 1
a12910 1
echo "$as_me:13221: checking for int type sprintf return value" >&5
d12917 1
a12917 1
  { { echo "$as_me:13228: error: cannot run test program while cross compiling" >&5
d12922 1
a12922 1
#line 13233 "configure"
d12927 1
a12927 1
if { (eval echo "$as_me:13238: \"$ac_link\"") >&5
d12930 1
a12930 1
  echo "$as_me:13241: \$? = $ac_status" >&5
d12932 1
a12932 1
  { (eval echo "$as_me:13243: \"$ac_try\"") >&5
d12935 1
a12935 1
  echo "$as_me:13246: \$? = $ac_status" >&5
d12947 1
a12947 1
echo "$as_me:13258: result: $db_cv_sprintf_count" >&5
d12963 1
a12963 1
{ echo "$as_me:13274: WARNING: Large file and C++ API support are incompatible on HP-UX" >&5
d12965 1
a12965 1
{ echo "$as_me:13276: WARNING: and Solaris 8; large file support has been turned off." >&5
d12978 1
a12978 1
  echo "$as_me:13289: checking for special C compiler options needed for large files" >&5
d12990 1
a12990 1
#line 13301 "configure"
d13010 1
a13010 1
if { (eval echo "$as_me:13321: \"$ac_compile\"") >&5
d13013 1
a13013 1
  echo "$as_me:13324: \$? = $ac_status" >&5
d13016 1
a13016 1
  { (eval echo "$as_me:13327: \"$ac_try\"") >&5
d13019 1
a13019 1
  echo "$as_me:13330: \$? = $ac_status" >&5
d13029 1
a13029 1
if { (eval echo "$as_me:13340: \"$ac_compile\"") >&5
d13032 1
a13032 1
  echo "$as_me:13343: \$? = $ac_status" >&5
d13035 1
a13035 1
  { (eval echo "$as_me:13346: \"$ac_try\"") >&5
d13038 1
a13038 1
  echo "$as_me:13349: \$? = $ac_status" >&5
d13052 1
a13052 1
echo "$as_me:13363: result: $ac_cv_sys_largefile_CC" >&5
d13058 1
a13058 1
  echo "$as_me:13369: checking for _FILE_OFFSET_BITS value needed for large files" >&5
d13066 1
a13066 1
#line 13377 "configure"
d13086 1
a13086 1
if { (eval echo "$as_me:13397: \"$ac_compile\"") >&5
d13089 1
a13089 1
  echo "$as_me:13400: \$? = $ac_status" >&5
d13092 1
a13092 1
  { (eval echo "$as_me:13403: \"$ac_try\"") >&5
d13095 1
a13095 1
  echo "$as_me:13406: \$? = $ac_status" >&5
d13104 1
a13104 1
#line 13415 "configure"
d13125 1
a13125 1
if { (eval echo "$as_me:13436: \"$ac_compile\"") >&5
d13128 1
a13128 1
  echo "$as_me:13439: \$? = $ac_status" >&5
d13131 1
a13131 1
  { (eval echo "$as_me:13442: \"$ac_try\"") >&5
d13134 1
a13134 1
  echo "$as_me:13445: \$? = $ac_status" >&5
d13145 1
a13145 1
echo "$as_me:13456: result: $ac_cv_sys_file_offset_bits" >&5
d13155 1
a13155 1
  echo "$as_me:13466: checking for _LARGE_FILES value needed for large files" >&5
d13163 1
a13163 1
#line 13474 "configure"
d13183 1
a13183 1
if { (eval echo "$as_me:13494: \"$ac_compile\"") >&5
d13186 1
a13186 1
  echo "$as_me:13497: \$? = $ac_status" >&5
d13189 1
a13189 1
  { (eval echo "$as_me:13500: \"$ac_try\"") >&5
d13192 1
a13192 1
  echo "$as_me:13503: \$? = $ac_status" >&5
d13201 1
a13201 1
#line 13512 "configure"
d13222 1
a13222 1
if { (eval echo "$as_me:13533: \"$ac_compile\"") >&5
d13225 1
a13225 1
  echo "$as_me:13536: \$? = $ac_status" >&5
d13228 1
a13228 1
  { (eval echo "$as_me:13539: \"$ac_try\"") >&5
d13231 1
a13231 1
  echo "$as_me:13542: \$? = $ac_status" >&5
d13242 1
a13242 1
echo "$as_me:13553: result: $ac_cv_sys_large_files" >&5
d13270 1
a13270 1
	{ echo "$as_me:13581: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&5
d13277 1
a13277 1
echo "$as_me:13588: checking for $ac_func" >&5
d13283 1
a13283 1
#line 13594 "configure"
d13314 1
a13314 1
if { (eval echo "$as_me:13625: \"$ac_link\"") >&5
d13317 1
a13317 1
  echo "$as_me:13628: \$? = $ac_status" >&5
d13320 1
a13320 1
  { (eval echo "$as_me:13631: \"$ac_try\"") >&5
d13323 1
a13323 1
  echo "$as_me:13634: \$? = $ac_status" >&5
d13333 1
a13333 1
echo "$as_me:13644: result: `eval echo '${'$ac_ac_var'}'`" >&5
d13346 1
a13346 1
	{ echo "$as_me:13657: WARNING: mmap(2) interface ignored on Ultrix." >&5
d13354 1
a13354 1
echo "$as_me:13665: checking for $ac_func" >&5
d13360 1
a13360 1
#line 13671 "configure"
d13391 1
a13391 1
if { (eval echo "$as_me:13702: \"$ac_link\"") >&5
d13394 1
a13394 1
  echo "$as_me:13705: \$? = $ac_status" >&5
d13397 1
a13397 1
  { (eval echo "$as_me:13708: \"$ac_try\"") >&5
d13400 1
a13400 1
  echo "$as_me:13711: \$? = $ac_status" >&5
d13410 1
a13410 1
echo "$as_me:13721: result: `eval echo '${'$ac_ac_var'}'`" >&5
d13423 1
a13423 1
echo "$as_me:13734: checking for $ac_func" >&5
d13429 1
a13429 1
#line 13740 "configure"
d13460 1
a13460 1
if { (eval echo "$as_me:13771: \"$ac_link\"") >&5
d13463 1
a13463 1
  echo "$as_me:13774: \$? = $ac_status" >&5
d13466 1
a13466 1
  { (eval echo "$as_me:13777: \"$ac_try\"") >&5
d13469 1
a13469 1
  echo "$as_me:13780: \$? = $ac_status" >&5
d13479 1
a13479 1
echo "$as_me:13790: result: `eval echo '${'$ac_ac_var'}'`" >&5
d13500 1
a13500 1
	{ echo "$as_me:13811: WARNING: shmget(2) interface ignored on SunOS." >&5
d13508 1
a13508 1
echo "$as_me:13819: checking for $ac_func" >&5
d13514 1
a13514 1
#line 13825 "configure"
d13545 1
a13545 1
if { (eval echo "$as_me:13856: \"$ac_link\"") >&5
d13548 1
a13548 1
  echo "$as_me:13859: \$? = $ac_status" >&5
d13551 1
a13551 1
  { (eval echo "$as_me:13862: \"$ac_try\"") >&5
d13554 1
a13554 1
  echo "$as_me:13865: \$? = $ac_status" >&5
d13564 1
a13564 1
echo "$as_me:13875: result: `eval echo '${'$ac_ac_var'}'`" >&5
d13580 1
a13580 1
	{ echo "$as_me:13891: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
d13593 1
a13593 1
    CREATE_LIST="$CREATE_LIST
d13596 1
a13596 1
    CREATE_LIST="$CREATE_LIST
d13603 1
a13603 1
    CREATE_LIST="$CREATE_LIST
a13616 1
    rep_ext.h:$srcdir/../include_auto/rep_ext.in
d13625 1
a13625 1
		CREATE_LIST="$CREATE_LIST
d13629 1
a13629 1
		CREATE_LIST="$CREATE_LIST
d13635 1
a13635 1
	CREATE_LIST="$CREATE_LIST db.ecd:../dist/db.ecd.in"
d13638 1
a13638 1
	CREATE_LIST="$CREATE_LIST db.spec:../dist/db.spec.in"
d13641 1
a13641 1
ac_config_files="$ac_config_files $CREATE_LIST"
d13722 1
a13722 1
{ echo "$as_me:14034: creating $CONFIG_STATUS" >&5
d13895 1
a13895 1
    { { echo "$as_me:14207: error: ambiguous option: $1
d13914 1
a13914 1
  '$CREATE_LIST' ) CONFIG_FILES="$CONFIG_FILES $CREATE_LIST" ;;
d13918 1
a13918 1
  -*) { { echo "$as_me:14230: error: unrecognized option: $1
d13923 1
a13923 1
  *) { { echo "$as_me:14235: error: invalid argument: $1" >&5
d14027 1
d14047 1
a14056 1
s,@@MAKEFILE_SOLINK@@,$MAKEFILE_SOLINK,;t t
a14058 1
s,@@MAKEFILE_XSOLINK@@,$MAKEFILE_XSOLINK,;t t
d14064 1
d14120 3
a14122 2
s,@@JAVAC@@,$JAVAC,;t t
s,@@_ACJNI_JAVAC@@,$_ACJNI_JAVAC,;t t
d14255 1
a14255 1
    { echo "$as_me:14565: creating $ac_file" >&5
d14273 1
a14273 1
         test -f "$f" || { { echo "$as_me:14583: error: cannot find input file: $f" >&5
d14286 1
a14286 1
           { { echo "$as_me:14596: error: cannot find input file: $f" >&5
d14347 1
a14347 1
  test x"$ac_file" != x- && { echo "$as_me:14657: creating $ac_file" >&5
d14358 1
a14358 1
         test -f "$f" || { { echo "$as_me:14668: error: cannot find input file: $f" >&5
d14371 1
a14371 1
           { { echo "$as_me:14681: error: cannot find input file: $f" >&5
d14488 1
a14488 1
      { echo "$as_me:14798: $ac_file is unchanged" >&5
@


1.1.1.5
log
@track: auto import
@
text
@d3 1
a3 1
# Generated by Autoconf 2.52.
a165 13
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

d250 10
d265 2
a266 6
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
d280 4
a283 3
#endif
#if HAVE_STRINGS_H
# include <strings.h>
a286 4
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
d382 1
a382 1
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
d391 1
a391 1
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
d573 1
a573 1
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
d586 1
a586 1
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
d618 1
a618 1
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
d628 1
a628 1
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
a642 11
for ac_var in exec_prefix prefix
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

# Be sure to have absolute paths.
d644 2
a645 1
              localstatedir libdir includedir oldincludedir infodir mandir
d650 1
d922 1
a922 1
generated by GNU Autoconf 2.52.  Invocation command line was
d1001 1
a1001 1
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
d1005 1
a1005 1
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
d1026 1
a1026 1
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
d1046 1
a1046 1
    { echo "$as_me:1065: loading site script $ac_site_file" >&5
d1057 1
a1057 1
    { echo "$as_me:1076: loading cache $cache_file" >&5
d1065 1
a1065 1
  { echo "$as_me:1084: creating cache $cache_file" >&5
d1072 1
a1072 1
ac_cache_corrupted=false
d1081 3
a1083 3
      { echo "$as_me:1100: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
d1085 3
a1087 3
      { echo "$as_me:1104: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
d1091 7
a1097 7
        { echo "$as_me:1110: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:1112:   former value:  $ac_old_val" >&5
echo "$as_me:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:1114:   current value: $ac_new_val" >&5
echo "$as_me:   current value: $ac_new_val" >&2;}
        ac_cache_corrupted=:
a1099 12
  # Pass precious variables to config.status.  It doesn't matter if
  # we pass some twice (in addition to the command line arguments).
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
      ac_configure_args="$ac_configure_args '$ac_arg'"
      ;;
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
       ;;
    esac
  fi
d1101 5
a1105 6
if $ac_cache_corrupted; then
  { echo "$as_me:1133: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { echo "$as_me:1135: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; }
d1123 1
a1123 1
if { (echo "$as_me:1155: PATH=\".;.\"; conftest.sh") >&5
d1126 1
a1126 1
  echo "$as_me:1158: \$? = $ac_status" >&5
d1155 1
a1155 1
  { { echo "$as_me:1187: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
d1165 1
a1165 1
  { { echo "$as_me:1197: error: cannot run $ac_config_sub" >&5
d1169 1
a1169 1
echo "$as_me:1201: checking build system type" >&5
d1178 1
a1178 1
  { { echo "$as_me:1210: error: cannot guess build type; you must specify one" >&5
d1182 1
a1182 1
  { { echo "$as_me:1214: error: $ac_config_sub $ac_cv_build_alias failed." >&5
d1187 1
a1187 1
echo "$as_me:1219: result: $ac_cv_build" >&5
d1194 1
a1194 1
echo "$as_me:1226: checking host system type" >&5
d1203 1
a1203 1
  { { echo "$as_me:1235: error: $ac_config_sub $ac_cv_host_alias failed" >&5
d1208 1
a1208 1
echo "$as_me:1240: result: $ac_cv_host" >&5
d1215 10
d1226 1
a1226 1
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
d1229 4
a1232 8
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
# Double any \ or $.  echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm conftest.sed
d1235 1
a1235 1
echo "$as_me:1261: checking if building in the top-level directory" >&5
d1237 1
a1237 1
 test -d db_archive  && { { echo "$as_me:1263: error:
d1242 1
a1242 1
echo "$as_me:1268: result: no" >&5
d1260 1
a1260 1
DB_VERSION_PATCH=14
d1264 1
a1264 1
DB_VERSION_STRING="\"Sleepycat Software: Berkeley DB 4.0.14: (November 18, 2001)\""
d1275 1
a1275 1
  { { echo "$as_me:1301: error: --enable-bigfile no longer supported, use --enable-largefile" >&5
d1280 1
a1280 1
echo "$as_me:1306: checking if --enable-compat185 option specified" >&5
d1289 1
a1289 1
echo "$as_me:1315: result: $db_cv_compat185" >&5
d1292 1
a1292 1
echo "$as_me:1318: checking if --enable-cxx option specified" >&5
d1301 1
a1301 1
echo "$as_me:1327: result: $db_cv_cxx" >&5
d1304 1
a1304 1
echo "$as_me:1330: checking if --enable-debug option specified" >&5
d1313 1
a1313 1
echo "$as_me:1339: result: $db_cv_debug" >&5
d1316 1
a1316 1
echo "$as_me:1342: checking if --enable-debug_rop option specified" >&5
d1325 1
a1325 1
echo "$as_me:1351: result: $db_cv_debug_rop" >&5
d1328 1
a1328 1
echo "$as_me:1354: checking if --enable-debug_wop option specified" >&5
d1337 1
a1337 1
echo "$as_me:1363: result: $db_cv_debug_wop" >&5
d1340 1
a1340 1
echo "$as_me:1366: checking if --enable-diagnostic option specified" >&5
d1349 1
a1349 1
echo "$as_me:1375: result: $db_cv_diagnostic" >&5
d1352 1
a1352 1
echo "$as_me:1378: checking if --enable-dump185 option specified" >&5
d1361 1
a1361 1
echo "$as_me:1387: result: $db_cv_dump185" >&5
d1364 1
a1364 1
echo "$as_me:1390: checking if --enable-java option specified" >&5
d1373 1
a1373 1
echo "$as_me:1399: result: $db_cv_java" >&5
d1376 1
a1376 1
echo "$as_me:1402: checking if --enable-posixmutexes option specified" >&5
d1385 1
a1385 1
echo "$as_me:1411: result: $db_cv_posixmutexes" >&5
d1388 1
a1388 1
echo "$as_me:1414: checking if --enable-rpc option specified" >&5
d1397 1
a1397 1
echo "$as_me:1423: result: $db_cv_rpc" >&5
d1400 1
a1400 1
echo "$as_me:1426: checking if --enable-tcl option specified" >&5
d1409 1
a1409 1
echo "$as_me:1435: result: $db_cv_tcl" >&5
d1412 1
a1412 1
echo "$as_me:1438: checking if --enable-test option specified" >&5
d1421 1
a1421 1
echo "$as_me:1447: result: $db_cv_test" >&5
d1424 1
a1424 1
echo "$as_me:1450: checking if --enable-uimutexes option specified" >&5
d1433 1
a1433 1
echo "$as_me:1459: result: $db_cv_uimutexes" >&5
d1436 1
a1436 1
echo "$as_me:1462: checking if --enable-umrw option specified" >&5
d1445 1
a1445 1
echo "$as_me:1471: result: $db_cv_umrw" >&5
d1448 1
a1448 1
echo "$as_me:1474: checking if --with-embedix=DIR option specified" >&5
d1460 1
a1460 1
	echo "$as_me:1486: result: $with_embedix" >&5
d1469 1
a1469 1
	echo "$as_me:1495: result: $db_cv_path_embedix_install" >&5
d1473 1
a1473 1
echo "$as_me:1499: checking if --with-rpm=DIR option specified" >&5
d1487 1
a1487 1
		{ { echo "$as_me:1513: error: --with-rpm requires a directory argument" >&5
d1494 1
a1494 1
echo "$as_me:1520: result: $with_rpm" >&5
d1497 1
a1497 1
echo "$as_me:1523: checking if --with-tcl=DIR option specified" >&5
d1507 1
a1507 1
echo "$as_me:1533: result: $with_tclconfig" >&5
d1513 1
a1513 1
echo "$as_me:1539: checking if --with-uniquename=NAME option specified" >&5
d1525 1
a1525 1
	echo "$as_me:1551: result: $with_uniquename" >&5
d1532 1
a1532 1
	echo "$as_me:1558: result: $DB_VERSION_UNIQUE_NAME" >&5
d1539 1
a1539 1
		{ { echo "$as_me:1565: error: --with-embedix requires --with-rpm" >&5
d1548 1
a1548 1
		{ { echo "$as_me:1574: error: --enable-test requires --enable-tcl" >&5
d1591 1
a1591 1
echo "$as_me:1617: checking for $ac_word" >&5
d1606 1
a1606 1
echo "$as_me:1632: found $ac_dir/$ac_word" >&5
d1614 1
a1614 1
  echo "$as_me:1640: result: $db_cv_path_ar" >&5
d1617 1
a1617 1
  echo "$as_me:1643: result: no" >&5
d1626 1
a1626 1
echo "$as_me:1652: checking for $ac_word" >&5
d1641 1
a1641 1
echo "$as_me:1667: found $ac_dir/$ac_word" >&5
d1650 1
a1650 1
  echo "$as_me:1676: result: $ac_ct_db_cv_path_ar" >&5
d1653 1
a1653 1
  echo "$as_me:1679: result: no" >&5
d1663 1
a1663 1
	{ { echo "$as_me:1689: error: No ar utility found." >&5
d1671 1
a1671 1
echo "$as_me:1697: checking for $ac_word" >&5
d1686 1
a1686 1
echo "$as_me:1712: found $ac_dir/$ac_word" >&5
d1694 1
a1694 1
  echo "$as_me:1720: result: $db_cv_path_chmod" >&5
d1697 1
a1697 1
  echo "$as_me:1723: result: no" >&5
d1706 1
a1706 1
echo "$as_me:1732: checking for $ac_word" >&5
d1721 1
a1721 1
echo "$as_me:1747: found $ac_dir/$ac_word" >&5
d1730 1
a1730 1
  echo "$as_me:1756: result: $ac_ct_db_cv_path_chmod" >&5
d1733 1
a1733 1
  echo "$as_me:1759: result: no" >&5
d1743 1
a1743 1
	{ { echo "$as_me:1769: error: No chmod utility found." >&5
d1751 1
a1751 1
echo "$as_me:1777: checking for $ac_word" >&5
d1766 1
a1766 1
echo "$as_me:1792: found $ac_dir/$ac_word" >&5
d1774 1
a1774 1
  echo "$as_me:1800: result: $db_cv_path_cp" >&5
d1777 1
a1777 1
  echo "$as_me:1803: result: no" >&5
d1786 1
a1786 1
echo "$as_me:1812: checking for $ac_word" >&5
d1801 1
a1801 1
echo "$as_me:1827: found $ac_dir/$ac_word" >&5
d1810 1
a1810 1
  echo "$as_me:1836: result: $ac_ct_db_cv_path_cp" >&5
d1813 1
a1813 1
  echo "$as_me:1839: result: no" >&5
d1823 1
a1823 1
	{ { echo "$as_me:1849: error: No cp utility found." >&5
d1832 1
a1832 1
echo "$as_me:1858: checking for $ac_word" >&5
d1847 1
a1847 1
echo "$as_me:1873: found $ac_dir/$ac_word" >&5
d1855 1
a1855 1
  echo "$as_me:1881: result: $path_ldconfig" >&5
d1858 1
a1858 1
  echo "$as_me:1884: result: no" >&5
d1867 1
a1867 1
echo "$as_me:1893: checking for $ac_word" >&5
d1882 1
a1882 1
echo "$as_me:1908: found $ac_dir/$ac_word" >&5
d1891 1
a1891 1
  echo "$as_me:1917: result: $ac_ct_path_ldconfig" >&5
d1894 1
a1894 1
  echo "$as_me:1920: result: no" >&5
d1905 1
a1905 1
echo "$as_me:1931: checking for $ac_word" >&5
d1922 1
a1922 1
   echo "$as_me:1948: found $ac_dir/$ac_word" >&5
d1934 1
a1934 1
  echo "$as_me:1960: result: $db_cv_path_ldconfig" >&5
d1937 1
a1937 1
  echo "$as_me:1963: result: no" >&5
d1950 1
a1950 1
echo "$as_me:1976: checking for $ac_word" >&5
d1965 1
a1965 1
echo "$as_me:1991: found $ac_dir/$ac_word" >&5
d1973 1
a1973 1
  echo "$as_me:1999: result: $db_cv_path_ln" >&5
d1976 1
a1976 1
  echo "$as_me:2002: result: no" >&5
d1985 1
a1985 1
echo "$as_me:2011: checking for $ac_word" >&5
d2000 1
a2000 1
echo "$as_me:2026: found $ac_dir/$ac_word" >&5
d2009 1
a2009 1
  echo "$as_me:2035: result: $ac_ct_db_cv_path_ln" >&5
d2012 1
a2012 1
  echo "$as_me:2038: result: no" >&5
d2022 1
a2022 1
	{ { echo "$as_me:2048: error: No ln utility found." >&5
d2030 1
a2030 1
echo "$as_me:2056: checking for $ac_word" >&5
d2045 1
a2045 1
echo "$as_me:2071: found $ac_dir/$ac_word" >&5
d2053 1
a2053 1
  echo "$as_me:2079: result: $db_cv_path_mkdir" >&5
d2056 1
a2056 1
  echo "$as_me:2082: result: no" >&5
d2065 1
a2065 1
echo "$as_me:2091: checking for $ac_word" >&5
d2080 1
a2080 1
echo "$as_me:2106: found $ac_dir/$ac_word" >&5
d2089 1
a2089 1
  echo "$as_me:2115: result: $ac_ct_db_cv_path_mkdir" >&5
d2092 1
a2092 1
  echo "$as_me:2118: result: no" >&5
d2102 1
a2102 1
	{ { echo "$as_me:2128: error: No mkdir utility found." >&5
d2112 1
a2112 1
echo "$as_me:2138: checking for $ac_word" >&5
d2127 1
a2127 1
echo "$as_me:2153: found $ac_dir/$ac_word" >&5
d2135 1
a2135 1
  echo "$as_me:2161: result: $path_ranlib" >&5
d2138 1
a2138 1
  echo "$as_me:2164: result: no" >&5
d2147 1
a2147 1
echo "$as_me:2173: checking for $ac_word" >&5
d2162 1
a2162 1
echo "$as_me:2188: found $ac_dir/$ac_word" >&5
d2171 1
a2171 1
  echo "$as_me:2197: result: $ac_ct_path_ranlib" >&5
d2174 1
a2174 1
  echo "$as_me:2200: result: no" >&5
d2185 1
a2185 1
echo "$as_me:2211: checking for $ac_word" >&5
d2202 1
a2202 1
   echo "$as_me:2228: found $ac_dir/$ac_word" >&5
d2214 1
a2214 1
  echo "$as_me:2240: result: $db_cv_path_ranlib" >&5
d2217 1
a2217 1
  echo "$as_me:2243: result: no" >&5
d2224 1
a2224 1
echo "$as_me:2250: checking for $ac_word" >&5
d2239 1
a2239 1
echo "$as_me:2265: found $ac_dir/$ac_word" >&5
d2247 1
a2247 1
  echo "$as_me:2273: result: $db_cv_path_rm" >&5
d2250 1
a2250 1
  echo "$as_me:2276: result: no" >&5
d2259 1
a2259 1
echo "$as_me:2285: checking for $ac_word" >&5
d2274 1
a2274 1
echo "$as_me:2300: found $ac_dir/$ac_word" >&5
d2283 1
a2283 1
  echo "$as_me:2309: result: $ac_ct_db_cv_path_rm" >&5
d2286 1
a2286 1
  echo "$as_me:2312: result: no" >&5
d2296 1
a2296 1
	{ { echo "$as_me:2322: error: No rm utility found." >&5
d2305 1
a2305 1
echo "$as_me:2331: checking for $ac_word" >&5
d2320 1
a2320 1
echo "$as_me:2346: found $ac_dir/$ac_word" >&5
d2328 1
a2328 1
  echo "$as_me:2354: result: $db_cv_path_rpm" >&5
d2331 1
a2331 1
  echo "$as_me:2357: result: no" >&5
d2340 1
a2340 1
echo "$as_me:2366: checking for $ac_word" >&5
d2355 1
a2355 1
echo "$as_me:2381: found $ac_dir/$ac_word" >&5
d2364 1
a2364 1
  echo "$as_me:2390: result: $ac_ct_db_cv_path_rpm" >&5
d2367 1
a2367 1
  echo "$as_me:2393: result: no" >&5
d2377 1
a2377 1
		{ { echo "$as_me:2403: error: No rpm utility found." >&5
d2388 1
a2388 1
echo "$as_me:2414: checking for $ac_word" >&5
d2403 1
a2403 1
echo "$as_me:2429: found $ac_dir/$ac_word" >&5
d2411 1
a2411 1
  echo "$as_me:2437: result: $path_sh" >&5
d2414 1
a2414 1
  echo "$as_me:2440: result: no" >&5
d2423 1
a2423 1
echo "$as_me:2449: checking for $ac_word" >&5
d2438 1
a2438 1
echo "$as_me:2464: found $ac_dir/$ac_word" >&5
d2447 1
a2447 1
  echo "$as_me:2473: result: $ac_ct_path_sh" >&5
d2450 1
a2450 1
  echo "$as_me:2476: result: no" >&5
d2461 1
a2461 1
echo "$as_me:2487: checking for $ac_word" >&5
d2478 1
a2478 1
   echo "$as_me:2504: found $ac_dir/$ac_word" >&5
d2490 1
a2490 1
  echo "$as_me:2516: result: $db_cv_path_sh" >&5
d2493 1
a2493 1
  echo "$as_me:2519: result: no" >&5
d2498 1
a2498 1
	{ { echo "$as_me:2524: error: No sh utility found." >&5
d2510 1
a2510 1
echo "$as_me:2536: checking for $ac_word" >&5
d2525 1
a2525 1
echo "$as_me:2551: found $ac_dir/$ac_word" >&5
d2533 1
a2533 1
  echo "$as_me:2559: result: $path_strip" >&5
d2536 1
a2536 1
  echo "$as_me:2562: result: no" >&5
d2545 1
a2545 1
echo "$as_me:2571: checking for $ac_word" >&5
d2560 1
a2560 1
echo "$as_me:2586: found $ac_dir/$ac_word" >&5
d2569 1
a2569 1
  echo "$as_me:2595: result: $ac_ct_path_strip" >&5
d2572 1
a2572 1
  echo "$as_me:2598: result: no" >&5
d2583 1
a2583 1
echo "$as_me:2609: checking for $ac_word" >&5
d2600 1
a2600 1
   echo "$as_me:2626: found $ac_dir/$ac_word" >&5
d2612 1
a2612 1
  echo "$as_me:2638: result: $db_cv_path_strip" >&5
d2615 1
a2615 1
  echo "$as_me:2641: result: no" >&5
d2625 1
a2625 1
echo "$as_me:2651: checking for $ac_word" >&5
d2640 1
a2640 1
echo "$as_me:2666: found $ac_dir/$ac_word" >&5
d2648 1
a2648 1
  echo "$as_me:2674: result: $db_cv_path_kill" >&5
d2651 1
a2651 1
  echo "$as_me:2677: result: no" >&5
d2660 1
a2660 1
echo "$as_me:2686: checking for $ac_word" >&5
d2675 1
a2675 1
echo "$as_me:2701: found $ac_dir/$ac_word" >&5
d2684 1
a2684 1
  echo "$as_me:2710: result: $ac_ct_db_cv_path_kill" >&5
d2687 1
a2687 1
  echo "$as_me:2713: result: no" >&5
d2697 1
a2697 1
		{ { echo "$as_me:2723: error: No kill utility found." >&5
d2715 1
a2715 1
echo "$as_me:2741: checking for a BSD compatible install" >&5
d2764 1
a2764 1
echo "$as_me:2790: result: $INSTALL" >&5
d2810 1
a2810 1
aix4.3.1*|aix4.3.2*)
d2813 3
a2815 2
	CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE";;
aix4.3.3*)
d2819 2
a2820 1
	LDFLAGS="$LDFLAGS -pthread";;
d2878 1
a2878 1
echo "$as_me:2902: checking for $ac_word" >&5
d2893 1
a2893 1
echo "$as_me:2917: found $ac_dir/$ac_word" >&5
d2901 1
a2901 1
  echo "$as_me:2925: result: $CC" >&5
d2904 1
a2904 1
  echo "$as_me:2928: result: no" >&5
d2913 1
a2913 1
echo "$as_me:2937: checking for $ac_word" >&5
d2928 1
a2928 1
echo "$as_me:2952: found $ac_dir/$ac_word" >&5
d2936 1
a2936 1
  echo "$as_me:2960: result: $ac_ct_CC" >&5
d2939 1
a2939 1
  echo "$as_me:2963: result: no" >&5
d2951 1
a2951 1
echo "$as_me:2975: checking for $ac_word" >&5
d2966 1
a2966 1
echo "$as_me:2990: found $ac_dir/$ac_word" >&5
d2974 1
a2974 1
  echo "$as_me:2998: result: $CC" >&5
d2977 1
a2977 1
  echo "$as_me:3001: result: no" >&5
d2986 1
a2986 1
echo "$as_me:3010: checking for $ac_word" >&5
d3001 1
a3001 1
echo "$as_me:3025: found $ac_dir/$ac_word" >&5
d3009 1
a3009 1
  echo "$as_me:3033: result: $ac_ct_CC" >&5
d3012 1
a3012 1
  echo "$as_me:3036: result: no" >&5
d3029 1
a3029 1
echo "$as_me:3053: checking for $ac_word" >&5
d3044 1
a3044 1
echo "$as_me:3068: found $ac_dir/$ac_word" >&5
d3052 1
a3052 1
  echo "$as_me:3076: result: $CC" >&5
d3055 1
a3055 1
  echo "$as_me:3079: result: no" >&5
d3064 1
a3064 1
echo "$as_me:3088: checking for $ac_word" >&5
d3079 1
a3079 1
echo "$as_me:3103: found $ac_dir/$ac_word" >&5
d3087 1
a3087 1
  echo "$as_me:3111: result: $ac_ct_CC" >&5
d3090 1
a3090 1
  echo "$as_me:3114: result: no" >&5
d3103 1
a3103 1
echo "$as_me:3127: checking for $ac_word" >&5
d3118 1
a3118 1
echo "$as_me:3142: found $ac_dir/$ac_word" >&5
d3126 1
a3126 1
  echo "$as_me:3150: result: $CC" >&5
d3129 1
a3129 1
  echo "$as_me:3153: result: no" >&5
d3138 1
a3138 1
echo "$as_me:3162: checking for $ac_word" >&5
d3153 1
a3153 1
echo "$as_me:3177: found $ac_dir/$ac_word" >&5
d3161 1
a3161 1
  echo "$as_me:3185: result: $ac_ct_CC" >&5
d3164 1
a3164 1
  echo "$as_me:3188: result: no" >&5
d3177 1
a3177 1
echo "$as_me:3201: checking for $ac_word" >&5
d3197 1
a3197 1
echo "$as_me:3221: found $ac_dir/$ac_word" >&5
d3219 1
a3219 1
  echo "$as_me:3243: result: $CC" >&5
d3222 1
a3222 1
  echo "$as_me:3246: result: no" >&5
d3233 1
a3233 1
echo "$as_me:3257: checking for $ac_word" >&5
d3248 1
a3248 1
echo "$as_me:3272: found $ac_dir/$ac_word" >&5
d3256 1
a3256 1
  echo "$as_me:3280: result: $CC" >&5
d3259 1
a3259 1
  echo "$as_me:3283: result: no" >&5
d3272 1
a3272 1
echo "$as_me:3296: checking for $ac_word" >&5
d3287 1
a3287 1
echo "$as_me:3311: found $ac_dir/$ac_word" >&5
d3295 1
a3295 1
  echo "$as_me:3319: result: $ac_ct_CC" >&5
d3298 1
a3298 1
  echo "$as_me:3322: result: no" >&5
d3310 1
a3310 1
test -z "$CC" && { { echo "$as_me:3334: error: no acceptable cc found in \$PATH" >&5
a3313 20
# Provide some information about the compiler.
echo "$as_me:3339:" \
     "checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:3342: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:3345: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:3347: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:3350: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:3352: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:3355: \$? = $ac_status" >&5
  (exit $ac_status); }

d3315 1
a3315 1
#line 3359 "configure"
d3329 1
a3329 1
# It will help us diagnose broken compilers, and finding out an intuition
d3331 1
a3331 1
echo "$as_me:3375: checking for C compiler default output" >&5
d3334 1
a3334 1
if { (eval echo "$as_me:3378: \"$ac_link_default\"") >&5
d3337 1
a3337 1
  echo "$as_me:3381: \$? = $ac_status" >&5
d3339 1
a3339 6
  # Find the output, starting from the most likely.  This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
                ls a.out conftest 2>/dev/null;
                ls a.* conftest.* 2>/dev/null`; do
a3345 1
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
d3354 1
a3354 1
{ { echo "$as_me:3404: error: C compiler cannot create executables" >&5
d3360 1
a3360 1
echo "$as_me:3410: result: $ac_file" >&5
d3365 1
a3365 1
echo "$as_me:3415: checking whether the C compiler works" >&5
d3371 1
a3371 1
  { (eval echo "$as_me:3421: \"$ac_try\"") >&5
d3374 1
a3374 1
  echo "$as_me:3424: \$? = $ac_status" >&5
d3381 1
a3381 1
	{ { echo "$as_me:3431: error: cannot run C compiled programs.
d3389 1
a3389 1
echo "$as_me:3439: result: yes" >&5
d3396 1
a3396 1
echo "$as_me:3446: checking whether we are cross compiling" >&5
d3398 1
a3398 1
echo "$as_me:3448: result: $cross_compiling" >&5
d3401 1
a3401 1
echo "$as_me:3451: checking for executable suffix" >&5
d3403 1
a3403 1
if { (eval echo "$as_me:3453: \"$ac_link\"") >&5
d3406 1
a3406 1
  echo "$as_me:3456: \$? = $ac_status" >&5
d3422 1
a3422 1
  { { echo "$as_me:3472: error: cannot compute EXEEXT: cannot compile and link" >&5
d3428 1
a3428 1
echo "$as_me:3478: result: $ac_cv_exeext" >&5
d3434 1
a3434 1
echo "$as_me:3484: checking for object suffix" >&5
d3440 1
a3440 1
#line 3490 "configure"
d3452 1
a3452 1
if { (eval echo "$as_me:3502: \"$ac_compile\"") >&5
d3455 1
a3455 1
  echo "$as_me:3505: \$? = $ac_status" >&5
d3467 1
a3467 1
{ { echo "$as_me:3517: error: cannot compute OBJEXT: cannot compile" >&5
d3474 1
a3474 1
echo "$as_me:3524: result: $ac_cv_objext" >&5
d3478 1
a3478 1
echo "$as_me:3528: checking whether we are using the GNU C compiler" >&5
d3484 1
a3484 1
#line 3534 "configure"
d3499 1
a3499 1
if { (eval echo "$as_me:3549: \"$ac_compile\"") >&5
d3502 1
a3502 1
  echo "$as_me:3552: \$? = $ac_status" >&5
d3505 1
a3505 1
  { (eval echo "$as_me:3555: \"$ac_try\"") >&5
d3508 1
a3508 1
  echo "$as_me:3558: \$? = $ac_status" >&5
d3520 1
a3520 1
echo "$as_me:3570: result: $ac_cv_c_compiler_gnu" >&5
d3526 1
a3526 1
echo "$as_me:3576: checking whether $CC accepts -g" >&5
d3532 1
a3532 1
#line 3582 "configure"
d3544 1
a3544 1
if { (eval echo "$as_me:3594: \"$ac_compile\"") >&5
d3547 1
a3547 1
  echo "$as_me:3597: \$? = $ac_status" >&5
d3550 1
a3550 1
  { (eval echo "$as_me:3600: \"$ac_try\"") >&5
d3553 1
a3553 1
  echo "$as_me:3603: \$? = $ac_status" >&5
d3563 1
a3563 1
echo "$as_me:3613: result: $ac_cv_prog_cc_g" >&5
d3590 1
a3590 1
if { (eval echo "$as_me:3640: \"$ac_compile\"") >&5
d3593 1
a3593 1
  echo "$as_me:3643: \$? = $ac_status" >&5
d3596 1
a3596 1
  { (eval echo "$as_me:3646: \"$ac_try\"") >&5
d3599 1
a3599 1
  echo "$as_me:3649: \$? = $ac_status" >&5
d3611 1
a3611 1
#line 3661 "configure"
d3624 1
a3624 1
if { (eval echo "$as_me:3674: \"$ac_compile\"") >&5
d3627 1
a3627 1
  echo "$as_me:3677: \$? = $ac_status" >&5
d3630 1
a3630 1
  { (eval echo "$as_me:3680: \"$ac_try\"") >&5
d3633 1
a3633 1
  echo "$as_me:3683: \$? = $ac_status" >&5
d3643 1
a3643 1
#line 3693 "configure"
d3655 1
a3655 1
if { (eval echo "$as_me:3705: \"$ac_compile\"") >&5
d3658 1
a3658 1
  echo "$as_me:3708: \$? = $ac_status" >&5
d3661 1
a3661 1
  { (eval echo "$as_me:3711: \"$ac_try\"") >&5
d3664 1
a3664 1
  echo "$as_me:3714: \$? = $ac_status" >&5
d3673 3
a3675 6
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi
d3709 1
a3709 1
echo "$as_me:3762: checking for $ac_word" >&5
d3724 1
a3724 1
echo "$as_me:3777: found $ac_dir/$ac_word" >&5
d3732 1
a3732 1
  echo "$as_me:3785: result: $CCC" >&5
d3735 1
a3735 1
  echo "$as_me:3788: result: no" >&5
d3744 1
a3744 1
echo "$as_me:3797: checking for $ac_word" >&5
d3759 1
a3759 1
echo "$as_me:3812: found $ac_dir/$ac_word" >&5
d3767 1
a3767 1
  echo "$as_me:3820: result: $ac_ct_CCC" >&5
d3770 1
a3770 1
  echo "$as_me:3823: result: no" >&5
d3784 1
a3784 1
echo "$as_me:3837: checking for $ac_word" >&5
d3799 1
a3799 1
echo "$as_me:3852: found $ac_dir/$ac_word" >&5
d3807 1
a3807 1
  echo "$as_me:3860: result: $CCC" >&5
d3810 1
a3810 1
  echo "$as_me:3863: result: no" >&5
d3819 1
a3819 1
echo "$as_me:3872: checking for $ac_word" >&5
d3834 1
a3834 1
echo "$as_me:3887: found $ac_dir/$ac_word" >&5
d3842 1
a3842 1
  echo "$as_me:3895: result: $ac_ct_CCC" >&5
d3845 1
a3845 1
  echo "$as_me:3898: result: no" >&5
d3857 1
a3857 1
echo "$as_me:3910: checking for $ac_word" >&5
d3872 1
a3872 1
echo "$as_me:3925: found $ac_dir/$ac_word" >&5
d3880 1
a3880 1
  echo "$as_me:3933: result: $CCC" >&5
d3883 1
a3883 1
  echo "$as_me:3936: result: no" >&5
d3892 1
a3892 1
echo "$as_me:3945: checking for $ac_word" >&5
d3907 1
a3907 1
echo "$as_me:3960: found $ac_dir/$ac_word" >&5
d3915 1
a3915 1
  echo "$as_me:3968: result: $ac_ct_CCC" >&5
d3918 1
a3918 1
  echo "$as_me:3971: result: no" >&5
d3930 1
a3930 1
echo "$as_me:3983: checking for $ac_word" >&5
d3945 1
a3945 1
echo "$as_me:3998: found $ac_dir/$ac_word" >&5
d3953 1
a3953 1
  echo "$as_me:4006: result: $CCC" >&5
d3956 1
a3956 1
  echo "$as_me:4009: result: no" >&5
d3965 1
a3965 1
echo "$as_me:4018: checking for $ac_word" >&5
d3980 1
a3980 1
echo "$as_me:4033: found $ac_dir/$ac_word" >&5
d3988 1
a3988 1
  echo "$as_me:4041: result: $ac_ct_CCC" >&5
d3991 1
a3991 1
  echo "$as_me:4044: result: no" >&5
d4008 1
a4008 1
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
d4012 1
a4012 1
echo "$as_me:4065: checking for $ac_word" >&5
d4027 1
a4027 1
echo "$as_me:4080: found $ac_dir/$ac_word" >&5
d4035 1
a4035 1
  echo "$as_me:4088: result: $CXX" >&5
d4038 1
a4038 1
  echo "$as_me:4091: result: no" >&5
d4047 1
a4047 1
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
d4051 1
a4051 1
echo "$as_me:4104: checking for $ac_word" >&5
d4066 1
a4066 1
echo "$as_me:4119: found $ac_dir/$ac_word" >&5
d4074 1
a4074 1
  echo "$as_me:4127: result: $ac_ct_CXX" >&5
d4077 1
a4077 1
  echo "$as_me:4130: result: no" >&5
d4088 1
a4088 21
# Provide some information about the compiler.
echo "$as_me:4142:" \
     "checking for C++ compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:4145: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:4148: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:4150: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:4153: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:4155: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:4158: \$? = $ac_status" >&5
  (exit $ac_status); }

echo "$as_me:4161: checking whether we are using the GNU C++ compiler" >&5
d4094 1
a4094 1
#line 4167 "configure"
d4109 1
a4109 1
if { (eval echo "$as_me:4182: \"$ac_compile\"") >&5
d4112 1
a4112 1
  echo "$as_me:4185: \$? = $ac_status" >&5
d4115 1
a4115 1
  { (eval echo "$as_me:4188: \"$ac_try\"") >&5
d4118 1
a4118 1
  echo "$as_me:4191: \$? = $ac_status" >&5
d4130 1
a4130 1
echo "$as_me:4203: result: $ac_cv_cxx_compiler_gnu" >&5
d4136 1
a4136 1
echo "$as_me:4209: checking whether $CXX accepts -g" >&5
d4142 1
a4142 1
#line 4215 "configure"
d4154 1
a4154 1
if { (eval echo "$as_me:4227: \"$ac_compile\"") >&5
d4157 1
a4157 1
  echo "$as_me:4230: \$? = $ac_status" >&5
d4160 1
a4160 1
  { (eval echo "$as_me:4233: \"$ac_try\"") >&5
d4163 1
a4163 1
  echo "$as_me:4236: \$? = $ac_status" >&5
d4173 1
a4173 1
echo "$as_me:4246: result: $ac_cv_prog_cxx_g" >&5
d4200 1
a4200 1
#line 4273 "configure"
d4213 1
a4213 1
if { (eval echo "$as_me:4286: \"$ac_compile\"") >&5
d4216 1
a4216 1
  echo "$as_me:4289: \$? = $ac_status" >&5
d4219 1
a4219 1
  { (eval echo "$as_me:4292: \"$ac_try\"") >&5
d4222 1
a4222 1
  echo "$as_me:4295: \$? = $ac_status" >&5
d4232 1
a4232 1
#line 4305 "configure"
d4244 1
a4244 1
if { (eval echo "$as_me:4317: \"$ac_compile\"") >&5
d4247 1
a4247 1
  echo "$as_me:4320: \$? = $ac_status" >&5
d4250 1
a4250 1
  { (eval echo "$as_me:4323: \"$ac_try\"") >&5
d4253 1
a4253 1
  echo "$as_me:4326: \$? = $ac_status" >&5
d4262 3
a4264 6
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi
d4272 10
a4281 3
echo "$as_me:4348: checking whether C++ supports the ISO C++ standard includes" >&5
echo $ECHO_N "checking whether C++ supports the ISO C++ standard includes... $ECHO_C" >&6
if test "${db_cv_cxx_have_stdheaders+set}" = set; then
d4285 7
a4291 8
 ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

 cat >conftest.$ac_ext <<_ACEOF
#line 4361 "configure"
d4293 14
a4306 9
#include <iostream>

int
main ()
{
return 0;
  ;
  return 0;
}
d4308 3
a4310 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4374: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d4312 3
a4314 4
  echo "$as_me:4377: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4380: \"$ac_try\"") >&5
d4317 1
a4317 1
  echo "$as_me:4383: \$? = $ac_status" >&5
d4319 1
a4319 1
  db_cv_cxx_have_stdheaders=yes
d4321 2
a4322 1
  echo "$as_me: failed program was:" >&5
d4324 1
a4324 14
db_cv_cxx_have_stdheaders=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
 ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
echo "$as_me:4399: result: $db_cv_cxx_have_stdheaders" >&5
echo "${ECHO_T}$db_cv_cxx_have_stdheaders" >&6
if test "$db_cv_cxx_have_stdheaders" = yes; then
	cxx_have_stdheaders="#define	HAVE_CXX_STDHEADERS 1"
d4326 1
a4326 19
	MAKEFILE_CXX="${CXX}"
	MAKEFILE_CXXLINK="${CXX}"
fi

# Do some gcc specific configuration.

echo "$as_me:4410: checking whether we are using gcc version 2.96" >&5
echo $ECHO_N "checking whether we are using gcc version 2.96... $ECHO_C" >&6
if test "${db_cv_gcc_2_96+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

db_cv_gcc_2_96=no
if test "$GCC" = "yes"; then
	GCC_VERSION=`${MAKEFILE_CC} --version`
	case ${GCC_VERSION} in
	2.96*)
		db_cv_gcc_2_96=yes;;
	esac
d4329 3
a4331 3
echo "$as_me:4425: result: $db_cv_gcc_2_96" >&5
echo "${ECHO_T}$db_cv_gcc_2_96" >&6
if test "$db_cv_gcc_2_96" = "yes"; then
d4334 1
a4334 1
	{ echo "$as_me:4430: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&5
d4336 1
a4336 1
	{ echo "$as_me:4432: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&5
d4338 1
a4340 7
echo "$as_me:4436: checking whether g++ requires -fhandle-exceptions" >&5
echo $ECHO_N "checking whether g++ requires -fhandle-exceptions... $ECHO_C" >&6
if test "${db_cv_gxx_except+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

db_cv_gxx_except=no;
d4342 2
a4343 2
	GXX_VERSION=`${MAKEFILE_CXX} --version`
	case ${GXX_VERSION} in
d4345 3
a4347 1
		db_cv_gxx_except=yes;;
a4349 6
fi
echo "$as_me:4451: result: $db_cv_gxx_except" >&5
echo "${ECHO_T}$db_cv_gxx_except" >&6
if test "$db_cv_gxx_except" = "yes"; then
	CXXFLAGS="$CXXFLAGS -fhandle-exceptions"
fi
d4443 1
a4443 1
  echo "$as_me:4549: checking for ld used by GCC" >&5
d4473 1
a4473 1
  echo "$as_me:4579: checking for GNU ld" >&5
d4476 1
a4476 1
  echo "$as_me:4582: checking for non-GNU ld" >&5
d4506 1
a4506 1
  echo "$as_me:4612: result: $LD" >&5
d4509 1
a4509 1
  echo "$as_me:4615: result: no" >&5
d4512 1
a4512 1
test -z "$LD" && { { echo "$as_me:4618: error: no acceptable ld found in \$PATH" >&5
d4515 1
a4515 1
echo "$as_me:4621: checking if the linker ($LD) is GNU ld" >&5
d4527 1
a4527 1
echo "$as_me:4633: result: $lt_cv_prog_gnu_ld" >&5
d4531 1
a4531 1
echo "$as_me:4637: checking for $LD option to reload object files" >&5
d4538 1
a4538 1
echo "$as_me:4644: result: $lt_cv_ld_reload_flag" >&5
d4543 1
a4543 1
echo "$as_me:4649: checking for BSD-compatible nm" >&5
d4579 1
a4579 1
echo "$as_me:4685: result: $NM" >&5
d4582 1
a4582 1
echo "$as_me:4688: checking whether ln -s works" >&5
d4586 1
a4586 1
  echo "$as_me:4692: result: yes" >&5
d4589 1
a4589 1
  echo "$as_me:4695: result: no, using $LN_S" >&5
d4593 1
a4593 1
echo "$as_me:4699: checking how to recognise dependant libraries" >&5
d4775 1
a4775 1
echo "$as_me:4881: result: $lt_cv_deplibs_check_method" >&5
d4781 1
a4781 1
echo "$as_me:4887: checking command to parse $NM output" >&5
d4862 1
a4862 1
  if { (eval echo "$as_me:4968: \"$ac_compile\"") >&5
d4865 1
a4865 1
  echo "$as_me:4971: \$? = $ac_status" >&5
d4869 1
a4869 1
    if { (eval echo "$as_me:4975: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
d4872 1
a4872 1
  echo "$as_me:4978: \$? = $ac_status" >&5
d4924 1
a4924 1
	  if { (eval echo "$as_me:5030: \"$ac_link\"") >&5
d4927 1
a4927 1
  echo "$as_me:5033: \$? = $ac_status" >&5
d4968 1
a4968 1
  echo "$as_me:5074: result: failed" >&5
d4971 1
a4971 1
  echo "$as_me:5077: result: ok" >&5
d4980 1
a4980 1
echo "$as_me:5086: checking how to run the C preprocessor" >&5
d4993 1
d5002 1
a5002 1
#line 5107 "configure"
d5007 1
a5007 1
if { (eval echo "$as_me:5112: \"$ac_cpp conftest.$ac_ext\"") >&5
d5013 1
a5013 1
  echo "$as_me:5118: \$? = $ac_status" >&5
d5036 1
a5036 1
#line 5141 "configure"
d5040 1
a5040 1
if { (eval echo "$as_me:5145: \"$ac_cpp conftest.$ac_ext\"") >&5
d5046 1
a5046 1
  echo "$as_me:5151: \$? = $ac_status" >&5
d5072 1
a5072 1
  break
d5083 1
a5083 1
echo "$as_me:5188: result: $CPP" >&5
d5093 1
a5093 1
#line 5198 "configure"
d5098 1
a5098 1
if { (eval echo "$as_me:5203: \"$ac_cpp conftest.$ac_ext\"") >&5
d5104 1
a5104 1
  echo "$as_me:5209: \$? = $ac_status" >&5
d5127 1
a5127 1
#line 5232 "configure"
d5131 1
a5131 1
if { (eval echo "$as_me:5236: \"$ac_cpp conftest.$ac_ext\"") >&5
d5137 1
a5137 1
  echo "$as_me:5242: \$? = $ac_status" >&5
d5165 1
a5165 1
  { { echo "$as_me:5270: error: C preprocessor \"$CPP\" fails sanity check" >&5
d5178 2
a5179 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:5284: checking for $ac_header" >&5
d5181 1
a5181 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d5185 1
a5185 1
#line 5290 "configure"
d5189 1
a5189 1
if { (eval echo "$as_me:5294: \"$ac_cpp conftest.$ac_ext\"") >&5
d5195 1
a5195 1
  echo "$as_me:5300: \$? = $ac_status" >&5
d5206 1
a5206 1
  eval "$as_ac_Header=yes"
d5210 1
a5210 1
  eval "$as_ac_Header=no"
d5214 3
a5216 3
echo "$as_me:5319: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d5218 1
a5218 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d5228 1
a5228 1
    echo "$as_me:5333: checking for ${ac_tool_prefix}file" >&5
d5283 1
a5283 1
  echo "$as_me:5388: result: $MAGIC_CMD" >&5
d5286 1
a5286 1
  echo "$as_me:5391: result: no" >&5
d5292 1
a5292 1
    echo "$as_me:5397: checking for file" >&5
d5347 1
a5347 1
  echo "$as_me:5452: result: $MAGIC_CMD" >&5
d5350 1
a5350 1
  echo "$as_me:5455: result: no" >&5
d5366 1
a5366 1
echo "$as_me:5471: checking for $ac_word" >&5
d5381 1
a5381 1
echo "$as_me:5486: found $ac_dir/$ac_word" >&5
d5389 1
a5389 1
  echo "$as_me:5494: result: $RANLIB" >&5
d5392 1
a5392 1
  echo "$as_me:5497: result: no" >&5
d5401 1
a5401 1
echo "$as_me:5506: checking for $ac_word" >&5
d5416 1
a5416 1
echo "$as_me:5521: found $ac_dir/$ac_word" >&5
d5425 1
a5425 1
  echo "$as_me:5530: result: $ac_ct_RANLIB" >&5
d5428 1
a5428 1
  echo "$as_me:5533: result: no" >&5
d5440 1
a5440 1
echo "$as_me:5545: checking for $ac_word" >&5
d5455 1
a5455 1
echo "$as_me:5560: found $ac_dir/$ac_word" >&5
d5463 1
a5463 1
  echo "$as_me:5568: result: $STRIP" >&5
d5466 1
a5466 1
  echo "$as_me:5571: result: no" >&5
d5475 1
a5475 1
echo "$as_me:5580: checking for $ac_word" >&5
d5490 1
a5490 1
echo "$as_me:5595: found $ac_dir/$ac_word" >&5
d5499 1
a5499 1
  echo "$as_me:5604: result: $ac_ct_STRIP" >&5
d5502 1
a5502 1
  echo "$as_me:5607: result: no" >&5
d5526 2
a5527 2
  echo '#line 5631 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:5632: \"$ac_compile\"") >&5
d5530 1
a5530 1
  echo "$as_me:5635: \$? = $ac_status" >&5
d5551 1
a5551 1
  echo "$as_me:5656: checking whether the C compiler needs -belf" >&5
d5564 1
a5564 1
#line 5669 "configure"
d5576 1
a5576 1
if { (eval echo "$as_me:5681: \"$ac_link\"") >&5
d5579 1
a5579 1
  echo "$as_me:5684: \$? = $ac_status" >&5
d5582 1
a5582 1
  { (eval echo "$as_me:5687: \"$ac_try\"") >&5
d5585 1
a5585 1
  echo "$as_me:5690: \$? = $ac_status" >&5
d5601 1
a5601 1
echo "$as_me:5706: result: $lt_cv_cc_needs_belf" >&5
d5703 1
a5703 1
echo "$as_me:5808: checking for objdir" >&5
d5714 1
a5714 1
echo "$as_me:5819: result: $objdir" >&5
d5734 1
a5734 1
echo "$as_me:5839: checking for $compiler option to produce PIC" >&5
d5881 1
a5881 1
  echo "$as_me:5986: result: none" >&5
d5884 1
a5884 1
  echo "$as_me:5989: result: $lt_cv_prog_cc_pic" >&5
d5888 1
a5888 1
  echo "$as_me:5993: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
d5896 1
a5896 1
#line 6001 "configure"
d5908 1
a5908 1
if { (eval echo "$as_me:6013: \"$ac_compile\"") >&5
d5911 1
a5911 1
  echo "$as_me:6016: \$? = $ac_status" >&5
d5914 1
a5914 1
  { (eval echo "$as_me:6019: \"$ac_try\"") >&5
d5917 1
a5917 1
  echo "$as_me:6022: \$? = $ac_status" >&5
d5953 1
a5953 1
  echo "$as_me:6058: result: $lt_cv_prog_cc_pic_works" >&5
d5961 1
a5961 1
  { echo "$as_me:6066: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
d5965 1
a5965 1
   { echo "$as_me:6070: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
d5973 1
a5973 1
echo "$as_me:6078: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
d5982 1
a5982 1
#line 6087 "configure"
d5994 1
a5994 1
if { (eval echo "$as_me:6099: \"$ac_link\"") >&5
d5997 1
a5997 1
  echo "$as_me:6102: \$? = $ac_status" >&5
d6000 1
a6000 1
  { (eval echo "$as_me:6105: \"$ac_try\"") >&5
d6003 1
a6003 1
  echo "$as_me:6108: \$? = $ac_status" >&5
d6017 1
a6017 1
echo "$as_me:6122: result: $lt_cv_prog_cc_static_works" >&5
d6032 1
a6032 1
echo "$as_me:6137: checking if $compiler supports -c -o file.$ac_objext" >&5
d6052 1
a6052 1
if { (eval echo configure:6157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
d6076 1
a6076 1
echo "$as_me:6181: result: $compiler_c_o" >&5
d6081 1
a6081 1
  echo "$as_me:6186: checking if $compiler supports -c -o file.lo" >&5
d6093 1
a6093 1
#line 6198 "configure"
d6105 1
a6105 1
if { (eval echo "$as_me:6210: \"$ac_compile\"") >&5
d6108 1
a6108 1
  echo "$as_me:6213: \$? = $ac_status" >&5
d6111 1
a6111 1
  { (eval echo "$as_me:6216: \"$ac_try\"") >&5
d6114 1
a6114 1
  echo "$as_me:6219: \$? = $ac_status" >&5
d6135 1
a6135 1
  echo "$as_me:6240: result: $compiler_o_lo" >&5
d6149 1
a6149 1
  echo "$as_me:6254: checking if we can lock with hard links" >&5
d6157 1
a6157 1
  echo "$as_me:6262: result: $hard_links" >&5
d6160 1
a6160 1
    { echo "$as_me:6265: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
d6174 1
a6174 1
  echo "$as_me:6279: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
d6181 1
a6181 1
#line 6286 "configure"
d6193 1
a6193 1
if { (eval echo "$as_me:6298: \"$ac_compile\"") >&5
d6196 1
a6196 1
  echo "$as_me:6301: \$? = $ac_status" >&5
d6199 1
a6199 1
  { (eval echo "$as_me:6304: \"$ac_try\"") >&5
d6202 1
a6202 1
  echo "$as_me:6307: \$? = $ac_status" >&5
d6218 1
a6218 1
  echo "$as_me:6323: result: $compiler_rtti_exceptions" >&5
d6233 1
a6233 1
echo "$as_me:6338: checking whether the linker ($LD) supports shared libraries" >&5
d6913 1
a6913 1
echo "$as_me:7018: result: $ld_shlibs" >&5
d6922 1
a6922 1
echo "$as_me:7027: checking how to hardcode library paths into programs" >&5
d6946 1
a6946 1
echo "$as_me:7051: result: $hardcode_action" >&5
d6955 1
a6955 1
echo "$as_me:7060: checking whether stripping libraries is possible" >&5
d6960 1
a6960 1
  echo "$as_me:7065: result: yes" >&5
d6963 1
a6963 1
  echo "$as_me:7068: result: no" >&5
d6975 1
a6975 1
echo "$as_me:7080: checking dynamic linker characteristics" >&5
d7378 1
a7378 1
echo "$as_me:7483: result: $dynamic_linker" >&5
d7387 1
a7387 1
echo "$as_me:7492: checking if libtool supports shared libraries" >&5
d7389 1
a7389 1
echo "$as_me:7494: result: $can_build_shared" >&5
d7396 1
a7396 1
echo "$as_me:7501: checking whether to build shared libraries" >&5
d7417 1
a7417 1
echo "$as_me:7522: result: $enable_shared" >&5
d7424 1
a7424 1
echo "$as_me:7529: checking whether to build static libraries" >&5
d7428 1
a7428 1
echo "$as_me:7533: result: $enable_static" >&5
d7468 1
a7468 1
    echo "$as_me:7573: checking for shl_load" >&5
d7474 1
a7474 1
#line 7579 "configure"
d7505 1
a7505 1
if { (eval echo "$as_me:7610: \"$ac_link\"") >&5
d7508 1
a7508 1
  echo "$as_me:7613: \$? = $ac_status" >&5
d7511 1
a7511 1
  { (eval echo "$as_me:7616: \"$ac_try\"") >&5
d7514 1
a7514 1
  echo "$as_me:7619: \$? = $ac_status" >&5
d7524 1
a7524 1
echo "$as_me:7629: result: $ac_cv_func_shl_load" >&5
d7529 1
a7529 1
  echo "$as_me:7634: checking for shl_load in -ldld" >&5
d7537 1
a7537 1
#line 7642 "configure"
d7556 1
a7556 1
if { (eval echo "$as_me:7661: \"$ac_link\"") >&5
d7559 1
a7559 1
  echo "$as_me:7664: \$? = $ac_status" >&5
d7562 1
a7562 1
  { (eval echo "$as_me:7667: \"$ac_try\"") >&5
d7565 1
a7565 1
  echo "$as_me:7670: \$? = $ac_status" >&5
d7576 1
a7576 1
echo "$as_me:7681: result: $ac_cv_lib_dld_shl_load" >&5
d7581 1
a7581 1
  echo "$as_me:7686: checking for dlopen" >&5
d7587 1
a7587 1
#line 7692 "configure"
d7618 1
a7618 1
if { (eval echo "$as_me:7723: \"$ac_link\"") >&5
d7621 1
a7621 1
  echo "$as_me:7726: \$? = $ac_status" >&5
d7624 1
a7624 1
  { (eval echo "$as_me:7729: \"$ac_try\"") >&5
d7627 1
a7627 1
  echo "$as_me:7732: \$? = $ac_status" >&5
d7637 1
a7637 1
echo "$as_me:7742: result: $ac_cv_func_dlopen" >&5
d7642 1
a7642 1
  echo "$as_me:7747: checking for dlopen in -ldl" >&5
d7650 1
a7650 1
#line 7755 "configure"
d7669 1
a7669 1
if { (eval echo "$as_me:7774: \"$ac_link\"") >&5
d7672 1
a7672 1
  echo "$as_me:7777: \$? = $ac_status" >&5
d7675 1
a7675 1
  { (eval echo "$as_me:7780: \"$ac_try\"") >&5
d7678 1
a7678 1
  echo "$as_me:7783: \$? = $ac_status" >&5
d7689 1
a7689 1
echo "$as_me:7794: result: $ac_cv_lib_dl_dlopen" >&5
d7694 1
a7694 1
  echo "$as_me:7799: checking for dlopen in -lsvld" >&5
d7702 1
a7702 1
#line 7807 "configure"
d7721 1
a7721 1
if { (eval echo "$as_me:7826: \"$ac_link\"") >&5
d7724 1
a7724 1
  echo "$as_me:7829: \$? = $ac_status" >&5
d7727 1
a7727 1
  { (eval echo "$as_me:7832: \"$ac_try\"") >&5
d7730 1
a7730 1
  echo "$as_me:7835: \$? = $ac_status" >&5
d7741 1
a7741 1
echo "$as_me:7846: result: $ac_cv_lib_svld_dlopen" >&5
d7746 1
a7746 1
  echo "$as_me:7851: checking for dld_link in -ldld" >&5
d7754 1
a7754 1
#line 7859 "configure"
d7773 1
a7773 1
if { (eval echo "$as_me:7878: \"$ac_link\"") >&5
d7776 1
a7776 1
  echo "$as_me:7881: \$? = $ac_status" >&5
d7779 1
a7779 1
  { (eval echo "$as_me:7884: \"$ac_try\"") >&5
d7782 1
a7782 1
  echo "$as_me:7887: \$? = $ac_status" >&5
d7793 1
a7793 1
echo "$as_me:7898: result: $ac_cv_lib_dld_dld_link" >&5
d7829 1
a7829 1
    echo "$as_me:7934: checking whether a program can dlopen itself" >&5
d7840 1
a7840 1
#line 7945 "configure"
d7901 1
a7901 1
  if { (eval echo "$as_me:8006: \"$ac_link\"") >&5
d7904 1
a7904 1
  echo "$as_me:8009: \$? = $ac_status" >&5
d7921 1
a7921 1
echo "$as_me:8026: result: $lt_cv_dlopen_self" >&5
d7926 1
a7926 1
      echo "$as_me:8031: checking whether a statically linked program can dlopen itself" >&5
d7937 1
a7937 1
#line 8042 "configure"
d7998 1
a7998 1
  if { (eval echo "$as_me:8103: \"$ac_link\"") >&5
d8001 1
a8001 1
  echo "$as_me:8106: \$? = $ac_status" >&5
d8018 1
a8018 1
echo "$as_me:8123: result: $lt_cv_dlopen_self_static" >&5
d8050 1
a8050 1
    echo "$as_me:8155: checking whether -lc should be explicitly linked in" >&5
d8058 1
a8058 1
    if { (eval echo "$as_me:8163: \"$ac_compile\"") >&5
d8061 1
a8061 1
  echo "$as_me:8166: \$? = $ac_status" >&5
d8075 1
a8075 1
      if { (eval echo "$as_me:8180: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
d8078 1
a8078 1
  echo "$as_me:8183: \$? = $ac_status" >&5
d8091 1
a8091 1
    echo "$as_me:8196: result: $lt_cv_archive_cmds_need_lc" >&5
d8665 1
a8665 1
echo "$as_me:8770: checking SOSUFFIX from libtool" >&5
d8676 1
a8676 1
echo "$as_me:8781: result: $SOSUFFIX" >&5
d8682 1
a8682 1
		{ echo "$as_me:8787: WARNING: libtool may not know about this architecture." >&5
d8684 1
a8684 1
		{ echo "$as_me:8789: WARNING: assuming .$SOSUFFIX suffix for dynamic libraries." >&5
d8751 1
a8751 1
		{ { echo "$as_me:8856: error: Java requires shared libraries" >&5
d8761 1
a8761 1
echo "$as_me:8866: checking for $ac_word" >&5
d8776 1
a8776 1
echo "$as_me:8881: found $ac_dir/$ac_word" >&5
d8784 1
a8784 1
  echo "$as_me:8889: result: $JAVAC" >&5
d8787 1
a8787 1
  echo "$as_me:8892: result: no" >&5
d8799 1
a8799 1
echo "$as_me:8904: checking for $ac_word" >&5
d8814 1
a8814 1
echo "$as_me:8919: found $ac_dir/$ac_word" >&5
d8822 1
a8822 1
  echo "$as_me:8927: result: $JAVAC" >&5
d8825 1
a8825 1
  echo "$as_me:8930: result: no" >&5
d8834 1
a8834 1
test "x$JAVAC" = x && { { echo "$as_me:8939: error: no acceptable Java compiler found in \$PATH" >&5
d8838 1
a8838 1
echo "$as_me:8943: checking if $JAVAC works" >&5
d8847 1
a8847 1
/* #line 8952 "configure" */
d8852 1
a8852 1
  { (eval echo "$as_me:8957: \"$ac_try\"") >&5
d8855 1
a8855 1
  echo "$as_me:8960: \$? = $ac_status" >&5
d8859 1
a8859 1
  { { echo "$as_me:8964: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
d8868 1
a8868 1
echo "$as_me:8973: result: $ac_cv_prog_javac_works" >&5
d8876 1
a8876 1
echo "$as_me:8981: checking for $ac_word" >&5
d8891 1
a8891 1
echo "$as_me:8996: found $ac_dir/$ac_word" >&5
d8899 1
a8899 1
  echo "$as_me:9004: result: $JAR" >&5
d8902 1
a8902 1
  echo "$as_me:9007: result: no" >&5
d8914 1
a8914 1
echo "$as_me:9019: checking for $ac_word" >&5
d8929 1
a8929 1
echo "$as_me:9034: found $ac_dir/$ac_word" >&5
d8937 1
a8937 1
  echo "$as_me:9042: result: $JAR" >&5
d8940 1
a8940 1
  echo "$as_me:9045: result: no" >&5
d8949 1
a8949 1
test "x$JAR" = x && { { echo "$as_me:9054: error: no acceptable jar program found in \$PATH" >&5
d8955 1
a8955 1
test "x$JAVAC" = x && { { echo "$as_me:9060: error: '$JAVAC' undefined" >&5
d8960 1
a8960 1
echo "$as_me:9065: checking for $ac_word" >&5
d8977 1
a8977 1
   echo "$as_me:9082: found $ac_dir/$ac_word" >&5
d8989 1
a8989 1
  echo "$as_me:9094: result: $_ACJNI_JAVAC" >&5
d8992 1
a8992 1
  echo "$as_me:9097: result: no" >&5
d8996 1
a8996 1
test "x$_ACJNI_JAVAC" = xno && { { echo "$as_me:9101: error: $JAVAC could not be found in path" >&5
d9003 1
a9003 1
	echo "$as_me:9108: checking symlink for $_cur" >&5
d9011 1
a9011 1
	echo "$as_me:9116: result: $_cur" >&5
d9029 1
a9029 1
		{ { echo "$as_me:9134: error: cannot find java include files" >&5
d9077 1
a9077 1
		echo "$as_me:9182: checking for svc_run" >&5
d9083 1
a9083 1
#line 9188 "configure"
d9114 1
a9114 1
if { (eval echo "$as_me:9219: \"$ac_link\"") >&5
d9117 1
a9117 1
  echo "$as_me:9222: \$? = $ac_status" >&5
d9120 1
a9120 1
  { (eval echo "$as_me:9225: \"$ac_try\"") >&5
d9123 1
a9123 1
  echo "$as_me:9228: \$? = $ac_status" >&5
d9133 1
a9133 1
echo "$as_me:9238: result: $ac_cv_func_svc_run" >&5
d9138 1
a9138 1
  echo "$as_me:9243: checking for svc_run in -lnsl" >&5
d9146 1
a9146 1
#line 9251 "configure"
d9165 1
a9165 1
if { (eval echo "$as_me:9270: \"$ac_link\"") >&5
d9168 1
a9168 1
  echo "$as_me:9273: \$? = $ac_status" >&5
d9171 1
a9171 1
  { (eval echo "$as_me:9276: \"$ac_try\"") >&5
d9174 1
a9174 1
  echo "$as_me:9279: \$? = $ac_status" >&5
d9185 1
a9185 1
echo "$as_me:9290: result: $ac_cv_lib_nsl_svc_run" >&5
d9194 1
a9194 1
		echo "$as_me:9299: checking for svc_run" >&5
d9200 1
a9200 1
#line 9305 "configure"
d9231 1
a9231 1
if { (eval echo "$as_me:9336: \"$ac_link\"") >&5
d9234 1
a9234 1
  echo "$as_me:9339: \$? = $ac_status" >&5
d9237 1
a9237 1
  { (eval echo "$as_me:9342: \"$ac_try\"") >&5
d9240 1
a9240 1
  echo "$as_me:9345: \$? = $ac_status" >&5
d9250 1
a9250 1
echo "$as_me:9355: result: $ac_cv_func_svc_run" >&5
d9256 1
a9256 1
echo "$as_me:9361: checking for svc_run in -lnsl" >&5
d9264 1
a9264 1
#line 9369 "configure"
d9283 1
a9283 1
if { (eval echo "$as_me:9388: \"$ac_link\"") >&5
d9286 1
a9286 1
  echo "$as_me:9391: \$? = $ac_status" >&5
d9289 1
a9289 1
  { (eval echo "$as_me:9394: \"$ac_try\"") >&5
d9292 1
a9292 1
  echo "$as_me:9397: \$? = $ac_status" >&5
d9303 1
a9303 1
echo "$as_me:9408: result: $ac_cv_lib_nsl_svc_run" >&5
d9321 1
a9321 1
		{ { echo "$as_me:9426: error: Tcl requires shared libraries" >&5
d9335 1
a9335 1
		    { { echo "$as_me:9440: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
d9355 1
a9355 1
	    { { echo "$as_me:9460: error: can't find Tcl configuration definitions" >&5
d9362 1
a9362 1
	echo "$as_me:9467: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
d9366 1
a9366 1
		echo "$as_me:9471: result: loading" >&5
d9370 1
a9370 1
		echo "$as_me:9475: result: file not found" >&5
a9381 10
	#
	# If the DB Tcl library isn't loaded with the Tcl spec and library
	# flags on AIX, the resulting libdb_tcl-X.Y.so.0 will drop core at
	# load time. [#4843]
	#
	case "$host_os" in
	aix*)
		LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG";;
	esac

d9403 1
a9403 1
echo "$as_me:9518: checking whether byte ordering is bigendian" >&5
d9411 1
a9411 1
#line 9526 "configure"
d9428 1
a9428 1
if { (eval echo "$as_me:9543: \"$ac_compile\"") >&5
d9431 1
a9431 1
  echo "$as_me:9546: \$? = $ac_status" >&5
d9434 1
a9434 1
  { (eval echo "$as_me:9549: \"$ac_try\"") >&5
d9437 1
a9437 1
  echo "$as_me:9552: \$? = $ac_status" >&5
d9441 1
a9441 1
#line 9556 "configure"
d9458 1
a9458 1
if { (eval echo "$as_me:9573: \"$ac_compile\"") >&5
d9461 1
a9461 1
  echo "$as_me:9576: \$? = $ac_status" >&5
d9464 1
a9464 1
  { (eval echo "$as_me:9579: \"$ac_try\"") >&5
d9467 1
a9467 1
  echo "$as_me:9582: \$? = $ac_status" >&5
d9483 1
a9483 1
  { { echo "$as_me:9598: error: cannot run test program while cross compiling" >&5
d9488 1
a9488 1
#line 9603 "configure"
d9504 1
a9504 1
if { (eval echo "$as_me:9619: \"$ac_link\"") >&5
d9507 1
a9507 1
  echo "$as_me:9622: \$? = $ac_status" >&5
d9509 1
a9509 1
  { (eval echo "$as_me:9624: \"$ac_try\"") >&5
d9512 1
a9512 1
  echo "$as_me:9627: \$? = $ac_status" >&5
d9521 1
a9521 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9525 1
a9525 1
echo "$as_me:9640: result: $ac_cv_c_bigendian" >&5
d9535 1
a9535 1
echo "$as_me:9650: checking for $CC option to accept ANSI C" >&5
d9543 1
a9543 1
#line 9658 "configure"
d9592 1
a9592 1
if { (eval echo "$as_me:9707: \"$ac_compile\"") >&5
d9595 1
a9595 1
  echo "$as_me:9710: \$? = $ac_status" >&5
d9598 1
a9598 1
  { (eval echo "$as_me:9713: \"$ac_try\"") >&5
d9601 1
a9601 1
  echo "$as_me:9716: \$? = $ac_status" >&5
d9618 1
a9618 1
    echo "$as_me:9733: result: none needed" >&5
d9621 1
a9621 1
    echo "$as_me:9736: result: $ac_cv_prog_cc_stdc" >&5
d9626 1
a9626 1
echo "$as_me:9741: checking for an ANSI C-conforming const" >&5
d9632 1
a9632 1
#line 9747 "configure"
d9690 1
a9690 1
if { (eval echo "$as_me:9805: \"$ac_compile\"") >&5
d9693 1
a9693 1
  echo "$as_me:9808: \$? = $ac_status" >&5
d9696 1
a9696 1
  { (eval echo "$as_me:9811: \"$ac_try\"") >&5
d9699 1
a9699 1
  echo "$as_me:9814: \$? = $ac_status" >&5
d9709 1
a9709 1
echo "$as_me:9824: result: $ac_cv_c_const" >&5
d9720 1
a9720 1
echo "$as_me:9835: checking whether stat file-mode macros are broken" >&5
d9726 1
a9726 1
#line 9841 "configure"
d9765 1
a9765 1
echo "$as_me:9880: result: $ac_cv_header_stat_broken" >&5
d9775 1
a9775 1
echo "$as_me:9890: checking whether time.h and sys/time.h may both be included" >&5
d9781 1
a9781 1
#line 9896 "configure"
d9790 1
a9790 2
if ((struct tm *) 0)
return 0;
d9796 1
a9796 1
if { (eval echo "$as_me:9912: \"$ac_compile\"") >&5
d9799 1
a9799 1
  echo "$as_me:9915: \$? = $ac_status" >&5
d9802 1
a9802 1
  { (eval echo "$as_me:9918: \"$ac_try\"") >&5
d9805 1
a9805 1
  echo "$as_me:9921: \$? = $ac_status" >&5
d9815 1
a9815 1
echo "$as_me:9931: result: $ac_cv_header_time" >&5
d9827 2
a9828 2
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
echo "$as_me:9944: checking for $ac_hdr that defines DIR" >&5
d9830 1
a9830 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d9834 1
a9834 1
#line 9950 "configure"
d9842 1
a9842 2
if ((DIR *) 0)
return 0;
d9848 1
a9848 1
if { (eval echo "$as_me:9965: \"$ac_compile\"") >&5
d9851 1
a9851 1
  echo "$as_me:9968: \$? = $ac_status" >&5
d9854 1
a9854 1
  { (eval echo "$as_me:9971: \"$ac_try\"") >&5
d9857 1
a9857 1
  echo "$as_me:9974: \$? = $ac_status" >&5
d9859 1
a9859 1
  eval "$as_ac_Header=yes"
d9863 1
a9863 1
eval "$as_ac_Header=no"
d9867 3
a9869 3
echo "$as_me:9984: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d9871 1
a9871 1
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d9880 1
a9880 1
  echo "$as_me:9997: checking for opendir in -ldir" >&5
d9888 1
a9888 1
#line 10005 "configure"
d9907 1
a9907 1
if { (eval echo "$as_me:10024: \"$ac_link\"") >&5
d9910 1
a9910 1
  echo "$as_me:10027: \$? = $ac_status" >&5
d9913 1
a9913 1
  { (eval echo "$as_me:10030: \"$ac_try\"") >&5
d9916 1
a9916 1
  echo "$as_me:10033: \$? = $ac_status" >&5
d9927 1
a9927 1
echo "$as_me:10044: result: $ac_cv_lib_dir_opendir" >&5
d9934 1
a9934 1
  echo "$as_me:10051: checking for opendir in -lx" >&5
d9942 1
a9942 1
#line 10059 "configure"
d9961 1
a9961 1
if { (eval echo "$as_me:10078: \"$ac_link\"") >&5
d9964 1
a9964 1
  echo "$as_me:10081: \$? = $ac_status" >&5
d9967 1
a9967 1
  { (eval echo "$as_me:10084: \"$ac_try\"") >&5
d9970 1
a9970 1
  echo "$as_me:10087: \$? = $ac_status" >&5
d9981 1
a9981 1
echo "$as_me:10098: result: $ac_cv_lib_x_opendir" >&5
d9991 2
a9992 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:10109: checking for $ac_header" >&5
d9994 1
a9994 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d9998 1
a9998 1
#line 10115 "configure"
d10002 1
a10002 1
if { (eval echo "$as_me:10119: \"$ac_cpp conftest.$ac_ext\"") >&5
d10008 1
a10008 1
  echo "$as_me:10125: \$? = $ac_status" >&5
d10019 1
a10019 1
  eval "$as_ac_Header=yes"
d10023 1
a10023 1
  eval "$as_ac_Header=no"
d10027 3
a10029 3
echo "$as_me:10144: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d10031 1
a10031 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d10039 2
a10040 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:10157: checking for $ac_header" >&5
d10042 1
a10042 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d10046 1
a10046 1
#line 10163 "configure"
d10050 1
a10050 1
if { (eval echo "$as_me:10167: \"$ac_cpp conftest.$ac_ext\"") >&5
d10056 1
a10056 1
  echo "$as_me:10173: \$? = $ac_status" >&5
d10067 1
a10067 1
  eval "$as_ac_Header=yes"
d10071 1
a10071 1
  eval "$as_ac_Header=no"
d10075 3
a10077 3
echo "$as_me:10192: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d10079 1
a10079 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d10085 1
a10085 1
echo "$as_me:10202: checking for ANSI C header files" >&5
d10091 1
a10091 1
#line 10208 "configure"
d10099 1
a10099 1
if { (eval echo "$as_me:10216: \"$ac_cpp conftest.$ac_ext\"") >&5
d10105 1
a10105 1
  echo "$as_me:10222: \$? = $ac_status" >&5
d10127 1
a10127 1
#line 10244 "configure"
d10145 1
a10145 1
#line 10262 "configure"
d10166 1
a10166 1
#line 10283 "configure"
d10192 1
a10192 1
if { (eval echo "$as_me:10309: \"$ac_link\"") >&5
d10195 1
a10195 1
  echo "$as_me:10312: \$? = $ac_status" >&5
d10197 1
a10197 1
  { (eval echo "$as_me:10314: \"$ac_try\"") >&5
d10200 1
a10200 1
  echo "$as_me:10317: \$? = $ac_status" >&5
d10209 1
a10209 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d10213 1
a10213 1
echo "$as_me:10330: result: $ac_cv_header_stdc" >&5
d10223 1
a10223 4
# On IRIX 5.3, sys/types and inttypes.h are conflicting.

for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                  inttypes.h stdint.h unistd.h
d10225 2
a10226 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:10346: checking for $ac_header" >&5
d10228 1
a10228 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d10232 1
a10232 1
#line 10352 "configure"
a10233 1
$ac_includes_default
d10236 2
a10237 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10358: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d10239 15
a10253 9
  echo "$as_me:10361: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10364: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10367: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
d10256 2
a10257 2
cat conftest.$ac_ext >&5
eval "$as_ac_Header=no"
d10259 1
a10259 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10261 3
a10263 3
echo "$as_me:10377: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d10265 1
a10265 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d10271 1
a10271 1
echo "$as_me:10387: checking for struct stat.st_blksize" >&5
d10277 1
a10277 1
#line 10393 "configure"
d10283 2
a10284 3
static struct stat ac_aggr;
if (ac_aggr.st_blksize)
return 0;
d10290 1
a10290 1
if { (eval echo "$as_me:10407: \"$ac_compile\"") >&5
d10293 1
a10293 1
  echo "$as_me:10410: \$? = $ac_status" >&5
d10296 1
a10296 1
  { (eval echo "$as_me:10413: \"$ac_try\"") >&5
d10299 1
a10299 1
  echo "$as_me:10416: \$? = $ac_status" >&5
d10309 1
a10309 1
echo "$as_me:10426: result: $ac_cv_member_struct_stat_st_blksize" >&5
d10321 1
a10321 1
echo "$as_me:10438: checking for off_t" >&5
d10327 1
a10327 1
#line 10444 "configure"
d10342 1
a10342 1
if { (eval echo "$as_me:10459: \"$ac_compile\"") >&5
d10345 1
a10345 1
  echo "$as_me:10462: \$? = $ac_status" >&5
d10348 1
a10348 1
  { (eval echo "$as_me:10465: \"$ac_try\"") >&5
d10351 1
a10351 1
  echo "$as_me:10468: \$? = $ac_status" >&5
d10361 1
a10361 1
echo "$as_me:10478: result: $ac_cv_type_off_t" >&5
d10374 1
a10374 1
	{ { echo "$as_me:10491: error: No off_t type." >&5
d10378 1
a10378 1
echo "$as_me:10495: checking for pid_t" >&5
d10384 1
a10384 1
#line 10501 "configure"
d10399 1
a10399 1
if { (eval echo "$as_me:10516: \"$ac_compile\"") >&5
d10402 1
a10402 1
  echo "$as_me:10519: \$? = $ac_status" >&5
d10405 1
a10405 1
  { (eval echo "$as_me:10522: \"$ac_try\"") >&5
d10408 1
a10408 1
  echo "$as_me:10525: \$? = $ac_status" >&5
d10418 1
a10418 1
echo "$as_me:10535: result: $ac_cv_type_pid_t" >&5
d10431 1
a10431 1
	{ { echo "$as_me:10548: error: No pid_t type." >&5
d10435 1
a10435 1
echo "$as_me:10552: checking for size_t" >&5
d10441 1
a10441 1
#line 10558 "configure"
d10456 1
a10456 1
if { (eval echo "$as_me:10573: \"$ac_compile\"") >&5
d10459 1
a10459 1
  echo "$as_me:10576: \$? = $ac_status" >&5
d10462 1
a10462 1
  { (eval echo "$as_me:10579: \"$ac_try\"") >&5
d10465 1
a10465 1
  echo "$as_me:10582: \$? = $ac_status" >&5
d10475 1
a10475 1
echo "$as_me:10592: result: $ac_cv_type_size_t" >&5
d10488 1
a10488 1
	{ { echo "$as_me:10605: error: No size_t type." >&5
d10493 1
a10493 1
echo "$as_me:10610: checking for u_char" >&5
d10500 1
a10500 1
#line 10617 "configure"
d10512 1
a10512 1
if { (eval echo "$as_me:10629: \"$ac_compile\"") >&5
d10515 1
a10515 1
  echo "$as_me:10632: \$? = $ac_status" >&5
d10518 1
a10518 1
  { (eval echo "$as_me:10635: \"$ac_try\"") >&5
d10521 1
a10521 1
  echo "$as_me:10638: \$? = $ac_status" >&5
d10531 1
a10531 1
echo "$as_me:10648: result: $db_cv_uchar" >&5
d10537 1
a10537 1
echo "$as_me:10654: checking for u_short" >&5
d10544 1
a10544 1
#line 10661 "configure"
d10556 1
a10556 1
if { (eval echo "$as_me:10673: \"$ac_compile\"") >&5
d10559 1
a10559 1
  echo "$as_me:10676: \$? = $ac_status" >&5
d10562 1
a10562 1
  { (eval echo "$as_me:10679: \"$ac_try\"") >&5
d10565 1
a10565 1
  echo "$as_me:10682: \$? = $ac_status" >&5
d10575 1
a10575 1
echo "$as_me:10692: result: $db_cv_ushort" >&5
d10581 1
a10581 1
echo "$as_me:10698: checking for u_int" >&5
d10588 1
a10588 1
#line 10705 "configure"
d10600 1
a10600 1
if { (eval echo "$as_me:10717: \"$ac_compile\"") >&5
d10603 1
a10603 1
  echo "$as_me:10720: \$? = $ac_status" >&5
d10606 1
a10606 1
  { (eval echo "$as_me:10723: \"$ac_try\"") >&5
d10609 1
a10609 1
  echo "$as_me:10726: \$? = $ac_status" >&5
d10619 1
a10619 1
echo "$as_me:10736: result: $db_cv_uint" >&5
d10625 1
a10625 1
echo "$as_me:10742: checking for u_long" >&5
d10632 1
a10632 1
#line 10749 "configure"
d10644 1
a10644 1
if { (eval echo "$as_me:10761: \"$ac_compile\"") >&5
d10647 1
a10647 1
  echo "$as_me:10764: \$? = $ac_status" >&5
d10650 1
a10650 1
  { (eval echo "$as_me:10767: \"$ac_try\"") >&5
d10653 1
a10653 1
  echo "$as_me:10770: \$? = $ac_status" >&5
d10663 1
a10663 1
echo "$as_me:10780: result: $db_cv_ulong" >&5
d10671 1
a10671 1
echo "$as_me:10788: checking for u_int8_t" >&5
d10678 1
a10678 1
#line 10795 "configure"
d10690 1
a10690 1
if { (eval echo "$as_me:10807: \"$ac_compile\"") >&5
d10693 1
a10693 1
  echo "$as_me:10810: \$? = $ac_status" >&5
d10696 1
a10696 1
  { (eval echo "$as_me:10813: \"$ac_try\"") >&5
d10699 1
a10699 1
  echo "$as_me:10816: \$? = $ac_status" >&5
d10706 1
a10706 1
  { { echo "$as_me:10823: error: cannot run test program while cross compiling" >&5
d10711 1
a10711 1
#line 10828 "configure"
d10716 1
a10716 1
if { (eval echo "$as_me:10833: \"$ac_link\"") >&5
d10719 1
a10719 1
  echo "$as_me:10836: \$? = $ac_status" >&5
d10721 1
a10721 1
  { (eval echo "$as_me:10838: \"$ac_try\"") >&5
d10724 1
a10724 1
  echo "$as_me:10841: \$? = $ac_status" >&5
d10733 1
a10733 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d10738 1
a10738 1
echo "$as_me:10855: result: $db_cv_uint8" >&5
d10741 1
a10741 1
	{ { echo "$as_me:10858: error: No unsigned 8-bit integral type." >&5
d10749 1
a10749 1
echo "$as_me:10866: checking for u_int16_t" >&5
d10756 1
a10756 1
#line 10873 "configure"
d10768 1
a10768 1
if { (eval echo "$as_me:10885: \"$ac_compile\"") >&5
d10771 1
a10771 1
  echo "$as_me:10888: \$? = $ac_status" >&5
d10774 1
a10774 1
  { (eval echo "$as_me:10891: \"$ac_try\"") >&5
d10777 1
a10777 1
  echo "$as_me:10894: \$? = $ac_status" >&5
d10784 1
a10784 1
  { { echo "$as_me:10901: error: cannot run test program while cross compiling" >&5
d10789 1
a10789 1
#line 10906 "configure"
d10794 1
a10794 1
if { (eval echo "$as_me:10911: \"$ac_link\"") >&5
d10797 1
a10797 1
  echo "$as_me:10914: \$? = $ac_status" >&5
d10799 1
a10799 1
  { (eval echo "$as_me:10916: \"$ac_try\"") >&5
d10802 1
a10802 1
  echo "$as_me:10919: \$? = $ac_status" >&5
d10810 1
a10810 1
  { { echo "$as_me:10927: error: cannot run test program while cross compiling" >&5
d10815 1
a10815 1
#line 10932 "configure"
d10820 1
a10820 1
if { (eval echo "$as_me:10937: \"$ac_link\"") >&5
d10823 1
a10823 1
  echo "$as_me:10940: \$? = $ac_status" >&5
d10825 1
a10825 1
  { (eval echo "$as_me:10942: \"$ac_try\"") >&5
d10828 1
a10828 1
  echo "$as_me:10945: \$? = $ac_status" >&5
d10837 1
a10837 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d10840 1
a10840 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d10845 1
a10845 1
echo "$as_me:10962: result: $db_cv_uint16" >&5
d10848 1
a10848 1
	{ { echo "$as_me:10965: error: No unsigned 16-bit integral type." >&5
d10856 1
a10856 1
echo "$as_me:10973: checking for int16_t" >&5
d10863 1
a10863 1
#line 10980 "configure"
d10875 1
a10875 1
if { (eval echo "$as_me:10992: \"$ac_compile\"") >&5
d10878 1
a10878 1
  echo "$as_me:10995: \$? = $ac_status" >&5
d10881 1
a10881 1
  { (eval echo "$as_me:10998: \"$ac_try\"") >&5
d10884 1
a10884 1
  echo "$as_me:11001: \$? = $ac_status" >&5
d10891 1
a10891 1
  { { echo "$as_me:11008: error: cannot run test program while cross compiling" >&5
d10896 1
a10896 1
#line 11013 "configure"
d10901 1
a10901 1
if { (eval echo "$as_me:11018: \"$ac_link\"") >&5
d10904 1
a10904 1
  echo "$as_me:11021: \$? = $ac_status" >&5
d10906 1
a10906 1
  { (eval echo "$as_me:11023: \"$ac_try\"") >&5
d10909 1
a10909 1
  echo "$as_me:11026: \$? = $ac_status" >&5
d10917 1
a10917 1
  { { echo "$as_me:11034: error: cannot run test program while cross compiling" >&5
d10922 1
a10922 1
#line 11039 "configure"
d10927 1
a10927 1
if { (eval echo "$as_me:11044: \"$ac_link\"") >&5
d10930 1
a10930 1
  echo "$as_me:11047: \$? = $ac_status" >&5
d10932 1
a10932 1
  { (eval echo "$as_me:11049: \"$ac_try\"") >&5
d10935 1
a10935 1
  echo "$as_me:11052: \$? = $ac_status" >&5
d10944 1
a10944 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d10947 1
a10947 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d10952 1
a10952 1
echo "$as_me:11069: result: $db_cv_int16" >&5
d10955 1
a10955 1
	{ { echo "$as_me:11072: error: No signed 16-bit integral type." >&5
d10963 1
a10963 1
echo "$as_me:11080: checking for u_int32_t" >&5
d10970 1
a10970 1
#line 11087 "configure"
d10982 1
a10982 1
if { (eval echo "$as_me:11099: \"$ac_compile\"") >&5
d10985 1
a10985 1
  echo "$as_me:11102: \$? = $ac_status" >&5
d10988 1
a10988 1
  { (eval echo "$as_me:11105: \"$ac_try\"") >&5
d10991 1
a10991 1
  echo "$as_me:11108: \$? = $ac_status" >&5
d10998 1
a10998 1
  { { echo "$as_me:11115: error: cannot run test program while cross compiling" >&5
d11003 1
a11003 1
#line 11120 "configure"
d11008 1
a11008 1
if { (eval echo "$as_me:11125: \"$ac_link\"") >&5
d11011 1
a11011 1
  echo "$as_me:11128: \$? = $ac_status" >&5
d11013 1
a11013 1
  { (eval echo "$as_me:11130: \"$ac_try\"") >&5
d11016 1
a11016 1
  echo "$as_me:11133: \$? = $ac_status" >&5
d11024 1
a11024 1
  { { echo "$as_me:11141: error: cannot run test program while cross compiling" >&5
d11029 1
a11029 1
#line 11146 "configure"
d11034 1
a11034 1
if { (eval echo "$as_me:11151: \"$ac_link\"") >&5
d11037 1
a11037 1
  echo "$as_me:11154: \$? = $ac_status" >&5
d11039 1
a11039 1
  { (eval echo "$as_me:11156: \"$ac_try\"") >&5
d11042 1
a11042 1
  echo "$as_me:11159: \$? = $ac_status" >&5
d11051 1
a11051 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11054 1
a11054 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11059 1
a11059 1
echo "$as_me:11176: result: $db_cv_uint32" >&5
d11062 1
a11062 1
	{ { echo "$as_me:11179: error: No unsigned 32-bit integral type." >&5
d11070 1
a11070 1
echo "$as_me:11187: checking for int32_t" >&5
d11077 1
a11077 1
#line 11194 "configure"
d11089 1
a11089 1
if { (eval echo "$as_me:11206: \"$ac_compile\"") >&5
d11092 1
a11092 1
  echo "$as_me:11209: \$? = $ac_status" >&5
d11095 1
a11095 1
  { (eval echo "$as_me:11212: \"$ac_try\"") >&5
d11098 1
a11098 1
  echo "$as_me:11215: \$? = $ac_status" >&5
d11105 1
a11105 1
  { { echo "$as_me:11222: error: cannot run test program while cross compiling" >&5
d11110 1
a11110 1
#line 11227 "configure"
d11115 1
a11115 1
if { (eval echo "$as_me:11232: \"$ac_link\"") >&5
d11118 1
a11118 1
  echo "$as_me:11235: \$? = $ac_status" >&5
d11120 1
a11120 1
  { (eval echo "$as_me:11237: \"$ac_try\"") >&5
d11123 1
a11123 1
  echo "$as_me:11240: \$? = $ac_status" >&5
d11131 1
a11131 1
  { { echo "$as_me:11248: error: cannot run test program while cross compiling" >&5
d11136 1
a11136 1
#line 11253 "configure"
d11141 1
a11141 1
if { (eval echo "$as_me:11258: \"$ac_link\"") >&5
d11144 1
a11144 1
  echo "$as_me:11261: \$? = $ac_status" >&5
d11146 1
a11146 1
  { (eval echo "$as_me:11263: \"$ac_try\"") >&5
d11149 1
a11149 1
  echo "$as_me:11266: \$? = $ac_status" >&5
d11158 1
a11158 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11161 1
a11161 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11166 1
a11166 1
echo "$as_me:11283: result: $db_cv_int32" >&5
d11169 1
a11169 1
	{ { echo "$as_me:11286: error: No signed 32-bit integral type." >&5
d11181 1
a11181 1
echo "$as_me:11298: checking for ssize_t" >&5
d11188 1
a11188 1
#line 11305 "configure"
d11200 1
a11200 1
if { (eval echo "$as_me:11317: \"$ac_compile\"") >&5
d11203 1
a11203 1
  echo "$as_me:11320: \$? = $ac_status" >&5
d11206 1
a11206 1
  { (eval echo "$as_me:11323: \"$ac_try\"") >&5
d11209 1
a11209 1
  echo "$as_me:11326: \$? = $ac_status" >&5
d11216 1
a11216 1
  { { echo "$as_me:11333: error: cannot run test program while cross compiling" >&5
d11221 1
a11221 1
#line 11338 "configure"
d11228 1
a11228 1
if { (eval echo "$as_me:11345: \"$ac_link\"") >&5
d11231 1
a11231 1
  echo "$as_me:11348: \$? = $ac_status" >&5
d11233 1
a11233 1
  { (eval echo "$as_me:11350: \"$ac_try\"") >&5
d11236 1
a11236 1
  echo "$as_me:11353: \$? = $ac_status" >&5
d11244 1
a11244 1
  { { echo "$as_me:11361: error: cannot run test program while cross compiling" >&5
d11249 1
a11249 1
#line 11366 "configure"
d11256 1
a11256 1
if { (eval echo "$as_me:11373: \"$ac_link\"") >&5
d11259 1
a11259 1
  echo "$as_me:11376: \$? = $ac_status" >&5
d11261 1
a11261 1
  { (eval echo "$as_me:11378: \"$ac_try\"") >&5
d11264 1
a11264 1
  echo "$as_me:11381: \$? = $ac_status" >&5
d11272 1
a11272 1
  { { echo "$as_me:11389: error: cannot run test program while cross compiling" >&5
d11277 1
a11277 1
#line 11394 "configure"
d11284 1
a11284 1
if { (eval echo "$as_me:11401: \"$ac_link\"") >&5
d11287 1
a11287 1
  echo "$as_me:11404: \$? = $ac_status" >&5
d11289 1
a11289 1
  { (eval echo "$as_me:11406: \"$ac_try\"") >&5
d11292 1
a11292 1
  echo "$as_me:11409: \$? = $ac_status" >&5
d11301 1
a11301 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11304 1
a11304 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11307 1
a11307 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11312 1
a11312 1
echo "$as_me:11429: result: $db_cv_ssize_t" >&5
d11320 1
a11320 1
echo "$as_me:11437: checking for largest integral type" >&5
d11327 1
a11327 1
#line 11444 "configure"
d11339 1
a11339 1
if { (eval echo "$as_me:11456: \"$ac_compile\"") >&5
d11342 1
a11342 1
  echo "$as_me:11459: \$? = $ac_status" >&5
d11345 1
a11345 1
  { (eval echo "$as_me:11462: \"$ac_try\"") >&5
d11348 1
a11348 1
  echo "$as_me:11465: \$? = $ac_status" >&5
d11358 1
a11358 1
echo "$as_me:11475: result: $db_cv_align_t" >&5
d11364 1
a11364 1
echo "$as_me:11481: checking for integral type equal to pointer size" >&5
d11372 1
a11372 1
  { { echo "$as_me:11489: error: cannot run test program while cross compiling" >&5
d11377 1
a11377 1
#line 11494 "configure"
d11382 1
a11382 1
if { (eval echo "$as_me:11499: \"$ac_link\"") >&5
d11385 1
a11385 1
  echo "$as_me:11502: \$? = $ac_status" >&5
d11387 1
a11387 1
  { (eval echo "$as_me:11504: \"$ac_try\"") >&5
d11390 1
a11390 1
  echo "$as_me:11507: \$? = $ac_status" >&5
d11398 1
a11398 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11401 1
a11401 1
  { { echo "$as_me:11518: error: cannot run test program while cross compiling" >&5
d11406 1
a11406 1
#line 11523 "configure"
d11411 1
a11411 1
if { (eval echo "$as_me:11528: \"$ac_link\"") >&5
d11414 1
a11414 1
  echo "$as_me:11531: \$? = $ac_status" >&5
d11416 1
a11416 1
  { (eval echo "$as_me:11533: \"$ac_try\"") >&5
d11419 1
a11419 1
  echo "$as_me:11536: \$? = $ac_status" >&5
d11427 1
a11427 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11430 1
a11430 1
  { { echo "$as_me:11547: error: cannot run test program while cross compiling" >&5
d11435 1
a11435 1
#line 11552 "configure"
d11440 1
a11440 1
if { (eval echo "$as_me:11557: \"$ac_link\"") >&5
d11443 1
a11443 1
  echo "$as_me:11560: \$? = $ac_status" >&5
d11445 1
a11445 1
  { (eval echo "$as_me:11562: \"$ac_try\"") >&5
d11448 1
a11448 1
  echo "$as_me:11565: \$? = $ac_status" >&5
d11456 1
a11456 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11459 1
a11459 1
echo "$as_me:11576: result: $db_cv_alignp_t" >&5
d11463 1
a11463 1
echo "$as_me:11580: checking for ANSI C exit success/failure values" >&5
d11470 1
a11470 1
#line 11587 "configure"
d11482 1
a11482 1
if { (eval echo "$as_me:11599: \"$ac_compile\"") >&5
d11485 1
a11485 1
  echo "$as_me:11602: \$? = $ac_status" >&5
d11488 1
a11488 1
  { (eval echo "$as_me:11605: \"$ac_try\"") >&5
d11491 1
a11491 1
  echo "$as_me:11608: \$? = $ac_status" >&5
d11501 1
a11501 1
echo "$as_me:11618: result: $db_cv_exit_defines" >&5
d11510 6
a11515 10
# Test for various functions/libraries that the test and example programs use:
#	sched_yield function
#	pthreads, socket and math libraries
echo "$as_me:11630: checking for sched_yield" >&5
echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
if test "${ac_cv_func_sched_yield+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11636 "configure"
d11517 1
a11517 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sched_yield (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
char (*f) ();

d11521 1
a11521 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
choke me
#else
f = sched_yield;
#endif

d11527 1
a11527 1
if { (eval echo "$as_me:11667: \"$ac_link\"") >&5
d11530 1
a11530 1
  echo "$as_me:11670: \$? = $ac_status" >&5
d11533 1
a11533 1
  { (eval echo "$as_me:11673: \"$ac_try\"") >&5
d11536 1
a11536 1
  echo "$as_me:11676: \$? = $ac_status" >&5
d11538 2
a11539 1
  ac_cv_func_sched_yield=yes
d11543 9
a11551 18
ac_cv_func_sched_yield=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:11686: result: $ac_cv_func_sched_yield" >&5
echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
if test $ac_cv_func_sched_yield = yes; then
  :
else
  echo "$as_me:11691: checking for library containing sched_yield" >&5
echo $ECHO_N "checking for library containing sched_yield... $ECHO_C" >&6
if test "${ac_cv_search_sched_yield+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_sched_yield=no
cat >conftest.$ac_ext <<_ACEOF
#line 11699 "configure"
d11553 1
a11553 8

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
d11557 1
a11557 1
sched_yield ();
d11563 1
a11563 1
if { (eval echo "$as_me:11718: \"$ac_link\"") >&5
d11566 1
a11566 1
  echo "$as_me:11721: \$? = $ac_status" >&5
d11569 1
a11569 1
  { (eval echo "$as_me:11724: \"$ac_try\"") >&5
d11572 1
a11572 1
  echo "$as_me:11727: \$? = $ac_status" >&5
d11574 2
a11575 1
  ac_cv_search_sched_yield="none required"
d11579 2
a11582 39
if test "$ac_cv_search_sched_yield" = no; then
  for ac_lib in rt; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
#line 11739 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
int
main ()
{
sched_yield ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11758: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11761: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11764: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11767: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_sched_yield="-l$ac_lib"
break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a11584 12
  done
fi
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:11780: result: $ac_cv_search_sched_yield" >&5
echo "${ECHO_T}$ac_cv_search_sched_yield" >&6
if test "$ac_cv_search_sched_yield" != no; then
  test "$ac_cv_search_sched_yield" = "none required" || LIBS="$ac_cv_search_sched_yield $LIBS"
  LOAD_LIBS="$LOAD_LIBS -lrt"
fi

fi
d11586 3
d11590 6
a11595 7
# We can't check for pthreads in the same way we did the test for sched_yield
# because the Solaris C library includes pthread interfaces which are not
# thread-safe.  For that reason we always add -lpthread if we find a pthread
# library.  Also we can't depend on any specific call existing (pthread_create,
# for example), as it may be #defined in an include file -- OSF/1 (Tru64) has
# this problem.
echo "$as_me:11796: checking for main in -lpthread" >&5
d11603 1
a11603 1
#line 11804 "configure"
d11615 1
a11615 1
if { (eval echo "$as_me:11816: \"$ac_link\"") >&5
d11618 1
a11618 1
  echo "$as_me:11819: \$? = $ac_status" >&5
d11621 1
a11621 1
  { (eval echo "$as_me:11822: \"$ac_try\"") >&5
d11624 1
a11624 1
  echo "$as_me:11825: \$? = $ac_status" >&5
d11635 1
a11635 1
echo "$as_me:11836: result: $ac_cv_lib_pthread_main" >&5
d11638 1
a11638 1
  LOAD_LIBS="$LOAD_LIBS -lpthread"
a11639 145
ac_cv_lib_pthread=ac_cv_lib_pthread_main

# XXX
# We could be more exact about whether these libraries are needed, but we don't
# bother -- if they exist, we load them.
echo "$as_me:11846: checking for main in -lm" >&5
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
if test "${ac_cv_lib_m_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11854 "configure"
#include "confdefs.h"

int
main ()
{
main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11866: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11869: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11872: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11875: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_m_main=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_m_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11886: result: $ac_cv_lib_m_main" >&5
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
if test $ac_cv_lib_m_main = yes; then
  LOAD_LIBS="$LOAD_LIBS -lm"
fi
ac_cv_lib_m=ac_cv_lib_m_main

echo "$as_me:11893: checking for main in -lsocket" >&5
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11901 "configure"
#include "confdefs.h"

int
main ()
{
main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11913: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11916: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11919: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11922: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_socket_main=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_socket_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11933: result: $ac_cv_lib_socket_main" >&5
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
if test $ac_cv_lib_socket_main = yes; then
  LOAD_LIBS="$LOAD_LIBS -lsocket"
fi
ac_cv_lib_socket=ac_cv_lib_socket_main

echo "$as_me:11940: checking for main in -lnsl" >&5
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11948 "configure"
#include "confdefs.h"

int
main ()
{
main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11960: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11963: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11966: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11969: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_nsl_main=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_nsl_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11980: result: $ac_cv_lib_nsl_main" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
if test $ac_cv_lib_nsl_main = yes; then
  LOAD_LIBS="$LOAD_LIBS -lnsl"
fi
ac_cv_lib_nsl=ac_cv_lib_nsl_main
d11647 1
a11647 1
echo "$as_me:11993: checking for mutexes" >&5
d11685 1
a11685 1
  { { echo "$as_me:12031: error: cannot run test program while cross compiling" >&5
d11690 1
a11690 1
#line 12036 "configure"
d11705 1
a11705 1
if { (eval echo "$as_me:12051: \"$ac_link\"") >&5
d11708 1
a11708 1
  echo "$as_me:12054: \$? = $ac_status" >&5
d11710 1
a11710 1
  { (eval echo "$as_me:12056: \"$ac_try\"") >&5
d11713 1
a11713 1
  echo "$as_me:12059: \$? = $ac_status" >&5
d11721 1
a11721 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11731 1
a11731 1
  { { echo "$as_me:12077: error: cannot run test program while cross compiling" >&5
d11736 1
a11736 1
#line 12082 "configure"
d11753 1
a11753 1
if { (eval echo "$as_me:12099: \"$ac_link\"") >&5
d11756 1
a11756 1
  echo "$as_me:12102: \$? = $ac_status" >&5
d11758 1
a11758 1
  { (eval echo "$as_me:12104: \"$ac_try\"") >&5
d11761 1
a11761 1
  echo "$as_me:12107: \$? = $ac_status" >&5
d11769 1
a11769 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11775 1
a11775 1
  { { echo "$as_me:12121: error: cannot run test program while cross compiling" >&5
d11780 1
a11780 1
#line 12126 "configure"
d11797 1
a11797 1
if { (eval echo "$as_me:12143: \"$ac_link\"") >&5
d11800 1
a11800 1
  echo "$as_me:12146: \$? = $ac_status" >&5
d11802 1
a11802 1
  { (eval echo "$as_me:12148: \"$ac_try\"") >&5
d11805 1
a11805 1
  echo "$as_me:12151: \$? = $ac_status" >&5
d11813 1
a11813 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11817 1
a11817 1
	{ { echo "$as_me:12163: error: unable to find UI mutex interfaces" >&5
d11827 1
a11827 1
  { { echo "$as_me:12173: error: cannot run test program while cross compiling" >&5
d11832 1
a11832 1
#line 12178 "configure"
d11857 1
a11857 1
if { (eval echo "$as_me:12203: \"$ac_link\"") >&5
d11860 1
a11860 1
  echo "$as_me:12206: \$? = $ac_status" >&5
d11862 1
a11862 1
  { (eval echo "$as_me:12208: \"$ac_try\"") >&5
d11865 1
a11865 1
  echo "$as_me:12211: \$? = $ac_status" >&5
d11873 1
a11873 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11879 1
a11879 1
  { { echo "$as_me:12225: error: cannot run test program while cross compiling" >&5
d11884 1
a11884 1
#line 12230 "configure"
d11909 1
a11909 1
if { (eval echo "$as_me:12255: \"$ac_link\"") >&5
d11912 1
a11912 1
  echo "$as_me:12258: \$? = $ac_status" >&5
d11914 1
a11914 1
  { (eval echo "$as_me:12260: \"$ac_try\"") >&5
d11917 1
a11917 1
  echo "$as_me:12263: \$? = $ac_status" >&5
d11925 1
a11925 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11930 1
a11930 1
	{ { echo "$as_me:12276: error: unable to find POSIX mutex interfaces" >&5
d11939 1
a11939 1
  { { echo "$as_me:12285: error: cannot run test program while cross compiling" >&5
d11944 1
a11944 1
#line 12290 "configure"
d11962 1
a11962 1
if { (eval echo "$as_me:12308: \"$ac_link\"") >&5
d11965 1
a11965 1
  echo "$as_me:12311: \$? = $ac_status" >&5
d11967 1
a11967 1
  { (eval echo "$as_me:12313: \"$ac_try\"") >&5
d11970 1
a11970 1
  echo "$as_me:12316: \$? = $ac_status" >&5
d11978 1
a11978 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11985 1
a11985 1
  { { echo "$as_me:12331: error: cannot run test program while cross compiling" >&5
d11990 1
a11990 1
#line 12336 "configure"
d12005 1
a12005 1
if { (eval echo "$as_me:12351: \"$ac_link\"") >&5
d12008 1
a12008 1
  echo "$as_me:12354: \$? = $ac_status" >&5
d12010 1
a12010 1
  { (eval echo "$as_me:12356: \"$ac_try\"") >&5
d12013 1
a12013 1
  echo "$as_me:12359: \$? = $ac_status" >&5
d12021 1
a12021 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12029 1
a12029 1
#line 12375 "configure"
d12042 1
a12042 1
if { (eval echo "$as_me:12388: \"$ac_link\"") >&5
d12045 1
a12045 1
  echo "$as_me:12391: \$? = $ac_status" >&5
d12048 1
a12048 1
  { (eval echo "$as_me:12394: \"$ac_try\"") >&5
d12051 1
a12051 1
  echo "$as_me:12397: \$? = $ac_status" >&5
d12065 1
a12065 1
  { { echo "$as_me:12411: error: cannot run test program while cross compiling" >&5
d12070 1
a12070 1
#line 12416 "configure"
d12081 1
a12081 1
if { (eval echo "$as_me:12427: \"$ac_link\"") >&5
d12084 1
a12084 1
  echo "$as_me:12430: \$? = $ac_status" >&5
d12086 1
a12086 1
  { (eval echo "$as_me:12432: \"$ac_try\"") >&5
d12089 1
a12089 1
  echo "$as_me:12435: \$? = $ac_status" >&5
d12097 1
a12097 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12104 1
a12104 1
#line 12450 "configure"
d12117 1
a12117 1
if { (eval echo "$as_me:12463: \"$ac_link\"") >&5
d12120 1
a12120 1
  echo "$as_me:12466: \$? = $ac_status" >&5
d12123 1
a12123 1
  { (eval echo "$as_me:12469: \"$ac_try\"") >&5
d12126 1
a12126 1
  echo "$as_me:12472: \$? = $ac_status" >&5
d12142 1
a12142 1
#line 12488 "configure"
d12156 1
a12156 1
if { (eval echo "$as_me:12502: \"$ac_link\"") >&5
d12159 1
a12159 1
  echo "$as_me:12505: \$? = $ac_status" >&5
d12162 1
a12162 1
  { (eval echo "$as_me:12508: \"$ac_try\"") >&5
d12165 1
a12165 1
  echo "$as_me:12511: \$? = $ac_status" >&5
d12182 1
a12182 1
#line 12528 "configure"
d12196 1
a12196 1
if { (eval echo "$as_me:12542: \"$ac_link\"") >&5
d12199 1
a12199 1
  echo "$as_me:12545: \$? = $ac_status" >&5
d12202 1
a12202 1
  { (eval echo "$as_me:12548: \"$ac_try\"") >&5
d12205 1
a12205 1
  echo "$as_me:12551: \$? = $ac_status" >&5
d12218 1
a12218 1
#line 12564 "configure"
d12230 1
a12230 1
if { (eval echo "$as_me:12576: \"$ac_link\"") >&5
d12233 1
a12233 1
  echo "$as_me:12579: \$? = $ac_status" >&5
d12236 1
a12236 1
  { (eval echo "$as_me:12582: \"$ac_try\"") >&5
d12239 1
a12239 1
  echo "$as_me:12585: \$? = $ac_status" >&5
d12252 1
a12252 1
  { { echo "$as_me:12598: error: cannot run test program while cross compiling" >&5
d12257 1
a12257 1
#line 12603 "configure"
d12268 1
a12268 1
if { (eval echo "$as_me:12614: \"$ac_link\"") >&5
d12271 1
a12271 1
  echo "$as_me:12617: \$? = $ac_status" >&5
d12273 1
a12273 1
  { (eval echo "$as_me:12619: \"$ac_try\"") >&5
d12276 1
a12276 1
  echo "$as_me:12622: \$? = $ac_status" >&5
d12284 1
a12284 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12291 1
a12291 1
  { { echo "$as_me:12637: error: cannot run test program while cross compiling" >&5
d12296 1
a12296 1
#line 12642 "configure"
d12307 1
a12307 1
if { (eval echo "$as_me:12653: \"$ac_link\"") >&5
d12310 1
a12310 1
  echo "$as_me:12656: \$? = $ac_status" >&5
d12312 1
a12312 1
  { (eval echo "$as_me:12658: \"$ac_try\"") >&5
d12315 1
a12315 1
  echo "$as_me:12661: \$? = $ac_status" >&5
d12323 1
a12323 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12330 1
a12330 1
  { { echo "$as_me:12676: error: cannot run test program while cross compiling" >&5
d12335 1
a12335 1
#line 12681 "configure"
d12346 1
a12346 1
if { (eval echo "$as_me:12692: \"$ac_link\"") >&5
d12349 1
a12349 1
  echo "$as_me:12695: \$? = $ac_status" >&5
d12351 1
a12351 1
  { (eval echo "$as_me:12697: \"$ac_try\"") >&5
d12354 1
a12354 1
  echo "$as_me:12700: \$? = $ac_status" >&5
d12362 1
a12362 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12369 1
a12369 1
  { { echo "$as_me:12715: error: cannot run test program while cross compiling" >&5
d12374 1
a12374 1
#line 12720 "configure"
d12386 1
a12386 1
if { (eval echo "$as_me:12732: \"$ac_link\"") >&5
d12389 1
a12389 1
  echo "$as_me:12735: \$? = $ac_status" >&5
d12391 1
a12391 1
  { (eval echo "$as_me:12737: \"$ac_try\"") >&5
d12394 1
a12394 1
  echo "$as_me:12740: \$? = $ac_status" >&5
d12402 1
a12402 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12409 1
a12409 1
  { { echo "$as_me:12755: error: cannot run test program while cross compiling" >&5
d12414 1
a12414 1
#line 12760 "configure"
d12426 1
a12426 1
if { (eval echo "$as_me:12772: \"$ac_link\"") >&5
d12429 1
a12429 1
  echo "$as_me:12775: \$? = $ac_status" >&5
d12431 1
a12431 1
  { (eval echo "$as_me:12777: \"$ac_try\"") >&5
d12434 1
a12434 1
  echo "$as_me:12780: \$? = $ac_status" >&5
d12442 1
a12442 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12449 1
a12449 1
  { { echo "$as_me:12795: error: cannot run test program while cross compiling" >&5
d12454 1
a12454 1
#line 12800 "configure"
d12466 1
a12466 1
if { (eval echo "$as_me:12812: \"$ac_link\"") >&5
d12469 1
a12469 1
  echo "$as_me:12815: \$? = $ac_status" >&5
d12471 1
a12471 1
  { (eval echo "$as_me:12817: \"$ac_try\"") >&5
d12474 1
a12474 1
  echo "$as_me:12820: \$? = $ac_status" >&5
d12482 1
a12482 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12489 1
a12489 1
  { { echo "$as_me:12835: error: cannot run test program while cross compiling" >&5
d12494 1
a12494 1
#line 12840 "configure"
d12506 1
a12506 1
if { (eval echo "$as_me:12852: \"$ac_link\"") >&5
d12509 1
a12509 1
  echo "$as_me:12855: \$? = $ac_status" >&5
d12511 1
a12511 1
  { (eval echo "$as_me:12857: \"$ac_try\"") >&5
d12514 1
a12514 1
  echo "$as_me:12860: \$? = $ac_status" >&5
d12522 1
a12522 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12529 1
a12529 1
  { { echo "$as_me:12875: error: cannot run test program while cross compiling" >&5
d12534 1
a12534 1
#line 12880 "configure"
d12544 1
a12544 1
if { (eval echo "$as_me:12890: \"$ac_link\"") >&5
d12547 1
a12547 1
  echo "$as_me:12893: \$? = $ac_status" >&5
d12549 1
a12549 1
  { (eval echo "$as_me:12895: \"$ac_try\"") >&5
d12552 1
a12552 1
  echo "$as_me:12898: \$? = $ac_status" >&5
d12560 1
a12560 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12565 1
a12565 1
echo "$as_me:12911: result: $db_cv_mutex" >&5
d12569 1
a12569 1
	{ echo "$as_me:12915: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&5
d12720 2
a12721 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13067: checking for $ac_func" >&5
d12723 1
a12723 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12727 1
a12727 1
#line 13073 "configure"
d12758 1
a12758 1
if { (eval echo "$as_me:13104: \"$ac_link\"") >&5
d12761 1
a12761 1
  echo "$as_me:13107: \$? = $ac_status" >&5
d12764 1
a12764 1
  { (eval echo "$as_me:13110: \"$ac_try\"") >&5
d12767 1
a12767 1
  echo "$as_me:13113: \$? = $ac_status" >&5
d12769 1
a12769 1
  eval "$as_ac_var=yes"
d12773 1
a12773 1
eval "$as_ac_var=no"
d12777 3
a12779 3
echo "$as_me:13123: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d12781 1
a12781 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d12791 2
a12792 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13138: checking for $ac_func" >&5
d12794 1
a12794 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12798 1
a12798 1
#line 13144 "configure"
d12829 1
a12829 1
if { (eval echo "$as_me:13175: \"$ac_link\"") >&5
d12832 1
a12832 1
  echo "$as_me:13178: \$? = $ac_status" >&5
d12835 1
a12835 1
  { (eval echo "$as_me:13181: \"$ac_try\"") >&5
d12838 1
a12838 1
  echo "$as_me:13184: \$? = $ac_status" >&5
d12840 1
a12840 1
  eval "$as_ac_var=yes"
d12844 1
a12844 1
eval "$as_ac_var=no"
d12848 3
a12850 3
echo "$as_me:13194: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d12852 1
a12852 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d12871 2
a12872 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13218: checking for $ac_func" >&5
d12874 1
a12874 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12878 1
a12878 1
#line 13224 "configure"
d12909 1
a12909 1
if { (eval echo "$as_me:13255: \"$ac_link\"") >&5
d12912 1
a12912 1
  echo "$as_me:13258: \$? = $ac_status" >&5
d12915 1
a12915 1
  { (eval echo "$as_me:13261: \"$ac_try\"") >&5
d12918 1
a12918 1
  echo "$as_me:13264: \$? = $ac_status" >&5
d12920 1
a12920 1
  eval "$as_ac_var=yes"
d12924 1
a12924 1
eval "$as_ac_var=no"
d12928 3
a12930 3
echo "$as_me:13274: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d12932 1
a12932 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d12940 2
a12941 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13287: checking for $ac_func" >&5
d12943 1
a12943 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12947 1
a12947 1
#line 13293 "configure"
d12978 1
a12978 1
if { (eval echo "$as_me:13324: \"$ac_link\"") >&5
d12981 1
a12981 1
  echo "$as_me:13327: \$? = $ac_status" >&5
d12984 1
a12984 1
  { (eval echo "$as_me:13330: \"$ac_try\"") >&5
d12987 1
a12987 1
  echo "$as_me:13333: \$? = $ac_status" >&5
d12989 1
a12989 1
  eval "$as_ac_var=yes"
d12993 1
a12993 1
eval "$as_ac_var=no"
d12997 3
a12999 3
echo "$as_me:13343: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d13001 1
a13001 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d13012 1
a13012 1
	{ echo "$as_me:13358: WARNING: pread/pwrite interfaces ignored on $host_os." >&5
d13018 2
a13019 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13365: checking for $ac_func" >&5
d13021 1
a13021 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d13025 1
a13025 1
#line 13371 "configure"
d13056 1
a13056 1
if { (eval echo "$as_me:13402: \"$ac_link\"") >&5
d13059 1
a13059 1
  echo "$as_me:13405: \$? = $ac_status" >&5
d13062 1
a13062 1
  { (eval echo "$as_me:13408: \"$ac_try\"") >&5
d13065 1
a13065 1
  echo "$as_me:13411: \$? = $ac_status" >&5
d13067 1
a13067 1
  eval "$as_ac_var=yes"
d13071 1
a13071 1
eval "$as_ac_var=no"
d13075 3
a13077 3
echo "$as_me:13421: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d13079 1
a13079 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d13088 1
a13088 1
echo "$as_me:13434: checking for fcntl/F_SETFD" >&5
d13095 1
a13095 1
  { { echo "$as_me:13441: error: cannot run test program while cross compiling" >&5
d13100 1
a13100 1
#line 13446 "configure"
d13108 1
a13108 1
if { (eval echo "$as_me:13454: \"$ac_link\"") >&5
d13111 1
a13111 1
  echo "$as_me:13457: \$? = $ac_status" >&5
d13113 1
a13113 1
  { (eval echo "$as_me:13459: \"$ac_try\"") >&5
d13116 1
a13116 1
  echo "$as_me:13462: \$? = $ac_status" >&5
d13125 1
a13125 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d13128 1
a13128 1
echo "$as_me:13474: result: $db_cv_fcntl_f_setfd" >&5
d13147 2
a13148 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13494: checking for $ac_func" >&5
d13150 1
a13150 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d13154 1
a13154 1
#line 13500 "configure"
d13185 1
a13185 1
if { (eval echo "$as_me:13531: \"$ac_link\"") >&5
d13188 1
a13188 1
  echo "$as_me:13534: \$? = $ac_status" >&5
d13191 1
a13191 1
  { (eval echo "$as_me:13537: \"$ac_try\"") >&5
d13194 1
a13194 1
  echo "$as_me:13540: \$? = $ac_status" >&5
d13196 1
a13196 1
  eval "$as_ac_var=yes"
d13200 1
a13200 1
eval "$as_ac_var=no"
d13204 3
a13206 3
echo "$as_me:13550: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d13208 1
a13208 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d13212 1
a13212 1
  { { echo "$as_me:13558: error: No qsort library function." >&5
d13221 1
a13221 1
echo "$as_me:13567: checking for int type sprintf return value" >&5
d13228 1
a13228 1
  { { echo "$as_me:13574: error: cannot run test program while cross compiling" >&5
d13233 1
a13233 1
#line 13579 "configure"
d13238 1
a13238 1
if { (eval echo "$as_me:13584: \"$ac_link\"") >&5
d13241 1
a13241 1
  echo "$as_me:13587: \$? = $ac_status" >&5
d13243 1
a13243 1
  { (eval echo "$as_me:13589: \"$ac_try\"") >&5
d13246 1
a13246 1
  echo "$as_me:13592: \$? = $ac_status" >&5
d13255 1
a13255 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d13258 1
a13258 1
echo "$as_me:13604: result: $db_cv_sprintf_count" >&5
d13274 1
a13274 1
{ echo "$as_me:13620: WARNING: Large file and C++ API support are incompatible on HP-UX" >&5
d13276 1
a13276 1
{ echo "$as_me:13622: WARNING: and Solaris 8; large file support has been turned off." >&5
d13289 1
a13289 1
  echo "$as_me:13635: checking for special C compiler options needed for large files" >&5
d13301 1
a13301 1
#line 13647 "configure"
d13321 1
a13321 1
if { (eval echo "$as_me:13667: \"$ac_compile\"") >&5
d13324 1
a13324 1
  echo "$as_me:13670: \$? = $ac_status" >&5
d13327 1
a13327 1
  { (eval echo "$as_me:13673: \"$ac_try\"") >&5
d13330 1
a13330 1
  echo "$as_me:13676: \$? = $ac_status" >&5
d13340 1
a13340 1
if { (eval echo "$as_me:13686: \"$ac_compile\"") >&5
d13343 1
a13343 1
  echo "$as_me:13689: \$? = $ac_status" >&5
d13346 1
a13346 1
  { (eval echo "$as_me:13692: \"$ac_try\"") >&5
d13349 1
a13349 1
  echo "$as_me:13695: \$? = $ac_status" >&5
d13363 1
a13363 1
echo "$as_me:13709: result: $ac_cv_sys_largefile_CC" >&5
d13369 1
a13369 1
  echo "$as_me:13715: checking for _FILE_OFFSET_BITS value needed for large files" >&5
d13377 1
a13377 1
#line 13723 "configure"
d13397 1
a13397 1
if { (eval echo "$as_me:13743: \"$ac_compile\"") >&5
d13400 1
a13400 1
  echo "$as_me:13746: \$? = $ac_status" >&5
d13403 1
a13403 1
  { (eval echo "$as_me:13749: \"$ac_try\"") >&5
d13406 1
a13406 1
  echo "$as_me:13752: \$? = $ac_status" >&5
d13415 1
a13415 1
#line 13761 "configure"
d13436 1
a13436 1
if { (eval echo "$as_me:13782: \"$ac_compile\"") >&5
d13439 1
a13439 1
  echo "$as_me:13785: \$? = $ac_status" >&5
d13442 1
a13442 1
  { (eval echo "$as_me:13788: \"$ac_try\"") >&5
d13445 1
a13445 1
  echo "$as_me:13791: \$? = $ac_status" >&5
d13456 1
a13456 1
echo "$as_me:13802: result: $ac_cv_sys_file_offset_bits" >&5
d13466 1
a13466 1
  echo "$as_me:13812: checking for _LARGE_FILES value needed for large files" >&5
d13474 1
a13474 1
#line 13820 "configure"
d13494 1
a13494 1
if { (eval echo "$as_me:13840: \"$ac_compile\"") >&5
d13497 1
a13497 1
  echo "$as_me:13843: \$? = $ac_status" >&5
d13500 1
a13500 1
  { (eval echo "$as_me:13846: \"$ac_try\"") >&5
d13503 1
a13503 1
  echo "$as_me:13849: \$? = $ac_status" >&5
d13512 1
a13512 1
#line 13858 "configure"
d13533 1
a13533 1
if { (eval echo "$as_me:13879: \"$ac_compile\"") >&5
d13536 1
a13536 1
  echo "$as_me:13882: \$? = $ac_status" >&5
d13539 1
a13539 1
  { (eval echo "$as_me:13885: \"$ac_try\"") >&5
d13542 1
a13542 1
  echo "$as_me:13888: \$? = $ac_status" >&5
d13553 1
a13553 1
echo "$as_me:13899: result: $ac_cv_sys_large_files" >&5
d13581 1
a13581 1
	{ echo "$as_me:13927: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&5
d13587 2
a13588 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13934: checking for $ac_func" >&5
d13590 1
a13590 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d13594 1
a13594 1
#line 13940 "configure"
d13625 1
a13625 1
if { (eval echo "$as_me:13971: \"$ac_link\"") >&5
d13628 1
a13628 1
  echo "$as_me:13974: \$? = $ac_status" >&5
d13631 1
a13631 1
  { (eval echo "$as_me:13977: \"$ac_try\"") >&5
d13634 1
a13634 1
  echo "$as_me:13980: \$? = $ac_status" >&5
d13636 1
a13636 1
  eval "$as_ac_var=yes"
d13640 1
a13640 1
eval "$as_ac_var=no"
d13644 3
a13646 3
echo "$as_me:13990: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d13648 1
a13648 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d13657 1
a13657 1
	{ echo "$as_me:14003: WARNING: mmap(2) interface ignored on Ultrix." >&5
d13664 2
a13665 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:14011: checking for $ac_func" >&5
d13667 1
a13667 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d13671 1
a13671 1
#line 14017 "configure"
d13702 1
a13702 1
if { (eval echo "$as_me:14048: \"$ac_link\"") >&5
d13705 1
a13705 1
  echo "$as_me:14051: \$? = $ac_status" >&5
d13708 1
a13708 1
  { (eval echo "$as_me:14054: \"$ac_try\"") >&5
d13711 1
a13711 1
  echo "$as_me:14057: \$? = $ac_status" >&5
d13713 1
a13713 1
  eval "$as_ac_var=yes"
d13717 1
a13717 1
eval "$as_ac_var=no"
d13721 3
a13723 3
echo "$as_me:14067: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d13725 1
a13725 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d13733 2
a13734 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:14080: checking for $ac_func" >&5
d13736 1
a13736 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d13740 1
a13740 1
#line 14086 "configure"
d13771 1
a13771 1
if { (eval echo "$as_me:14117: \"$ac_link\"") >&5
d13774 1
a13774 1
  echo "$as_me:14120: \$? = $ac_status" >&5
d13777 1
a13777 1
  { (eval echo "$as_me:14123: \"$ac_try\"") >&5
d13780 1
a13780 1
  echo "$as_me:14126: \$? = $ac_status" >&5
d13782 1
a13782 1
  eval "$as_ac_var=yes"
d13786 1
a13786 1
eval "$as_ac_var=no"
d13790 3
a13792 3
echo "$as_me:14136: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d13794 1
a13794 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d13811 1
a13811 1
	{ echo "$as_me:14157: WARNING: shmget(2) interface ignored on SunOS." >&5
d13818 2
a13819 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:14165: checking for $ac_func" >&5
d13821 1
a13821 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d13825 1
a13825 1
#line 14171 "configure"
d13856 1
a13856 1
if { (eval echo "$as_me:14202: \"$ac_link\"") >&5
d13859 1
a13859 1
  echo "$as_me:14205: \$? = $ac_status" >&5
d13862 1
a13862 1
  { (eval echo "$as_me:14208: \"$ac_try\"") >&5
d13865 1
a13865 1
  echo "$as_me:14211: \$? = $ac_status" >&5
d13867 1
a13867 1
  eval "$as_ac_var=yes"
d13871 1
a13871 1
eval "$as_ac_var=no"
d13875 3
a13877 3
echo "$as_me:14221: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d13879 1
a13879 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d13891 1
a13891 1
	{ echo "$as_me:14237: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
a13897 1
    db_cxx.h:$srcdir/../include/db_cxx.in
d13984 1
a13984 1
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
d13989 1
a13989 1
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
d14034 1
a14034 1
{ echo "$as_me:14381: creating $CONFIG_STATUS" >&5
d14163 1
a14163 1
configured by $0, generated by GNU Autoconf 2.52,
d14207 1
a14207 1
    { { echo "$as_me:14554: error: ambiguous option: $1
d14225 4
d14230 1
a14230 1
  -*) { { echo "$as_me:14573: error: unrecognized option: $1
d14235 3
a14237 3

  *) ac_config_targets="$ac_config_targets $1" ;;

d14249 1
a14249 5
This file was extended by $as_me 2.52, executed with
  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
a14256 12
for ac_config_target in $ac_config_targets
do
  case "$ac_config_target" in
  # Handling of arguments.
  "$CREATE_LIST" ) CONFIG_FILES="$CONFIG_FILES $CREATE_LIST" ;;
  "db_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS db_config.h:config.hin" ;;
  *) { { echo "$as_me:14610: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done

d14270 1
a14270 1
  trap '{ (exit 1); exit 1; }' 1 2 13 15
a14322 3
s,@@build_alias@@,$build_alias,;t t
s,@@host_alias@@,$host_alias,;t t
s,@@target_alias@@,$target_alias,;t t
a14364 1
s,@@LOAD_LIBS@@,$LOAD_LIBS,;t t
d14367 1
a14369 1
s,@@MAKEFILE_SOLINK@@,$MAKEFILE_SOLINK,;t t
d14377 1
a14423 1
s,@@cxx_have_stdheaders@@,$cxx_have_stdheaders,;t t
d14565 1
a14565 1
    { echo "$as_me:14928: creating $ac_file" >&5
d14583 1
a14583 1
         test -f "$f" || { { echo "$as_me:14946: error: cannot find input file: $f" >&5
d14596 1
a14596 1
           { { echo "$as_me:14959: error: cannot find input file: $f" >&5
d14657 1
a14657 1
  test x"$ac_file" != x- && { echo "$as_me:15020: creating $ac_file" >&5
d14668 1
a14668 1
         test -f "$f" || { { echo "$as_me:15031: error: cannot find input file: $f" >&5
d14681 1
a14681 1
           { { echo "$as_me:15044: error: cannot find input file: $f" >&5
d14798 1
a14798 1
      { echo "$as_me:15161: $ac_file is unchanged" >&5
@


1.1.1.6
log
@track: auto import
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.53 for Berkeley DB 4.1.17.
d5 1
a5 3
# Report bugs to <support@@sleepycat.com>.
#
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
a20 1

d166 6
d173 2
d176 2
a177 10
if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi


## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##
a186 34
# NLS nuisances.
# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
    { $as_unset LANG || test "${LANG+set}" != set; } ||
      { LANG=C; export LANG; }
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
      { LC_ALL=C; export LC_ALL; }
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
      { LC_TIME=C; export LC_TIME; }
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
      { LC_CTYPE=C; export LC_CTYPE; }
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
      { LANGUAGE=C; export LANGUAGE; }
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
      { LC_COLLATE=C; export LC_COLLATE; }
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
      { LC_NUMERIC=C; export LC_NUMERIC; }
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
      { LC_MESSAGES=C; export LC_MESSAGES; }


d188 1
a188 124
as_me=`(basename "$0") 2>/dev/null ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)$' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  	  /^X\/\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`

# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conftest.sh
  echo  "exit 0"   >>conftest.sh
  chmod +x conftest.sh
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conftest.sh
fi


  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  # Find who we are.  Look in the path if we contain no path at all
  # relative or not.
  case $0 in
    *[\\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done

       ;;
  esac
  # We did not find ourselves, most probably we were run as `sh COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for as_base in sh bash ksh sh5; do
	 case $as_dir in
	 /*)
	   if ("$as_dir/$as_base" -c '
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
	     CONFIG_SHELL=$as_dir/$as_base
	     export CONFIG_SHELL
	     exec "$CONFIG_SHELL" "$0" ${1+"$@@"}
	   fi;;
	 esac
       done
done
;;
  esac

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line before each line; the second 'sed' does the real
  # work.  The second script uses 'N' to pair each line-number line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  sed '=' <$as_myself |
    sed '
      N
      s,$,-,
      : loop
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
      t loop
      s,-$,,
      s,^['$as_cr_digits']*\n,,
    ' >$as_me.lineno &&
  chmod +x $as_me.lineno ||
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensible to this).
  . ./$as_me.lineno
  # Exit status is that of the last command.
  exit
}


case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
d216 6
a221 5
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
d223 9
d240 1
a240 2
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }

d255 1
a255 2
MFLAGS=
MAKEFLAGS=
a262 7
# Identity of this package.
PACKAGE_NAME='Berkeley DB'
PACKAGE_TARNAME='db-4.1.17'
PACKAGE_VERSION='4.1.17'
PACKAGE_STRING='Berkeley DB 4.1.17'
PACKAGE_BUGREPORT='support@@sleepycat.com'

a301 1

d340 7
d479 1
a479 1
  | --no-cr | --no-c | -n)
d658 1
a658 1
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
d670 1
a670 1
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
a676 1
# FIXME: To remove some day.
d681 1
a681 1
# FIXME: To remove some day.
a696 1

d701 3
a703 12
  ac_confdir=`(dirname "$0") 2>/dev/null ||
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$0" : 'X\(//\)[^/]' \| \
         X"$0" : 'X\(//\)$' \| \
         X"$0" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$0" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d713 1
a713 1
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
d716 1
a716 1
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d768 2
a769 2
  cat <<_ACEOF
\`configure' configures Berkeley DB 4.1.17 to adapt to many kinds of systems.
d789 1
a789 1
_ACEOF
d791 1
a791 1
  cat <<_ACEOF
d818 1
a818 1
_ACEOF
d820 1
a820 1
  cat <<\_ACEOF
d829 2
a830 2
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
d834 2
a835 4
  case $ac_init_help in
     short | recursive ) echo "Configuration of Berkeley DB 4.1.17:";;
   esac
  cat <<\_ACEOF
a864 1
  --with-mutex=MUTEX      Selection of non-standard mutexes.
d885 1
a885 2
Report bugs to <support@@sleepycat.com>.
_ACEOF
d891 14
a904 33
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d $ac_dir || continue
    ac_builddir=.

if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
a905 1
    cd $ac_dir
d907 1
a907 1
    if test -f $ac_srcdir/configure.gnu; then
d909 2
a910 2
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_srcdir/configure; then
d912 3
a914 3
      $SHELL $ac_srcdir/configure  --help=recursive
    elif test -f $ac_srcdir/configure.ac ||
           test -f $ac_srcdir/configure.in; then
d918 1
a918 1
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
d926 1
a926 3
  cat <<\_ACEOF
Berkeley DB configure 4.1.17
generated by GNU Autoconf 2.53
d928 1
a928 1
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
d932 1
a932 1
_ACEOF
d936 1
a936 1
cat >&5 <<_ACEOF
d940 2
a941 2
It was created by Berkeley DB $as_me 4.1.17, which was
generated by GNU Autoconf 2.53.  Invocation command line was
d945 1
a945 1
_ACEOF
d948 3
a950 3
## --------- ##
## Platform. ##
## --------- ##
d969 2
a971 9

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  echo "PATH: $as_dir"
done

d974 4
a977 8
cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF
d979 1
d990 1
a990 1
  | --no-cr | --no-c | -n ) continue ;;
d992 1
a992 2
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    continue ;;
d994 5
a998 6
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  case " $ac_configure_args " in
    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
       ac_sep=" " ;;
a1005 2
# WARNING: Be sure not to use single quotes in there, as some shells,
# such as our DU 5.0 friend, will then `close' the trap.
d1008 6
a1013 9
  {
    echo
    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # The following way of writing the cache mishandles newlines in values,
d1027 15
a1041 18
}
    echo
    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      sed "/^$/d" confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      echo "$as_me: caught signal $ac_signal"
    echo "$as_me: exit $exit_status"
  } >&5
  rm -f core core.* *.core &&
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
a1053 27
# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF


d1065 1
a1065 1
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
d1067 1
a1067 1
    sed 's/^/| /' "$ac_site_file" >&5
d1076 1
a1076 1
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
d1084 1
a1084 1
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
d1100 1
a1100 1
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
d1104 1
a1104 1
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
d1110 1
a1110 1
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
d1112 1
a1112 1
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
d1114 1
a1114 1
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
d1119 2
a1120 1
  # Pass precious variables to config.status.
d1124 5
a1128 6
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
d1133 1
a1133 1
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
d1135 1
a1135 1
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
d1146 20
a1165 25

























a1168 1

d1187 1
a1187 1
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
d1197 1
a1197 1
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
d1201 1
a1201 1
echo "$as_me:$LINENO: checking build system type" >&5
d1210 1
a1210 1
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
d1214 2
a1215 2
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
d1219 1
a1219 1
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
d1226 1
a1226 2

echo "$as_me:$LINENO: checking host system type" >&5
d1235 1
a1235 1
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
d1240 1
a1240 1
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
a1246 1

a1259 1

d1261 1
a1261 1
echo "$as_me:$LINENO: checking if building in the top-level directory" >&5
d1263 1
a1263 1
 test -d db_archive  && { { echo "$as_me:$LINENO: error:
d1268 1
a1268 1
echo "$as_me:$LINENO: result: no" >&5
a1272 44












































a1281 1

d1284 1
a1284 1
DB_VERSION_MINOR=1
d1286 1
a1286 1
DB_VERSION_PATCH=17
d1288 1
a1288 3
DB_VERSION_UNIQUE_NAME=_4001

DB_VERSION_STRING="\"Sleepycat Software: Berkeley DB 4.1.17: (August 13, 2002)\""
d1290 1
a1293 1

a1295 1

d1301 1
a1301 1
  { { echo "$as_me:$LINENO: error: --enable-bigfile no longer supported, use --enable-largefile" >&5
d1306 1
a1306 1
echo "$as_me:$LINENO: checking if --enable-compat185 option specified" >&5
d1315 1
a1315 1
echo "$as_me:$LINENO: result: $db_cv_compat185" >&5
d1318 1
a1318 1
echo "$as_me:$LINENO: checking if --enable-cxx option specified" >&5
d1327 1
a1327 1
echo "$as_me:$LINENO: result: $db_cv_cxx" >&5
d1330 1
a1330 1
echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
d1339 1
a1339 1
echo "$as_me:$LINENO: result: $db_cv_debug" >&5
d1342 1
a1342 1
echo "$as_me:$LINENO: checking if --enable-debug_rop option specified" >&5
d1351 1
a1351 1
echo "$as_me:$LINENO: result: $db_cv_debug_rop" >&5
d1354 1
a1354 1
echo "$as_me:$LINENO: checking if --enable-debug_wop option specified" >&5
d1363 1
a1363 1
echo "$as_me:$LINENO: result: $db_cv_debug_wop" >&5
d1366 1
a1366 1
echo "$as_me:$LINENO: checking if --enable-diagnostic option specified" >&5
d1375 1
a1375 1
echo "$as_me:$LINENO: result: $db_cv_diagnostic" >&5
d1378 1
a1378 1
echo "$as_me:$LINENO: checking if --enable-dump185 option specified" >&5
d1387 1
a1387 1
echo "$as_me:$LINENO: result: $db_cv_dump185" >&5
d1390 1
a1390 1
echo "$as_me:$LINENO: checking if --enable-java option specified" >&5
d1399 1
a1399 1
echo "$as_me:$LINENO: result: $db_cv_java" >&5
d1402 1
a1402 1
echo "$as_me:$LINENO: checking if --enable-posixmutexes option specified" >&5
d1411 1
a1411 1
echo "$as_me:$LINENO: result: $db_cv_posixmutexes" >&5
d1414 1
a1414 1
echo "$as_me:$LINENO: checking if --enable-rpc option specified" >&5
d1423 1
a1423 1
echo "$as_me:$LINENO: result: $db_cv_rpc" >&5
d1426 1
a1426 1
echo "$as_me:$LINENO: checking if --enable-tcl option specified" >&5
d1435 1
a1435 1
echo "$as_me:$LINENO: result: $db_cv_tcl" >&5
d1438 1
a1438 1
echo "$as_me:$LINENO: checking if --enable-test option specified" >&5
d1447 1
a1447 1
echo "$as_me:$LINENO: result: $db_cv_test" >&5
d1450 1
a1450 1
echo "$as_me:$LINENO: checking if --enable-uimutexes option specified" >&5
d1459 1
a1459 1
echo "$as_me:$LINENO: result: $db_cv_uimutexes" >&5
d1462 1
a1462 1
echo "$as_me:$LINENO: checking if --enable-umrw option specified" >&5
d1471 1
a1471 1
echo "$as_me:$LINENO: result: $db_cv_umrw" >&5
d1474 1
a1474 1
echo "$as_me:$LINENO: checking if --with-embedix=DIR option specified" >&5
d1486 1
a1486 1
	echo "$as_me:$LINENO: result: $with_embedix" >&5
d1495 1
a1495 1
	echo "$as_me:$LINENO: result: $db_cv_path_embedix_install" >&5
d1499 1
a1499 22
echo "$as_me:$LINENO: checking if --with-mutex=MUTEX option specified" >&5
echo $ECHO_N "checking if --with-mutex=MUTEX option specified... $ECHO_C" >&6

# Check whether --with-mutex or --without-mutex was given.
if test "${with_mutex+set}" = set; then
  withval="$with_mutex"
  with_mutex="$withval"
else
  with_mutex="no"
fi;
if test "$with_mutex" = "yes"; then
	{ { echo "$as_me:$LINENO: error: --with-mutex requires a mutex name argument" >&5
echo "$as_me: error: --with-mutex requires a mutex name argument" >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$with_mutex" != "no"; then
	db_cv_mutex="$with_mutex"
fi
echo "$as_me:$LINENO: result: $with_mutex" >&5
echo "${ECHO_T}$with_mutex" >&6

echo "$as_me:$LINENO: checking if --with-rpm=DIR option specified" >&5
d1513 1
a1513 1
		{ { echo "$as_me:$LINENO: error: --with-rpm requires a directory argument" >&5
d1520 1
a1520 1
echo "$as_me:$LINENO: result: $with_rpm" >&5
d1523 1
a1523 1
echo "$as_me:$LINENO: checking if --with-tcl=DIR option specified" >&5
d1533 1
a1533 1
echo "$as_me:$LINENO: result: $with_tclconfig" >&5
d1539 1
a1539 1
echo "$as_me:$LINENO: checking if --with-uniquename=NAME option specified" >&5
d1551 1
a1551 1
	echo "$as_me:$LINENO: result: $with_uniquename" >&5
d1558 1
a1558 1
	echo "$as_me:$LINENO: result: $DB_VERSION_UNIQUE_NAME" >&5
d1565 1
a1565 1
		{ { echo "$as_me:$LINENO: error: --with-embedix requires --with-rpm" >&5
d1574 1
a1574 1
		{ { echo "$as_me:$LINENO: error: --enable-test requires --enable-tcl" >&5
d1582 1
a1582 1
	cat >>confdefs.h <<\_ACEOF
d1584 1
a1584 3
_ACEOF


d1588 1
a1588 1
	cat >>confdefs.h <<\_ACEOF
d1590 1
a1590 3
_ACEOF


d1594 1
a1594 1
	cat >>confdefs.h <<\_ACEOF
d1596 1
a1596 3
_ACEOF


d1600 1
a1600 1
	cat >>confdefs.h <<\_ACEOF
d1602 1
a1602 1
_ACEOF
d1604 3
a1606 6



fi
if test "$db_cv_test" = yes; then
	cat >>confdefs.h <<\_ACEOF
d1608 1
a1608 3
_ACEOF


a1613 1

d1617 1
a1617 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1625 9
a1633 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_ar="${ac_tool_prefix}ar"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1640 1
a1640 1
  echo "$as_me:$LINENO: result: $db_cv_path_ar" >&5
d1643 1
a1643 1
  echo "$as_me:$LINENO: result: no" >&5
d1652 1
a1652 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1660 9
a1668 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_ar="ar"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1676 1
a1676 1
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_ar" >&5
d1679 1
a1679 1
  echo "$as_me:$LINENO: result: no" >&5
d1689 1
a1689 1
	{ { echo "$as_me:$LINENO: error: No ar utility found." >&5
d1697 1
a1697 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1705 9
a1713 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_chmod="${ac_tool_prefix}chmod"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1720 1
a1720 1
  echo "$as_me:$LINENO: result: $db_cv_path_chmod" >&5
d1723 1
a1723 1
  echo "$as_me:$LINENO: result: no" >&5
d1732 1
a1732 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1740 9
a1748 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_chmod="chmod"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1756 1
a1756 1
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_chmod" >&5
d1759 1
a1759 1
  echo "$as_me:$LINENO: result: no" >&5
d1769 1
a1769 1
	{ { echo "$as_me:$LINENO: error: No chmod utility found." >&5
d1777 1
a1777 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1785 9
a1793 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_cp="${ac_tool_prefix}cp"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1800 1
a1800 1
  echo "$as_me:$LINENO: result: $db_cv_path_cp" >&5
d1803 1
a1803 1
  echo "$as_me:$LINENO: result: no" >&5
d1812 1
a1812 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1820 9
a1828 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_cp="cp"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1836 1
a1836 1
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_cp" >&5
d1839 1
a1839 1
  echo "$as_me:$LINENO: result: no" >&5
d1849 1
a1849 1
	{ { echo "$as_me:$LINENO: error: No cp utility found." >&5
d1858 1
a1858 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1866 9
a1874 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_path_ldconfig="${ac_tool_prefix}ldconfig"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1881 1
a1881 1
  echo "$as_me:$LINENO: result: $path_ldconfig" >&5
d1884 1
a1884 1
  echo "$as_me:$LINENO: result: no" >&5
d1893 1
a1893 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1901 9
a1909 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_path_ldconfig="ldconfig"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1917 1
a1917 1
  echo "$as_me:$LINENO: result: $ac_ct_path_ldconfig" >&5
d1920 1
a1920 1
  echo "$as_me:$LINENO: result: no" >&5
d1931 1
a1931 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1941 10
a1950 12
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_db_cv_path_ldconfig="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1960 1
a1960 1
  echo "$as_me:$LINENO: result: $db_cv_path_ldconfig" >&5
d1963 1
a1963 1
  echo "$as_me:$LINENO: result: no" >&5
d1976 1
a1976 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1984 9
a1992 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_ln="${ac_tool_prefix}ln"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1999 1
a1999 1
  echo "$as_me:$LINENO: result: $db_cv_path_ln" >&5
d2002 1
a2002 1
  echo "$as_me:$LINENO: result: no" >&5
d2011 1
a2011 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2019 9
a2027 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_ln="ln"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2035 1
a2035 1
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_ln" >&5
d2038 1
a2038 1
  echo "$as_me:$LINENO: result: no" >&5
d2048 1
a2048 1
	{ { echo "$as_me:$LINENO: error: No ln utility found." >&5
d2056 1
a2056 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2064 9
a2072 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_mkdir="${ac_tool_prefix}mkdir"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2079 1
a2079 1
  echo "$as_me:$LINENO: result: $db_cv_path_mkdir" >&5
d2082 1
a2082 1
  echo "$as_me:$LINENO: result: no" >&5
d2091 1
a2091 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2099 9
a2107 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_mkdir="mkdir"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2115 1
a2115 1
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_mkdir" >&5
d2118 1
a2118 1
  echo "$as_me:$LINENO: result: no" >&5
d2128 1
a2128 1
	{ { echo "$as_me:$LINENO: error: No mkdir utility found." >&5
d2138 1
a2138 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2146 9
a2154 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_path_ranlib="${ac_tool_prefix}ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2161 1
a2161 1
  echo "$as_me:$LINENO: result: $path_ranlib" >&5
d2164 1
a2164 1
  echo "$as_me:$LINENO: result: no" >&5
d2173 1
a2173 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2181 9
a2189 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_path_ranlib="ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2197 1
a2197 1
  echo "$as_me:$LINENO: result: $ac_ct_path_ranlib" >&5
d2200 1
a2200 1
  echo "$as_me:$LINENO: result: no" >&5
d2211 1
a2211 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2221 10
a2230 12
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_db_cv_path_ranlib="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2240 1
a2240 1
  echo "$as_me:$LINENO: result: $db_cv_path_ranlib" >&5
d2243 1
a2243 1
  echo "$as_me:$LINENO: result: no" >&5
a2246 1

d2250 1
a2250 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2258 9
a2266 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_rm="${ac_tool_prefix}rm"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2273 1
a2273 1
  echo "$as_me:$LINENO: result: $db_cv_path_rm" >&5
d2276 1
a2276 1
  echo "$as_me:$LINENO: result: no" >&5
d2285 1
a2285 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2293 9
a2301 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_rm="rm"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2309 1
a2309 1
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_rm" >&5
d2312 1
a2312 1
  echo "$as_me:$LINENO: result: no" >&5
d2322 1
a2322 1
	{ { echo "$as_me:$LINENO: error: No rm utility found." >&5
d2331 1
a2331 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2339 9
a2347 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_rpm="${ac_tool_prefix}rpm"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2354 1
a2354 1
  echo "$as_me:$LINENO: result: $db_cv_path_rpm" >&5
d2357 1
a2357 1
  echo "$as_me:$LINENO: result: no" >&5
d2366 1
a2366 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2374 9
a2382 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_rpm="rpm"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2390 1
a2390 1
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_rpm" >&5
d2393 1
a2393 1
  echo "$as_me:$LINENO: result: no" >&5
d2403 1
a2403 1
		{ { echo "$as_me:$LINENO: error: No rpm utility found." >&5
d2414 1
a2414 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2422 9
a2430 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_path_sh="${ac_tool_prefix}sh"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2437 1
a2437 1
  echo "$as_me:$LINENO: result: $path_sh" >&5
d2440 1
a2440 1
  echo "$as_me:$LINENO: result: no" >&5
d2449 1
a2449 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2457 9
a2465 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_path_sh="sh"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2473 1
a2473 1
  echo "$as_me:$LINENO: result: $ac_ct_path_sh" >&5
d2476 1
a2476 1
  echo "$as_me:$LINENO: result: no" >&5
d2487 1
a2487 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2497 10
a2506 12
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_db_cv_path_sh="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2516 1
a2516 1
  echo "$as_me:$LINENO: result: $db_cv_path_sh" >&5
d2519 1
a2519 1
  echo "$as_me:$LINENO: result: no" >&5
d2524 1
a2524 1
	{ { echo "$as_me:$LINENO: error: No sh utility found." >&5
d2536 1
a2536 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2544 9
a2552 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_path_strip="${ac_tool_prefix}strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2559 1
a2559 1
  echo "$as_me:$LINENO: result: $path_strip" >&5
d2562 1
a2562 1
  echo "$as_me:$LINENO: result: no" >&5
d2571 1
a2571 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2579 9
a2587 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_path_strip="strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2595 1
a2595 1
  echo "$as_me:$LINENO: result: $ac_ct_path_strip" >&5
d2598 1
a2598 1
  echo "$as_me:$LINENO: result: no" >&5
d2609 1
a2609 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2619 10
a2628 12
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_db_cv_path_strip="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2638 1
a2638 1
  echo "$as_me:$LINENO: result: $db_cv_path_strip" >&5
d2641 1
a2641 1
  echo "$as_me:$LINENO: result: no" >&5
d2651 1
a2651 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2659 9
a2667 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_db_cv_path_kill="${ac_tool_prefix}kill"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2674 1
a2674 1
  echo "$as_me:$LINENO: result: $db_cv_path_kill" >&5
d2677 1
a2677 1
  echo "$as_me:$LINENO: result: no" >&5
d2686 1
a2686 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2694 9
a2702 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_db_cv_path_kill="kill"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2710 1
a2710 1
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_kill" >&5
d2713 1
a2713 1
  echo "$as_me:$LINENO: result: no" >&5
d2723 1
a2723 1
		{ { echo "$as_me:$LINENO: error: No kill utility found." >&5
a2728 1

d2741 2
a2742 2
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
d2747 27
a2773 30
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
  ./ | .// | /cC/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
          if test $ac_prog = install &&
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
            # AIX install.  It has an incompatible calling convention.
            :
          elif test $ac_prog = install &&
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
            # program-specific install script used by HP pwplus--don't use.
            :
          else
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
            break 3
          fi
        fi
d2775 3
a2777 5
    done
    ;;
esac
done

d2790 1
a2790 1
echo "$as_me:$LINENO: result: $INSTALL" >&5
a2800 1

d2836 5
a2840 1
aix4.3.*|aix5*)
d2844 1
a2844 1
	LDFLAGS="$LDFLAGS -Wl,-brtl";;
d2862 1
a2862 1
*qnx)	cat >>confdefs.h <<\_ACEOF
d2864 1
a2864 2
_ACEOF

d2867 5
d2888 1
a2888 1
	cat >>confdefs.h <<\_ACEOF
d2890 1
a2890 4
_ACEOF



d2897 2
a2898 7
# above, NOT what is set by AC_PROG_CC, as it won't set optimization flags
# for any compiler other than gcc.
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d2900 3
a2902 5
  for ac_prog in cc gcc
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2910 9
a2918 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2925 1
a2925 1
  echo "$as_me:$LINENO: result: $CC" >&5
d2928 1
a2928 1
  echo "$as_me:$LINENO: result: no" >&5
a2931 2
    test -n "$CC" && break
  done
d2933 1
a2933 1
if test -z "$CC"; then
d2935 3
a2937 5
  for ac_prog in cc gcc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2945 9
a2953 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2960 1
a2960 1
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
d2963 1
a2963 1
  echo "$as_me:$LINENO: result: no" >&5
d2967 25
a2991 1
  test -n "$ac_ct_CC" && break
d2994 9
a3002 1
  CC=$ac_ct_CC
d3005 23
d3029 10
a3038 3
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
d3040 4
a3043 19
# Provide some information about the compiler.
echo "$as_me:$LINENO:" \
     "checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
d3045 316
a3360 3
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
a3361 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d3375 1
a3375 1
echo "$as_me:$LINENO: checking for C compiler default output" >&5
d3378 1
a3378 1
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
d3381 1
a3381 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3386 1
a3386 5

# Be careful to initialize this variable, since it used to be cached.
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
ac_cv_exeext=
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
d3390 1
a3390 1
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
d3404 1
a3404 1
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
d3410 1
a3410 1
echo "$as_me:$LINENO: result: $ac_file" >&5
d3415 1
a3415 1
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
d3421 1
a3421 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3424 1
a3424 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3431 1
a3431 1
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
d3439 1
a3439 1
echo "$as_me:$LINENO: result: yes" >&5
d3446 1
a3446 1
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
d3448 1
a3448 1
echo "$as_me:$LINENO: result: $cross_compiling" >&5
d3451 3
a3453 3
echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d3456 1
a3456 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3472 2
a3473 2
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
d3478 1
a3478 1
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
d3484 2
a3485 2
echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
d3490 1
a3490 1
#line $LINENO "configure"
a3492 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d3502 1
a3502 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d3505 1
a3505 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3517 2
a3518 2
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
d3524 1
a3524 1
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
d3528 1
a3528 1
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
d3534 1
a3534 1
#line $LINENO "configure"
a3536 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d3549 1
a3549 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d3552 1
a3552 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3555 1
a3555 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3558 1
a3558 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3570 1
a3570 1
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
d3576 1
a3576 1
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
d3582 1
a3582 1
#line $LINENO "configure"
a3584 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d3594 1
a3594 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d3597 1
a3597 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3600 1
a3600 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3603 1
a3603 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3613 1
a3613 1
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
d3640 1
a3640 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d3643 1
a3643 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3646 1
a3646 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3649 1
a3649 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3661 1
a3661 1
#line $LINENO "configure"
a3664 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d3674 1
a3674 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d3677 1
a3677 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3680 1
a3680 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3683 1
a3683 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3693 1
a3693 1
#line $LINENO "configure"
a3695 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d3705 1
a3705 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d3708 1
a3708 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3711 1
a3711 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3714 1
a3714 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3740 1

d3762 1
a3762 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d3770 9
a3778 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CCC="${ac_tool_prefix}xlC_r"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d3785 1
a3785 1
  echo "$as_me:$LINENO: result: $CCC" >&5
d3788 1
a3788 1
  echo "$as_me:$LINENO: result: no" >&5
d3797 1
a3797 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d3805 9
a3813 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CCC="xlC_r"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d3820 1
a3820 1
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
d3823 1
a3823 1
  echo "$as_me:$LINENO: result: no" >&5
d3837 1
a3837 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d3845 9
a3853 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CCC="${ac_tool_prefix}aCC"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d3860 1
a3860 1
  echo "$as_me:$LINENO: result: $CCC" >&5
d3863 1
a3863 1
  echo "$as_me:$LINENO: result: no" >&5
d3872 1
a3872 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d3880 9
a3888 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CCC="aCC"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d3895 1
a3895 1
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
d3898 1
a3898 1
  echo "$as_me:$LINENO: result: no" >&5
d3907 4
a3910 4
		irix*)		if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
set dummy ${ac_tool_prefix}CC; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
d3918 9
a3926 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CCC="${ac_tool_prefix}CC"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d3933 1
a3933 1
  echo "$as_me:$LINENO: result: $CCC" >&5
d3936 1
a3936 1
  echo "$as_me:$LINENO: result: no" >&5
d3943 3
a3945 3
  # Extract the first word of "CC", so it can be a program name with args.
set dummy CC; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
d3953 9
a3961 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CCC="CC"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d3968 1
a3968 1
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
d3971 1
a3971 1
  echo "$as_me:$LINENO: result: no" >&5
d3980 4
a3983 4
		osf*)		if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cxx", so it can be a program name with args.
set dummy ${ac_tool_prefix}cxx; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
d3991 9
a3999 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CCC="${ac_tool_prefix}cxx"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d4006 1
a4006 1
  echo "$as_me:$LINENO: result: $CCC" >&5
d4009 1
a4009 1
  echo "$as_me:$LINENO: result: no" >&5
d4016 3
a4018 3
  # Extract the first word of "cxx", so it can be a program name with args.
set dummy cxx; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
d4026 9
a4034 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CCC="cxx"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d4041 1
a4041 1
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
d4044 1
a4044 1
  echo "$as_me:$LINENO: result: no" >&5
d4053 13
a4065 92
		solaris*)	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
set dummy ${ac_tool_prefix}CC; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CCC"; then
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CCC="${ac_tool_prefix}CC"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
CCC=$ac_cv_prog_CCC
if test -n "$CCC"; then
  echo "$as_me:$LINENO: result: $CCC" >&5
echo "${ECHO_T}$CCC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CCC"; then
  ac_ct_CCC=$CCC
  # Extract the first word of "CC", so it can be a program name with args.
set dummy CC; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CCC"; then
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CCC="CC"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
if test -n "$ac_ct_CCC"; then
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
echo "${ECHO_T}$ac_ct_CCC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CCC=$ac_ct_CCC
else
  CCC="$ac_cv_prog_CCC"
fi
;;
		esac
	fi
	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
d4073 9
a4081 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d4088 1
a4088 1
  echo "$as_me:$LINENO: result: $CXX" >&5
d4091 1
a4091 1
  echo "$as_me:$LINENO: result: no" >&5
d4104 1
a4104 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d4112 9
a4120 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d4127 1
a4127 1
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
d4130 1
a4130 1
  echo "$as_me:$LINENO: result: no" >&5
a4140 1

d4142 1
a4142 1
echo "$as_me:$LINENO:" \
d4145 1
a4145 1
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
d4148 1
a4148 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4150 1
a4150 1
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
d4153 1
a4153 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4155 1
a4155 1
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
d4158 1
a4158 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4161 1
a4161 1
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
d4167 1
a4167 1
#line $LINENO "configure"
a4169 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4182 1
a4182 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4185 1
a4185 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4188 1
a4188 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4191 1
a4191 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4203 1
a4203 1
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
d4209 1
a4209 1
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
d4215 1
a4215 1
#line $LINENO "configure"
a4217 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4227 1
a4227 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4230 1
a4230 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4233 1
a4233 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4236 1
a4236 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4246 1
a4246 1
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
d4273 1
a4273 1
#line $LINENO "configure"
a4276 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4286 1
a4286 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4289 1
a4289 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4292 1
a4292 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4295 1
a4295 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4305 1
a4305 1
#line $LINENO "configure"
a4307 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4317 1
a4317 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4320 1
a4320 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4323 1
a4323 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4326 1
a4326 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4348 1
a4348 4



echo "$as_me:$LINENO: checking whether C++ supports the ISO C++ standard includes" >&5
a4353 1

d4361 1
a4361 1
#line $LINENO "configure"
a4364 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4368 1
a4368 1
std::ostream *o; return 0;
d4374 1
a4374 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4377 1
a4377 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4380 1
a4380 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4383 1
a4383 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
a4397 1

d4399 1
a4399 1
echo "$as_me:$LINENO: result: $db_cv_cxx_have_stdheaders" >&5
d4410 1
a4410 1
echo "$as_me:$LINENO: checking whether we are using gcc version 2.96" >&5
d4425 1
a4425 1
echo "$as_me:$LINENO: result: $db_cv_gcc_2_96" >&5
d4430 1
a4430 1
	{ echo "$as_me:$LINENO: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&5
d4432 1
a4432 1
	{ echo "$as_me:$LINENO: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&5
d4436 1
a4436 1
echo "$as_me:$LINENO: checking whether g++ requires -fhandle-exceptions" >&5
d4451 1
a4451 1
echo "$as_me:$LINENO: result: $db_cv_gxx_except" >&5
a4456 14
# We need the -Kthread/-pthread flag when compiling on SCO/Caldera's UnixWare
# and OpenUNIX releases.  We can't make the test until we know which compiler
# we're using.
case "$host_os" in
sysv5UnixWare*|sysv5OpenUNIX8*)
	if test "$GCC" == "yes"; then
		CPPFLAGS="$CPPFLAGS -pthread"
		LDFLAGS="$LDFLAGS -pthread"
	else
		CPPFLAGS="$CPPFLAGS -Kthread"
		LDFLAGS="$LDFLAGS -Kthread"
	fi;;
esac

a4538 1

d4549 1
a4549 1
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
d4579 1
a4579 1
  echo "$as_me:$LINENO: checking for GNU ld" >&5
d4582 1
a4582 1
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
d4612 1
a4612 1
  echo "$as_me:$LINENO: result: $LD" >&5
d4615 1
a4615 1
  echo "$as_me:$LINENO: result: no" >&5
d4618 1
a4618 1
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
d4621 1
a4621 1
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
d4633 1
a4633 1
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
d4637 1
a4637 2

echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
d4644 1
a4644 1
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
d4649 1
a4649 1
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
d4685 1
a4685 1
echo "$as_me:$LINENO: result: $NM" >&5
d4688 1
a4688 1
echo "$as_me:$LINENO: checking whether ln -s works" >&5
d4692 1
a4692 1
  echo "$as_me:$LINENO: result: yes" >&5
d4695 1
a4695 1
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
d4699 1
a4699 1
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
d4881 1
a4881 1
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
a4885 7







d4887 1
a4887 1
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
d4968 1
a4968 1
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4971 1
a4971 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4975 1
a4975 1
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
d4978 1
a4978 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5030 1
a5030 1
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d5033 1
a5033 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5074 1
a5074 1
  echo "$as_me:$LINENO: result: failed" >&5
d5077 1
a5077 1
  echo "$as_me:$LINENO: result: ok" >&5
d5086 1
a5086 1
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
d5107 1
a5107 1
#line $LINENO "configure"
d5112 1
a5112 1
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d5118 1
a5118 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5141 1
a5141 1
#line $LINENO "configure"
d5145 1
a5145 1
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d5151 1
a5151 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5188 1
a5188 1
echo "$as_me:$LINENO: result: $CPP" >&5
d5198 1
a5198 1
#line $LINENO "configure"
d5203 1
a5203 1
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d5209 1
a5209 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5232 1
a5232 1
#line $LINENO "configure"
d5236 1
a5236 1
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d5242 1
a5242 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5270 1
a5270 1
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
d5281 6
a5286 4

echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
d5290 1
a5290 1
#line $LINENO "configure"
d5292 1
a5292 5
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

d5294 1
a5294 1
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d5300 1
a5300 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5311 1
a5311 1
  ac_cv_header_stdc=yes
d5315 1
a5315 1
  ac_cv_header_stdc=no
a5317 14

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
d5319 6
a5324 1
rm -f conftest*
d5327 1
d5329 34
a5362 6
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdlib.h>
d5364 8
a5371 8
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*
d5373 11
d5386 4
a5389 4
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
d5391 3
a5393 13
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
d5395 6
a5400 24
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
d5402 3
a5404 272
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.









for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                  inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in dlfcn.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done





# Only perform the check for file, if the check method requires it
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
  /*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
  ?:/*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  ;;
  *)
  ac_save_MAGIC_CMD="$MAGIC_CMD"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="/usr/bin:$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    egrep "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$ac_save_ifs"
  MAGIC_CMD="$ac_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    echo "$as_me:$LINENO: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
  /*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
d5452 1
a5452 1
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
d5455 1
a5455 1
  echo "$as_me:$LINENO: result: no" >&5
d5471 1
a5471 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d5479 9
a5487 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d5494 1
a5494 1
  echo "$as_me:$LINENO: result: $RANLIB" >&5
d5497 1
a5497 1
  echo "$as_me:$LINENO: result: no" >&5
d5506 1
a5506 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d5514 9
a5522 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d5530 1
a5530 1
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
d5533 1
a5533 1
  echo "$as_me:$LINENO: result: no" >&5
d5545 1
a5545 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d5553 9
a5561 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d5568 1
a5568 1
  echo "$as_me:$LINENO: result: $STRIP" >&5
d5571 1
a5571 1
  echo "$as_me:$LINENO: result: no" >&5
d5580 1
a5580 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d5588 9
a5596 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_STRIP="strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d5604 1
a5604 1
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
d5607 1
a5607 1
  echo "$as_me:$LINENO: result: no" >&5
a5615 1

d5631 2
a5632 2
  echo '#line 6188 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d5635 1
a5635 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5656 1
a5656 1
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
a5661 1

d5669 1
a5669 1
#line $LINENO "configure"
a5671 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d5681 1
a5681 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d5684 1
a5684 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5687 1
a5687 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5690 1
a5690 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5706 1
a5706 1
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
a5713 1

d5808 1
a5808 1
echo "$as_me:$LINENO: checking for objdir" >&5
d5819 1
a5819 1
echo "$as_me:$LINENO: result: $objdir" >&5
a5823 1

d5839 1
a5839 1
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
d5986 1
a5986 1
  echo "$as_me:$LINENO: result: none" >&5
d5989 1
a5989 1
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
d5993 1
a5993 1
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
d6001 1
a6001 1
#line $LINENO "configure"
a6003 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6013 1
a6013 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d6016 1
a6016 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6019 1
a6019 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6022 1
a6022 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
a6050 1

d6058 1
a6058 1
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
d6066 1
a6066 1
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
d6070 1
a6070 1
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
d6078 1
a6078 1
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
d6087 1
a6087 1
#line $LINENO "configure"
a6089 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6099 1
a6099 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6102 1
a6102 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6105 1
a6105 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6108 1
a6108 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
a6119 1

d6122 1
a6122 1
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
a6133 1

d6137 1
a6137 1
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
d6157 1
a6157 1
if { (eval echo configure:6738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
d6181 1
a6181 1
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
d6186 1
a6186 1
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
d6198 1
a6198 1
#line $LINENO "configure"
a6200 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6210 1
a6210 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d6213 1
a6213 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6216 1
a6216 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6219 1
a6219 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6240 1
a6240 1
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
d6254 1
a6254 1
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
d6262 1
a6262 1
  echo "$as_me:$LINENO: result: $hard_links" >&5
d6265 1
a6265 1
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
d6279 1
a6279 1
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
d6286 1
a6286 1
#line $LINENO "configure"
a6288 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6298 1
a6298 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d6301 1
a6301 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6304 1
a6304 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6307 1
a6307 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6323 1
a6323 1
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
d6338 1
a6338 1
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
a6635 9

    #### Local change for Sleepycat's Berkeley DB [#5779]:
    # Added $aix_export variable to control use of exports file.
    # For non-gcc, we don't use exports files, and rather trust
    # the binder's -qmkshrobj option to export all the mangled
    # symbols we need for C++ and java.

    aix_export="\${wl}$exp_sym_flag:\$export_symbols"

d6668 1
d6670 4
a6673 31
      # Test for -qmkshrobj and use it if it's available.
      # It's superior for determining exportable symbols,
      # especially for C++ or JNI libraries, which have
      # mangled names.
      #
      cat >conftest.$ac_ext <<_ACEOF
void f(){}
_ACEOF
      if { (eval echo "$as_me:$LINENO: \"$CC -c conftest.c\"") >&5
  (eval $CC -c conftest.c) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:$LINENO: \"$CC -o conftest conftest.$ac_objext -qmkshrobj -lC_r\"") >&5
  (eval $CC -o conftest conftest.$ac_objext -qmkshrobj -lC_r) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
        lt_cv_aix_mkshrobj=yes
      else
        lt_cv_aix_mkshrobj=no
      fi

      if test "$lt_cv_aix_mkshrobj" = yes; then
        aix_export="-qmkshrobj"
      fi
    fi

    # It seems that -bexpall can do strange things, so it is better to
    # generate a list of symbols to export.
    always_export_symbols=yes
    if test "$aix_use_runtimelinking" = yes; then
d6678 1
a6678 1
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag $aix_export $shared_flag"
d6683 1
a6683 1
	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag $aix_export"
d6691 1
a6691 1
	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag $aix_export"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
d6734 1
a6734 5

    #### Local change for Sleepycat's Berkeley DB [#5664]
    # removed double quotes in the following line:
    archive_cmds='$nonopt $(test x$module = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'

d7018 1
a7018 1
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
d7027 1
a7027 1
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
d7051 1
a7051 1
echo "$as_me:$LINENO: result: $hardcode_action" >&5
d7060 1
a7060 1
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
d7065 1
a7065 1
  echo "$as_me:$LINENO: result: yes" >&5
d7068 1
a7068 1
  echo "$as_me:$LINENO: result: no" >&5
d7080 1
a7080 1
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
a7107 6

  #### Local change for Sleepycat's Berkeley DB [#5779]:
  # If we don't set need_version, we'll get x.so.0.0.0,
  # even if -avoid-version is set.
  need_version=no

d7215 2
a7216 5
  #### Local change for Sleepycat's Berkeley DB [#6117]:
  # added support for -jnimodule, encapsulated below in ${darwin_suffix}
  darwin_suffix='$(test .$jnimodule = .yes && echo jnilib || (test .$module = .yes && echo so || echo dylib))'
  library_names_spec='${libname}${release}${versuffix}.'"${darwin_suffix}"' ${libname}${release}${major}.'"${darwin_suffix}"' ${libname}.'"${darwin_suffix}"
  soname_spec='${libname}${release}${major}.'"${darwin_suffix}"
d7483 1
a7483 1
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
d7492 1
a7492 1
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
d7494 1
a7494 1
echo "$as_me:$LINENO: result: $can_build_shared" >&5
d7501 1
a7501 1
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
d7522 1
a7522 1
echo "$as_me:$LINENO: result: $enable_shared" >&5
d7529 1
a7529 1
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
d7533 1
a7533 1
echo "$as_me:$LINENO: result: $enable_static" >&5
d7573 1
a7573 1
    echo "$as_me:$LINENO: checking for shl_load" >&5
d7579 1
a7579 1
#line $LINENO "configure"
a7592 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7610 1
a7610 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7613 1
a7613 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7616 1
a7616 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7619 1
a7619 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7629 1
a7629 1
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
d7634 1
a7634 1
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
d7642 1
a7642 1
#line $LINENO "configure"
a7651 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7661 1
a7661 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7664 1
a7664 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7667 1
a7667 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7670 1
a7670 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7681 1
a7681 1
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
d7686 1
a7686 1
  echo "$as_me:$LINENO: checking for dlopen" >&5
d7692 1
a7692 1
#line $LINENO "configure"
a7705 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7723 1
a7723 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7726 1
a7726 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7729 1
a7729 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7732 1
a7732 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7742 1
a7742 1
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
d7747 1
a7747 1
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
d7755 1
a7755 1
#line $LINENO "configure"
a7764 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7774 1
a7774 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7777 1
a7777 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7780 1
a7780 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7783 1
a7783 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7794 1
a7794 1
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
d7799 1
a7799 1
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
d7807 1
a7807 1
#line $LINENO "configure"
a7816 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7826 1
a7826 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7829 1
a7829 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7832 1
a7832 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7835 1
a7835 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7846 1
a7846 1
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
d7851 1
a7851 1
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
d7859 1
a7859 1
#line $LINENO "configure"
a7868 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7878 1
a7878 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7881 1
a7881 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7884 1
a7884 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7887 1
a7887 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7898 1
a7898 1
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
a7903 1

a7905 1

a7907 1

a7909 1

a7911 1

d7934 1
a7934 1
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
d7945 1
a7945 1
#line 8627 "configure"
d8006 1
a8006 1
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8009 1
a8009 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
a8024 1

d8026 1
a8026 1
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
d8031 1
a8031 1
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
d8042 1
a8042 1
#line 8725 "configure"
d8103 1
a8103 1
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8106 1
a8106 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
a8121 1

d8123 1
a8123 1
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
a8143 1

d8155 1
a8155 1
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
d8163 1
a8163 1
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d8166 1
a8166 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8180 1
a8180 1
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
d8183 1
a8183 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8196 1
a8196 1
    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
a8758 4




a8766 2


d8770 1
a8770 3
# Set SOSUFFIX and friends

	echo "$as_me:$LINENO: checking SOSUFFIX from libtool" >&5
d8772 10
a8781 21
	module=no
	jnimodule=no

	versuffix=""
	release=""
	libname=libfoo
	eval library_names=\"$library_names_spec\"
	_SOSUFFIX=`echo "$library_names" | sed -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/'`
	if test "$_SOSUFFIX" = '' ; then
		_SOSUFFIX=so
		if test "$enable_shared" = "yes" && test "$_SOSUFFIX_MESSAGE" = ""; then
			_SOSUFFIX_MESSAGE=yes
        		{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
               		{ echo "$as_me:$LINENO: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&5
echo "$as_me: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&2;}
        	fi
        fi

        SOSUFFIX=$_SOSUFFIX
	echo "$as_me:$LINENO: result: $SOSUFFIX" >&5
d8784 4
a8787 17


	echo "$as_me:$LINENO: checking MODSUFFIX from libtool" >&5
echo $ECHO_N "checking MODSUFFIX from libtool... $ECHO_C" >&6
	module=yes
	jnimodule=no

	versuffix=""
	release=""
	libname=libfoo
	eval library_names=\"$library_names_spec\"
	_SOSUFFIX=`echo "$library_names" | sed -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/'`
	if test "$_SOSUFFIX" = '' ; then
		_SOSUFFIX=so
		if test "$enable_shared" = "yes" && test "$_SOSUFFIX_MESSAGE" = ""; then
			_SOSUFFIX_MESSAGE=yes
        		{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
d8789 4
a8792 31
               		{ echo "$as_me:$LINENO: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&5
echo "$as_me: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&2;}
        	fi
        fi

        MODSUFFIX=$_SOSUFFIX
	echo "$as_me:$LINENO: result: $MODSUFFIX" >&5
echo "${ECHO_T}$MODSUFFIX" >&6



	echo "$as_me:$LINENO: checking JMODSUFFIX from libtool" >&5
echo $ECHO_N "checking JMODSUFFIX from libtool... $ECHO_C" >&6
	module=yes
	jnimodule=yes

	versuffix=""
	release=""
	libname=libfoo
	eval library_names=\"$library_names_spec\"
	_SOSUFFIX=`echo "$library_names" | sed -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/'`
	if test "$_SOSUFFIX" = '' ; then
		_SOSUFFIX=so
		if test "$enable_shared" = "yes" && test "$_SOSUFFIX_MESSAGE" = ""; then
			_SOSUFFIX_MESSAGE=yes
        		{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
               		{ echo "$as_me:$LINENO: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&5
echo "$as_me: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&2;}
        	fi
        fi
d8794 1
a8794 7
        JMODSUFFIX=$_SOSUFFIX
	echo "$as_me:$LINENO: result: $JMODSUFFIX" >&5
echo "${ECHO_T}$JMODSUFFIX" >&6



INSTALLER="\$(LIBTOOL) --mode=install cp -p"
d8856 1
a8856 1
		{ { echo "$as_me:$LINENO: error: Java requires shared libraries" >&5
a8860 1

d8866 1
a8866 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d8874 9
a8882 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_JAVAC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d8889 1
a8889 1
  echo "$as_me:$LINENO: result: $JAVAC" >&5
d8892 1
a8892 1
  echo "$as_me:$LINENO: result: no" >&5
d8904 1
a8904 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d8912 9
a8920 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_JAVAC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d8927 1
a8927 1
  echo "$as_me:$LINENO: result: $JAVAC" >&5
d8930 1
a8930 1
  echo "$as_me:$LINENO: result: no" >&5
d8939 1
a8939 1
test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
d8943 1
a8943 1
echo "$as_me:$LINENO: checking if $JAVAC works" >&5
d8952 1
a8952 1
/* #line 9709 "configure" */
d8957 1
a8957 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8960 1
a8960 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8964 1
a8964 1
  { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
d8973 1
a8973 1
echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
a8975 2


d8981 1
a8981 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d8989 9
a8997 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_JAR="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d9004 1
a9004 1
  echo "$as_me:$LINENO: result: $JAR" >&5
d9007 1
a9007 1
  echo "$as_me:$LINENO: result: no" >&5
d9019 1
a9019 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d9027 9
a9035 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_JAR="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d9042 1
a9042 1
  echo "$as_me:$LINENO: result: $JAR" >&5
d9045 1
a9045 1
  echo "$as_me:$LINENO: result: no" >&5
d9054 1
a9054 1
test "x$JAR" = x && { { echo "$as_me:$LINENO: error: no acceptable jar program found in \$PATH" >&5
a9057 2


d9060 1
a9060 1
test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: '$JAVAC' undefined" >&5
d9065 1
a9065 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d9075 10
a9084 12
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d9087 1
a9087 1
  test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="$JAVAC"
d9094 1
a9094 1
  echo "$as_me:$LINENO: result: $_ACJNI_JAVAC" >&5
d9097 1
a9097 1
  echo "$as_me:$LINENO: result: no" >&5
d9101 1
a9101 1
test ! -x "$_ACJNI_JAVAC" && { { echo "$as_me:$LINENO: error: $JAVAC could not be found in path" >&5
a9103 10
echo "$as_me:$LINENO: checking absolute path of $JAVAC" >&5
echo $ECHO_N "checking absolute path of $JAVAC... $ECHO_C" >&6
case "$_ACJNI_JAVAC" in
/*)	echo "$as_me:$LINENO: result: $_ACJNI_JAVAC" >&5
echo "${ECHO_T}$_ACJNI_JAVAC" >&6;;
*)	{ { echo "$as_me:$LINENO: error: $_ACJNI_JAVAC is not an absolute path name" >&5
echo "$as_me: error: $_ACJNI_JAVAC is not an absolute path name" >&2;}
   { (exit 1); exit 1; }; };;
esac

d9108 1
a9108 1
	echo "$as_me:$LINENO: checking symlink for $_cur" >&5
d9116 1
a9116 1
	echo "$as_me:$LINENO: result: $_cur" >&5
d9134 1
a9134 1
		{ { echo "$as_me:$LINENO: error: cannot find java include files" >&5
a9157 1

d9171 1
a9171 1
	cat >>confdefs.h <<\_ACEOF
d9173 1
a9173 4
_ACEOF



d9182 1
a9182 1
		echo "$as_me:$LINENO: checking for svc_run" >&5
d9188 1
a9188 1
#line $LINENO "configure"
a9201 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9219 1
a9219 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9222 1
a9222 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9225 1
a9225 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9228 1
a9228 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9238 1
a9238 1
echo "$as_me:$LINENO: result: $ac_cv_func_svc_run" >&5
d9243 1
a9243 1
  echo "$as_me:$LINENO: checking for svc_run in -lnsl" >&5
d9251 1
a9251 1
#line $LINENO "configure"
a9260 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9270 1
a9270 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9273 1
a9273 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9276 1
a9276 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9279 1
a9279 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9290 1
a9290 1
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_svc_run" >&5
d9299 1
a9299 1
		echo "$as_me:$LINENO: checking for svc_run" >&5
d9305 1
a9305 1
#line $LINENO "configure"
a9318 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9336 1
a9336 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9339 1
a9339 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9342 1
a9342 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9345 1
a9345 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9355 1
a9355 1
echo "$as_me:$LINENO: result: $ac_cv_func_svc_run" >&5
d9361 1
a9361 1
echo "$as_me:$LINENO: checking for svc_run in -lnsl" >&5
d9369 1
a9369 1
#line $LINENO "configure"
a9378 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9388 1
a9388 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9391 1
a9391 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9394 1
a9394 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9397 1
a9397 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9408 1
a9408 1
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_svc_run" >&5
d9411 1
a9411 1
  cat >>confdefs.h <<_ACEOF
d9413 1
a9413 1
_ACEOF
a9423 1

d9426 1
a9426 1
		{ { echo "$as_me:$LINENO: error: Tcl requires shared libraries" >&5
a9430 3



a9434 1

d9440 1
a9440 1
		    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
a9455 1

a9457 1

d9460 1
a9460 1
	    { { echo "$as_me:$LINENO: error: can't find Tcl configuration definitions" >&5
d9467 1
a9467 2

	echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
d9471 1
a9471 1
		echo "$as_me:$LINENO: result: loading" >&5
d9475 1
a9475 1
		echo "$as_me:$LINENO: result: file not found" >&5
d9490 1
a9490 2
	# load time. [#4843]  Furthermore, with Tcl 8.3, the link flags
	# given by the Tcl spec are insufficient for our use.  [#5779]
a9492 3
	aix4.2-9.*)
		LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG"
		LIBTSO_LIBS="$LIBTSO_LIBS -L$TCL_EXEC_PREFIX/lib -ltcl$TCL_VERSION";;
a9496 4




a9498 1

a9505 11
# Optional crypto support.
if test -d "$srcdir/../crypto"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_CRYPTO 1
_ACEOF



	ADDITIONAL_OBJS="aes_method${o} crypto${o} mt19937db${o} rijndael-alg-fst${o} rijndael-api-fst${o} $ADDITIONAL_OBJS"
fi

d9517 134
a9650 2
# Checks for compiler characteristics.
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
d9658 1
a9658 1
#line $LINENO "configure"
a9687 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9707 1
a9707 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d9710 1
a9710 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9713 1
a9713 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9716 1
a9716 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9733 1
a9733 1
    echo "$as_me:$LINENO: result: none needed" >&5
d9736 1
a9736 1
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
d9741 1
a9741 1
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
d9747 1
a9747 1
#line $LINENO "configure"
a9749 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9805 1
a9805 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d9808 1
a9808 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9811 1
a9811 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9814 1
a9814 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9824 1
a9824 1
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
d9828 1
a9828 1
cat >>confdefs.h <<\_ACEOF
d9830 1
a9830 1
_ACEOF
d9834 2
a9835 3

# Checks for include files, structures, C types.
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
d9841 1
a9841 1
#line $LINENO "configure"
d9880 1
a9880 1
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
d9884 1
a9884 1
cat >>confdefs.h <<\_ACEOF
d9886 1
a9886 1
_ACEOF
d9890 1
a9890 1
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
d9896 1
a9896 1
#line $LINENO "configure"
a9901 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9912 1
a9912 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d9915 1
a9915 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9918 1
a9918 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9921 1
a9921 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9931 1
a9931 1
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
d9935 1
a9935 1
cat >>confdefs.h <<\_ACEOF
d9937 1
a9937 1
_ACEOF
a9940 5





d9944 1
a9944 1
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
d9950 1
a9950 1
#line $LINENO "configure"
a9954 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9965 1
a9965 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d9968 1
a9968 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9971 1
a9971 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9974 1
a9974 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9984 1
a9984 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
d9987 1
a9987 1
  cat >>confdefs.h <<_ACEOF
d9989 1
a9989 1
_ACEOF
d9997 3
a9999 3
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
if test "${ac_cv_search_opendir+set}" = set; then
d10002 2
a10003 2
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_opendir=no
d10005 1
a10005 1
#line $LINENO "configure"
a10014 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10024 1
a10024 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10027 1
a10027 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10030 1
a10030 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10033 1
a10033 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10035 1
a10035 1
  ac_cv_search_opendir="none required"
d10039 1
d10042 18
a10059 5
if test "$ac_cv_search_opendir" = no; then
  for ac_lib in dir; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a10068 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10078 1
a10078 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10081 1
a10081 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10084 1
a10084 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10087 1
a10087 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10089 1
a10089 2
  ac_cv_search_opendir="-l$ac_lib"
break
d10093 1
d10096 1
a10096 1
  done
d10098 4
a10101 1
LIBS=$ac_func_search_save_LIBS
a10102 4
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
echo "${ECHO_T}$ac_cv_search_opendir" >&6
if test "$ac_cv_search_opendir" != no; then
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d10106 6
a10111 4
else
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
if test "${ac_cv_search_opendir+set}" = set; then
d10114 2
a10115 4
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_opendir=no
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d10117 1
a10117 21

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
opendir ();
  ;
  return 0;
}
d10119 2
a10120 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10122 10
a10131 9
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_opendir="none required"
d10133 1
a10133 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d10135 2
a10136 43
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_opendir" = no; then
  for ac_lib in x; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
opendir ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_opendir="-l$ac_lib"
break
d10139 2
a10140 1
cat conftest.$ac_ext >&5
d10142 1
a10142 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done
d10144 6
a10149 6
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
echo "${ECHO_T}$ac_cv_search_opendir" >&6
if test "$ac_cv_search_opendir" != no; then
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d10152 1
d10154 1
a10154 5
fi



for ac_header in sys/select.h sys/time.h
d10157 1
a10157 2
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
a10160 3
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d10162 2
a10163 5
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a10164 1
$ac_includes_default
d10167 2
a10168 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d10170 15
a10184 9
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
d10187 12
a10198 2
cat conftest.$ac_ext >&5
ac_header_compiler=no
d10200 1
a10200 3
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
d10202 7
a10208 5
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d10210 5
a10214 1
#include <$ac_header>
d10216 1
a10216 1
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d10222 1
a10222 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10233 1
a10233 1
  ac_header_preproc=yes
d10237 1
a10237 1
  ac_header_preproc=no
a10239 2
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
d10241 11
a10251 19
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10253 1
a10253 1
  eval "$as_ac_Header=$ac_header_preproc"
d10255 1
a10255 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d10258 8
a10265 3
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d10267 7
d10277 4
a10280 6
done

echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10283 1
a10283 1
#line $LINENO "configure"
d10285 9
a10293 6
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d10295 2
d10300 6
a10305 5
static struct stat ac_aggr;
if (ac_aggr.st_blksize)
return 0;
  ;
  return 0;
d10308 3
a10310 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d10312 3
a10314 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10317 1
a10317 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10319 1
a10319 1
  ac_cv_member_struct_stat_st_blksize=yes
d10321 2
a10322 1
  echo "$as_me: failed program was:" >&5
d10324 4
a10327 1
ac_cv_member_struct_stat_st_blksize=no
a10328 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10330 3
a10332 7
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
if test $ac_cv_member_struct_stat_st_blksize = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
_ACEOF
d10334 3
d10340 1
d10342 7
a10348 6

# We need to know the sizes of various objects on this system.
# We don't use the SIZEOF_XXX values created by autoconf.
echo "$as_me:$LINENO: checking for char" >&5
echo $ECHO_N "checking for char... $ECHO_C" >&6
if test "${ac_cv_type_char+set}" = set; then
d10352 1
a10352 1
#line $LINENO "configure"
d10354 2
a10355 3179

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((char *) 0)
  return 0;
if (sizeof (char))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_char=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_char=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
echo "${ECHO_T}$ac_cv_type_char" >&6

echo "$as_me:$LINENO: checking size of char" >&5
echo $ECHO_N "checking size of char... $ECHO_C" >&6
if test "${ac_cv_sizeof_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_char" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_char=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

long longval () { return (long) (sizeof (char)); }
unsigned long ulongval () { return (long) (sizeof (char)); }
#include <stdio.h>
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (char))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (char))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (char))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_char=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_char=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHAR $ac_cv_sizeof_char
_ACEOF


echo "$as_me:$LINENO: checking for unsigned char" >&5
echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((unsigned char *) 0)
  return 0;
if (sizeof (unsigned char))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_unsigned_char=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_unsigned_char=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6

echo "$as_me:$LINENO: checking size of unsigned char" >&5
echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6
if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_unsigned_char" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77" >&5
echo "$as_me: error: cannot compute sizeof (unsigned char), 77" >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

long longval () { return (long) (sizeof (unsigned char)); }
unsigned long ulongval () { return (long) (sizeof (unsigned char)); }
#include <stdio.h>
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (unsigned char))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (unsigned char))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (unsigned char))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_unsigned_char=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77" >&5
echo "$as_me: error: cannot compute sizeof (unsigned char), 77" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_unsigned_char=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
_ACEOF


echo "$as_me:$LINENO: checking for short" >&5
echo $ECHO_N "checking for short... $ECHO_C" >&6
if test "${ac_cv_type_short+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((short *) 0)
  return 0;
if (sizeof (short))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_short=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_short=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
echo "${ECHO_T}$ac_cv_type_short" >&6

echo "$as_me:$LINENO: checking size of short" >&5
echo $ECHO_N "checking size of short... $ECHO_C" >&6
if test "${ac_cv_sizeof_short+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_short" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_short=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

long longval () { return (long) (sizeof (short)); }
unsigned long ulongval () { return (long) (sizeof (short)); }
#include <stdio.h>
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (short))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (short))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (short))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_short=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_short=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


echo "$as_me:$LINENO: checking for unsigned short" >&5
echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_short+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((unsigned short *) 0)
  return 0;
if (sizeof (unsigned short))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_unsigned_short=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_unsigned_short=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6

echo "$as_me:$LINENO: checking size of unsigned short" >&5
echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_unsigned_short" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77" >&5
echo "$as_me: error: cannot compute sizeof (unsigned short), 77" >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

long longval () { return (long) (sizeof (unsigned short)); }
unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
#include <stdio.h>
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (unsigned short))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (unsigned short))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (unsigned short))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_unsigned_short=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77" >&5
echo "$as_me: error: cannot compute sizeof (unsigned short), 77" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_unsigned_short=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
_ACEOF


echo "$as_me:$LINENO: checking for int" >&5
echo $ECHO_N "checking for int... $ECHO_C" >&6
if test "${ac_cv_type_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((int *) 0)
  return 0;
if (sizeof (int))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_int=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
echo "${ECHO_T}$ac_cv_type_int" >&6

echo "$as_me:$LINENO: checking size of int" >&5
echo $ECHO_N "checking size of int... $ECHO_C" >&6
if test "${ac_cv_sizeof_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_int" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_int=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

long longval () { return (long) (sizeof (int)); }
unsigned long ulongval () { return (long) (sizeof (int)); }
#include <stdio.h>
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (int))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (int))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (int))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_int=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_int=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


echo "$as_me:$LINENO: checking for unsigned int" >&5
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((unsigned int *) 0)
  return 0;
if (sizeof (unsigned int))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_unsigned_int=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_unsigned_int=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6

echo "$as_me:$LINENO: checking size of unsigned int" >&5
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_unsigned_int" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77" >&5
echo "$as_me: error: cannot compute sizeof (unsigned int), 77" >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

long longval () { return (long) (sizeof (unsigned int)); }
unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
#include <stdio.h>
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (unsigned int))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (unsigned int))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (unsigned int))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_unsigned_int=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77" >&5
echo "$as_me: error: cannot compute sizeof (unsigned int), 77" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_unsigned_int=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
_ACEOF


echo "$as_me:$LINENO: checking for long" >&5
echo $ECHO_N "checking for long... $ECHO_C" >&6
if test "${ac_cv_type_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((long *) 0)
  return 0;
if (sizeof (long))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_long=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_long=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
echo "${ECHO_T}$ac_cv_type_long" >&6

echo "$as_me:$LINENO: checking size of long" >&5
echo $ECHO_N "checking size of long... $ECHO_C" >&6
if test "${ac_cv_sizeof_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_long" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

long longval () { return (long) (sizeof (long)); }
unsigned long ulongval () { return (long) (sizeof (long)); }
#include <stdio.h>
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (long))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (long))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (long))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_long=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_long=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


echo "$as_me:$LINENO: checking for unsigned long" >&5
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((unsigned long *) 0)
  return 0;
if (sizeof (unsigned long))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_unsigned_long=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_unsigned_long=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6

echo "$as_me:$LINENO: checking size of unsigned long" >&5
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_unsigned_long" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

long longval () { return (long) (sizeof (unsigned long)); }
unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
#include <stdio.h>
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (unsigned long))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (unsigned long))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (unsigned long))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_unsigned_long=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
_ACEOF


echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_size_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_size_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6

echo "$as_me:$LINENO: checking size of size_t" >&5
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
if test "${ac_cv_sizeof_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_size_t" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
d10358 1
a10358 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d10361 1
a10361 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10364 1
a10364 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10367 1
a10367 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10369 1
a10369 1
  ac_hi=$ac_mid; break
d10373 1
a10373 6
ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
d10376 15
a10390 1
  done
d10392 2
a10393 4
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d10395 1
a10395 10

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10399 3
a10401 3
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
test_array [0] = 0

d10407 1
a10407 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d10410 1
a10410 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10413 1
a10413 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10416 1
a10416 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10418 17
a10434 5
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
d10436 1
a10436 2
#include <sys/types.h>
#include <stdio.h>
d10438 9
a10446 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10450 4
a10453 3
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
test_array [0] = 0

d10459 1
a10459 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d10462 1
a10462 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10465 1
a10465 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10468 1
a10468 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10470 1
a10470 1
  ac_lo=$ac_mid; break
d10474 1
a10474 6
ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
d10477 5
a10481 1
  done
d10483 5
a10487 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo= ac_hi=
d10489 5
a10493 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10495 5
a10499 4
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
d10501 1
a10501 1
#line $LINENO "configure"
d10503 1
a10503 10

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10507 4
a10510 3
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
test_array [0] = 0

d10516 1
a10516 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d10519 1
a10519 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10522 1
a10522 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10525 1
a10525 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10527 1
a10527 1
  ac_hi=$ac_mid
d10531 1
a10531 1
ac_lo=`expr '(' $ac_mid ')' + 1`
d10534 5
a10538 12
done
case $ac_lo in
?*) ac_cv_sizeof_size_t=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77" >&5
echo "$as_me: error: cannot compute sizeof (size_t), 77" >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
a10539 3
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
d10541 3
a10543 2
#include <sys/types.h>
#include <stdio.h>
d10545 1
a10545 32
long longval () { return (long) (sizeof (size_t)); }
unsigned long ulongval () { return (long) (sizeof (size_t)); }
#include <stdio.h>
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (size_t))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (size_t))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (size_t))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);
d10547 3
a10549 23
  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_size_t=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77" >&5
echo "$as_me: error: cannot compute sizeof (size_t), 77" >&2;}
d10552 3
a10554 18
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_size_t=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
_ACEOF


echo "$as_me:$LINENO: checking for char *" >&5
echo $ECHO_N "checking for char *... $ECHO_C" >&6
if test "${ac_cv_type_char_p+set}" = set; then
d10558 1
a10558 1
#line $LINENO "configure"
d10560 1
a10560 10

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10564 1
a10564 1
if ((char * *) 0)
d10566 1
a10566 1
if (sizeof (char *))
d10573 1
a10573 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d10576 1
a10576 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10579 1
a10579 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10582 1
a10582 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10584 1
a10584 1
  ac_cv_type_char_p=yes
d10588 1
a10588 1
ac_cv_type_char_p=no
d10592 11
a10602 2
echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
echo "${ECHO_T}$ac_cv_type_char_p" >&6
d10604 9
a10612 3
echo "$as_me:$LINENO: checking size of char *" >&5
echo $ECHO_N "checking size of char *... $ECHO_C" >&6
if test "${ac_cv_sizeof_char_p+set}" = set; then
d10615 1
a10615 7
  if test "$ac_cv_type_char_p" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
d10617 1
a10617 1
#line $LINENO "configure"
a10618 1

a10619 8
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10623 1
a10623 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
test_array [0] = 0

d10629 1
a10629 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d10632 1
a10632 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10635 1
a10635 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10638 1
a10638 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10640 22
a10661 4
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a10662 1

a10663 8
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10667 1
a10667 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
test_array [0] = 0

d10673 1
a10673 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d10676 1
a10676 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10679 1
a10679 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10682 1
a10682 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10684 1
a10684 1
  ac_hi=$ac_mid; break
d10688 1
a10688 6
ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
d10691 11
a10701 1
  done
d10703 1
a10703 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d10705 1
a10705 1
#line $LINENO "configure"
a10706 1

a10707 8
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10711 1
a10711 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
test_array [0] = 0

d10717 1
a10717 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d10720 1
a10720 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10723 1
a10723 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10726 1
a10726 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10728 22
a10749 4
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a10750 1

a10751 8
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10755 1
a10755 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
test_array [0] = 0

d10761 1
a10761 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d10764 1
a10764 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10767 1
a10767 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10770 1
a10770 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10772 1
a10772 1
  ac_lo=$ac_mid; break
d10776 1
a10776 6
ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
d10779 13
a10791 1
  done
d10793 3
a10795 12
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a10796 1

a10797 8
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10801 1
a10801 3
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
test_array [0] = 0

d10807 1
a10807 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d10810 1
a10810 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10813 1
a10813 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10816 1
a10816 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10818 1
a10818 1
  ac_hi=$ac_mid
d10822 2
a10823 13
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_char_p=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77" >&5
echo "$as_me: error: cannot compute sizeof (char *), 77" >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
d10828 1
a10828 1
#line $LINENO "configure"
d10830 1
a10830 40

#include <sys/types.h>
#include <stdio.h>

long longval () { return (long) (sizeof (char *)); }
unsigned long ulongval () { return (long) (sizeof (char *)); }
#include <stdio.h>
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (char *))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (char *))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (char *))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
d10833 1
a10833 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10836 1
a10836 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10838 1
a10838 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10841 1
a10841 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10843 1
a10843 1
  ac_cv_sizeof_char_p=`cat conftest.val`
d10848 1
a10848 4
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77" >&5
echo "$as_me: error: cannot compute sizeof (char *), 77" >&2;}
   { (exit 1); exit 1; }; }
d10853 8
a10860 3
rm -f conftest.val
else
  ac_cv_sizeof_char_p=0
d10862 2
a10864 5
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
_ACEOF
d10866 3
a10868 7


# We require off_t and size_t, and we don't try to substitute our own
# if we can't find them.
echo "$as_me:$LINENO: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
if test "${ac_cv_type_off_t+set}" = set; then
d10871 3
a10873 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a10874 1

a10875 8
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10879 1
a10879 4
if ((off_t *) 0)
  return 0;
if (sizeof (off_t))
  return 0;
d10885 1
a10885 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d10888 1
a10888 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10891 1
a10891 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10894 1
a10894 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10896 1
a10896 1
  ac_cv_type_off_t=yes
d10900 59
a10958 1
ac_cv_type_off_t=no
d10962 5
a10966 6
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6

if test "$ac_cv_type_off_t" = no; then
	{ { echo "$as_me:$LINENO: error: No off_t type." >&5
echo "$as_me: error: No off_t type." >&2;}
d10969 3
d10973 3
a10975 3
echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
d10978 3
a10980 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a10981 1

a10982 8
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10986 1
a10986 4
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
d10992 1
a10992 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d10995 1
a10995 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10998 1
a10998 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11001 1
a11001 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11003 1
a11003 1
  ac_cv_type_size_t=yes
d11007 59
a11065 1
ac_cv_type_size_t=no
d11069 5
a11073 6
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6

if test "$ac_cv_type_size_t" = no; then
	{ { echo "$as_me:$LINENO: error: No size_t type." >&5
echo "$as_me: error: No size_t type." >&2;}
d11076 3
d11080 3
a11082 6
# We look for u_char, u_short, u_int, u_long -- if we can't find them,
# we create our own.

echo "$as_me:$LINENO: checking for u_char" >&5
echo $ECHO_N "checking for u_char... $ECHO_C" >&6
if test "${ac_cv_type_u_char+set}" = set; then
d11085 3
a11087 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a11088 1

a11089 8
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11093 1
a11093 4
if ((u_char *) 0)
  return 0;
if (sizeof (u_char))
  return 0;
d11099 1
a11099 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11102 1
a11102 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11105 1
a11105 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11108 1
a11108 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11110 1
a11110 1
  ac_cv_type_u_char=yes
d11114 4
a11117 16
ac_cv_type_u_char=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
echo "${ECHO_T}$ac_cv_type_u_char" >&6

if test "$ac_cv_type_u_char" = no; then
	u_char_decl="typedef unsigned char u_char;"
fi


echo "$as_me:$LINENO: checking for u_short" >&5
echo $ECHO_N "checking for u_short... $ECHO_C" >&6
if test "${ac_cv_type_u_short+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11120 1
a11120 1
#line $LINENO "configure"
d11122 1
a11122 20

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((u_short *) 0)
  return 0;
if (sizeof (u_short))
  return 0;
  ;
  return 0;
}
d11124 3
a11126 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11128 3
a11130 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11133 1
a11133 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11135 1
a11135 1
  ac_cv_type_u_short=yes
d11137 2
a11138 1
  echo "$as_me: failed program was:" >&5
d11140 4
a11143 16
ac_cv_type_u_short=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
echo "${ECHO_T}$ac_cv_type_u_short" >&6

if test "$ac_cv_type_u_short" = no; then
	u_short_decl="typedef unsigned short u_short;"
fi


echo "$as_me:$LINENO: checking for u_int" >&5
echo $ECHO_N "checking for u_int... $ECHO_C" >&6
if test "${ac_cv_type_u_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11146 1
a11146 1
#line $LINENO "configure"
d11148 1
a11148 20

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((u_int *) 0)
  return 0;
if (sizeof (u_int))
  return 0;
  ;
  return 0;
}
d11150 3
a11152 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11154 3
a11156 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11159 1
a11159 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11161 1
a11161 1
  ac_cv_type_u_int=yes
d11163 2
a11164 1
  echo "$as_me: failed program was:" >&5
d11166 7
a11172 1
ac_cv_type_u_int=no
d11176 9
a11184 5
echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
echo "${ECHO_T}$ac_cv_type_u_int" >&6

if test "$ac_cv_type_u_int" = no; then
	u_int_decl="typedef unsigned int u_int;"
d11187 3
a11189 4

echo "$as_me:$LINENO: checking for u_long" >&5
echo $ECHO_N "checking for u_long... $ECHO_C" >&6
if test "${ac_cv_type_u_long+set}" = set; then
d11192 3
a11194 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a11195 1

a11196 8
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11200 1
a11200 4
if ((u_long *) 0)
  return 0;
if (sizeof (u_long))
  return 0;
d11206 1
a11206 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11209 1
a11209 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11212 1
a11212 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11215 1
a11215 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11217 1
a11217 1
  ac_cv_type_u_long=yes
d11221 4
a11224 16
ac_cv_type_u_long=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
echo "${ECHO_T}$ac_cv_type_u_long" >&6

if test "$ac_cv_type_u_long" = no; then
	u_long_decl="typedef unsigned long u_long;"
fi


echo "$as_me:$LINENO: checking for u_int8_t" >&5
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int8_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11227 1
a11227 1
#line $LINENO "configure"
d11229 1
a11229 20

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((u_int8_t *) 0)
  return 0;
if (sizeof (u_int8_t))
  return 0;
  ;
  return 0;
}
d11231 3
a11233 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11235 3
a11237 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11240 1
a11240 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11242 1
a11242 1
  ac_cv_type_u_int8_t=yes
d11244 2
a11245 1
  echo "$as_me: failed program was:" >&5
d11247 4
a11250 30
ac_cv_type_u_int8_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6

if test "$ac_cv_type_u_int8_t" = no; then

	case "1" in
	"$ac_cv_sizeof_unsigned_int")
		u_int8_decl="typedef unsigned int u_int8_t;";;
	"$ac_cv_sizeof_unsigned_char")
		u_int8_decl="typedef unsigned char u_int8_t;";;
	"$ac_cv_sizeof_unsigned_short")
		u_int8_decl="typedef unsigned short u_int8_t;";;
	"$ac_cv_sizeof_unsigned_long")
		u_int8_decl="typedef unsigned long u_int8_t;";;
	*)
		{ { echo "$as_me:$LINENO: error: No unsigned 1-byte integral type" >&5
echo "$as_me: error: No unsigned 1-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
	esac
fi


echo "$as_me:$LINENO: checking for u_int16_t" >&5
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int16_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11253 1
a11253 1
#line $LINENO "configure"
d11255 1
a11255 20

#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((u_int16_t *) 0)
  return 0;
if (sizeof (u_int16_t))
  return 0;
  ;
  return 0;
}
d11257 3
a11259 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11261 3
a11263 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11266 1
a11266 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11268 1
a11268 1
  ac_cv_type_u_int16_t=yes
d11270 2
a11271 1
  echo "$as_me: failed program was:" >&5
d11273 7
a11279 1
ac_cv_type_u_int16_t=no
d11283 9
a11291 19
echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6

if test "$ac_cv_type_u_int16_t" = no; then

	case "2" in
	"$ac_cv_sizeof_unsigned_int")
		u_int16_decl="typedef unsigned int u_int16_t;";;
	"$ac_cv_sizeof_unsigned_char")
		u_int16_decl="typedef unsigned char u_int16_t;";;
	"$ac_cv_sizeof_unsigned_short")
		u_int16_decl="typedef unsigned short u_int16_t;";;
	"$ac_cv_sizeof_unsigned_long")
		u_int16_decl="typedef unsigned long u_int16_t;";;
	*)
		{ { echo "$as_me:$LINENO: error: No unsigned 2-byte integral type" >&5
echo "$as_me: error: No unsigned 2-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
	esac
d11294 3
d11298 3
a11300 3
echo "$as_me:$LINENO: checking for int16_t" >&5
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
if test "${ac_cv_type_int16_t+set}" = set; then
d11303 3
a11305 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a11306 1

a11307 8
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11311 1
a11311 4
if ((int16_t *) 0)
  return 0;
if (sizeof (int16_t))
  return 0;
d11317 1
a11317 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11320 1
a11320 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11323 1
a11323 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11326 1
a11326 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11328 1
a11328 1
  ac_cv_type_int16_t=yes
d11332 4
a11335 30
ac_cv_type_int16_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_int16_t" >&6

if test "$ac_cv_type_int16_t" = no; then

	case "2" in
	"$ac_cv_sizeof_int")
		int16_decl="typedef int int16_t;";;
	"$ac_cv_sizeof_char")
		int16_decl="typedef char int16_t;";;
	"$ac_cv_sizeof_short")
		int16_decl="typedef short int16_t;";;
	"$ac_cv_sizeof_long")
		int16_decl="typedef long int16_t;";;
	*)
		{ { echo "$as_me:$LINENO: error: No signed 2-byte integral type" >&5
echo "$as_me: error: No signed 2-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
	esac
fi


echo "$as_me:$LINENO: checking for u_int32_t" >&5
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int32_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11338 1
a11338 1
#line $LINENO "configure"
d11341 2
a11342 19
#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((u_int32_t *) 0)
  return 0;
if (sizeof (u_int32_t))
  return 0;
  ;
  return 0;
}
d11344 3
a11346 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11348 3
a11350 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11353 1
a11353 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11355 1
a11355 1
  ac_cv_type_u_int32_t=yes
d11357 2
a11358 1
  echo "$as_me: failed program was:" >&5
d11360 4
a11363 30
ac_cv_type_u_int32_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6

if test "$ac_cv_type_u_int32_t" = no; then

	case "4" in
	"$ac_cv_sizeof_unsigned_int")
		u_int32_decl="typedef unsigned int u_int32_t;";;
	"$ac_cv_sizeof_unsigned_char")
		u_int32_decl="typedef unsigned char u_int32_t;";;
	"$ac_cv_sizeof_unsigned_short")
		u_int32_decl="typedef unsigned short u_int32_t;";;
	"$ac_cv_sizeof_unsigned_long")
		u_int32_decl="typedef unsigned long u_int32_t;";;
	*)
		{ { echo "$as_me:$LINENO: error: No unsigned 4-byte integral type" >&5
echo "$as_me: error: No unsigned 4-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
	esac
fi


echo "$as_me:$LINENO: checking for int32_t" >&5
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
if test "${ac_cv_type_int32_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11366 1
a11366 1
#line $LINENO "configure"
d11369 2
a11370 19
#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((int32_t *) 0)
  return 0;
if (sizeof (int32_t))
  return 0;
  ;
  return 0;
}
d11372 3
a11374 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11376 3
a11378 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11381 1
a11381 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11383 1
a11383 1
  ac_cv_type_int32_t=yes
d11385 2
a11386 1
  echo "$as_me: failed program was:" >&5
d11388 4
a11391 32
ac_cv_type_int32_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_int32_t" >&6

if test "$ac_cv_type_int32_t" = no; then

	case "4" in
	"$ac_cv_sizeof_int")
		int32_decl="typedef int int32_t;";;
	"$ac_cv_sizeof_char")
		int32_decl="typedef char int32_t;";;
	"$ac_cv_sizeof_short")
		int32_decl="typedef short int32_t;";;
	"$ac_cv_sizeof_long")
		int32_decl="typedef long int32_t;";;
	*)
		{ { echo "$as_me:$LINENO: error: No signed 4-byte integral type" >&5
echo "$as_me: error: No signed 4-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
	esac
fi

# Check for ssize_t -- if none exists, find a signed integral type that's
# the same size as a size_t.

echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11394 1
a11394 1
#line $LINENO "configure"
d11397 2
a11398 19
#include <sys/types.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((ssize_t *) 0)
  return 0;
if (sizeof (ssize_t))
  return 0;
  ;
  return 0;
}
d11400 3
a11402 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11404 3
a11406 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11409 1
a11409 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11411 1
a11411 1
  ac_cv_type_ssize_t=yes
d11413 2
a11414 1
  echo "$as_me: failed program was:" >&5
d11416 10
a11425 1
ac_cv_type_ssize_t=no
d11429 4
a11432 19
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6

if test "$ac_cv_type_ssize_t" = no; then

	case "$ac_cv_sizeof_size_t" in
	"$ac_cv_sizeof_int")
		ssize_t_decl="typedef int ssize_t;";;
	"$ac_cv_sizeof_char")
		ssize_t_decl="typedef char ssize_t;";;
	"$ac_cv_sizeof_short")
		ssize_t_decl="typedef short ssize_t;";;
	"$ac_cv_sizeof_long")
		ssize_t_decl="typedef long ssize_t;";;
	*)
		{ { echo "$as_me:$LINENO: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&5
echo "$as_me: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
	esac
d11437 3
a11439 3
echo "$as_me:$LINENO: checking for unsigned long long" >&5
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
d11442 3
a11444 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a11445 1

a11446 8
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11450 1
a11450 4
if ((unsigned long long *) 0)
  return 0;
if (sizeof (unsigned long long))
  return 0;
d11456 1
a11456 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11459 1
a11459 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11462 1
a11462 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11465 1
a11465 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11467 1
a11467 1
  ac_cv_type_unsigned_long_long=yes
d11471 1
a11471 1
ac_cv_type_unsigned_long_long=no
d11475 5
a11479 2
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
d11481 87
a11567 2
if test "$ac_cv_type_unsigned_long_long" = no; then
	db_align_t_decl="typedef unsigned long db_align_t;"
d11569 5
a11573 1
	db_align_t_decl="typedef unsigned long long db_align_t;"
d11575 4
d11580 1
a11580 21
# Find an integral type which is the same size as a pointer.


	case "$ac_cv_sizeof_char_p" in
	"$ac_cv_sizeof_unsigned_int")
		db_alignp_t_decl="typedef unsigned int db_alignp_t;";;
	"$ac_cv_sizeof_unsigned_char")
		db_alignp_t_decl="typedef unsigned char db_alignp_t;";;
	"$ac_cv_sizeof_unsigned_short")
		db_alignp_t_decl="typedef unsigned short db_alignp_t;";;
	"$ac_cv_sizeof_unsigned_long")
		db_alignp_t_decl="typedef unsigned long db_alignp_t;";;
	*)
		{ { echo "$as_me:$LINENO: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&5
echo "$as_me: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&2;}
   { (exit 1); exit 1; }; };;
	esac



echo "$as_me:$LINENO: checking for ANSI C exit success/failure values" >&5
d11587 1
a11587 1
#line $LINENO "configure"
a11589 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11599 1
a11599 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11602 1
a11602 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11605 1
a11605 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11608 1
a11608 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11618 1
a11618 1
echo "$as_me:$LINENO: result: $db_cv_exit_defines" >&5
d11621 1
a11621 1
	cat >>confdefs.h <<\_ACEOF
d11623 1
a11623 3
_ACEOF


d11630 1
a11630 1
echo "$as_me:$LINENO: checking for sched_yield" >&5
d11636 1
a11636 1
#line $LINENO "configure"
a11649 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11667 1
a11667 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d11670 1
a11670 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11673 1
a11673 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11676 1
a11676 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11686 1
a11686 1
echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
d11691 1
a11691 1
  echo "$as_me:$LINENO: checking for library containing sched_yield" >&5
d11699 1
a11699 1
#line $LINENO "configure"
a11708 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11718 1
a11718 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d11721 1
a11721 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11724 1
a11724 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11727 1
a11727 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11739 1
a11739 1
#line $LINENO "configure"
a11748 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11758 1
a11758 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d11761 1
a11761 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11764 1
a11764 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11767 1
a11767 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11780 1
a11780 1
echo "$as_me:$LINENO: result: $ac_cv_search_sched_yield" >&5
a11788 1

d11796 1
a11796 1
echo "$as_me:$LINENO: checking for main in -lpthread" >&5
d11804 1
a11804 1
#line $LINENO "configure"
a11806 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11816 1
a11816 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d11819 1
a11819 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11822 1
a11822 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11825 1
a11825 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11836 1
a11836 1
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
a11842 1

d11846 1
a11846 1
echo "$as_me:$LINENO: checking for main in -lm" >&5
d11854 1
a11854 221
#line $LINENO "configure"
#include "confdefs.h"


#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_m_main=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_m_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
if test $ac_cv_lib_m_main = yes; then
  LOAD_LIBS="$LOAD_LIBS -lm"
fi
ac_cv_lib_m=ac_cv_lib_m_main

echo "$as_me:$LINENO: checking for main in -lsocket" >&5
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"


#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_socket_main=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_socket_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
if test $ac_cv_lib_socket_main = yes; then
  LOAD_LIBS="$LOAD_LIBS -lsocket"
fi
ac_cv_lib_socket=ac_cv_lib_socket_main

echo "$as_me:$LINENO: checking for main in -lnsl" >&5
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"


#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_nsl_main=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_nsl_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
if test $ac_cv_lib_nsl_main = yes; then
  LOAD_LIBS="$LOAD_LIBS -lnsl"
fi
ac_cv_lib_nsl=ac_cv_lib_nsl_main


# Check for mutexes.
# We do this here because it changes $LIBS.


# Mutexes we don't test for, but want the #defines to exist for
# other ports.







echo "$as_me:$LINENO: checking for mutexes" >&5
echo $ECHO_N "checking for mutexes... $ECHO_C" >&6
if test "${db_cv_mutex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

db_cv_mutex=no

orig_libs=$LIBS

# User-specified POSIX or UI mutexes.
#
# There are two different reasons to specify mutexes: First, the application
# is already using one type of mutex and doesn't want to mix-and-match (for
# example, on Solaris, which has POSIX, UI and LWP mutexes).  Second, the
# applications POSIX pthreads mutexes don't support inter-process locking,
# but the application wants to use them anyway (for example, current Linux
# and *BSD systems).
#
# If we're on Solaris, we insist that -lthread or -lpthread be used.  The
# problem is the Solaris C library has UI/POSIX interface stubs, but they're
# broken, configuring them for inter-process mutexes doesn't return an error,
# but it doesn't work either.   Otherwise, we try first without the library
# and then with it: there's some information that SCO/UnixWare/OpenUNIX needs
# this. [#4950]
#
# Test for LWP threads before testing for UI/POSIX threads, we prefer them
# on Solaris.  There's a bug in SunOS 5.7 where applications get pwrite, not
# pwrite64, if they load the C library before the appropriate threads library,
# e.g., tclsh using dlopen to load the DB library.  By using LWP threads we
# avoid answering lots of user questions, not to mention the bugs.
if test "$db_cv_posixmutexes" = yes; then
	case "$host_os" in
	solaris*)
		db_cv_mutex="posix_library_only";;
	*)
		db_cv_mutex="posix_only";;
	esac
fi

if test "$db_cv_uimutexes" = yes; then
	case "$host_os" in
	solaris*)
		db_cv_mutex="ui_library_only";;
	*)
		db_cv_mutex="ui_only";;
	esac
fi

# LWP threads: _lwp_XXX
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a11856 7
#include <synch.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11860 1
a11860 9

	static lwp_mutex_t mi = SHAREDMUTEX;
	static lwp_cond_t ci = SHAREDCV;
	lwp_mutex_t mutex = mi;
	lwp_cond_t cond = ci;
	exit (
	_lwp_mutex_lock(&mutex) ||
	_lwp_mutex_unlock(&mutex));

d11866 1
a11866 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d11869 1
a11869 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11872 1
a11872 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11875 1
a11875 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11877 1
a11877 1
  db_cv_mutex="Solaris/lwp"
d11881 1
d11884 1
d11886 6
d11893 7
a11899 4
# UI threads: thr_XXX
#
# Try with and without the -lthread library.
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
d11901 1
a11901 1
#line $LINENO "configure"
a11903 8
#include <thread.h>
#include <synch.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11907 1
a11907 10

	mutex_t mutex;
	cond_t cond;
	int type = USYNC_PROCESS;
	exit (
	mutex_init(&mutex, type, NULL) ||
	cond_init(&cond, type, NULL) ||
	mutex_lock(&mutex) ||
	mutex_unlock(&mutex));

d11913 1
a11913 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d11916 1
a11916 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11919 1
a11919 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11922 1
a11922 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11924 1
a11924 1
  db_cv_mutex="UI/threads"
d11928 1
d11931 6
d11938 9
a11946 3
if test "$db_cv_mutex" = no -o \
    "$db_cv_mutex" = "ui_only" -o "$db_cv_mutex" = "ui_library_only"; then
LIBS="$LIBS -lthread"
d11948 1
a11948 1
#line $LINENO "configure"
a11950 8
#include <thread.h>
#include <synch.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11954 1
a11954 10

	mutex_t mutex;
	cond_t cond;
	int type = USYNC_PROCESS;
	exit (
	mutex_init(&mutex, type, NULL) ||
	cond_init(&cond, type, NULL) ||
	mutex_lock(&mutex) ||
	mutex_unlock(&mutex));

d11960 1
a11960 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d11963 1
a11963 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11966 1
a11966 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11969 1
a11969 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11971 1
a11971 1
  db_cv_mutex="UI/threads/library"
d11975 1
d11978 6
a11983 1
LIBS="$orig_libs"
d11985 24
a12008 4
if test "$db_cv_mutex" = "ui_only" -o "$db_cv_mutex" = "ui_library_only"; then
	{ { echo "$as_me:$LINENO: error: unable to find UI mutex interfaces" >&5
echo "$as_me: error: unable to find UI mutex interfaces" >&2;}
   { (exit 1); exit 1; }; }
d12011 1
a12011 1
# POSIX.1 pthreads: pthread_XXX
d12013 5
a12017 4
# Try with and without the -lpthread library.  If the user specified we use
# POSIX pthreads mutexes, and we fail to find the full interface, try and
# configure for just intra-process support.
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
d12019 11
d12031 3
a12033 1
  db_cv_mutex="no"
d12036 1
a12036 1
#line $LINENO "configure"
d12039 6
a12044 6
#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
d12046 2
a12047 12
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d12051 1
a12051 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d12054 1
a12054 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12056 1
a12056 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12059 1
a12059 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12061 1
a12061 1
  db_cv_mutex=""POSIX/pthreads""
a12069 3
if test "$db_cv_mutex" = no -o \
    "$db_cv_mutex" = "posix_only" -o "$db_cv_mutex" = "posix_library_only"; then
	LIBS="$LIBS -lpthread"
d12071 5
d12077 3
a12079 1
  db_cv_mutex="no"
d12082 1
a12082 1
#line $LINENO "configure"
d12085 6
a12090 6
#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
d12092 4
a12095 12
	pthread_condattr_init(&condattr) ||
	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d12099 1
a12099 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d12102 1
a12102 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12104 1
a12104 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12107 1
a12107 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12109 1
a12109 1
  db_cv_mutex=""POSIX/pthreads/library""
d12117 1
a12117 1
	LIBS="$orig_libs"
d12119 1
a12119 2
if test "$db_cv_mutex" = "posix_only"; then

d12121 3
a12123 53
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <pthread.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
	exit (
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex=""POSIX/pthreads/private""
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12126 1
a12126 1
#line $LINENO "configure"
d12129 6
a12134 6
#include <pthread.h>
main() {
	pthread_cond_t cond;
	pthread_mutex_t mutex;
	pthread_condattr_t condattr;
	pthread_mutexattr_t mutexattr;
d12136 4
a12139 10
	pthread_condattr_init(&condattr) ||
	pthread_mutexattr_init(&mutexattr) ||
	pthread_cond_init(&cond, &condattr) ||
	pthread_mutex_init(&mutex, &mutexattr) ||
	pthread_mutex_lock(&mutex) ||
	pthread_mutex_unlock(&mutex) ||
	pthread_mutex_destroy(&mutex) ||
	pthread_cond_destroy(&cond) ||
	pthread_condattr_destroy(&condattr) ||
	pthread_mutexattr_destroy(&mutexattr));
d12143 1
a12143 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d12146 1
a12146 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12148 1
a12148 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12151 1
a12151 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12153 1
a12153 1
  db_cv_mutex=""POSIX/pthreads/private""
d12162 5
a12166 3
if test "$db_cv_mutex" = "posix_only" -o \
    "$db_cv_mutex" = "posix_library_only"; then
	LIBS="$LIBS -lpthread"
d12168 4
d12173 4
d12178 1
a12178 1
#line $LINENO "configure"
d12182 1
a12182 10
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

d12189 1
d12191 1
a12199 3

  ;
  return 0;
d12202 2
a12203 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d12206 3
a12208 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12211 1
a12211 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12213 1
a12213 1
  db_cv_mutex=""POSIX/pthreads/library/private""
d12215 2
a12216 1
  echo "$as_me: failed program was:" >&5
d12219 9
a12227 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12230 1
a12230 1
#line $LINENO "configure"
d12234 1
a12234 1
main() {
d12241 1
d12243 1
d12255 1
a12255 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d12258 1
a12258 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12260 1
a12260 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12263 1
a12263 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12265 1
a12265 1
  db_cv_mutex=""POSIX/pthreads/library/private""
d12273 1
a12273 1
	LIBS="$orig_libs"
d12275 3
a12277 5

if test "$db_cv_mutex" = "posix_only" -o \
    "$db_cv_mutex" = "posix_library_only"; then
	{ { echo "$as_me:$LINENO: error: unable to find POSIX 1003.1 mutex interfaces" >&5
echo "$as_me: error: unable to find POSIX 1003.1 mutex interfaces" >&2;}
d12284 7
a12290 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12294 1
a12294 10
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

d12303 1
a12303 1
	FAIL TO COMPILE/LINK
a12304 3

  ;
  return 0;
d12307 2
a12308 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d12311 3
a12313 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12316 1
a12316 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12320 2
a12321 1
  echo "$as_me: failed program was:" >&5
d12324 2
a12325 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12330 7
a12336 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12341 1
a12341 10
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

a12347 3

  ;
  return 0;
d12350 2
a12351 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d12354 3
a12356 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12359 1
a12359 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12363 2
a12364 1
  echo "$as_me: failed program was:" >&5
d12367 2
a12368 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12375 1
a12375 1
#line $LINENO "configure"
a12376 1

a12377 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12381 2
a12382 7

	typedef spinlock_t tsl_t;
	spinlock_t x;
	initspin(&x, 1);
	cspinlock(&x);
	spinunlock(&x);

d12388 1
a12388 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d12391 1
a12391 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12394 1
a12394 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12397 1
a12397 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12410 7
a12416 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12419 1
a12419 10
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

a12421 2
#else
	FAIL TO COMPILE/LINK
d12423 1
a12423 3

  ;
  return 0;
d12426 3
a12428 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12430 3
a12432 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12435 1
a12435 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12439 2
a12440 1
  echo "$as_me: failed program was:" >&5
d12443 2
a12444 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12450 1
a12450 1
#line $LINENO "configure"
a12451 1

a12452 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12456 2
a12457 7

	typedef abilock_t tsl_t;
	abilock_t x;
	init_lock(&x);
	acquire_lock(&x);
	release_lock(&x);

d12463 1
a12463 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d12466 1
a12466 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12469 1
a12469 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12472 1
a12472 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12488 1
a12488 1
#line $LINENO "configure"
a12489 1

a12490 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12494 3
a12496 7

	typedef sema_t tsl_t;
	sema_t x;
	sema_init(&x, 1, USYNC_PROCESS, NULL);
	sema_wait(&x);
	sema_post(&x);

d12502 1
a12502 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d12505 1
a12505 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12508 1
a12508 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12511 1
a12511 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12528 1
a12528 1
#line $LINENO "configure"
a12529 1

a12530 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12534 3
a12536 6

	typedef lock_t tsl_t;
	lock_t x;
	_lock_try(&x);
	_lock_clear(&x);

d12542 1
a12542 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d12545 1
a12545 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12548 1
a12548 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12551 1
a12551 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12564 1
a12564 1
#line $LINENO "configure"
a12565 1

a12566 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12570 1
a12570 5

	int x;
	_check_lock(&x,0,1);
	_clear_lock(&x,0);

d12576 1
a12576 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d12579 1
a12579 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12582 1
a12582 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12585 1
a12585 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12597 7
a12603 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12605 4
a12608 6

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
a12609 8
int
main ()
{

#if defined(__alpha) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
d12611 1
a12611 4

  ;
  return 0;
}
d12613 3
a12615 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12617 3
a12619 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12622 1
a12622 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12626 2
a12627 1
  echo "$as_me: failed program was:" >&5
d12630 1
a12630 45
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ARM/gcc: Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

#if defined(__arm__) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="ARM/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a12631 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12636 4
a12639 37
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

#if (defined(__hppa) || defined(__hppa__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="HPPA/gcc-assembly"
d12641 2
a12642 11
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# PPC/gcc:
# Test for Apple first, it requires slightly different assembly.
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12644 4
a12647 6

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
a12648 8
int
main ()
{

#if (defined(__powerpc__) || defined(__ppc__)) && defined(__GNUC__) && defined(__APPLE__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
d12650 1
a12650 4

  ;
  return 0;
}
d12652 3
a12654 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12656 3
a12658 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12661 1
a12661 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12663 1
a12663 1
  db_cv_mutex="PPC_APPLE/gcc-assembly"
d12665 2
a12666 1
  echo "$as_me: failed program was:" >&5
d12669 2
a12670 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12672 2
d12675 7
a12681 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12683 4
a12686 6

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
a12687 8
int
main ()
{

#if (defined(__powerpc__) || defined(__ppc__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
d12689 1
a12689 4

  ;
  return 0;
}
d12691 3
a12693 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12695 3
a12697 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12700 1
a12700 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12702 1
a12702 1
  db_cv_mutex="PPC_GENERIC/gcc-assembly"
d12704 2
a12705 1
  echo "$as_me: failed program was:" >&5
d12708 2
a12709 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12714 7
a12720 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12722 4
a12725 6

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
a12726 8
int
main ()
{

#if defined(__sparc__) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
d12728 1
a12728 3

  ;
  return 0;
d12731 3
a12733 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12735 3
a12737 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12740 1
a12740 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12744 2
a12745 1
  echo "$as_me: failed program was:" >&5
d12748 2
a12749 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12754 7
a12760 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12762 4
a12765 6

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
a12766 8
int
main ()
{

#if (defined(mc68020) || defined(sun3)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
d12768 1
a12768 3

  ;
  return 0;
d12771 3
a12773 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12775 3
a12777 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12780 1
a12780 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12784 2
a12785 1
  echo "$as_me: failed program was:" >&5
d12788 2
a12789 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12794 7
a12800 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12802 4
a12805 6

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
a12806 8
int
main ()
{

#if (defined(i386) || defined(__i386__)) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
d12808 1
a12808 3

  ;
  return 0;
d12811 3
a12813 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12815 3
a12817 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12820 1
a12820 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12824 2
a12825 1
  echo "$as_me: failed program was:" >&5
d12828 1
a12828 45
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# S390/gcc: Linux
if test "$db_cv_mutex" = no; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

#if defined(__s390__) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  db_cv_mutex="S390/gcc-assembly"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a12829 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12834 7
a12840 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12842 4
a12845 6

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
a12846 8
int
main ()
{

#if defined(__ia64) && defined(__GNUC__)
	exit(0);
#else
	FAIL TO COMPILE/LINK
d12848 1
a12848 3

  ;
  return 0;
d12851 3
a12853 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12855 3
a12857 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12860 1
a12860 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12864 2
a12865 1
  echo "$as_me: failed program was:" >&5
d12868 2
a12869 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12874 7
a12880 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12882 1
a12882 11

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

a12884 2
#else
	FAIL TO COMPILE/LINK
d12886 1
a12886 3

  ;
  return 0;
d12889 3
a12891 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12893 3
a12895 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12898 1
a12898 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12902 2
a12903 1
  echo "$as_me: failed program was:" >&5
d12906 4
a12909 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12911 2
a12913 1
# default to UNIX fcntl system call mutexes.
d12915 7
a12921 2
	db_cv_mutex="UNIX/fcntl"
fi
a12923 2
echo "$as_me:$LINENO: result: $db_cv_mutex" >&5
echo "${ECHO_T}$db_cv_mutex" >&6
d12927 1
a12927 1
			cat >>confdefs.h <<\_ACEOF
d12929 1
a12929 2
_ACEOF

d12933 1
a12933 1
			cat >>confdefs.h <<\_ACEOF
d12935 1
a12935 2
_ACEOF

d12939 1
a12939 1
			cat >>confdefs.h <<\_ACEOF
d12941 1
a12941 9
_ACEOF


;;
ARM/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_ARM_GCC_ASSEMBLY 1
_ACEOF

d12945 1
a12945 1
			cat >>confdefs.h <<\_ACEOF
d12947 1
a12947 2
_ACEOF

d12951 1
a12951 1
			cat >>confdefs.h <<\_ACEOF
d12953 1
a12953 2
_ACEOF

d12957 1
a12957 1
			cat >>confdefs.h <<\_ACEOF
d12959 1
a12959 2
_ACEOF

d12963 1
a12963 1
			cat >>confdefs.h <<\_ACEOF
d12965 1
a12965 15
_ACEOF


;;
POSIX/pthreads/private)	ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF



			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_THREAD_ONLY 1
_ACEOF

d12968 1
a12968 1
POSIX/pthreads/library)	LIBS="$LIBS -lpthread"
d12970 1
a12970 1
			cat >>confdefs.h <<\_ACEOF
d12972 1
a12972 2
_ACEOF

d12975 4
a12978 28
POSIX/pthreads/library/private)
			LIBS="$LIBS -lpthread"
			ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF



			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_THREAD_ONLY 1
_ACEOF


;;
PPC_GENERIC/gcc-assembly)
			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PPC_GENERIC_GCC_ASSEMBLY 1
_ACEOF


;;
PPC_APPLE/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PPC_APPLE_GCC_ASSEMBLY 1
_ACEOF

d12983 1
a12983 1
			cat >>confdefs.h <<\_ACEOF
d12985 1
a12985 9
_ACEOF


;;
S390/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_S390_GCC_ASSEMBLY 1
_ACEOF

d12989 1
a12989 1
			cat >>confdefs.h <<\_ACEOF
d12991 1
a12991 2
_ACEOF

d12995 1
a12995 1
			cat >>confdefs.h <<\_ACEOF
d12997 1
a12997 2
_ACEOF

d13001 1
a13001 1
			cat >>confdefs.h <<\_ACEOF
d13003 1
a13003 2
_ACEOF

d13007 1
a13007 1
			cat >>confdefs.h <<\_ACEOF
d13009 1
a13009 2
_ACEOF

d13013 1
a13013 1
			cat >>confdefs.h <<\_ACEOF
d13015 1
a13015 2
_ACEOF

d13019 1
a13019 1
			cat >>confdefs.h <<\_ACEOF
d13021 1
a13021 2
_ACEOF

d13024 1
a13024 1
UI/threads/library)	LIBS="$LIBS -lthread"
d13026 1
a13026 1
			cat >>confdefs.h <<\_ACEOF
d13028 1
a13028 2
_ACEOF

d13032 1
a13032 1
			cat >>confdefs.h <<\_ACEOF
d13034 1
a13034 2
_ACEOF

d13038 1
a13038 1
			cat >>confdefs.h <<\_ACEOF
d13040 1
a13040 2
_ACEOF

d13044 1
a13044 1
			cat >>confdefs.h <<\_ACEOF
d13046 1
a13046 2
_ACEOF

d13050 1
a13050 1
			cat >>confdefs.h <<\_ACEOF
d13052 1
a13052 22
_ACEOF


;;
UNIX/fcntl)		{ echo "$as_me:$LINENO: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&5
echo "$as_me: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&2;}
			ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
			cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_FCNTL 1
_ACEOF


;;
*)			{ { echo "$as_me:$LINENO: error: Unknown mutex interface: $db_cv_mutex" >&5
echo "$as_me: error: Unknown mutex interface: $db_cv_mutex" >&2;}
   { (exit 1); exit 1; }; };;
esac

if test "$db_cv_mutex" != "UNIX/fcntl"; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_THREADS 1
_ACEOF
a13053 29


fi

# There are 3 classes of mutexes:
#
# 1: Mutexes requiring no cleanup, for example, test-and-set mutexes.
# 2: Mutexes that must be destroyed, but which don't hold permanent system
#    resources, for example, pthread mutexes on MVS aka OS/390 aka z/OS.
# 3: Mutexes that must be destroyed, even after the process is gone, for
#    example, pthread mutexes on QNX and binary semaphores on VxWorks.
#
# DB cannot currently distinguish between #2 and #3 because DB does not know
# if the application is running environment recovery as part of startup and
# does not need to do cleanup, or if the environment is being removed and/or
# recovered in a loop in the application, and so does need to clean up.  If
# we get it wrong, we're going to call the mutex destroy routine on a random
# piece of memory, which usually works, but just might drop core.  For now,
# we group #2 and #3 into the HAVE_MUTEX_SYSTEM_RESOURCES define, until we
# have a better solution or reason to solve this in a general way -- so far,
# the places we've needed to handle this are few.



case "$host_os$db_cv_mutex" in
*qnx*POSIX/pthread*|openedition*POSIX/pthread*)
	cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SYSTEM_RESOURCES 1
_ACEOF
d13064 1
a13064 6





for ac_func in getcwd getopt memcmp memcpy memmove raise
d13067 1
a13067 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d13073 1
a13073 1
#line $LINENO "configure"
a13086 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13104 1
a13104 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d13107 1
a13107 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13110 1
a13110 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13113 1
a13113 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13123 1
a13123 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d13126 1
a13126 1
  cat >>confdefs.h <<_ACEOF
d13128 1
a13128 1
_ACEOF
d13135 1
a13135 7






for ac_func in snprintf strcasecmp strdup strerror vsnprintf
d13138 1
a13138 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d13144 1
a13144 1
#line $LINENO "configure"
a13157 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13175 1
a13175 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d13178 1
a13178 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13181 1
a13181 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13184 1
a13184 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13194 1
a13194 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d13197 1
a13197 1
  cat >>confdefs.h <<_ACEOF
d13199 1
a13199 1
_ACEOF
d13206 6
a13211 1

d13215 1
a13215 5




for ac_func in _fstati64 clock_gettime directio gettimeofday getuid
d13218 1
a13218 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d13224 1
a13224 1
#line $LINENO "configure"
a13237 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13255 1
a13255 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d13258 1
a13258 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13261 1
a13261 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13264 1
a13264 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13274 1
a13274 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d13277 1
a13277 1
  cat >>confdefs.h <<_ACEOF
d13279 1
a13279 1
_ACEOF
d13284 1
a13284 7






for ac_func in pstat_getdynamic sched_yield select strtoul sysconf yield
d13287 1
a13287 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d13293 1
a13293 1
#line $LINENO "configure"
a13306 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13324 1
a13324 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d13327 1
a13327 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13330 1
a13330 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13333 1
a13333 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13343 1
a13343 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d13346 1
a13346 1
  cat >>confdefs.h <<_ACEOF
d13348 1
a13348 80
_ACEOF

fi
done


# Checks for system functions for which we don't have replacements.
# We require qsort(3).

for ac_func in qsort
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a13349 4
else
  { { echo "$as_me:$LINENO: error: No qsort library function." >&5
echo "$as_me: error: No qsort library function." >&2;}
   { (exit 1); exit 1; }; }
a13352 1

d13354 2
a13355 1
# HP-UX has pread/pwrite, but it doesn't work with largefile support.
d13358 1
a13358 1
	{ echo "$as_me:$LINENO: WARNING: pread/pwrite interfaces ignored on $host_os." >&5
d13365 1
a13365 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d13371 1
a13371 1
#line $LINENO "configure"
a13384 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13402 1
a13402 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d13405 1
a13405 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13408 1
a13408 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13411 1
a13411 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13421 1
a13421 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d13424 1
a13424 1
  cat >>confdefs.h <<_ACEOF
d13426 1
a13426 1
_ACEOF
d13434 1
a13434 1
echo "$as_me:$LINENO: checking for fcntl/F_SETFD" >&5
d13440 7
a13446 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13451 1
a13451 15
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

	fcntl(1, F_SETFD, 1);

  ;
  return 0;
}
d13453 2
a13454 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d13457 3
a13459 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13462 1
a13462 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13466 2
a13467 1
  echo "$as_me: failed program was:" >&5
d13471 2
a13472 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13474 1
a13474 1
echo "$as_me:$LINENO: result: $db_cv_fcntl_f_setfd" >&5
d13477 1
a13477 1
	cat >>confdefs.h <<\_ACEOF
d13479 1
a13479 3
_ACEOF


d13486 4
a13489 1
esac
d13491 6
a13496 4
# Linux has the O_DIRECT flag, but you can't actually use it.
echo "$as_me:$LINENO: checking for open/O_DIRECT" >&5
echo $ECHO_N "checking for open/O_DIRECT... $ECHO_C" >&6
if test "${db_cv_open_o_direct+set}" = set; then
a13498 3

echo "test for working open/O_DIRECT" > __o_direct_file
if test "$cross_compiling" = yes; then
d13500 1
a13500 1
#line $LINENO "configure"
d13502 11
a13513 8
#include <sys/types.h>
#include <fcntl.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13517 8
a13524 2

	open("__o_direct_file", O_RDONLY | O_DIRECT, 0);
d13531 1
a13531 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d13534 1
a13534 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13537 1
a13537 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13540 1
a13540 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13542 1
a13542 1
  db_cv_open_o_direct=yes
d13546 1
a13546 1
db_cv_open_o_direct=no
d13549 28
d13579 1
a13579 1
#line $LINENO "configure"
d13581 1
a13581 7

#include <sys/types.h>
#include <fcntl.h>
main() {
int c, fd = open("__o_direct_file", O_RDONLY | O_DIRECT, 0);
exit ((fd == -1) || (read(fd, &c, 1) != 1));
}
d13584 1
a13584 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d13587 1
a13587 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13589 1
a13589 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13592 1
a13592 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13594 1
a13594 1
  db_cv_open_o_direct=yes
d13599 1
a13599 2
( exit $ac_status )
db_cv_open_o_direct=no
a13602 1
rm -f __o_direct_file
d13604 6
a13609 8
echo "$as_me:$LINENO: result: $db_cv_open_o_direct" >&5
echo "${ECHO_T}$db_cv_open_o_direct" >&6
if test "$db_cv_open_o_direct" = yes; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_O_DIRECT 1
_ACEOF


d13614 2
a13615 1
# are wrong.
d13618 1
a13618 1
hpux*)
d13620 1
a13620 1
{ echo "$as_me:$LINENO: WARNING: Large file and C++ API support are incompatible on HP-UX" >&5
d13622 2
a13623 2
{ echo "$as_me:$LINENO: WARNING: large file support has been turned off." >&5
echo "$as_me: WARNING: large file support has been turned off." >&2;}
d13635 1
a13635 1
  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
d13647 1
a13647 1
#line $LINENO "configure"
a13657 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13667 1
a13667 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13670 1
a13670 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13673 1
a13673 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13676 1
a13676 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13686 1
a13686 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13689 1
a13689 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13692 1
a13692 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13695 1
a13695 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13709 1
a13709 1
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
d13715 1
a13715 1
  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
d13723 1
a13723 1
#line $LINENO "configure"
a13733 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13743 1
a13743 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13746 1
a13746 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13749 1
a13749 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13752 1
a13752 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13761 1
a13761 1
#line $LINENO "configure"
a13772 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13782 1
a13782 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13785 1
a13785 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13788 1
a13788 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13791 1
a13791 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13802 1
a13802 1
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
d13806 1
a13806 1
cat >>confdefs.h <<_ACEOF
d13808 1
a13808 1
_ACEOF
d13812 1
a13812 1
  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
d13820 1
a13820 1
#line $LINENO "configure"
a13830 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13840 1
a13840 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13843 1
a13843 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13846 1
a13846 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13849 1
a13849 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13858 1
a13858 1
#line $LINENO "configure"
a13869 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13879 1
a13879 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13882 1
a13882 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13885 1
a13885 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13888 1
a13888 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13899 1
a13899 1
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
d13903 1
a13903 1
cat >>confdefs.h <<_ACEOF
d13905 1
a13905 1
_ACEOF
d13927 1
a13927 1
	{ echo "$as_me:$LINENO: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&5
a13930 1

d13934 1
a13934 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d13940 1
a13940 1
#line $LINENO "configure"
a13953 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13971 1
a13971 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d13974 1
a13974 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13977 1
a13977 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13980 1
a13980 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13990 1
a13990 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d13993 1
a13993 1
  cat >>confdefs.h <<_ACEOF
d13995 1
a13995 1
_ACEOF
d14003 1
a14003 1
	{ echo "$as_me:$LINENO: WARNING: mmap(2) interface ignored on Ultrix." >&5
a14007 1

d14011 1
a14011 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d14017 1
a14017 1
#line $LINENO "configure"
a14030 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14048 1
a14048 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d14051 1
a14051 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14054 1
a14054 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14057 1
a14057 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14067 1
a14067 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d14070 1
a14070 1
  cat >>confdefs.h <<_ACEOF
d14072 1
a14072 1
_ACEOF
a14076 2


d14080 1
a14080 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d14086 1
a14086 1
#line $LINENO "configure"
a14099 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14117 1
a14117 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d14120 1
a14120 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14123 1
a14123 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14126 1
a14126 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14136 1
a14136 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d14139 1
a14139 1
  cat >>confdefs.h <<_ACEOF
d14141 1
a14141 1
_ACEOF
d14157 1
a14157 1
	{ echo "$as_me:$LINENO: WARNING: shmget(2) interface ignored on SunOS." >&5
d14165 1
a14165 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d14171 1
a14171 1
#line $LINENO "configure"
a14184 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14202 1
a14202 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d14205 1
a14205 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14208 1
a14208 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14211 1
a14211 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14221 1
a14221 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d14224 1
a14224 1
  cat >>confdefs.h <<_ACEOF
d14226 1
a14226 1
_ACEOF
d14237 1
a14237 1
	{ echo "$as_me:$LINENO: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
a14240 14
# If we're not doing version name substitution, DB_VERSION_UNIQUE_NAME
# needs to be erased.
if test "$db_cv_uniquename" = "no"; then
	DB_VERSION_UNIQUE_NAME=""
fi

# This is necessary so that .o files in LIBOBJS are also built via
# the ANSI2KNR-filtering rules.
LIBOBJS=`echo "$LIBOBJS" |
	     sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
LTLIBOBJS=`echo "$LIBOBJS" |
	   sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`


d14243 7
a14249 7
    db_cxx.h:$srcdir/../dbinc/db_cxx.in
    db_int.h:$srcdir/../dbinc/db_int.in
    include.tcl:$srcdir/../test/include.tcl"

# Create the db.h file from a source file, a list of global function
# prototypes, and, if configured for unique names, a list of #defines
# to do DB_VERSION_UNIQUE_NAME substitution.
d14251 2
a14252 2
	CREATE_LIST="$CREATE_LIST
	db.h:$srcdir/../dbinc/db.in:$srcdir/../dbinc_auto/rpc_defs.in:$srcdir/../dbinc_auto/ext_def.in:$srcdir/../dbinc_auto/ext_prot.in"
d14254 2
a14255 2
	CREATE_LIST="$CREATE_LIST
	db.h:$srcdir/../dbinc/db.in:$srcdir/../dbinc_auto/rpc_defs.in:$srcdir/../dbinc_auto/ext_prot.in"
d14258 2
a14259 3
# If configured for unique names, create the db_int_uext.h file (which
# does the DB_VERSION_UNIQUE_NAME substitution), which is included by
# the db_int.h file.
d14261 20
a14280 3
	CREATE_LIST="$CREATE_LIST
	db_int_def.h:$srcdir/../dbinc_auto/int_def.in"
	db_int_def='#include "db_int_def.h"'
a14281 4

# Create the db_185.h and db185_int.h files from source files, a list of
# global function prototypes, and, if configured for unique names, a list
# of #defines to do DB_VERSION_UNIQUE_NAME substitution.
d14285 2
a14286 2
		db_185.h:$srcdir/../dbinc/db_185.in:$srcdir/../dbinc_auto/ext_185_def.in:$srcdir/../dbinc_auto/ext_185_prot.in
		db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../dbinc_auto/ext_185_def.in:$srcdir/../dbinc_auto/ext_185_prot.in"
d14289 2
a14290 2
		db_185.h:$srcdir/../dbinc/db_185.in:$srcdir/../dbinc_auto/ext_185_prot.in
		db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../dbinc_auto/ext_185_prot.in"
a14292 1

a14295 1

a14377 1

d14381 1
a14381 1
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
d14385 1
a14385 1
# Generated by $as_me.
d14392 2
a14396 5

## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

a14404 34
# NLS nuisances.
# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
    { $as_unset LANG || test "${LANG+set}" != set; } ||
      { LANG=C; export LANG; }
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
      { LC_ALL=C; export LC_ALL; }
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
      { LC_TIME=C; export LC_TIME; }
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
      { LC_CTYPE=C; export LC_CTYPE; }
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
      { LANGUAGE=C; export LANGUAGE; }
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
      { LC_COLLATE=C; export LC_COLLATE; }
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
      { LC_NUMERIC=C; export LC_NUMERIC; }
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
      { LC_MESSAGES=C; export LC_MESSAGES; }


d14406 1
a14406 126
as_me=`(basename "$0") 2>/dev/null ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)$' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  	  /^X\/\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`

# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conftest.sh
  echo  "exit 0"   >>conftest.sh
  chmod +x conftest.sh
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conftest.sh
fi


  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  # Find who we are.  Look in the path if we contain no path at all
  # relative or not.
  case $0 in
    *[\\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done

       ;;
  esac
  # We did not find ourselves, most probably we were run as `sh COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for as_base in sh bash ksh sh5; do
	 case $as_dir in
	 /*)
	   if ("$as_dir/$as_base" -c '
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
	     CONFIG_SHELL=$as_dir/$as_base
	     export CONFIG_SHELL
	     exec "$CONFIG_SHELL" "$0" ${1+"$@@"}
	   fi;;
	 esac
       done
done
;;
  esac

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line before each line; the second 'sed' does the real
  # work.  The second script uses 'N' to pair each line-number line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  sed '=' <$as_myself |
    sed '
      N
      s,$,-,
      : loop
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
      t loop
      s,-$,,
      s,^['$as_cr_digits']*\n,,
    ' >$as_me.lineno &&
  chmod +x $as_me.lineno ||
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensible to this).
  . ./$as_me.lineno
  # Exit status is that of the last command.
  exit
}


case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
d14434 6
a14439 5
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
d14441 9
d14458 1
a14458 1
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
a14461 24
# Open the log real soon, to keep \$[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.  Logging --version etc. is OK.
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
} >&5
cat >&5 <<_CSEOF

This file was extended by Berkeley DB $as_me 4.1.17, which was
generated by GNU Autoconf 2.53.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@@

_CSEOF
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
echo >&5
d14481 1
a14481 1
cat >>$CONFIG_STATUS <<\_ACEOF
d14505 1
a14505 1
_ACEOF
d14507 1
a14507 1
cat >>$CONFIG_STATUS <<_ACEOF
d14509 2
a14510 2
Berkeley DB config.status 4.1.17
configured by $0, generated by GNU Autoconf 2.53,
d14519 1
a14519 1
_ACEOF
d14521 1
a14521 1
cat >>$CONFIG_STATUS <<\_ACEOF
d14543 2
a14544 2
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
d14548 2
a14549 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
d14554 1
a14554 1
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
d14573 1
a14573 1
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
d14585 2
a14586 1
_ACEOF
d14588 3
d14592 7
d14600 2
d14603 1
a14603 2

cat >>$CONFIG_STATUS <<\_ACEOF
d14610 1
a14610 1
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
d14647 1
a14647 1
_ACEOF
d14649 1
a14649 1
cat >>$CONFIG_STATUS <<_ACEOF
a14661 6
s,@@PATH_SEPARATOR@@,$PATH_SEPARATOR,;t t
s,@@PACKAGE_NAME@@,$PACKAGE_NAME,;t t
s,@@PACKAGE_TARNAME@@,$PACKAGE_TARNAME,;t t
s,@@PACKAGE_VERSION@@,$PACKAGE_VERSION,;t t
s,@@PACKAGE_STRING@@,$PACKAGE_STRING,;t t
s,@@PACKAGE_BUGREPORT@@,$PACKAGE_BUGREPORT,;t t
d14677 5
a14684 1
s,@@DEFS@@,$DEFS,;t t
d14688 2
d14710 1
d14739 1
a14741 1
s,@@db_int_def@@,$db_int_def,;t t
a14793 3
s,@@SOSUFFIX@@,$SOSUFFIX,;t t
s,@@MODSUFFIX@@,$MODSUFFIX,;t t
s,@@JMODSUFFIX@@,$JMODSUFFIX,;t t
a14813 1
s,@@LTLIBOBJS@@,$LTLIBOBJS,;t t
d14816 1
a14816 1
_ACEOF
d14818 1
a14818 1
  cat >>$CONFIG_STATUS <<\_ACEOF
d14857 2
a14858 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
d14872 1
a14872 2
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
d14883 2
a14884 1
  { case "$ac_dir" in
d14895 1
a14895 5
      test -d "$as_incr_dir" ||
        mkdir "$as_incr_dir" ||
	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }
d14900 6
a14905 1
  ac_builddir=.
d14907 10
a14916 19
if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
d14918 3
a14920 10
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`

d14924 1
a14924 1
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d14928 1
a14928 1
    { echo "$as_me:$LINENO: creating $ac_file" >&5
d14934 3
a14936 8
  #    /* config.h.  Generated by config.status.  */
  if test x"$ac_file" = x-; then
    configure_input=
  else
    configure_input="$ac_file.  "
  fi
  configure_input=$configure_input"Generated from `echo $ac_file_in |
                                     sed 's,.*/,,'` by configure."
d14946 1
a14946 1
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d14959 1
a14959 1
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d14965 2
a14966 2
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
d14969 2
a14970 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
a14974 1
s,@@abs_srcdir@@,$ac_abs_srcdir,;t t
a14975 5
s,@@abs_top_srcdir@@,$ac_abs_top_srcdir,;t t
s,@@builddir@@,$ac_builddir,;t t
s,@@abs_builddir@@,$ac_abs_builddir,;t t
s,@@top_builddir@@,$ac_top_builddir,;t t
s,@@abs_top_builddir@@,$ac_abs_top_builddir,;t t
d14987 2
a14988 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
d15020 1
a15020 1
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
d15031 1
a15031 1
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d15044 1
a15044 1
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d15053 1
a15053 1
_ACEOF
d15069 1
a15069 1
cat >confdef2sed.sed <<\_ACEOF
d15074 1
a15074 1
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
d15078 1
a15078 1
_ACEOF
d15089 1
a15089 1
cat >>conftest.undefs <<\_ACEOF
d15091 1
a15091 1
_ACEOF
d15148 1
a15148 1
cat >>$CONFIG_STATUS <<\_ACEOF
d15151 1
a15151 1
  #    /* config.h.  Generated by config.status.  */
d15153 1
a15153 1
    echo "/* Generated by configure.  */" >$tmp/config.h
d15155 1
a15155 1
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
d15161 1
a15161 1
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
d15164 1
a15164 2
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
d15175 2
a15176 1
      { case "$ac_dir" in
d15187 1
a15187 5
      test -d "$as_incr_dir" ||
        mkdir "$as_incr_dir" ||
	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }
d15192 1
d15201 1
a15201 1
_ACEOF
d15203 1
a15203 1
cat >>$CONFIG_STATUS <<\_ACEOF
d15206 1
a15206 1
_ACEOF
a15208 1

@


1.1.1.7
log
@track: auto import
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.53 for Berkeley DB 4.1.24.
d417 3
a419 3
PACKAGE_TARNAME='db-4.1.24'
PACKAGE_VERSION='4.1.24'
PACKAGE_STRING='Berkeley DB 4.1.24'
d933 1
a933 1
\`configure' configures Berkeley DB 4.1.24 to adapt to many kinds of systems.
d999 1
a999 1
     short | recursive ) echo "Configuration of Berkeley DB 4.1.24:";;
d1115 1
a1115 1
Berkeley DB configure 4.1.24
d1130 1
a1130 1
It was created by Berkeley DB $as_me 4.1.24, which was
d1577 1
a1577 1
DB_VERSION_PATCH=24
d1581 1
a1581 1
DB_VERSION_STRING="\"Sleepycat Software: Berkeley DB 4.1.24: (September 13, 2002)\""
d7363 3
a7365 11
    #### Local change for Sleepycat's Berkeley DB [#5664] [#6511]
    case "$host_os" in
    darwin[12345].*)
       # removed double quotes in the following line:
       archive_cmds='$nonopt $(test x$module = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
       ;;
    *) # Darwin6.0 on (Mac OS/X Jaguar)
       archive_cmds='$nonopt $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -dynamiclib -install_name $rpath/$soname $verstring'
       ;;
    esac
    #### End of changes for Sleepycat's Berkeley DB [#5664] [#6511]
d8627 1
a8627 1
#line 8635 "configure"
d8725 1
a8725 1
#line 8733 "configure"
d9709 1
a9709 1
/* #line 9717 "configure" */
a9905 4

# If we find jni.h in /usr/include, then it's not a java-only tree, so
# don't add /usr/include or subdirectories to the list of includes.
# An extra -I/usr/include can foul things up with newer gcc's.
d9907 1
a9907 3
	if test "$_JINC" != "/usr/include"; then
		JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JINC"
	fi
d9911 1
a9911 3
		if test "$_JTOPDIR" != "/usr"; then
			JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include"
		fi
d9920 8
a9927 10
if test "$_JTOPDIR" != "/usr"; then
	case "$host_os" in
	aix*)		_JNI_INC_SUBDIRS="aix";;
	bsdi*)		_JNI_INC_SUBDIRS="bsdos";;
	linux*)		_JNI_INC_SUBDIRS="linux genunix";;
	osf*)		_JNI_INC_SUBDIRS="alpha";;
	solaris*)	_JNI_INC_SUBDIRS="solaris";;
	*)		_JNI_INC_SUBDIRS="genunix";;
	esac
fi
d9930 1
a9930 1
for _JINCSUBDIR in $_JNI_INC_SUBDIRS
d9932 2
a9933 2
	if test -d "$_JTOPDIR/include/$_JINCSUBDIR"; then
		JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include/$_JINCSUBDIR"
d10309 1
a10309 1
	aix4.[2-9].*)
d18636 15
a18650 2
# Check for largefile support.
# Check whether --enable-largefile or --disable-largefile was given.
d18963 1
d19711 1
a19711 1
This file was extended by Berkeley DB $as_me 4.1.24, which was
d19770 1
a19770 1
Berkeley DB config.status 4.1.24
@


