#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.57 for gwxlibs 1.3.1.
#
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
# 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+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

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


# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
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 -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; 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'`


# 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


  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
	     $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

  # 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

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

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

as_executable_p="test -f"

# 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"


# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH


# 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


# 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=$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



# 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.
#
ac_default_prefix=/usr/local
ac_config_libobj_dir=.
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}

# Identity of this package.
PACKAGE_NAME='gwxlibs'
PACKAGE_TARNAME='gwxlibs'
PACKAGE_VERSION='1.3.1'
PACKAGE_STRING='gwxlibs 1.3.1'
PACKAGE_BUGREPORT=''

ac_unique_file="gwxcfg.h"
# 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>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_subst_vars="$ac_subst_vars SHELL"
ac_subst_vars="$ac_subst_vars PATH_SEPARATOR"
ac_subst_vars="$ac_subst_vars PACKAGE_NAME"
ac_subst_vars="$ac_subst_vars PACKAGE_TARNAME"
ac_subst_vars="$ac_subst_vars PACKAGE_VERSION"
ac_subst_vars="$ac_subst_vars PACKAGE_STRING"
ac_subst_vars="$ac_subst_vars PACKAGE_BUGREPORT"
ac_subst_vars="$ac_subst_vars exec_prefix"
ac_subst_vars="$ac_subst_vars prefix"
ac_subst_vars="$ac_subst_vars program_transform_name"
ac_subst_vars="$ac_subst_vars bindir"
ac_subst_vars="$ac_subst_vars sbindir"
ac_subst_vars="$ac_subst_vars libexecdir"
ac_subst_vars="$ac_subst_vars datadir"
ac_subst_vars="$ac_subst_vars sysconfdir"
ac_subst_vars="$ac_subst_vars sharedstatedir"
ac_subst_vars="$ac_subst_vars localstatedir"
ac_subst_vars="$ac_subst_vars libdir"
ac_subst_vars="$ac_subst_vars includedir"
ac_subst_vars="$ac_subst_vars oldincludedir"
ac_subst_vars="$ac_subst_vars infodir"
ac_subst_vars="$ac_subst_vars mandir"
ac_subst_vars="$ac_subst_vars build_alias"
ac_subst_vars="$ac_subst_vars host_alias"
ac_subst_vars="$ac_subst_vars target_alias"
ac_subst_vars="$ac_subst_vars DEFS"
ac_subst_vars="$ac_subst_vars ECHO_C"
ac_subst_vars="$ac_subst_vars ECHO_N"
ac_subst_vars="$ac_subst_vars ECHO_T"
ac_subst_vars="$ac_subst_vars LIBS"
ac_subst_vars="$ac_subst_vars GWXVERSION"
ac_subst_vars="$ac_subst_vars build"
ac_subst_vars="$ac_subst_vars build_cpu"
ac_subst_vars="$ac_subst_vars build_vendor"
ac_subst_vars="$ac_subst_vars build_os"
ac_subst_vars="$ac_subst_vars host"
ac_subst_vars="$ac_subst_vars host_cpu"
ac_subst_vars="$ac_subst_vars host_vendor"
ac_subst_vars="$ac_subst_vars host_os"
ac_subst_vars="$ac_subst_vars localeprefix"
ac_subst_vars="$ac_subst_vars localedir"
ac_subst_vars="$ac_subst_vars localebin"
ac_subst_vars="$ac_subst_vars localelib"
ac_subst_vars="$ac_subst_vars aclocaldir"
ac_subst_vars="$ac_subst_vars READLINE_CFLAGS"
ac_subst_vars="$ac_subst_vars SYSVDEFS"
ac_subst_vars="$ac_subst_vars CC"
ac_subst_vars="$ac_subst_vars CFLAGS"
ac_subst_vars="$ac_subst_vars LDFLAGS"
ac_subst_vars="$ac_subst_vars CPPFLAGS"
ac_subst_vars="$ac_subst_vars ac_ct_CC"
ac_subst_vars="$ac_subst_vars EXEEXT"
ac_subst_vars="$ac_subst_vars OBJEXT"
ac_subst_vars="$ac_subst_vars CXX"
ac_subst_vars="$ac_subst_vars CXXFLAGS"
ac_subst_vars="$ac_subst_vars ac_ct_CXX"
ac_subst_vars="$ac_subst_vars CPP"
ac_subst_vars="$ac_subst_vars YACC"
ac_subst_vars="$ac_subst_vars LEX"
ac_subst_vars="$ac_subst_vars LEXLIB"
ac_subst_vars="$ac_subst_vars LEX_OUTPUT_ROOT"
ac_subst_vars="$ac_subst_vars EGREP"
ac_subst_vars="$ac_subst_vars LN_S"
ac_subst_vars="$ac_subst_vars ECHO"
ac_subst_vars="$ac_subst_vars RANLIB"
ac_subst_vars="$ac_subst_vars ac_ct_RANLIB"
ac_subst_vars="$ac_subst_vars STRIP"
ac_subst_vars="$ac_subst_vars ac_ct_STRIP"
ac_subst_vars="$ac_subst_vars LIBTOOL"
ac_subst_vars="$ac_subst_vars LN_H"
ac_subst_vars="$ac_subst_vars INSTALL_PROGRAM"
ac_subst_vars="$ac_subst_vars INSTALL_SCRIPT"
ac_subst_vars="$ac_subst_vars INSTALL_DATA"
ac_subst_vars="$ac_subst_vars AWK"
ac_subst_vars="$ac_subst_vars SET_MAKE"
ac_subst_vars="$ac_subst_vars PERL"
ac_subst_vars="$ac_subst_vars SENDMAIL"
ac_subst_vars="$ac_subst_vars EDITOR"
ac_subst_vars="$ac_subst_vars u_char_decl"
ac_subst_vars="$ac_subst_vars u_short_decl"
ac_subst_vars="$ac_subst_vars u_int_decl"
ac_subst_vars="$ac_subst_vars u_long_decl"
ac_subst_vars="$ac_subst_vars int8_decl"
ac_subst_vars="$ac_subst_vars u_int8_decl"
ac_subst_vars="$ac_subst_vars u_int16_decl"
ac_subst_vars="$ac_subst_vars int16_decl"
ac_subst_vars="$ac_subst_vars u_int32_decl"
ac_subst_vars="$ac_subst_vars int32_decl"
ac_subst_vars="$ac_subst_vars ssize_t_decl"
ac_subst_vars="$ac_subst_vars db_align_t_decl"
ac_subst_vars="$ac_subst_vars db_alignp_t_decl"
ac_subst_vars="$ac_subst_vars HAVE__BOOL"
ac_subst_vars="$ac_subst_vars STDBOOL_H"
ac_subst_vars="$ac_subst_vars X11VERSION"
ac_subst_vars="$ac_subst_vars X_CFLAGS"
ac_subst_vars="$ac_subst_vars X_PRE_LIBS"
ac_subst_vars="$ac_subst_vars X_LIBS"
ac_subst_vars="$ac_subst_vars X_EXTRA_LIBS"
ac_subst_vars="$ac_subst_vars x_includes"
ac_subst_vars="$ac_subst_vars x_libraries"
ac_subst_vars="$ac_subst_vars GWX_XAW"
ac_subst_vars="$ac_subst_vars GWX_XM"
ac_subst_vars="$ac_subst_vars MOTIF_CFLAGS"
ac_subst_vars="$ac_subst_vars PCFILES"
ac_subst_vars="$ac_subst_vars X_LDFLAGS"
ac_subst_vars="$ac_subst_vars GWX_X_LIBS"
ac_subst_vars="$ac_subst_vars GWX_XEXT_LIBS"
ac_subst_vars="$ac_subst_vars GDK_WLIBS"
ac_subst_vars="$ac_subst_vars USE_NLS"
ac_subst_vars="$ac_subst_vars STRIP_DUMMY"
ac_subst_vars="$ac_subst_vars STRIP_BEGIN"
ac_subst_vars="$ac_subst_vars STRIP_END"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_GLIB2"
ac_subst_vars="$ac_subst_vars TRIO_LIBS"
ac_subst_vars="$ac_subst_vars GWX_TRIO"
ac_subst_vars="$ac_subst_vars G_MODULE_SUPPORTED"
ac_subst_vars="$ac_subst_vars G_MODULE_IMPL"
ac_subst_vars="$ac_subst_vars G_MODULE_LIBS"
ac_subst_vars="$ac_subst_vars G_MODULE_LIBS_EXTRA"
ac_subst_vars="$ac_subst_vars G_MODULE_PLUGIN_LIBS"
ac_subst_vars="$ac_subst_vars G_MODULE_LDFLAGS"
ac_subst_vars="$ac_subst_vars G_MODULE_HAVE_DLERROR"
ac_subst_vars="$ac_subst_vars G_MODULE_NEED_USCORE"
ac_subst_vars="$ac_subst_vars G_MODULE_BROKEN_RTLD_GLOBAL"
ac_subst_vars="$ac_subst_vars DLLIBS"
ac_subst_vars="$ac_subst_vars DLLDFLAGS"
ac_subst_vars="$ac_subst_vars SYSSOCKLIBS"
ac_subst_vars="$ac_subst_vars SOCKLIBS"
ac_subst_vars="$ac_subst_vars MATHLIB"
ac_subst_vars="$ac_subst_vars CRYPT_LIB"
ac_subst_vars="$ac_subst_vars RANDOM_FILE"
ac_subst_vars="$ac_subst_vars ALLOCA"
ac_subst_vars="$ac_subst_vars MAXPATHLEN"
ac_subst_vars="$ac_subst_vars TT_FILE_COMPONENT"
ac_subst_vars="$ac_subst_vars TT2_FILE_COMPONENT"
ac_subst_vars="$ac_subst_vars LIBICONV"
ac_subst_vars="$ac_subst_vars MISSING_FUNCS"
ac_subst_vars="$ac_subst_vars GLDFLAG_MISSING_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_MISSING"
ac_subst_vars="$ac_subst_vars GINCLUDE_MISSING"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_EXPAT"
ac_subst_vars="$ac_subst_vars GHAVE_EXPAT"
ac_subst_vars="$ac_subst_vars GLDFLAG_EXPAT"
ac_subst_vars="$ac_subst_vars GLDFLAG_EXPAT_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_EXPAT"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_EXPAT_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_EXPAT"
ac_subst_vars="$ac_subst_vars EXPAT_MAJOR_VERSION"
ac_subst_vars="$ac_subst_vars EXPAT_MINOR_VERSION"
ac_subst_vars="$ac_subst_vars EXPAT_EDIT"
ac_subst_vars="$ac_subst_vars EXPAT_FILESRC"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_GETTEXT"
ac_subst_vars="$ac_subst_vars GHAVE_GETTEXT"
ac_subst_vars="$ac_subst_vars GLDFLAG_GETTEXT"
ac_subst_vars="$ac_subst_vars GLDFLAG_GETTEXT_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GETTEXT"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GETTEXT_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_GETTEXT"
ac_subst_vars="$ac_subst_vars GETTEXT_CFLAGS"
ac_subst_vars="$ac_subst_vars GETTEXT_PACKAGE"
ac_subst_vars="$ac_subst_vars GETTEXT_VERSION"
ac_subst_vars="$ac_subst_vars CATOBJEXT"
ac_subst_vars="$ac_subst_vars INSTOBJEXT"
ac_subst_vars="$ac_subst_vars DATADIRNAME"
ac_subst_vars="$ac_subst_vars I18NLIBS"
ac_subst_vars="$ac_subst_vars MSGFMT"
ac_subst_vars="$ac_subst_vars GMSGFMT"
ac_subst_vars="$ac_subst_vars MSGMERGE"
ac_subst_vars="$ac_subst_vars XGETTEXT"
ac_subst_vars="$ac_subst_vars GWXMSGFMT"
ac_subst_vars="$ac_subst_vars GWXGMSGFMT"
ac_subst_vars="$ac_subst_vars GWXMSGMERGE"
ac_subst_vars="$ac_subst_vars GWXXGETTEXT"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_ZLIB"
ac_subst_vars="$ac_subst_vars GHAVE_ZLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_ZLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_ZLIB_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_ZLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_ZLIB_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_ZLIB"
ac_subst_vars="$ac_subst_vars ZLIBCFLAGS"
ac_subst_vars="$ac_subst_vars ZLIBASMS"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_BZIP2"
ac_subst_vars="$ac_subst_vars GHAVE_BZIP2"
ac_subst_vars="$ac_subst_vars GLDFLAG_BZIP2"
ac_subst_vars="$ac_subst_vars GLDFLAG_BZIP2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_BZIP2"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_BZIP2_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_BZIP2"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_JPEG"
ac_subst_vars="$ac_subst_vars GHAVE_JPEG"
ac_subst_vars="$ac_subst_vars GLDFLAG_JPEG"
ac_subst_vars="$ac_subst_vars GLDFLAG_JPEG_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_JPEG"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_JPEG_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_JPEG"
ac_subst_vars="$ac_subst_vars CJPEG_PROG"
ac_subst_vars="$ac_subst_vars DJPEG_PROG"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_JASPER"
ac_subst_vars="$ac_subst_vars GHAVE_JASPER"
ac_subst_vars="$ac_subst_vars GLDFLAG_JASPER"
ac_subst_vars="$ac_subst_vars GLDFLAG_JASPER_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_JASPER"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_JASPER_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_JASPER"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_JBIG"
ac_subst_vars="$ac_subst_vars GHAVE_JBIG"
ac_subst_vars="$ac_subst_vars GLDFLAG_JBIG"
ac_subst_vars="$ac_subst_vars GLDFLAG_JBIG_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_JBIG"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_JBIG_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_JBIG"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_TIFF"
ac_subst_vars="$ac_subst_vars GHAVE_TIFF"
ac_subst_vars="$ac_subst_vars GLDFLAG_TIFF"
ac_subst_vars="$ac_subst_vars GLDFLAG_TIFF_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_TIFF"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_TIFF_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_TIFF"
ac_subst_vars="$ac_subst_vars HOSTFILLORDER"
ac_subst_vars="$ac_subst_vars TIFFPNMPROGS"
ac_subst_vars="$ac_subst_vars TIFFPNMSRCS"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_PNG"
ac_subst_vars="$ac_subst_vars GHAVE_PNG"
ac_subst_vars="$ac_subst_vars GLDFLAG_PNG"
ac_subst_vars="$ac_subst_vars GLDFLAG_PNG_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_PNG"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_PNG_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_PNG"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_LCMS"
ac_subst_vars="$ac_subst_vars GHAVE_LCMS"
ac_subst_vars="$ac_subst_vars GLDFLAG_LCMS"
ac_subst_vars="$ac_subst_vars GLDFLAG_LCMS_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_LCMS"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_LCMS_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_LCMS"
ac_subst_vars="$ac_subst_vars LCMS_EXTRA"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_MNG"
ac_subst_vars="$ac_subst_vars GHAVE_MNG"
ac_subst_vars="$ac_subst_vars GLDFLAG_MNG"
ac_subst_vars="$ac_subst_vars GLDFLAG_MNG_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_MNG"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_MNG_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_MNG"
ac_subst_vars="$ac_subst_vars MNGDEFS"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_XPM"
ac_subst_vars="$ac_subst_vars GHAVE_XPM"
ac_subst_vars="$ac_subst_vars GLDFLAG_XPM"
ac_subst_vars="$ac_subst_vars GLDFLAG_XPM_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_XPM"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_XPM_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_XPM"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_NETPBM"
ac_subst_vars="$ac_subst_vars GHAVE_NETPBM"
ac_subst_vars="$ac_subst_vars GLDFLAG_NETPBM"
ac_subst_vars="$ac_subst_vars GLDFLAG_NETPBM_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_NETPBM"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_NETPBM_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_NETPBM"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_PBM"
ac_subst_vars="$ac_subst_vars NETPBM_PATH"
ac_subst_vars="$ac_subst_vars NETPBM_VERSION"
ac_subst_vars="$ac_subst_vars NETPBMTGT"
ac_subst_vars="$ac_subst_vars NETPBMMERGED"
ac_subst_vars="$ac_subst_vars NETPBMJPEG"
ac_subst_vars="$ac_subst_vars NETPBMXSRC"
ac_subst_vars="$ac_subst_vars NETPBMINCS"
ac_subst_vars="$ac_subst_vars NETPBMLIBS"
ac_subst_vars="$ac_subst_vars NETPBMXTRA"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_GIFLIB"
ac_subst_vars="$ac_subst_vars GHAVE_GIFLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_GIFLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_GIFLIB_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GIFLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GIFLIB_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_GIFLIB"
ac_subst_vars="$ac_subst_vars GIFLIB_DEVX11"
ac_subst_vars="$ac_subst_vars GIFLIB_DEVSGI"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_COMPFACE"
ac_subst_vars="$ac_subst_vars GHAVE_COMPFACE"
ac_subst_vars="$ac_subst_vars GLDFLAG_COMPFACE"
ac_subst_vars="$ac_subst_vars GLDFLAG_COMPFACE_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_COMPFACE"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_COMPFACE_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_COMPFACE"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_MPEGLIB"
ac_subst_vars="$ac_subst_vars GHAVE_MPEGLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_MPEGLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_MPEGLIB_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_MPEGLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_MPEGLIB_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_MPEGLIB"
ac_subst_vars="$ac_subst_vars MPEGLIBDSRCS"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_READLINE"
ac_subst_vars="$ac_subst_vars GHAVE_READLINE"
ac_subst_vars="$ac_subst_vars GLDFLAG_READLINE"
ac_subst_vars="$ac_subst_vars GLDFLAG_READLINE_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_READLINE"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_READLINE_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_READLINE"
ac_subst_vars="$ac_subst_vars GINCLUDE_HISTORY"
ac_subst_vars="$ac_subst_vars GLDFLAG_HISTORY"
ac_subst_vars="$ac_subst_vars GLDFLAG_HISTORY_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_HISTORY"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_HISTORY_L"
ac_subst_vars="$ac_subst_vars TERMCAP_LIB"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_XAW3D"
ac_subst_vars="$ac_subst_vars GHAVE_XAW3D"
ac_subst_vars="$ac_subst_vars GLDFLAG_XAW3D"
ac_subst_vars="$ac_subst_vars GLDFLAG_XAW3D_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_XAW3D"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_XAW3D_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_XAW3D"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_SLANG"
ac_subst_vars="$ac_subst_vars GHAVE_SLANG"
ac_subst_vars="$ac_subst_vars GLDFLAG_SLANG"
ac_subst_vars="$ac_subst_vars GLDFLAG_SLANG_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_SLANG"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_SLANG_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_SLANG"
ac_subst_vars="$ac_subst_vars slang_major_version"
ac_subst_vars="$ac_subst_vars slang_minor_version"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_GDBM"
ac_subst_vars="$ac_subst_vars GHAVE_GDBM"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDBM"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDBM_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDBM"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDBM_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_GDBM"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_DB"
ac_subst_vars="$ac_subst_vars GHAVE_DB"
ac_subst_vars="$ac_subst_vars GLDFLAG_DB"
ac_subst_vars="$ac_subst_vars GLDFLAG_DB_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_DB"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_DB_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_DB"
ac_subst_vars="$ac_subst_vars db_int_def"
ac_subst_vars="$ac_subst_vars cxx_have_stdheaders"
ac_subst_vars="$ac_subst_vars DBXTRASRC"
ac_subst_vars="$ac_subst_vars DBXTRAHDR"
ac_subst_vars="$ac_subst_vars DBXTRAHPP"
ac_subst_vars="$ac_subst_vars DBXTRATGT"
ac_subst_vars="$ac_subst_vars DBXTRAPRG"
ac_subst_vars="$ac_subst_vars DBXTRAPRGSRC"
ac_subst_vars="$ac_subst_vars DBRPCLIB"
ac_subst_vars="$ac_subst_vars DB_VERSION_MAJOR"
ac_subst_vars="$ac_subst_vars DB_VERSION_MINOR"
ac_subst_vars="$ac_subst_vars DB_VERSION_PATCH"
ac_subst_vars="$ac_subst_vars DB_RELEASE_DATE"
ac_subst_vars="$ac_subst_vars DB_VERSION_STRING"
ac_subst_vars="$ac_subst_vars DB_VERSION_UNIQUE_NAME"
ac_subst_vars="$ac_subst_vars DBLIBS"
ac_subst_vars="$ac_subst_vars GLDFLAG_DBCXX"
ac_subst_vars="$ac_subst_vars GLDFLAG_DBCXX_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_DBCXX"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_DBCXX_L"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_XML2"
ac_subst_vars="$ac_subst_vars GHAVE_XML2"
ac_subst_vars="$ac_subst_vars GLDFLAG_XML2"
ac_subst_vars="$ac_subst_vars GLDFLAG_XML2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_XML2"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_XML2_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_XML2"
ac_subst_vars="$ac_subst_vars LIBXML_VERSION"
ac_subst_vars="$ac_subst_vars LIBXML_VERSION_NUMBER"
ac_subst_vars="$ac_subst_vars XML2_CFLAGS"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_XSLT"
ac_subst_vars="$ac_subst_vars GHAVE_XSLT"
ac_subst_vars="$ac_subst_vars GLDFLAG_XSLT"
ac_subst_vars="$ac_subst_vars GLDFLAG_XSLT_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_XSLT"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_XSLT_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_XSLT"
ac_subst_vars="$ac_subst_vars GINCLUDE_EXSLT"
ac_subst_vars="$ac_subst_vars GLDFLAG_EXSLT"
ac_subst_vars="$ac_subst_vars GLDFLAG_EXSLT_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_EXSLT"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_EXSLT_L"
ac_subst_vars="$ac_subst_vars XSLTVERSION"
ac_subst_vars="$ac_subst_vars EXSLTVERSION"
ac_subst_vars="$ac_subst_vars LIBXSLT_VERSION_NUMBER"
ac_subst_vars="$ac_subst_vars LIBEXSLT_VERSION_NUMBER"
ac_subst_vars="$ac_subst_vars WITH_XSLT_DEBUG"
ac_subst_vars="$ac_subst_vars WITH_DEBUGGER"
ac_subst_vars="$ac_subst_vars WITH_XSLT_MEM_DEBUG"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_FREETYPE1"
ac_subst_vars="$ac_subst_vars GHAVE_FREETYPE1"
ac_subst_vars="$ac_subst_vars GLDFLAG_FREETYPE1"
ac_subst_vars="$ac_subst_vars GLDFLAG_FREETYPE1_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_FREETYPE1"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_FREETYPE1_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_FREETYPE1"
ac_subst_vars="$ac_subst_vars TT_EXTEND_SRC"
ac_subst_vars="$ac_subst_vars TT_EXTEND_HDR"
ac_subst_vars="$ac_subst_vars TTF_VERSION"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_FREETYPE2"
ac_subst_vars="$ac_subst_vars GHAVE_FREETYPE2"
ac_subst_vars="$ac_subst_vars GLDFLAG_FREETYPE2"
ac_subst_vars="$ac_subst_vars GLDFLAG_FREETYPE2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_FREETYPE2"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_FREETYPE2_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_FREETYPE2"
ac_subst_vars="$ac_subst_vars FREETYPE_VERSION"
ac_subst_vars="$ac_subst_vars FREETYPE_LTVERSION"
ac_subst_vars="$ac_subst_vars GWX_FT2_FORCE_INT64"
ac_subst_vars="$ac_subst_vars GWX_FT2_GZIP"
ac_subst_vars="$ac_subst_vars GWX_FT2_PS_NAMES"
ac_subst_vars="$ac_subst_vars GWX_FT2_ADOBE_NAMES"
ac_subst_vars="$ac_subst_vars GWX_FT2_INCREMENTAL"
ac_subst_vars="$ac_subst_vars GWX_FT2_DEBUG_ERROR"
ac_subst_vars="$ac_subst_vars GWX_FT2_DEBUG_TRACE"
ac_subst_vars="$ac_subst_vars GWX_FT2_DEBUG_MEM"
ac_subst_vars="$ac_subst_vars GWX_FT2_MODULE_ERRS"
ac_subst_vars="$ac_subst_vars GWX_FT2_EMB_BITMAPS"
ac_subst_vars="$ac_subst_vars GWX_FT2_TTPSNAMES"
ac_subst_vars="$ac_subst_vars GWX_FT2_TTSFNTNAMES"
ac_subst_vars="$ac_subst_vars GWX_FT2_BYTECODE"
ac_subst_vars="$ac_subst_vars GWX_FT2_NO_AFM"
ac_subst_vars="$ac_subst_vars GWX_FT2_NO_MULTIMASTER"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_GD1"
ac_subst_vars="$ac_subst_vars GHAVE_GD1"
ac_subst_vars="$ac_subst_vars GLDFLAG_GD1"
ac_subst_vars="$ac_subst_vars GLDFLAG_GD1_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GD1"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GD1_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_GD1"
ac_subst_vars="$ac_subst_vars GD1VERSION"
ac_subst_vars="$ac_subst_vars GD1UNDEF"
ac_subst_vars="$ac_subst_vars GD1INCLUDES"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_GD2"
ac_subst_vars="$ac_subst_vars GHAVE_GD2"
ac_subst_vars="$ac_subst_vars GLDFLAG_GD2"
ac_subst_vars="$ac_subst_vars GLDFLAG_GD2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GD2"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GD2_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_GD2"
ac_subst_vars="$ac_subst_vars GD2VERSION"
ac_subst_vars="$ac_subst_vars GDLIB_MAJOR"
ac_subst_vars="$ac_subst_vars GDLIB_MINOR"
ac_subst_vars="$ac_subst_vars GDLIB_REVISION"
ac_subst_vars="$ac_subst_vars GD2UNDEF"
ac_subst_vars="$ac_subst_vars GD2INCLUDES"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_FONTCONFIG"
ac_subst_vars="$ac_subst_vars GHAVE_FONTCONFIG"
ac_subst_vars="$ac_subst_vars GLDFLAG_FONTCONFIG"
ac_subst_vars="$ac_subst_vars GLDFLAG_FONTCONFIG_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_FONTCONFIG"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_FONTCONFIG_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_FONTCONFIG"
ac_subst_vars="$ac_subst_vars FC_DEFAULT_FONTS"
ac_subst_vars="$ac_subst_vars FONTCONFDIR"
ac_subst_vars="$ac_subst_vars FONTCONFIG_VERSION"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_GTKPLUS1"
ac_subst_vars="$ac_subst_vars GHAVE_GTKPLUS1"
ac_subst_vars="$ac_subst_vars GLDFLAG_GTKPLUS1"
ac_subst_vars="$ac_subst_vars GLDFLAG_GTKPLUS1_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GTKPLUS1"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GTKPLUS1_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_GTKPLUS1"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_GTKPLUS2"
ac_subst_vars="$ac_subst_vars GHAVE_GTKPLUS2"
ac_subst_vars="$ac_subst_vars GLDFLAG_GTKPLUS2"
ac_subst_vars="$ac_subst_vars GLDFLAG_GTKPLUS2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GTKPLUS2"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GTKPLUS2_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_GTKPLUS2"
ac_subst_vars="$ac_subst_vars GTKISSMALL"
ac_subst_vars="$ac_subst_vars GTHREAD_COMPILE_IMPL_DEFINES"
ac_subst_vars="$ac_subst_vars G_THREAD_CFLAGS"
ac_subst_vars="$ac_subst_vars G_THREAD_LIBS"
ac_subst_vars="$ac_subst_vars G_THREAD_LIBS_FOR_GTHREAD"
ac_subst_vars="$ac_subst_vars G_THREAD_LIBS_EXTRA"
ac_subst_vars="$ac_subst_vars CFLAGS_XIM"
ac_subst_vars="$ac_subst_vars GINCLUDE_GDK1"
ac_subst_vars="$ac_subst_vars GINCLUDE_GLIB1"
ac_subst_vars="$ac_subst_vars GLDFLAG_GLIB1"
ac_subst_vars="$ac_subst_vars GLDFLAG_GLIB1_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GLIB1"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GLIB1_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_GMODULE1"
ac_subst_vars="$ac_subst_vars GLDFLAG_GMODULE1_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GMODULE1"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GMODULE1_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_GTHREAD1"
ac_subst_vars="$ac_subst_vars GLDFLAG_GTHREAD1_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GTHREAD1"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GTHREAD1_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDK1"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDK1_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDK1"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDK1_L"
ac_subst_vars="$ac_subst_vars GTK1_MAJOR_VERSION"
ac_subst_vars="$ac_subst_vars GTK1_MINOR_VERSION"
ac_subst_vars="$ac_subst_vars GTK1_MICRO_VERSION"
ac_subst_vars="$ac_subst_vars GTK1_INTERFACE_AGE"
ac_subst_vars="$ac_subst_vars GTK1_BINARY_AGE"
ac_subst_vars="$ac_subst_vars GTK1_VERSION"
ac_subst_vars="$ac_subst_vars GLIB1_MAJOR_VERSION"
ac_subst_vars="$ac_subst_vars GLIB1_MINOR_VERSION"
ac_subst_vars="$ac_subst_vars GLIB1_MICRO_VERSION"
ac_subst_vars="$ac_subst_vars GLIB1_INTERFACE_AGE"
ac_subst_vars="$ac_subst_vars GLIB1_BINARY_AGE"
ac_subst_vars="$ac_subst_vars GLIB1_VERSION"
ac_subst_vars="$ac_subst_vars IMLIB_GDK"
ac_subst_vars="$ac_subst_vars GTK1GETTEXT_PACKAGE"
ac_subst_vars="$ac_subst_vars GLIB2_MAJOR_VERSION"
ac_subst_vars="$ac_subst_vars GLIB2_MINOR_VERSION"
ac_subst_vars="$ac_subst_vars GLIB2_MICRO_VERSION"
ac_subst_vars="$ac_subst_vars GLIB2_INTERFACE_AGE"
ac_subst_vars="$ac_subst_vars GLIB2_BINARY_AGE"
ac_subst_vars="$ac_subst_vars GLIB2_VERSION"
ac_subst_vars="$ac_subst_vars GINCLUDE_GLIB2"
ac_subst_vars="$ac_subst_vars GINCLUDE_GMODULE2"
ac_subst_vars="$ac_subst_vars GINCLUDE_GOBJECT2"
ac_subst_vars="$ac_subst_vars GINCLUDE_GTHREAD2"
ac_subst_vars="$ac_subst_vars GLDFLAG_GLIB2"
ac_subst_vars="$ac_subst_vars GLDFLAG_GLIB2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GLIB2"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GLIB2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_GMODULE2"
ac_subst_vars="$ac_subst_vars GLDFLAG_GMODULE2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GMODULE2"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GMODULE2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_GTHREAD2"
ac_subst_vars="$ac_subst_vars GLDFLAG_GTHREAD2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GTHREAD2"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GTHREAD2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_GOBJECT2"
ac_subst_vars="$ac_subst_vars GLDFLAG_GOBJECT2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GOBJECT2"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GOBJECT2_L"
ac_subst_vars="$ac_subst_vars ENABLE_GC_FRIENDLY"
ac_subst_vars="$ac_subst_vars DISABLE_MEM_POOLS"
ac_subst_vars="$ac_subst_vars GLIB2GETTEXT_PACKAGE"
ac_subst_vars="$ac_subst_vars GLIB2_LOCALE_DIR"
ac_subst_vars="$ac_subst_vars ICONV_LIBS"
ac_subst_vars="$ac_subst_vars PANGO_MAJOR_VERSION"
ac_subst_vars="$ac_subst_vars PANGO_MINOR_VERSION"
ac_subst_vars="$ac_subst_vars PANGO_MICRO_VERSION"
ac_subst_vars="$ac_subst_vars PANGO_VERSION"
ac_subst_vars="$ac_subst_vars PANGO_BINARY_AGE"
ac_subst_vars="$ac_subst_vars PANGO_INTERFACE_AGE"
ac_subst_vars="$ac_subst_vars PANGO_API_VERSION"
ac_subst_vars="$ac_subst_vars PANGO_MODULE_VERSION"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_XFT"
ac_subst_vars="$ac_subst_vars XFT_LIBS"
ac_subst_vars="$ac_subst_vars PANGOFT2"
ac_subst_vars="$ac_subst_vars PANGOXFT"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_PANGO"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_PANGOX"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_PANGOXFT"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_PANGOFT2"
ac_subst_vars="$ac_subst_vars GLDFLAG_PANGO"
ac_subst_vars="$ac_subst_vars GLDFLAG_PANGO_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_PANGO"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_PANGO_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_PANGOX11"
ac_subst_vars="$ac_subst_vars GLDFLAG_PANGOX11_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_PANGOX11"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_PANGOX11_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_PANGOXFT"
ac_subst_vars="$ac_subst_vars GLDFLAG_PANGOXFT_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_PANGOXFT"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_PANGOXFT_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_PANGOFT2"
ac_subst_vars="$ac_subst_vars GLDFLAG_PANGOFT2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_PANGOFT2"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_PANGOFT2_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_PANGO"
ac_subst_vars="$ac_subst_vars ATK_MAJOR_VERSION"
ac_subst_vars="$ac_subst_vars ATK_MINOR_VERSION"
ac_subst_vars="$ac_subst_vars ATK_MICRO_VERSION"
ac_subst_vars="$ac_subst_vars ATK_VERSION"
ac_subst_vars="$ac_subst_vars ATK_API_VERSION"
ac_subst_vars="$ac_subst_vars ATK_INTERFACE_AGE"
ac_subst_vars="$ac_subst_vars ATK_BINARY_AGE"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_ATK"
ac_subst_vars="$ac_subst_vars GLDFLAG_ATK"
ac_subst_vars="$ac_subst_vars GLDFLAG_ATK_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_ATK"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_ATK_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_ATK"
ac_subst_vars="$ac_subst_vars ATKGETTEXT_PACKAGE"
ac_subst_vars="$ac_subst_vars GTK2_MAJOR_VERSION"
ac_subst_vars="$ac_subst_vars GTK2_MINOR_VERSION"
ac_subst_vars="$ac_subst_vars GTK2_MICRO_VERSION"
ac_subst_vars="$ac_subst_vars GTK2_INTERFACE_AGE"
ac_subst_vars="$ac_subst_vars GTK2_BINARY_AGE"
ac_subst_vars="$ac_subst_vars GTK2_API_VERSION"
ac_subst_vars="$ac_subst_vars GTK2_VERSION"
ac_subst_vars="$ac_subst_vars GTK2_BINARY_VERSION"
ac_subst_vars="$ac_subst_vars GDK_PIXBUF_MAJOR"
ac_subst_vars="$ac_subst_vars GDK_PIXBUF_MINOR"
ac_subst_vars="$ac_subst_vars GDK_PIXBUF_MICRO"
ac_subst_vars="$ac_subst_vars GDK_PIXBUF_VERSION"
ac_subst_vars="$ac_subst_vars GTK2GETTEXT_PACKAGE"
ac_subst_vars="$ac_subst_vars GTK2_LOCALE_DIR"
ac_subst_vars="$ac_subst_vars GDKMMX"
ac_subst_vars="$ac_subst_vars gdktarget"
ac_subst_vars="$ac_subst_vars MKGDKTARGET"
ac_subst_vars="$ac_subst_vars GDKFBMGR"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_GDK2PIXBUF"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_GDK2"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDK2PIXBUF"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDK2PIXBUF_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDK2PIXBUF"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDK2PIXBUF_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDK2X11"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDK2X11_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDK2X11"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDK2X11_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDK2LFB"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDK2LFB_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDK2LFB"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDK2LFB_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDK2"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDK2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDK2"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDK2_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_GDK2"
ac_subst_vars="$ac_subst_vars GINCLUDE_GDK2PIXBUF"
ac_subst_vars="$ac_subst_vars xinput_progs"
ac_subst_vars="$ac_subst_vars GDK2XISRCS"
ac_subst_vars="$ac_subst_vars GTK2XIMODULE"
ac_subst_vars="$ac_subst_vars GLDFLAG_GTKPLUS"
ac_subst_vars="$ac_subst_vars GLDFLAG_GTKPLUS_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GTKPLUS"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GTKPLUS_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_GTKPLUS"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDK"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDK_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDK"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDK_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_GDK"
ac_subst_vars="$ac_subst_vars GLDFLAG_GLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_GLIB_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GLIB_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_GLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_GMODULE"
ac_subst_vars="$ac_subst_vars GLDFLAG_GMODULE_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GMODULE"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GMODULE_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_GTHREAD"
ac_subst_vars="$ac_subst_vars GLDFLAG_GTHREAD_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GTHREAD"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GTHREAD_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_GOBJECT"
ac_subst_vars="$ac_subst_vars GLDFLAG_GOBJECT_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GOBJECT"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GOBJECT_L"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_IMLIB"
ac_subst_vars="$ac_subst_vars GHAVE_IMLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_IMLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_IMLIB_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_IMLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_IMLIB_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_IMLIB"
ac_subst_vars="$ac_subst_vars GINCLUDE_GDKIMLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDKIMLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDKIMLIB"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDKIMLIB_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDKIMLIB_L"
ac_subst_vars="$ac_subst_vars GHAVE_GDKIMLIB"
ac_subst_vars="$ac_subst_vars IMLIB_VERSION"
ac_subst_vars="$ac_subst_vars CONVERT_PATH"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_GDOME2"
ac_subst_vars="$ac_subst_vars GHAVE_GDOME2"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDOME2"
ac_subst_vars="$ac_subst_vars GLDFLAG_GDOME2_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDOME2"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GDOME2_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_GDOME2"
ac_subst_vars="$ac_subst_vars GDOME2_CFLAGS"
ac_subst_vars="$ac_subst_vars GDOME2GLIBINC"
ac_subst_vars="$ac_subst_vars GDOME2_VERSION"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_MD5"
ac_subst_vars="$ac_subst_vars GHAVE_MD5"
ac_subst_vars="$ac_subst_vars GLDFLAG_MD5"
ac_subst_vars="$ac_subst_vars GLDFLAG_MD5_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_MD5"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_MD5_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_MD5"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_RAND"
ac_subst_vars="$ac_subst_vars GHAVE_RAND"
ac_subst_vars="$ac_subst_vars GLDFLAG_RAND"
ac_subst_vars="$ac_subst_vars GLDFLAG_RAND_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_RAND"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_RAND_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_RAND"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_OPENSSL"
ac_subst_vars="$ac_subst_vars GHAVE_OPENSSL"
ac_subst_vars="$ac_subst_vars GLDFLAG_OPENSSL"
ac_subst_vars="$ac_subst_vars GLDFLAG_OPENSSL_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_OPENSSL"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_OPENSSL_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_OPENSSL"
ac_subst_vars="$ac_subst_vars SSL_LIBS"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_OPENSLP"
ac_subst_vars="$ac_subst_vars GHAVE_OPENSLP"
ac_subst_vars="$ac_subst_vars GLDFLAG_OPENSLP"
ac_subst_vars="$ac_subst_vars GLDFLAG_OPENSLP_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_OPENSLP"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_OPENSLP_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_OPENSLP"
ac_subst_vars="$ac_subst_vars SLPVERSION"
ac_subst_vars="$ac_subst_vars SLPV1SRCS"
ac_subst_vars="$ac_subst_vars SLPDV1SRCS"
ac_subst_vars="$ac_subst_vars SLPDSRCS"
ac_subst_vars="$ac_subst_vars SLPSECSRCS"
ac_subst_vars="$ac_subst_vars SLPDSECSRCS"
ac_subst_vars="$ac_subst_vars SLPDEFS"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_XMLSEC"
ac_subst_vars="$ac_subst_vars GHAVE_XMLSEC"
ac_subst_vars="$ac_subst_vars GLDFLAG_XMLSEC"
ac_subst_vars="$ac_subst_vars GLDFLAG_XMLSEC_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_XMLSEC"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_XMLSEC_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_XMLSEC"
ac_subst_vars="$ac_subst_vars XMLSEC_VERSION_MAJOR"
ac_subst_vars="$ac_subst_vars XMLSEC_VERSION_MINOR"
ac_subst_vars="$ac_subst_vars XMLSEC_VERSION_SUBMINOR"
ac_subst_vars="$ac_subst_vars XMLSEC_VERSION"
ac_subst_vars="$ac_subst_vars XMLSEC_VERSION_INFO"
ac_subst_vars="$ac_subst_vars XMLSEC_MIN_XMLVER"
ac_subst_vars="$ac_subst_vars XMLSEC_MIN_XSLTVER"
ac_subst_vars="$ac_subst_vars XMLSEC_DEFINES"
ac_subst_vars="$ac_subst_vars XMLSEC_PACKAGE"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_SASL"
ac_subst_vars="$ac_subst_vars GHAVE_SASL"
ac_subst_vars="$ac_subst_vars GLDFLAG_SASL"
ac_subst_vars="$ac_subst_vars GLDFLAG_SASL_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_SASL"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_SASL_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_SASL"
ac_subst_vars="$ac_subst_vars SASL_VERSION"
ac_subst_vars="$ac_subst_vars SASL_LDAPLIBS"
ac_subst_vars="$ac_subst_vars SASLDB"
ac_subst_vars="$ac_subst_vars SASLDBLIB"
ac_subst_vars="$ac_subst_vars SASLXSRCS"
ac_subst_vars="$ac_subst_vars SASLAUTHD"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_IDL"
ac_subst_vars="$ac_subst_vars GHAVE_IDL"
ac_subst_vars="$ac_subst_vars GLDFLAG_IDL"
ac_subst_vars="$ac_subst_vars GLDFLAG_IDL_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_IDL"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_IDL_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_IDL"
ac_subst_vars="$ac_subst_vars LIBIDL_MAJOR_VERSION"
ac_subst_vars="$ac_subst_vars LIBIDL_MINOR_VERSION"
ac_subst_vars="$ac_subst_vars LIBIDL_MICRO_VERSION"
ac_subst_vars="$ac_subst_vars LIBIDL_VERSION"
ac_subst_vars="$ac_subst_vars HAVE_WCSTR_H"
ac_subst_vars="$ac_subst_vars HAVE_WCHAR_H"
ac_subst_vars="$ac_subst_vars IDLCFLAGS"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_MM"
ac_subst_vars="$ac_subst_vars GHAVE_MM"
ac_subst_vars="$ac_subst_vars GLDFLAG_MM"
ac_subst_vars="$ac_subst_vars GLDFLAG_MM_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_MM"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_MM_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_MM"
ac_subst_vars="$ac_subst_vars MM_VERSION_STRING"
ac_subst_vars="$ac_subst_vars MM_VERSION"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_PCRE"
ac_subst_vars="$ac_subst_vars GHAVE_PCRE"
ac_subst_vars="$ac_subst_vars GLDFLAG_PCRE"
ac_subst_vars="$ac_subst_vars GLDFLAG_PCRE_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_PCRE"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_PCRE_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_PCRE"
ac_subst_vars="$ac_subst_vars PCRE_MAJOR"
ac_subst_vars="$ac_subst_vars PCRE_MINOR"
ac_subst_vars="$ac_subst_vars PCRE_VERSION"
ac_subst_vars="$ac_subst_vars PCRE_DATE"
ac_subst_vars="$ac_subst_vars PCRE_UTF8"
ac_subst_vars="$ac_subst_vars PCRE_NEWLINE"
ac_subst_vars="$ac_subst_vars PCRE_POSIX"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_GHTTP"
ac_subst_vars="$ac_subst_vars GHAVE_GHTTP"
ac_subst_vars="$ac_subst_vars GLDFLAG_GHTTP"
ac_subst_vars="$ac_subst_vars GLDFLAG_GHTTP_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GHTTP"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_GHTTP_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_GHTTP"
ac_subst_vars="$ac_subst_vars GHTTP_MAJOR_VERSION"
ac_subst_vars="$ac_subst_vars GHTTP_MINOR_VERSION"
ac_subst_vars="$ac_subst_vars GHTTP_MICRO_VERSION"
ac_subst_vars="$ac_subst_vars GHTTP_VERSION"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_LIBWWW"
ac_subst_vars="$ac_subst_vars GHAVE_LIBWWW"
ac_subst_vars="$ac_subst_vars GLDFLAG_LIBWWW"
ac_subst_vars="$ac_subst_vars GLDFLAG_LIBWWW_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_LIBWWW"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_LIBWWW_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_LIBWWW"
ac_subst_vars="$ac_subst_vars LIBWWW_VERSION"
ac_subst_vars="$ac_subst_vars LIBWWW_ICONDIR"
ac_subst_vars="$ac_subst_vars have_resolv_conf"
ac_subst_vars="$ac_subst_vars LIBWWW_SRCS"
ac_subst_vars="$ac_subst_vars LIBWWW_LIBS"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_CURL"
ac_subst_vars="$ac_subst_vars GHAVE_CURL"
ac_subst_vars="$ac_subst_vars GLDFLAG_CURL"
ac_subst_vars="$ac_subst_vars GLDFLAG_CURL_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_CURL"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_CURL_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_CURL"
ac_subst_vars="$ac_subst_vars CURL_VERSION"
ac_subst_vars="$ac_subst_vars CURL_DISABLE_HTTP"
ac_subst_vars="$ac_subst_vars CURL_DISABLE_GOPHER"
ac_subst_vars="$ac_subst_vars CURL_DISABLE_FTP"
ac_subst_vars="$ac_subst_vars CURL_DISABLE_FILE"
ac_subst_vars="$ac_subst_vars CURL_DISABLE_LDAP"
ac_subst_vars="$ac_subst_vars CURL_DISABLE_TELNET"
ac_subst_vars="$ac_subst_vars CURL_CA_BUNDLE"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_JAVASCRIPT"
ac_subst_vars="$ac_subst_vars GHAVE_JAVASCRIPT"
ac_subst_vars="$ac_subst_vars GLDFLAG_JAVASCRIPT"
ac_subst_vars="$ac_subst_vars GLDFLAG_JAVASCRIPT_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_JAVASCRIPT"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_JAVASCRIPT_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_JAVASCRIPT"
ac_subst_vars="$ac_subst_vars JAVASCRIPT_VERSION"
ac_subst_vars="$ac_subst_vars JSCFLAGS"
ac_subst_vars="$ac_subst_vars JSLDFLAGS"
ac_subst_vars="$ac_subst_vars GWXCFG_DEP_SABLOT"
ac_subst_vars="$ac_subst_vars GHAVE_SABLOT"
ac_subst_vars="$ac_subst_vars GLDFLAG_SABLOT"
ac_subst_vars="$ac_subst_vars GLDFLAG_SABLOT_L"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_SABLOT"
ac_subst_vars="$ac_subst_vars GLDFLAG_DEP_SABLOT_L"
ac_subst_vars="$ac_subst_vars GINCLUDE_SABLOT"
ac_subst_vars="$ac_subst_vars SABLOT_VERSION"
ac_subst_vars="$ac_subst_vars GWXDIRS"
ac_subst_vars="$ac_subst_vars GETTEXT_SONAME"
ac_subst_vars="$ac_subst_vars ZLIB_SONAME"
ac_subst_vars="$ac_subst_vars BZIP2_SONAME"
ac_subst_vars="$ac_subst_vars JPEG_SONAME"
ac_subst_vars="$ac_subst_vars JASPER_SONAME"
ac_subst_vars="$ac_subst_vars TIFF_SONAME"
ac_subst_vars="$ac_subst_vars PNG_SONAME"
ac_subst_vars="$ac_subst_vars MNG_SONAME"
ac_subst_vars="$ac_subst_vars JBIG_SONAME"
ac_subst_vars="$ac_subst_vars FREETYPE1_SONAME"
ac_subst_vars="$ac_subst_vars FREETYPE2_SONAME"
ac_subst_vars="$ac_subst_vars FONTCONFIG_SONAME"
ac_subst_vars="$ac_subst_vars GD1_SONAME"
ac_subst_vars="$ac_subst_vars GD2_SONAME"
ac_subst_vars="$ac_subst_vars GIFLIB_SONAME"
ac_subst_vars="$ac_subst_vars COMPFACE_SONAME"
ac_subst_vars="$ac_subst_vars XPM_SONAME"
ac_subst_vars="$ac_subst_vars MPEGLIB_SONAME"
ac_subst_vars="$ac_subst_vars NETPBM_SONAME"
ac_subst_vars="$ac_subst_vars GTK1_SONAME"
ac_subst_vars="$ac_subst_vars GDK1_SONAME"
ac_subst_vars="$ac_subst_vars GLIB1_SONAME"
ac_subst_vars="$ac_subst_vars GMODULE1_SONAME"
ac_subst_vars="$ac_subst_vars GTHREAD1_SONAME"
ac_subst_vars="$ac_subst_vars GTK2_SONAME"
ac_subst_vars="$ac_subst_vars GDK2PIXBUF_SONAME"
ac_subst_vars="$ac_subst_vars GDK2LFB_SONAME"
ac_subst_vars="$ac_subst_vars GDK2X11_SONAME"
ac_subst_vars="$ac_subst_vars GLIB2_SONAME"
ac_subst_vars="$ac_subst_vars GMODULE2_SONAME"
ac_subst_vars="$ac_subst_vars GTHREAD2_SONAME"
ac_subst_vars="$ac_subst_vars GOBJECT2_SONAME"
ac_subst_vars="$ac_subst_vars PANGO_SONAME"
ac_subst_vars="$ac_subst_vars PANGOX_SONAME"
ac_subst_vars="$ac_subst_vars PANGOXFT_SONAME"
ac_subst_vars="$ac_subst_vars PANGOFT2_SONAME"
ac_subst_vars="$ac_subst_vars ATK_SONAME"
ac_subst_vars="$ac_subst_vars IMLIB_SONAME"
ac_subst_vars="$ac_subst_vars GDKIMLIB_SONAME"
ac_subst_vars="$ac_subst_vars SLANG_SONAME"
ac_subst_vars="$ac_subst_vars READLINE_SONAME"
ac_subst_vars="$ac_subst_vars XAW3DR5_SONAME"
ac_subst_vars="$ac_subst_vars XAW3DR6_SONAME"
ac_subst_vars="$ac_subst_vars GDBM_SONAME"
ac_subst_vars="$ac_subst_vars DB_SONAME"
ac_subst_vars="$ac_subst_vars DBCXX_SONAME"
ac_subst_vars="$ac_subst_vars EXPAT_SONAME"
ac_subst_vars="$ac_subst_vars XML2_SONAME"
ac_subst_vars="$ac_subst_vars XSLT_SONAME"
ac_subst_vars="$ac_subst_vars EXSLT_SONAME"
ac_subst_vars="$ac_subst_vars MD5_SONAME"
ac_subst_vars="$ac_subst_vars RAND_SONAME"
ac_subst_vars="$ac_subst_vars OPENSLP_SONAME"
ac_subst_vars="$ac_subst_vars XMLSEC_SONAME"
ac_subst_vars="$ac_subst_vars SASL_SONAME"
ac_subst_vars="$ac_subst_vars LCMS_SONAME"
ac_subst_vars="$ac_subst_vars GDOME2_SONAME"
ac_subst_vars="$ac_subst_vars IDL_SONAME"
ac_subst_vars="$ac_subst_vars PCRE_SONAME"
ac_subst_vars="$ac_subst_vars MM_SONAME"
ac_subst_vars="$ac_subst_vars GHTTP_SONAME"
ac_subst_vars="$ac_subst_vars LIBWWW_SONAME"
ac_subst_vars="$ac_subst_vars CURL_SONAME"
ac_subst_vars="$ac_subst_vars JAVASCRIPT_SONAME"
ac_subst_vars="$ac_subst_vars SABLOT_SONAME"
ac_subst_vars="$ac_subst_vars MLIBS"
ac_subst_vars="$ac_subst_vars LIBOBJS"
ac_subst_vars="$ac_subst_vars LTLIBOBJS"

ac_subst_files=''

# 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.
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

ac_prev=
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

  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`

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

  case $ac_option in

  -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 | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir=$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" ;;

  -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'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) ac_optarg=yes ;;
    esac
    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 ;;

  -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 ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    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 ;;

  -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'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) ac_optarg=yes ;;
    esac
    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; }; }
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    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 paths.
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 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; }; };;
  esac
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


# 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 its parent.
  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'`
  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
  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_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 <<_ACEOF
\`configure' configures gwxlibs 1.3.1 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 \`..']

_ACEOF

  cat <<_ACEOF
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]
_ACEOF

  cat <<\_ACEOF

X features:
  --x-includes=DIR    X include files are in DIR
  --x-libraries=DIR   X library files are in DIR

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 gwxlibs 1.3.1:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-static=PKGS  build static libraries default=no
  --enable-shared=PKGS  build shared libraries default=yes
  --enable-fast-install=PKGS  optimize for fast installation default=yes
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-included-printf    use included printf default=auto

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-localeprefix=PATH
                          path prefix for locales
  --with-localedir=PATH   locale data dir (LOCALEPREFIX/share/locale)
  --with-localebin=PATH   locale binaries directory (LOCALEPREFIX/bin)
  --with-localebin=PATH   locale library directory (LOCALEPREFIX/lib)
  --with-aclocaldir=PATH  path to autoconf local macro library directory
  --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-x                use the X Window System
  --with-reentrancy       always compile with -D_REENTRANT
  --with-openssl=PREFIX   specify the OpenSSL installation prefix
  --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
  --with-random=FILE      read randomness from FILE (default=/dev/urandom)
  --with-xftconfig-dir=PATH
                          path to system XftConfig file for minixft

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.

_ACEOF
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  ac_popdir=`pwd`
  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`

    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
    else
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi
    cd $ac_popdir
  done
fi

test -n "$ac_init_help" && exit 0
if $ac_init_version; then
  cat <<\_ACEOF
gwxlibs configure 1.3.1
generated by GNU Autoconf 2.57

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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 0
fi
exec 5>config.log
cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by gwxlibs $as_me 1.3.1, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  $ $0 $@

_ACEOF
{
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`

_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

} >&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_sep=
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_sep'$ac_arg'"
      # Get rid of the leading space.
      ac_sep=" "
      ;;
    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: Be sure not to use single quotes in there, as some shells,
# such as our DU 5.0 friend, will then `close' the trap.
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,
{
  (set) 2>&1 |
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      sed -n \
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
    *)
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
}
    echo

    cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=$`echo $ac_var`
      echo "$ac_var='"'"'$ac_val'"'"'"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat <<\_ASBOX
## ------------- ##
## Output files. ##
## ------------- ##
_ASBOX
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=$`echo $ac_var`
        echo "$ac_var='"'"'$ac_val'"'"'"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      sed "/^$/d" confdefs.h | sort
      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 &&
    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 -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >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 -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
fi
for ac_site_file in $CONFIG_SITE; 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 `(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:$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





























if test ! -f gwxcfg.h -o ! -f gwxoscfg.h; then
cat <<EOF
ERROR: You have chosen to configure GWXLIBS in a directory other than
       the base source directory, but forgot to copy in gwxcfg.h and
       gwxoscfg.h. You must copy these two files into the directory
       in which you will be running configure, and review their contents
       to set the various compile time options. Please do so now.

       NOTE: Some operating systems may have a specific configuration
       header file. Please read the INSTALL file for details. This file
       should be copied or linked to gwxoscfg.h in the same directory
       that you will be running configure in. For example, SCO OpenServer
       has an OS-specific header file osr5.os.h. You should link this
       to gwxoscfg.h. If there is no *.os.h file that matches your
       operating system, use generic.os.h.
EOF
exit 1
fi


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
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.

# Make sure we can run config.sub.
$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;}
   { (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_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:$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=`$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;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:$LINENO: 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:$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
  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;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:$LINENO: 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/'`



cat >>confdefs.h <<_ACEOF
#define OS "${host}"
_ACEOF


case "$host" in
  mips-dec-* | i[3456]86*)
cat >>confdefs.h <<\_ACEOF
#define FILLLSB2MSB 1
_ACEOF
 ;;
  hpux*)
cat >>confdefs.h <<\_ACEOF
#define _HPUX_SOURCE 1
_ACEOF

    if test "$CC" = cc; then CC="cc -Ae"; fi
   ;;
esac


# Check whether --with-localeprefix or --without-localeprefix was given.
if test "${with_localeprefix+set}" = set; then
  withval="$with_localeprefix"

fi;
if test "x$with_localeprefix" != "x"; then
   localeprefix=$with_localeprefix
else
  localeprefix=$prefix
fi



# Check whether --with-localedir or --without-localedir was given.
if test "${with_localedir+set}" = set; then
  withval="$with_localedir"

fi;
if test "x$with_localedir" != "x"; then
   localedir=$with_localedir
else
  localedir=$localeprefix/share/locale
fi



# Check whether --with-localebin or --without-localebin was given.
if test "${with_localebin+set}" = set; then
  withval="$with_localebin"

fi;
if test "x$with_localebin" != "x"; then
   localebin=$with_localebin
else
  localebin=$localeprefix/bin
fi



# Check whether --with-localelib or --without-localelib was given.
if test "${with_localelib+set}" = set; then
  withval="$with_localelib"

fi;
if test "x$with_localelib" != "x"; then
   localelib=$with_localelib
else
  localelib=$localeprefix/lib
fi



# Check whether --with-aclocaldir or --without-aclocaldir was given.
if test "${with_aclocaldir+set}" = set; then
  withval="$with_aclocaldir"

fi;
if test "x$with_aclocaldir" != "x"; then
   aclocaldir=$with_aclocaldir
else
   aclocaldir=$datadir/aclocal
fi


echo "$as_me:$LINENO: checking for the BeOS" >&5
echo $ECHO_N "checking for the BeOS... $ECHO_C" >&6
case $host in
  *-*-beos*)
    glib_native_beos="yes"
    ;;
  *)
    glib_native_beos="no"
    ;;
esac
echo "$as_me:$LINENO: result: $glib_native_beos" >&5
echo "${ECHO_T}$glib_native_beos" >&6

READLINE_CFLAGS=
rl_prefer_curses=no
case "$host_cpu" in
  *cray* ) READLINE_CFLAGS="-DCRAY" ;;
esac
case "$host_os" in
  isc* ) READLINE_CFLAGS="-Disc386" ;;
  aix*)  rl_prefer_curses=yes ;;
esac




echo "$as_me:$LINENO: checking for UNIX System V" >&5
echo $ECHO_N "checking for UNIX System V... $ECHO_C" >&6
if test "${glib_cv_sys_systemv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

systype=none
case "$host" in
  *sco3*)     systype=sysv32 ;;
  *sysv3*)    systype=usgv32 ;;
  *sysv4*)    systype=sysv4 ;;
  *sysv5*)    systype=sysv5 ;;
  *are7*)     systype=sysv5 ;;
  *svr4*)     systype=sysv4 ;;
  *svr5*)     systype=sysv5 ;;
  *solaris2*) systype=sysv4 ;;
  *solaris7*) systype=sysv4 ;;
  *aix*)      systype=usgv32 ;;
  *isc3*)     systype=sysv32 ;;
  *)          systype=none ;;
esac
glib_cv_sys_systemv=$systype

fi

sysvdefs=
case "$glib_cv_sys_systemv" in
  usgv32)  SYSVDEFS="-DUSG -DSYSV32 -DSYSV" ;;
  sysv32)  SYSVDEFS="-DSYSV32 -DSYSV" ;;
  sysv4)   SYSVDEFS="-DSVR4 -DSYSV4" ;;
  sysv5)   SYSVDEFS="-DSVR42 -DSVR4 -DSVR5 -DSYSV5 -DSYSV4" ;;
esac

if test x$glib_cv_sys_systemv = xnone; then
  sysvres="no"
else
  sysvres="yes"
fi

echo "$as_me:$LINENO: result: ${sysvres}" >&5
echo "${ECHO_T}${sysvres}" >&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
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:$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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

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

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:$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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

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

  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:$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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

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

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:$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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

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

  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

fi
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 "$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
  ac_prog_rejected=no
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
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

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 $# != 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
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
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

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:$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 $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

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 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:$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 $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

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

  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`
{ (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); }

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.  */

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" >&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:$LINENO: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # 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
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
        ;;
    conftest.$ac_ext )
        # This is the source file.
        ;;
    [ab].out )
        # We found the default executable, but exeext='' is most
        # certainly right.
        break;;
    *.* )
        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;;
    * )
        break;;
  esac
done
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 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'
  { (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
    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 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 { (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); }; 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 | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          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
#line $LINENO "configure"
/* 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 { (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
  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 | *.xSYM | *.bb | *.bbg ) ;;
    *) 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
#line $LINENO "configure"
/* 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 { (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_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' 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:$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
CFLAGS="-g"
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
  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.  */

int
main ()
{

  ;
  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_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_prog_cc_g=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
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 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 $LINENO "configure"
/* 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;
}
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:$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_prog_cc_stdc=$ac_arg
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC

fi

case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
  *)
    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" ;;
esac

# 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>&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 \
   ''\
   '#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 $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.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>&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.$ac_objext conftest.$ac_ext
  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_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>&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.$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

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

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
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 $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

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 $CCC g++ c++ gpp aCC CC cxx cc++ cl 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 $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

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
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"

  CXX=$ac_ct_CXX
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`
{ (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); }

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
#line $LINENO "configure"
/* 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 { (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_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' 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:$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
CXXFLAGS="-g"
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
  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.  */

int
main ()
{

  ;
  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_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_prog_cxx_g=no
fi
rm -f 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 \
   ''\
   '#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 $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.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>&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.$ac_objext conftest.$ac_ext
  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_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>&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.$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

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_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
#line $LINENO "configure"
/* 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_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
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
#line $LINENO "configure"
/* 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_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
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
#line $LINENO "configure"
/* 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_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
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
#line $LINENO "configure"
/* 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_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
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

for ac_prog in 'bison -y' byacc
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_YACC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # 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_YACC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

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

  test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"


for ac_prog in flex lex
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_LEX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # 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_LEX="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

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

  test -n "$LEX" && break
done
test -n "$LEX" || LEX=":"

if test -z "$LEXLIB"
then
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfl  $LIBS"
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.  */

/* 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 yywrap ();
int
main ()
{
yywrap ();
  ;
  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_fl_yywrap=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_fl_yywrap=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_fl_yywrap" >&5
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
if test $ac_cv_lib_fl_yywrap = yes; then
  LEXLIB="-lfl"
else
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
if test "${ac_cv_lib_l_yywrap+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ll  $LIBS"
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.  */

/* 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 yywrap ();
int
main ()
{
yywrap ();
  ;
  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_l_yywrap=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_l_yywrap=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_l_yywrap" >&5
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
if test $ac_cv_lib_l_yywrap = yes; then
  LEXLIB="-ll"
fi

fi

fi

if test "x$LEX" != "x:"; then
  echo "$as_me:$LINENO: checking lex output file root" >&5
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
if test "${ac_cv_prog_lex_root+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # The minimal lex program is just a single line: %%.  But some broken lexes
# (Solaris, I think it was) want two %% lines, so accommodate them.
cat >conftest.l <<_ACEOF
%%
%%
_ACEOF
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
  (eval $LEX conftest.l) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
if test -f lex.yy.c; then
  ac_cv_prog_lex_root=lex.yy
elif test -f lexyy.c; then
  ac_cv_prog_lex_root=lexyy
else
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
   { (exit 1); exit 1; }; }
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
rm -f conftest.l
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root

echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # POSIX says lex can declare yytext either as a pointer or an array; the
# default is implementation-dependent. Figure out which it is, since
# not all implementations provide the %pointer and %array declarations.
ac_cv_prog_lex_yytext_pointer=no
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
ac_save_LIBS=$LIBS
LIBS="$LIBS $LEXLIB"
cat >conftest.$ac_ext <<_ACEOF
`cat $LEX_OUTPUT_ROOT.c`
_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_prog_lex_yytext_pointer=yes
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
LIBS=$ac_save_LIBS
rm -f "${LEX_OUTPUT_ROOT}.c"

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

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

fi

fi
if test "$LEX" == "flex"; then
  LEX="flex -olex.yy.c"
fi

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
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    then ac_cv_prog_egrep='grep -E'
    else ac_cv_prog_egrep='egrep'
    fi
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep


if test $ac_cv_c_compiler_gnu = yes; then
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
    ac_pattern="Autoconf.*'x'"
  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 <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
  ac_cv_prog_gcc_traditional=yes
else
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*


  if test $ac_cv_prog_gcc_traditional = 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.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
  ac_cv_prog_gcc_traditional=yes
fi
rm -f conftest*

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


        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcposix  $LIBS"
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.  */

/* 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 strerror ();
int
main ()
{
strerror ();
  ;
  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_cposix_strerror=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_cposix_strerror=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_cposix_strerror" >&5
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
if test $ac_cv_lib_cposix_strerror = yes; then
  LIBS="$LIBS -lcposix"
fi




echo "$as_me:$LINENO: checking for AIX" >&5
echo $ECHO_N "checking for AIX... $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.  */
#ifdef _AIX
  yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
cat >>confdefs.h <<\_ACEOF
#define _ALL_SOURCE 1
_ACEOF

else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest*


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.  */
#ifdef hpux
  yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then


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

if test "$CC" = cc; then CC="cc -Ae"; fi

fi
rm -f conftest*



echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
if test "${am_cv_prog_cc_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  am_cv_prog_cc_stdc=no
ac_save_CC="$CC"
# 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"
  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 <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;
}
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
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
  am_cv_prog_cc_stdc="$ac_arg"; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
CC="$ac_save_CC"

fi

if test -z "$am_cv_prog_cc_stdc"; then
  echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6
else
  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
fi
case "x$am_cv_prog_cc_stdc" in
  x|xno) ;;
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
esac

CFLAGS=`echo $CFLAGS | sed -e 's%-g%%g'`

echo "$as_me:$LINENO: checking if C preprocessor likes IDL" >&5
echo $ECHO_N "checking if C preprocessor likes IDL... $ECHO_C" >&6
if test "${ac_cv_cpp_accept_idl+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.  */

			#pragma prefix "foo.org"
			module FOO {
				typedef unsigned long long big;
				interface BAR {
					readonly attribute big number;
				};
			};

_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_cv_cpp_accept_idl=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_cv_cpp_accept_idl=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_cpp_accept_idl" >&5
echo "${ECHO_T}$ac_cv_cpp_accept_idl" >&6
echo "$as_me:$LINENO: checking if C preprocessor can read from stdin" >&5
echo $ECHO_N "checking if C preprocessor can read from stdin... $ECHO_C" >&6
if test "${ac_cv_cpp_pipe_stdin+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		if echo | $CPP - 2>/dev/null 1>&2 ; then
			ac_cv_cpp_pipe_stdin=yes
		else
			ac_cv_cpp_pipe_stdin=no
		fi
fi
echo "$as_me:$LINENO: result: $ac_cv_cpp_pipe_stdin" >&5
echo "${ECHO_T}$ac_cv_cpp_pipe_stdin" >&6
echo "$as_me:$LINENO: checking how to ignore standard include path" >&5
echo $ECHO_N "checking how to ignore standard include path... $ECHO_C" >&6
if test "${ac_cv_cpp_nostdinc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case "$CC" in
	       	*gcc*) ac_cv_cpp_nostdinc="-nostdinc" ;;
       		  *)   saved_CPPFLAGS="$CPPFLAGS"
	               CPPFLAGS="$CPPFLAGS -I-"
        	       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.  */

_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_cv_cpp_nostdinc=-I-
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  CPPFLAGS="$saved_CPPFLAGS -I"
                       	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.  */

_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_cv_cpp_nostdinc=-I
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_ext
               		CPPFLAGS="$saved_CPPFLAGS" ;;
		esac

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

IDLCPP_PROGRAM="$CPP"

echo "$as_me:$LINENO: checking for extra flags to get ANSI library prototypes" >&5
echo $ECHO_N "checking for extra flags to get ANSI library prototypes... $ECHO_C" >&6
gtk_save_LIBS=$LIBS
LIBS="$LIBS -lm"
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <math.h>
             int main (void) { return (log(1) != log(1.)); }
_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
  echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6
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 )
gtk_save_CFLAGS=$CFLAGS
     CFLAGS="$CFLAGS -std1"
     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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <math.h>
                 int main (void) { return (log(1) != log(1.)); }
_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
  echo "$as_me:$LINENO: result: -std1" >&5
echo "${ECHO_T}-std1" >&6
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: result: " >&5
echo "${ECHO_T}" >&6
         CFLAGS=$gtk_save_CFLAGS
         { echo "$as_me:$LINENO: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&5
echo "$as_me: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&2;}

fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
LIBS=$gtk_save_LIBS

echo "$as_me:$LINENO: checking for extra flags for POSIX compliance" >&5
echo $ECHO_N "checking for extra flags for POSIX compliance... $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 <dirent.h>
int
main ()
{
DIR *dir;
  ;
  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
  echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gtk_save_CFLAGS=$CFLAGS
  CFLAGS="$CFLAGS -posix"
  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 <dirent.h>
int
main ()
{
DIR *dir;
  ;
  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
  echo "$as_me:$LINENO: result: -posix" >&5
echo "${ECHO_T}-posix" >&6
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
    CFLAGS=$gtk_save_CFLAGS
    { echo "$as_me:$LINENO: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&5
echo "$as_me: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&2;}
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext


# 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=no
fi;
# 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-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;
# 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


# 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:$LINENO: 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:$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
  IFS="${IFS= 	}"; ac_save_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"
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 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:$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
test -n "$reload_flag" && reload_flag=" $reload_flag"

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
  IFS="${IFS= 	}"; ac_save_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
fi

NM="$lt_cv_path_NM"
echo "$as_me:$LINENO: result: $NM" >&5
echo "${ECHO_T}$NM" >&6

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 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
  else
    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* | hppa* | 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$'
  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
  ;;

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
  ;;

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:$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







# 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" >&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
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 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'"

# 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'"

# 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'"
  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'"
  ;;
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:$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 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 void *
#else
# define lt_ptr char *
# define const
#endif

/* The mapping between symbol names and symbols. */
const struct {
  const char *name;
  lt_ptr address;
}
lt_preloaded_symbols[] =
{
EOF
	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
	  cat <<\EOF >> conftest.$ac_ext
  {0, (lt_ptr) 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:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $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
  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

global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
if test -z "$lt_cv_sys_global_symbol_pipe"; then
  global_symbol_to_cdecl=
  global_symbol_to_c_name_address=
else
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
fi
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
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 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
#line $LINENO "configure"
/* 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 { (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_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 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
#line $LINENO "configure"
/* 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
#line $LINENO "configure"
/* 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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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

#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
  :
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 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 eval "test \"\${$as_ac_Header+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.  */
$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
sed 's/^/| /' 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"
/* 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'
  { (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.$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
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 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





# 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.
  ;;
  ?:/*)
  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:$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

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 $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

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 $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

  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:$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

  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:$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 $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

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 $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

  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:$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

  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 6259 "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
    *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:$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
#line $LINENO "configure"
/* 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 { (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
  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 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
  ;;


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
  case $host_os in
  openbsd*)
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
    ;;
  *)
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi

# Allow CC to be a program name with arguments.
set dummy $CC
compiler="$2"

echo "$as_me:$LINENO: 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:$LINENO: result: $objdir" >&5
echo "${ECHO_T}$objdir" >&6



# 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:$LINENO: 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
      # 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*)
      lt_cv_prog_cc_wl='-Wl,'
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_cv_prog_cc_static='-Bstatic'
      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:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6
else
  echo "$as_me:$LINENO: 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:$LINENO: 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 $LINENO "configure"
/* 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 { (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
        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
sed 's/^/| /' 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:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
fi

# Check for any special shared library compilation flags.
if test -n "$lt_cv_prog_cc_shlib"; then
  { echo "$as_me:$LINENO: 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:$LINENO: 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

echo "$as_me:$LINENO: 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 $LINENO "configure"
/* 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 { (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
  lt_cv_prog_cc_static_works=yes
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
  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:$LINENO: 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"


# Check to see if options -o and -c are simultaneously supported by compiler
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_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:6792: \"$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:$LINENO: 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:$LINENO: 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"
  save_objext="$ac_objext"
  ac_objext=lo
  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.  */

int
main ()
{
int some_variable = 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
      # 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
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
  ac_objext="$save_objext"
  CFLAGS="$save_CFLAGS"

fi

  compiler_o_lo=$lt_cv_compiler_o_lo
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
echo "${ECHO_T}$compiler_o_lo" >&6
else
  compiler_o_lo=no
fi

# 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:$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

if test "$GCC" = yes; then
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  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
  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 $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
int some_variable = 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
      # 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
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
  CFLAGS="$save_CFLAGS"
  echo "$as_me:$LINENO: 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

# See if the linker supports building shared libraries.
echo "$as_me:$LINENO: 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
  ;;
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}'

  # 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*)
    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

    # 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.

    hardcode_direct=yes
    archive_cmds=''
    hardcode_libdir_separator=':'
    if test "$GCC" = yes; then
      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

      shared_flag='-shared'
    else
      # not using gcc
      if test "$host_cpu" = ia64; then
	shared_flag='${wl}-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 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
      # Warning - without using the other runtime loading flags (-brtl),
      # -berok will link without error, but may produce a broken library.
      allow_undefined_flag='-berok'
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
      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"
    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 ${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*)
    case "$host_os" in
    rhapsody* | darwin1.[012])
      allow_undefined_flag='-undefined suppress'
      ;;
    *) # Darwin 1.3 on
      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.
    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'
    # 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 $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 $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
    ;;

  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*)
    if test "$GCC" = yes; then
      archive_cmds='$CC -shared -h ${rpath:-${libdir:-/usr/lib}}/$soname -o $lib $libobjs $deplibs $linker_flags'
    else
      archive_cmds='$CC -G -h ${rpath:-${libdir:-/usr/lib}}/$soname -o $lib $libobjs $deplibs $linker_flags'
    fi
    hardcode_shlibpath_var=yes
    hardcode_direct=yes
    hardcode_minus_L=no
    runpath_var=LD_RUN_PATH
    hardcode_runpath_var=yes
    export_dynamic_flag_spec='${wl}-Bexport'
    ;;

  solaris*)
    # 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.
    no_undefined_flag=' -z defs'
    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
    # $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 $linker_flags'
      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:$LINENO: result: $ld_shlibs" >&5
echo "${ECHO_T}$ld_shlibs" >&6
test "$ld_shlibs" = no && can_build_shared=no

# Check hardcoding attributes.
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"; 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:$LINENO: result: $hardcode_action" >&5
echo "${ECHO_T}$hardcode_action" >&6

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
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

reload_cmds='$LD$reload_flag -o $output$reload_objs'
test -z "$deplibs_check_method" && deplibs_check_method=unknown

# PORTME Fill in your ld.so characteristics
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=
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
  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
  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
  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=freebsd-elf
  need_version=no
  soname_spec='${libname}${release}.so$major'
  library_names_spec='${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
  ;;

*)
  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

# Report the final consequences.
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*)
  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

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:$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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
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 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
/* 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>&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.$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
#line $LINENO "configure"
/* 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>&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.$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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
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 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
/* 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>&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.$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
#line $LINENO "configure"
/* 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>&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.$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
#line $LINENO "configure"
/* 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>&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.$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
#line $LINENO "configure"
/* 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>&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.$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"
    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 8602 "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:$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; ) 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:$LINENO: 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:$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 8700 "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:$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; ) 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:$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


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
    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:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $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:$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
	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:$LINENO: 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}

# 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 \
    global_symbol_to_c_name_address \
    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 build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$need_lc

# 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

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_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

# 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 */

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" >> "${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





# 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



# 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:$LINENO: 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:$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
  IFS="${IFS= 	}"; ac_save_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"
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 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:$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 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=$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
fi

NM="$lt_cv_path_NM"
echo "$as_me:$LINENO: result: $NM" >&5
echo "${ECHO_T}$NM" >&6

# test for ln hardlink support
echo "$as_me:$LINENO: checking whether ln works" >&5
echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
if test "${ac_cv_prog_LN_H+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  rm -f conftest.src conftest.dst
echo "conftest" > conftest.src
if ln conftest.src conftest.dst 2>/dev/null
then
  ac_cv_prog_LN_H="ln"
else
  ac_cv_prog_LN_H="cp"
fi
rm -f conftest.src conftest.dst

fi
LN_H="$ac_cv_prog_LN_H"
if test "$ac_cv_prog_LN_H" = "ln"; then
	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: 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

# 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:$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/* | \
  /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
      done
    done
    ;;
esac
done


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.  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 "$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'

for ac_prog in gawk mawk nawk awk
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_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

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

  test -n "$AWK" && break
done

echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.make <<\_ACEOF
all:
	@echo 'ac_maketemp="$(MAKE)"'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftest.make
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  SET_MAKE=
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  SET_MAKE="MAKE=${MAKE-make}"
fi

for ac_prog in perl5 perl
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_path_PERL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PERL="$PERL" # 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_PERL="$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

  ;;
esac
fi
PERL=$ac_cv_path_PERL

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

  test -n "$PERL" && break
done

# Extract the first word of "sendmail", so it can be a program name with args.
set dummy sendmail; 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_SENDMAIL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $SENDMAIL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
for as_dir in $as_dummy
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_SENDMAIL="$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_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
  ;;
esac
fi
SENDMAIL=$ac_cv_path_SENDMAIL

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

# Extract the first word of "vi", so it can be a program name with args.
set dummy vi; 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_EDITOR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $EDITOR in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/ucb"
for as_dir in $as_dummy
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_EDITOR="$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_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
  ;;
esac
fi
EDITOR=$ac_cv_path_EDITOR

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



echo "$as_me:$LINENO: checking for __inline" >&5
echo $ECHO_N "checking for __inline... $ECHO_C" >&6
if test "${glib_cv_has__inline+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.  */

	__inline int foo () { return 0; }
	int main () { return foo (); }

int
main ()
{
glib_cv_has__inline=yes

  ;
  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
  glib_cv_has__inline=no

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

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

fi
echo "$as_me:$LINENO: result: $glib_cv_has__inline" >&5
echo "${ECHO_T}$glib_cv_has__inline" >&6
case x$glib_cv_has__inline in
xyes)

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

esac
echo "$as_me:$LINENO: checking for __inline__" >&5
echo $ECHO_N "checking for __inline__... $ECHO_C" >&6
if test "${glib_cv_has__inline__+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.  */

	__inline__ int foo () { return 0; }
	int main () { return foo (); }

int
main ()
{
glib_cv_has__inline__=yes

  ;
  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
  glib_cv_has__inline__=no

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

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

fi
echo "$as_me:$LINENO: result: $glib_cv_has__inline__" >&5
echo "${ECHO_T}$glib_cv_has__inline__" >&6
case x$glib_cv_has__inline__ in
xyes)

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

esac
echo "$as_me:$LINENO: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${glib_cv_hasinline+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.  */

	#undef inline
	inline int foo () { return 0; }
	int main () { return foo (); }

int
main ()
{
glib_cv_hasinline=yes

  ;
  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
  glib_cv_hasinline=no

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

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

fi
echo "$as_me:$LINENO: result: $glib_cv_hasinline" >&5
echo "${ECHO_T}$glib_cv_hasinline" >&6
case x$glib_cv_hasinline in
xyes)

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

esac


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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
sed 's/^/| /' 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
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 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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
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 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 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
sed 's/^/| /' 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
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (int), 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (int)); }
unsigned long ulongval () { return (long) (sizeof (int)); }
#include <stdio.h>
#include <stdlib.h>
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
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out 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 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
sed 's/^/| /' 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
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 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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
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 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 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
sed 's/^/| /' 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
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long), 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (long)); }
unsigned long ulongval () { return (long) (sizeof (long)); }
#include <stdio.h>
#include <stdlib.h>
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
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out 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 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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
sed 's/^/| /' 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
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 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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
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 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 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
sed 's/^/| /' 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
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (char)); }
unsigned long ulongval () { return (long) (sizeof (char)); }
#include <stdio.h>
#include <stdlib.h>
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
sed 's/^/| /' conftest.$ac_ext >&5

( 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; }; }
fi
rm -f core core.* *.core gmon.out bb.out 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 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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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_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 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 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
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 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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
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 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 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
sed 's/^/| /' 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_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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (char *)); }
unsigned long ulongval () { return (long) (sizeof (char *)); }
#include <stdio.h>
#include <stdlib.h>
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_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 *), 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; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
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


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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
sed 's/^/| /' 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
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 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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
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 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 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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
sed 's/^/| /' 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
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (short), 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (short)); }
unsigned long ulongval () { return (long) (sizeof (short)); }
#include <stdio.h>
#include <stdlib.h>
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
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out 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 void *" >&5
echo $ECHO_N "checking for void *... $ECHO_C" >&6
if test "${ac_cv_type_void_p+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.  */
$ac_includes_default
int
main ()
{
if ((void * *) 0)
  return 0;
if (sizeof (void *))
  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_void_p=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_void_p=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
echo "${ECHO_T}$ac_cv_type_void_p" >&6

echo "$as_me:$LINENO: checking size of void *" >&5
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
if test "${ac_cv_sizeof_void_p+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_void_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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $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
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 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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $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
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 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 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $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
sed 's/^/| /' 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_void_p=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (void *), 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (void *)); }
unsigned long ulongval () { return (long) (sizeof (void *)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (void *))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (void *))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (void *))))
	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_void_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 (void *), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (void *), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_void_p=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
_ACEOF


echo "$as_me:$LINENO: checking for float" >&5
echo $ECHO_N "checking for float... $ECHO_C" >&6
if test "${ac_cv_type_float+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.  */
$ac_includes_default
int
main ()
{
if ((float *) 0)
  return 0;
if (sizeof (float))
  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_float=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_float=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
echo "${ECHO_T}$ac_cv_type_float" >&6

echo "$as_me:$LINENO: checking size of float" >&5
echo $ECHO_N "checking size of float... $ECHO_C" >&6
if test "${ac_cv_sizeof_float+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_float" = 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $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
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 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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) < 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $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
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 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 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $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
sed 's/^/| /' 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_float=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (float), 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (float)); }
unsigned long ulongval () { return (long) (sizeof (float)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (float))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (float))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (float))))
	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_float=`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 (float), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (float), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_float=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
echo "${ECHO_T}$ac_cv_sizeof_float" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_FLOAT $ac_cv_sizeof_float
_ACEOF


echo "$as_me:$LINENO: checking for double" >&5
echo $ECHO_N "checking for double... $ECHO_C" >&6
if test "${ac_cv_type_double+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.  */
$ac_includes_default
int
main ()
{
if ((double *) 0)
  return 0;
if (sizeof (double))
  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_double=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_double=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
echo "${ECHO_T}$ac_cv_type_double" >&6

echo "$as_me:$LINENO: checking size of double" >&5
echo $ECHO_N "checking size of double... $ECHO_C" >&6
if test "${ac_cv_sizeof_double+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_double" = 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $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
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 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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (double))) < 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $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
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 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 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $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
sed 's/^/| /' 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_double=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (double), 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (double)); }
unsigned long ulongval () { return (long) (sizeof (double)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (double))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (double))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (double))))
	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_double=`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 (double), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (double), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_double=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
echo "${ECHO_T}$ac_cv_sizeof_double" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
_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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
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>&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.$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 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long 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
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 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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long 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
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 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 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long 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
sed 's/^/| /' 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_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long long), 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (long long)); }
unsigned long ulongval () { return (long) (sizeof (long long)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (long long))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (long long))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (long 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_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), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
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 __int64" >&5
echo $ECHO_N "checking for __int64... $ECHO_C" >&6
if test "${ac_cv_type___int64+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.  */
$ac_includes_default
int
main ()
{
if ((__int64 *) 0)
  return 0;
if (sizeof (__int64))
  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___int64=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type___int64=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
echo "${ECHO_T}$ac_cv_type___int64" >&6

echo "$as_me:$LINENO: checking size of __int64" >&5
echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
if test "${ac_cv_sizeof___int64+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type___int64" = 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $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
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 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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $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
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 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 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $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
sed 's/^/| /' 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___int64=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (__int64), 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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (__int64)); }
unsigned long ulongval () { return (long) (sizeof (__int64)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (__int64))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (__int64))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (__int64))))
	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___int64=`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 (__int64), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (__int64), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof___int64=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF___INT64 $ac_cv_sizeof___int64
_ACEOF


echo "$as_me:$LINENO: checking for whether time_t is long" >&5
echo $ECHO_N "checking for whether time_t is long... $ECHO_C" >&6
if test "${ac_cv_c_long_time_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <time.h>
int main() { exit(sizeof(time_t) == sizeof(long)); }
_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_c_long_time_t=no
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_c_long_time_t=yes
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

fi
echo "$as_me:$LINENO: result: $ac_cv_c_long_time_t" >&5
echo "${ECHO_T}$ac_cv_c_long_time_t" >&6
if test $ac_cv_c_long_time_t = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_LONG_TIME_T 1
_ACEOF

fi

echo "$as_me:$LINENO: checking for whether size_t is long" >&5
echo $ECHO_N "checking for whether size_t is long... $ECHO_C" >&6
if test "${ac_cv_c_long_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stddef.h>
int main() { exit(sizeof(size_t) == sizeof(int)); }
_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_c_long_size_t=no
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_c_long_size_t=yes
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

fi
echo "$as_me:$LINENO: result: $ac_cv_c_long_size_t" >&5
echo "${ECHO_T}$ac_cv_c_long_size_t" >&6
if test $ac_cv_c_long_size_t = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_LONG_SIZE_T 1
_ACEOF

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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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:$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
sed 's/^/| /' 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
if test $ac_cv_type_size_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned
_ACEOF

fi

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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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:$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_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 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

cat >>confdefs.h <<_ACEOF
#define off_t long
_ACEOF

fi

echo "$as_me:$LINENO: 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 $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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:$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_mode_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_mode_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: 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 <<_ACEOF
#define mode_t int
_ACEOF

fi

echo "$as_me:$LINENO: 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 $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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:$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_pid_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_pid_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: 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

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi

echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+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>

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

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

cat >>confdefs.h <<\_ACEOF
#define uid_t int
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define gid_t int
_ACEOF

fi

echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
if test "${ac_cv_type_getgroups+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_type_getgroups=cross
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.  */
/* Thanks to Mike Rendell for this test.  */
#include <sys/types.h>
#define NGID 256
#undef MAX
#define MAX(x, y) ((x) > (y) ? (x) : (y))

int
main ()
{
  gid_t gidset[NGID];
  int i, n;
  union { gid_t gval; long lval; }  val;

  val.lval = -1;
  for (i = 0; i < NGID; i++)
    gidset[i] = val.gval;
  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
                 gidset);
  /* Exit non-zero if getgroups seems to require an array of ints.  This
     happens when gid_t is short but getgroups modifies an array of ints.  */
  exit ((n > 0 && gidset[n] != val.gval) ? 1 : 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_type_getgroups=gid_t
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_type_getgroups=int
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
if test $ac_cv_type_getgroups = cross; 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.  */
#include <unistd.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  ac_cv_type_getgroups=gid_t
else
  ac_cv_type_getgroups=int
fi
rm -f conftest*

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

cat >>confdefs.h <<_ACEOF
#define GETGROUPS_T $ac_cv_type_getgroups
_ACEOF


echo "$as_me:$LINENO: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+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 <signal.h>
#ifdef signal
# undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

int
main ()
{
int i;
  ;
  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_signal=void
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_signal=int
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6

cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF


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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((u_char *) 0)
  return 0;
if (sizeof (u_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_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 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

cat >>confdefs.h <<_ACEOF
#define u_char unsigned char
_ACEOF

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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((u_short *) 0)
  return 0;
if (sizeof (u_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_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 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

cat >>confdefs.h <<_ACEOF
#define u_short unsigned short
_ACEOF

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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((u_int *) 0)
  return 0;
if (sizeof (u_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_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 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

cat >>confdefs.h <<_ACEOF
#define u_int unsigned int
_ACEOF

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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((u_long *) 0)
  return 0;
if (sizeof (u_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_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 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

cat >>confdefs.h <<_ACEOF
#define u_long unsigned long
_ACEOF

fi

echo "$as_me:$LINENO: checking for u_llong" >&5
echo $ECHO_N "checking for u_llong... $ECHO_C" >&6
if test "${ac_cv_type_u_llong+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.  */
$ac_includes_default
int
main ()
{
if ((u_llong *) 0)
  return 0;
if (sizeof (u_llong))
  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_u_llong=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

cat >>confdefs.h <<_ACEOF
#define u_llong unsigned long long
_ACEOF

fi

echo "$as_me:$LINENO: checking for uchar" >&5
echo $ECHO_N "checking for uchar... $ECHO_C" >&6
if test "${ac_cv_type_uchar+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.  */
$ac_includes_default
int
main ()
{
if ((uchar *) 0)
  return 0;
if (sizeof (uchar))
  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_uchar=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

cat >>confdefs.h <<_ACEOF
#define uchar unsigned char
_ACEOF

fi

echo "$as_me:$LINENO: checking for ushort" >&5
echo $ECHO_N "checking for ushort... $ECHO_C" >&6
if test "${ac_cv_type_ushort+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.  */
$ac_includes_default
int
main ()
{
if ((ushort *) 0)
  return 0;
if (sizeof (ushort))
  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_ushort=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

cat >>confdefs.h <<_ACEOF
#define ushort unsigned short
_ACEOF

fi

echo "$as_me:$LINENO: checking for uint" >&5
echo $ECHO_N "checking for uint... $ECHO_C" >&6
if test "${ac_cv_type_uint+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.  */
$ac_includes_default
int
main ()
{
if ((uint *) 0)
  return 0;
if (sizeof (uint))
  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_uint=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

cat >>confdefs.h <<_ACEOF
#define uint unsigned int
_ACEOF

fi

echo "$as_me:$LINENO: checking for ulong" >&5
echo $ECHO_N "checking for ulong... $ECHO_C" >&6
if test "${ac_cv_type_ulong+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.  */
$ac_includes_default
int
main ()
{
if ((ulong *) 0)
  return 0;
if (sizeof (ulong))
  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_ulong=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

cat >>confdefs.h <<_ACEOF
#define ulong unsigned long
_ACEOF

fi

echo "$as_me:$LINENO: checking for longlong" >&5
echo $ECHO_N "checking for longlong... $ECHO_C" >&6
if test "${ac_cv_type_longlong+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.  */
$ac_includes_default
int
main ()
{
if ((longlong *) 0)
  return 0;
if (sizeof (longlong))
  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_longlong=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

cat >>confdefs.h <<_ACEOF
#define longlong long long
_ACEOF

fi

echo "$as_me:$LINENO: checking for ulonglong" >&5
echo $ECHO_N "checking for ulonglong... $ECHO_C" >&6
if test "${ac_cv_type_ulonglong+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.  */
$ac_includes_default
int
main ()
{
if ((ulonglong *) 0)
  return 0;
if (sizeof (ulonglong))
  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_ulonglong=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

cat >>confdefs.h <<_ACEOF
#define ulonglong unsigned long long
_ACEOF

fi

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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((ssize_t *) 0)
  return 0;
if (sizeof (ssize_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_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 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

cat >>confdefs.h <<_ACEOF
#define ssize_t int
_ACEOF

fi

echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
if test "${ac_cv_type_ptrdiff_t+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.  */
$ac_includes_default
int
main ()
{
if ((ptrdiff_t *) 0)
  return 0;
if (sizeof (ptrdiff_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_ptrdiff_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi



echo "$as_me:$LINENO: checking for unsigned char" >&5
echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
if test "${glib_cv_type_unsigned_char+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.  */

int
main ()
{

unsigned char un_char;

  ;
  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
  glib_cv_type_unsigned_char=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

glib_cv_type_unsigned_char=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

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

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

fi



echo "$as_me:$LINENO: checking for unsigned short" >&5
echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
if test "${glib_cv_type_unsigned_short+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.  */

int
main ()
{

unsigned short un_short;

  ;
  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
  glib_cv_type_unsigned_short=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

glib_cv_type_unsigned_short=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

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

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

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
#line $LINENO "configure"
/* 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;
  }
  { /* 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:$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_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 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

echo "$as_me:$LINENO: 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
else
  # See if sys/param.h defines the BYTE_ORDER macro.
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 <sys/param.h>

int
main ()
{
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#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
  # It does; now see whether it defined to BIG_ENDIAN or not.
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 <sys/param.h>

int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#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
  ac_cv_c_bigendian=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_c_bigendian=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

# It does not; compile a test program.
if test "$cross_compiling" = yes; then
  # try to guess the endianness by grepping values into an object file
  ac_cv_c_bigendian=unknown
  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.  */
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
int
main ()
{
 _ascii (); _ebcdic ();
  ;
  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
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  ac_cv_c_bigendian=yes
fi
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  if test "$ac_cv_c_bigendian" = unknown; then
    ac_cv_c_bigendian=no
  else
    # finding both strings is unlikely to happen, but who knows?
    ac_cv_c_bigendian=unknown
  fi
fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
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.  */
int
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);
}
_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_c_bigendian=no
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_c_bigendian=yes
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
case $ac_cv_c_bigendian in
  yes)
    cat >>confdefs.h <<\_ACEOF
#define WORDS_BIGENDIAN 1
_ACEOF

  endian=BIG ;;
  no)
    endian=little ;;
  *)
    { { echo "$as_me:$LINENO: error: unknown endianness
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
echo "$as_me: error: unknown endianness
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
   { (exit 1); exit 1; }; } ;;
esac

echo "$as_me:$LINENO: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; 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.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_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_c_inline=$ac_kw; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
done

fi
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\_ACEOF
#define inline
_ACEOF
 ;;
  *)  cat >>confdefs.h <<_ACEOF
#define inline $ac_cv_c_inline
_ACEOF
 ;;
esac


echo "$as_me:$LINENO: checking whether char is unsigned" >&5
echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
if test "${ac_cv_c_char_unsigned+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.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((char) -1) < 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_cv_c_char_unsigned=no
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_c_char_unsigned=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  cat >>confdefs.h <<\_ACEOF
#define __CHAR_UNSIGNED__ 1
_ACEOF

fi

echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
if test "${ac_cv_c_long_double+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 <float.h>
#ifdef _SCO_DS
#undef LDBL_MAX
#define LDBL_MAX 1.189731495357231748575e+4932
#endif
	  long double foo = 0.0;
int
main ()
{
static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
          (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
	  | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
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_cv_c_long_double=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

fi



echo "$as_me:$LINENO: checking for function prototypes" >&5
echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
if test "${glib_cv_c_prototypes+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.  */

int
main ()
{

int testfunction (int arg1, int * arg2); /* check prototypes */
struct methods_struct {		/* check method-pointer declarations */
  int (*error_exit) (char *msgtext);
  int (*trace_message) (char *msgtext);
  int (*another_method) (void);
};
int testfunction (int arg1, int * arg2) /* check definitions */
{ return arg2[arg1]; }
int test2function (void)	/* check void arg list */
{ 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
  glib_cv_c_prototypes=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

glib_cv_c_prototypes=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

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

if test $glib_cv_c_prototypes = yes; then

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

fi



echo "$as_me:$LINENO: checking to see if right shift is unsigned" >&5
echo $ECHO_N "checking to see if right shift is unsigned... $ECHO_C" >&6
if test "${glib_cv_c_right_shift_unsigned+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$cross_compiling" = yes; then
  glib_cv_c_right_shift_unsigned=yes
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.  */

#ifdef HAVE_PROTOTYPES
int is_shifting_signed (long arg)
#else
int is_shifting_signed (arg)
     long arg;
#endif
/* See whether right-shift on a long is signed or not. */
{
  long res = arg >> 4;

  if (res == -0x7F7E80CL) {	/* expected result for signed shift */
    return 1;			/* right shift is signed */
  }
  /* see if unsigned-shift hack will fix it. */
  /* we can't just test exact value since it depends on width of long... */
  res |= (~0L) << (32-4);
  if (res == -0x7F7E80CL) {	/* expected result now? */
    return 0;			/* right shift is unsigned */
  }
  printf("Right shift isn't acting as I expect it to.\n");
  printf("I fear the JPEG software will not work at all.\n\n");
  return 0;			/* try it with unsigned anyway */
}
main() {
  exit(is_shifting_signed(-0x7F7E80B1L));
}

_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
  glib_cv_c_right_shift_unsigned=yes
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 )
glib_cv_c_right_shift_unsigned=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

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

if test $glib_cv_c_right_shift_unsigned = yes; then

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

fi

echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
if test "${ac_cv_struct_tm+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 <time.h>

int
main ()
{
struct tm *tp; tp->tm_sec;
  ;
  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_struct_tm=time.h
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_struct_tm=sys/time.h
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
echo "${ECHO_T}$ac_cv_struct_tm" >&6
if test $ac_cv_struct_tm = sys/time.h; then

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

fi

   echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
  if test "${ac_cv_struct_gmtoff+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 <$ac_cv_struct_tm>
int
main ()
{
struct tm tm; tm.tm_gmtoff;
  ;
  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_struct_gmtoff=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_struct_gmtoff=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

  echo "$as_me:$LINENO: result: $ac_cv_struct_gmtoff" >&5
echo "${ECHO_T}$ac_cv_struct_gmtoff" >&6
if test $ac_cv_struct_gmtoff = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_TM_GMTOFF 1
_ACEOF

fi

echo "$as_me:$LINENO: checking for time.h that defines timezone" >&5
echo $ECHO_N "checking for time.h that defines timezone... $ECHO_C" >&6
if test "${ac_cv_extern_timezone+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 <time.h>
int
main ()
{
return timezone;
  ;
  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_extern_timezone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_extern_timezone=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

echo "$as_me:$LINENO: result: $ac_cv_extern_timezone" >&5
echo "${ECHO_T}$ac_cv_extern_timezone" >&6
if test $ac_cv_extern_timezone = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_TIMEZONE 1
_ACEOF

fi

echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
if test "${ac_cv_extern_altzone+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 <time.h>
int
main ()
{
return altzone;
  ;
  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_extern_altzone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_extern_altzone=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

echo "$as_me:$LINENO: result: $ac_cv_extern_altzone" >&5
echo "${ECHO_T}$ac_cv_extern_altzone" >&6
if test $ac_cv_extern_altzone = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_ALTZONE 1
_ACEOF

fi

echo "$as_me:$LINENO: checking for time.h that defines daylight" >&5
echo $ECHO_N "checking for time.h that defines daylight... $ECHO_C" >&6
if test "${ac_cv_extern_daylight+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 <time.h>
int
main ()
{
return daylight;
  ;
  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_extern_daylight=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_extern_daylight=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

echo "$as_me:$LINENO: result: $ac_cv_extern_daylight" >&5
echo "${ECHO_T}$ac_cv_extern_daylight" >&6
if test $ac_cv_extern_daylight = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_DAYLIGHT 1
_ACEOF

fi

if test $ac_cv_extern_timezone = yes; then
    echo "$as_me:$LINENO: checking if timezone is backwards" >&5
echo $ECHO_N "checking if timezone is backwards... $ECHO_C" >&6
  if test "${ac_cv_backwards_timezone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
               if test "$cross_compiling" = yes; then
  ac_cv_backwards_timezone=cross-compiling
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.  */
main(){
extern long timezone;
switch( timezone/3600 )
{
    /* OK: */
    case 5: case 6: case 7: case 8:	/* USA */
    case 0: case -1: case -2:		/* Europe */
        exit(0);
    /* Backwards: */
    case -5: case -6: case -7: case -8:	/* USA */
    case 1: case 2:			/* Europe */
        exit(1);
    /* Other country -- default to ok: */
    default:
        exit(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_backwards_timezone=no
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_backwards_timezone=yes
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

  echo "$as_me:$LINENO: result: $ac_cv_backwards_timezone" >&5
echo "${ECHO_T}$ac_cv_backwards_timezone" >&6
if test $ac_cv_backwards_timezone = yes; then
  cat >>confdefs.h <<\_ACEOF
#define NEGATIVE_TIMEZONE 1
_ACEOF

fi
fi

echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
if test "${ac_cv_member_struct_tm_tm_zone+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 <$ac_cv_struct_tm>


int
main ()
{
static struct tm ac_aggr;
if (ac_aggr.tm_zone)
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_member_struct_tm_tm_zone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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 <$ac_cv_struct_tm>


int
main ()
{
static struct tm ac_aggr;
if (sizeof ac_aggr.tm_zone)
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_member_struct_tm_tm_zone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_member_struct_tm_tm_zone=no
fi
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_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
if test $ac_cv_member_struct_tm_tm_zone = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_TM_TM_ZONE 1
_ACEOF


fi

if test "$ac_cv_member_struct_tm_tm_zone" = yes; then

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

else
  echo "$as_me:$LINENO: checking for tzname" >&5
echo $ECHO_N "checking for tzname... $ECHO_C" >&6
if test "${ac_cv_var_tzname+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 <time.h>
#ifndef tzname /* For SGI.  */
extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
#endif

int
main ()
{
atoi(*tzname);
  ;
  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_var_tzname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

  fi
fi



echo "$as_me:$LINENO: 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 $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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:$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_mode_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_mode_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: 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 <<_ACEOF
#define mode_t int
_ACEOF

fi

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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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:$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_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 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

cat >>confdefs.h <<_ACEOF
#define off_t long
_ACEOF

fi

echo "$as_me:$LINENO: 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 $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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:$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_pid_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_pid_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: 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

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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:$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
sed 's/^/| /' 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
if test $ac_cv_type_size_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned
_ACEOF

fi



echo "$as_me:$LINENO: 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
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>
int
main ()
{
u_char foo;
  ;
  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_uchar=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

db_cv_uchar=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $db_cv_uchar" >&5
echo "${ECHO_T}$db_cv_uchar" >&6
if test "$db_cv_uchar" = 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 "${db_cv_ushort+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>
int
main ()
{
u_short foo;
  ;
  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_ushort=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

db_cv_ushort=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $db_cv_ushort" >&5
echo "${ECHO_T}$db_cv_ushort" >&6
if test "$db_cv_ushort" = 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 "${db_cv_uint+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>
int
main ()
{
u_int foo;
  ;
  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_uint=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

db_cv_uint=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $db_cv_uint" >&5
echo "${ECHO_T}$db_cv_uint" >&6
if test "$db_cv_uint" = no; then
	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 "${db_cv_ulong+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>
int
main ()
{
u_long foo;
  ;
  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_ulong=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

db_cv_ulong=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $db_cv_ulong" >&5
echo "${ECHO_T}$db_cv_ulong" >&6
if test "$db_cv_ulong" = no; then
	u_long_decl="typedef unsigned long u_long;"
fi

# DB/Vi use specific integer sizes.

echo "$as_me:$LINENO: checking for int8_t" >&5
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
if test "${db_cv_int8+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>
int
main ()
{
int8_t foo;
  ;
  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_int8=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&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;}
   { (exit 1); exit 1; }; }
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.  */
main(){exit(sizeof(char) != 1);}
_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
  db_cv_int8="char"
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_int8=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $db_cv_int8" >&5
echo "${ECHO_T}$db_cv_int8" >&6
if test "$db_cv_int8" = no; then
	{ { echo "$as_me:$LINENO: error: No signed 8-bit integral type." >&5
echo "$as_me: error: No signed 8-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$db_cv_int8" != yes; then
	int8_decl="typedef $db_cv_int8 int8_t;"
fi


echo "$as_me:$LINENO: 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
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>
int
main ()
{
u_int8_t foo;
  ;
  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_uint8=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&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;}
   { (exit 1); exit 1; }; }
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.  */
main(){exit(sizeof(unsigned char) != 1);}
_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
  db_cv_uint8="unsigned char"
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_uint8=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $db_cv_uint8" >&5
echo "${ECHO_T}$db_cv_uint8" >&6
if test "$db_cv_uint8" = no; then
	{ { echo "$as_me:$LINENO: error: No unsigned 8-bit integral type." >&5
echo "$as_me: error: No unsigned 8-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$db_cv_uint8" != yes; then
	u_int8_decl="typedef $db_cv_uint8 u_int8_t;"
fi


echo "$as_me:$LINENO: 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
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>
int
main ()
{
u_int16_t foo;
  ;
  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_uint16=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&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;}
   { (exit 1); exit 1; }; }
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.  */
main(){exit(sizeof(unsigned short) != 2);}
_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
  db_cv_uint16="unsigned short"
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 )
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){exit(sizeof(unsigned int) != 2);}
_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
  db_cv_uint16="unsigned int"
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_uint16=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $db_cv_uint16" >&5
echo "${ECHO_T}$db_cv_uint16" >&6
if test "$db_cv_uint16" = no; then
	{ { echo "$as_me:$LINENO: error: No unsigned 16-bit integral type." >&5
echo "$as_me: error: No unsigned 16-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$db_cv_uint16" != yes; then
	u_int16_decl="typedef $db_cv_uint16 u_int16_t;"
fi


echo "$as_me:$LINENO: 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
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>
int
main ()
{
int16_t foo;
  ;
  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_int16=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&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;}
   { (exit 1); exit 1; }; }
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.  */
main(){exit(sizeof(short) != 2);}
_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
  db_cv_int16="short"
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 )
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){exit(sizeof(int) != 2);}
_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
  db_cv_int16="int"
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_int16=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $db_cv_int16" >&5
echo "${ECHO_T}$db_cv_int16" >&6
if test "$db_cv_int16" = no; then
	{ { echo "$as_me:$LINENO: error: No signed 16-bit integral type." >&5
echo "$as_me: error: No signed 16-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$db_cv_int16" != yes; then
	int16_decl="typedef $db_cv_int16 int16_t;"
fi


echo "$as_me:$LINENO: 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
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>
int
main ()
{
u_int32_t foo;
  ;
  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_uint32=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&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;}
   { (exit 1); exit 1; }; }
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.  */
main(){exit(sizeof(unsigned int) != 4);}
_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
  db_cv_uint32="unsigned int"
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 )
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){exit(sizeof(unsigned long) != 4);}
_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
  db_cv_uint32="unsigned long"
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_uint32=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $db_cv_uint32" >&5
echo "${ECHO_T}$db_cv_uint32" >&6
if test "$db_cv_uint32" = no; then
	{ { echo "$as_me:$LINENO: error: No unsigned 32-bit integral type." >&5
echo "$as_me: error: No unsigned 32-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$db_cv_uint32" != yes; then
	u_int32_decl="typedef $db_cv_uint32 u_int32_t;"
fi


echo "$as_me:$LINENO: 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
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>
int
main ()
{
int32_t foo;
  ;
  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_int32=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&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;}
   { (exit 1); exit 1; }; }
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.  */
main(){exit(sizeof(int) != 4);}
_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
  db_cv_int32="int"
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 )
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){exit(sizeof(long) != 4);}
_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
  db_cv_int32="long"
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_int32=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $db_cv_int32" >&5
echo "${ECHO_T}$db_cv_int32" >&6
if test "$db_cv_int32" = no; then
	{ { echo "$as_me:$LINENO: error: No signed 32-bit integral type." >&5
echo "$as_me: error: No signed 32-bit integral type." >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$db_cv_int32" != yes; then
	int32_decl="typedef $db_cv_int32 int32_t;"
fi

# 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:$LINENO: 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
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>
int
main ()
{
ssize_t foo;
  ;
  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_ssize_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&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;}
   { (exit 1); exit 1; }; }
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>
	main(){exit(sizeof(size_t) != sizeof(int));}
_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
  db_cv_ssize_t="int"
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 )
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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:$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
  db_cv_ssize_t="long long"
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 )
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <sys/types.h>
	main(){exit(sizeof(size_t) != sizeof(long));}
_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
  db_cv_ssize_t="long"
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_ssize_t="int"
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: 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:$LINENO: 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 $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
int
main ()
{
long long foo;
  ;
  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_align_t="unsigned long long"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

db_cv_align_t="unsigned long"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: 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:$LINENO: 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:$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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){exit(sizeof(unsigned int) != sizeof(char *));}
_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
  db_cv_alignp_t="unsigned int"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){exit(sizeof(unsigned long) != sizeof(char *));}
_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
  db_cv_alignp_t="unsigned long"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){exit(sizeof(unsigned long long) != sizeof(char *));}
_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
  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
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: 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:$LINENO: checking for stdbool.h" >&5
echo $ECHO_N "checking for stdbool.h... $ECHO_C" >&6
if test "${gwx_cv_header_stdbool_h+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 <stdbool.h>
#if false
int A[-1];
#endif
#define b -1
#if true
#undef b
#define b 1
#endif
int B[b];

int
main ()
{

  ;
  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
  gwx_cv_header_stdbool_h=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gwx_cv_header_stdbool_h=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

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

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

  STDBOOL_H=''
else
  STDBOOL_H='stdbool.h'
  echo "$as_me:$LINENO: checking for _Bool type" >&5
echo $ECHO_N "checking for _Bool type... $ECHO_C" >&6
  if test "${gwx_cv_type_Bool+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.  */
_Bool x = sizeof (_Bool);
int
main ()
{

  ;
  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
  gwx_cv_type_Bool=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gwx_cv_type_Bool=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

  echo "$as_me:$LINENO: result: $gt_cv_type_Bool" >&5
echo "${ECHO_T}$gt_cv_type_Bool" >&6
  if test $gwx_cv_type_Bool = yes; then
    HAVE__BOOL=1
  else
    HAVE__BOOL=0
  fi

fi



  echo "$as_me:$LINENO: checking for signed" >&5
echo $ECHO_N "checking for signed... $ECHO_C" >&6
if test "${gwx_cv_c_signed+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.  */

int
main ()
{
signed char x;
  ;
  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
  gwx_cv_c_signed=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

  fi


  echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
if test "${gwx_cv_c_backslash_a+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.  */

int
main ()
{

#if '\a' == 'a'
      syntax error;
#endif
      char buf['\a' == 'a' ? -1 : 1];
      buf[0] = '\a';
      return buf[0] != "\a"[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
  gwx_cv_c_backslash_a=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

cat >>confdefs.h <<\_ACEOF
#define HAVE_C_BACKSLASH_A 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 "${gwx_type_unsigned_long_long+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.  */
unsigned long long ull = 1; int i = 63;
int
main ()
{
unsigned long long ullmax = (unsigned long long) -1;
     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  ;
  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
  gwx_type_unsigned_long_long=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

  fi


  echo "$as_me:$LINENO: checking for inttypes.h" >&5
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
if test "${gwx_cv_header_inttypes_h+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 <inttypes.h>
int
main ()
{

  ;
  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
  gwx_cv_header_inttypes_h=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

cat >>confdefs.h <<_ACEOF
#define HAVE_INTTYPES_H 1
_ACEOF

  fi


  echo "$as_me:$LINENO: checking for stdint.h" >&5
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
if test "${gwx_cv_header_stdint_h+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 <stdint.h>
int
main ()
{
uintmax_t i = (uintmax_t) -1;
  ;
  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
  gwx_cv_header_stdint_h=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

cat >>confdefs.h <<_ACEOF
#define HAVE_STDINT_H_WITH_UINTMAX 1
_ACEOF

  fi




  if test $gwx_cv_header_inttypes_h = no && test $gwx_cv_header_stdint_h = no; then

    test $gwx_type_unsigned_long_long = yes \
      && ac_type='unsigned long long' \
      || ac_type='unsigned long'

cat >>confdefs.h <<_ACEOF
#define uintmax_t $ac_type
_ACEOF

  fi


   echo "$as_me:$LINENO: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if test "${ac_cv_type_socklen_t+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 <sys/socket.h>

int
main ()
{
if ((socklen_t *) 0)
  return 0;
if (sizeof (socklen_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_socklen_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

      SOCKLEN_T=socklen_t

cat >>confdefs.h <<_ACEOF
#define SOCKLEN_T $SOCKLEN_T
_ACEOF

else

      echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
      if test "${curl_cv_socklen_t_equiv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

         # Systems have either "struct sockaddr *" or
         # "void *" as the second argument to getpeername
         curl_cv_socklen_t_equiv=
         for arg2 in "struct sockaddr" void; do
            for t in size_t int unsigned long "unsigned long"; 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.  */

                  #include <sys/types.h>
                  #include <sys/socket.h>

                  int getpeername (int, $arg2 *, $t *);

int
main ()
{

                  $t len;
                  getpeername(0,0,&len);

  ;
  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

                  curl_cv_socklen_t_equiv="$t"
                  break

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

fi
rm -f conftest.$ac_objext conftest.$ac_ext
            done
         done

         if test "x$curl_cv_socklen_t_equiv" = x; then
            { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
   { (exit 1); exit 1; }; }
         fi

fi

      echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
      SOCKLEN_T=$curl_cv_socklen_t_equiv

cat >>confdefs.h <<_ACEOF
#define socklen_t $curl_cv_socklen_t_equiv
_ACEOF


cat >>confdefs.h <<_ACEOF
#define SOCKLEN_T $curl_cv_socklen_t_equiv
_ACEOF

fi



   echo "$as_me:$LINENO: checking for in_addr_t" >&5
echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
if test "${ac_cv_type_in_addr_t+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 <sys/socket.h>
#include <arpa/inet.h>

int
main ()
{
if ((in_addr_t *) 0)
  return 0;
if (sizeof (in_addr_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_in_addr_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

      echo "$as_me:$LINENO: checking for in_addr_t equivalent" >&5
echo $ECHO_N "checking for in_addr_t equivalent... $ECHO_C" >&6
      if test "${curl_cv_in_addr_t_equiv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

         # Systems have either "struct sockaddr *" or
         # "void *" as the second argument to getpeername
         curl_cv_in_addr_t_equiv=
         for t in int size_t unsigned long "unsigned long"; 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.  */

               #include <sys/types.h>
               #include <sys/socket.h>
               #include <arpa/inet.h>

int
main ()
{

               $t data = inet_addr ("1.2.3.4");

  ;
  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

               curl_cv_in_addr_t_equiv="$t"
               break

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

fi
rm -f conftest.$ac_objext conftest.$ac_ext
         done

         if test "x$curl_cv_in_addr_t_equiv" = x; then
            { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of in_addr_t" >&5
echo "$as_me: error: Cannot find a type to use in place of in_addr_t" >&2;}
   { (exit 1); exit 1; }; }
         fi

fi

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

cat >>confdefs.h <<_ACEOF
#define in_addr_t $curl_cv_in_addr_t_equiv
_ACEOF

fi



echo "$as_me:$LINENO: checking for broken incomplete types" >&5
echo $ECHO_N "checking for broken incomplete types... $ECHO_C" >&6
if test "${glib_cv_c_incomplete_types+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.  */

int
main ()
{
typedef struct undefined_structure * undef_struct_ptr;
  ;
  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
  glib_cv_c_incomplete_types=ok
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

glib_cv_c_incomplete_types=broken
fi
rm -f conftest.$ac_objext conftest.$ac_ext

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

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

fi

echo "$as_me:$LINENO: checking for short external names" >&5
echo $ECHO_N "checking for short external names... $ECHO_C" >&6
if test "${glib_cv_c_short_names+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.  */

int possibly_duplicate_function () { return 0; }
int possibly_dupli_function () { return 1; }

int
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
  glib_cv_c_short_names=ok
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

glib_cv_c_short_names=short
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

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

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

fi

echo "$as_me:$LINENO: checking for fopen binary flag" >&5
echo $ECHO_N "checking for fopen binary flag... $ECHO_C" >&6
if test "${glib_cv_func_fopen_b+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$cross_compiling" = yes; then
  glib_cv_func_fopen_b=ok
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 <stdio.h>
main() {
if (fopen("conftestdata", "wb") != NULL) exit (0); exit (1);
}

_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
  glib_cv_func_fopen_b=ok
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 )
glib_cv_func_fopen_b=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

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

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

fi

          ac_config_files="$ac_config_files pc/TEMPLATE"


non_x_libs="$LIBS"
non_x_ldflags="$LDFLAGS"

echo "$as_me:$LINENO: checking for X11 version" >&5
echo $ECHO_N "checking for X11 version... $ECHO_C" >&6
if test "${glib_cv_x11_version+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 <X11/IntrinsicP.h>
#if (XT_REVISION == 5)
yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then
  X11VERSION=5
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 <X11/IntrinsicP.h>
#if (XT_REVISION == 6)
yes
#endif

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

fi
rm -f conftest*

glib_cv_x11_version=R${X11VERSION}

fi
X11VERSION=$glib_cv_x11_version
echo "$as_me:$LINENO: result: ${X11VERSION}" >&5
echo "${ECHO_T}${X11VERSION}" >&6

if test $X11VERSION = R6; then

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

fi


echo "$as_me:$LINENO: checking for X" >&5
echo $ECHO_N "checking for X... $ECHO_C" >&6


# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
  withval="$with_x"

fi;
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  have_x=disabled
else
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    # Both variables are already set.
    have_x=yes
  else
    if test "${ac_cv_have_x+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # One or both of the vars are not set, and there is no cached value.
ac_x_includes=no ac_x_libraries=no
rm -fr conftest.dir
if mkdir conftest.dir; then
  cd conftest.dir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat >Imakefile <<'_ACEOF'
acfindx:
	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
_ACEOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    for ac_extension in a so sl; do
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
         test -f $ac_im_libdir/libX11.$ac_extension; then
        ac_im_usrlibdir=$ac_im_libdir; break
      fi
    done
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
    case $ac_im_incroot in
	/usr/include) ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
    esac
    case $ac_im_usrlibdir in
	/usr/lib | /lib) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
    esac
  fi
  cd ..
  rm -fr conftest.dir
fi

# Standard set of common directories for X headers.
# Check X11 before X11Rn because it is often a symlink to the current release.
ac_x_header_dirs='
/usr/X11/include
/usr/X11R6/include
/usr/X11R5/include
/usr/X11R4/include

/usr/include/X11
/usr/include/X11R6
/usr/include/X11R5
/usr/include/X11R4

/usr/local/X11/include
/usr/local/X11R6/include
/usr/local/X11R5/include
/usr/local/X11R4/include

/usr/local/include/X11
/usr/local/include/X11R6
/usr/local/include/X11R5
/usr/local/include/X11R4

/usr/X386/include
/usr/x386/include
/usr/XFree86/include/X11

/usr/include
/usr/local/include
/usr/unsupported/include
/usr/athena/include
/usr/local/x11r5/include
/usr/lpp/Xamples/include

/usr/openwin/include
/usr/openwin/share/include'

if test "$ac_x_includes" = no; then
  # Guess where to find include files, by looking for Intrinsic.h.
  # First, try using that file with no special directory specified.
  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 <X11/Intrinsic.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
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # We can compile using X headers with no special include directory.
ac_x_includes=
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  for ac_dir in $ac_x_header_dirs; do
  if test -r "$ac_dir/X11/Intrinsic.h"; then
    ac_x_includes=$ac_dir
    break
  fi
done
fi
rm -f conftest.err conftest.$ac_ext
fi # $ac_x_includes = no

if test "$ac_x_libraries" = no; then
  # Check for the libraries.
  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS=$LIBS
  LIBS="-lXt $LIBS"
  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 <X11/Intrinsic.h>
int
main ()
{
XtMalloc (0)
  ;
  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
  LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

LIBS=$ac_save_LIBS
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do
  # Don't even attempt the hair of trying to link an X program!
  for ac_extension in a so sl; do
    if test -r $ac_dir/libXt.$ac_extension; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi # $ac_x_libraries = no

if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  # Didn't find X anywhere.  Cache the known absence of X.
  ac_cv_have_x="have_x=no"
else
  # Record where we found X for the cache.
  ac_cv_have_x="have_x=yes \
	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi
fi

  fi
  eval "$ac_cv_have_x"
fi # $with_x != no

if test "$have_x" != yes; then
  echo "$as_me:$LINENO: result: $have_x" >&5
echo "${ECHO_T}$have_x" >&6
  no_x=yes
else
  # If each of the values was on the command line, it overrides each guess.
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes \
		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
fi

if test "$no_x" = yes; then
  # Not all programs may use this symbol, but it does not hurt to define it.

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

  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
else
  if test -n "$x_includes"; then
    X_CFLAGS="$X_CFLAGS -I$x_includes"
  fi

  # It would also be nice to do this for all -L options, not just this one.
  if test -n "$x_libraries"; then
    X_LIBS="$X_LIBS -L$x_libraries"
    # For Solaris; some versions of Sun CC require a space after -R and
    # others require no space.  Words are not sufficient . . . .
    case `(uname -sr) 2>/dev/null` in
    "SunOS 5"*)
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
      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.  */

int
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_R_nospace=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_R_nospace=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
      if test $ac_R_nospace = yes; then
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	X_LIBS="$X_LIBS -R$x_libraries"
      else
	LIBS="$ac_xsave_LIBS -R $x_libraries"
	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.  */

int
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_R_space=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_R_space=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	if test $ac_R_space = yes; then
	  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	  X_LIBS="$X_LIBS -R $x_libraries"
	else
	  echo "$as_me:$LINENO: result: neither works" >&5
echo "${ECHO_T}neither works" >&6
	fi
      fi
      LIBS=$ac_xsave_LIBS
    esac
  fi

  # Check for system-dependent libraries X programs must link with.
  # Do this before checking for the system-independent R6 libraries
  # (-lICE), since we may need -lsocket or whatever for X linking.

  if test "$ISC" = yes; then
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  else
    # Martyn Johnson says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And Karl Berry says
    # the Alpha needs dnet_stub (dnet does not exist).
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
    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.  */

/* 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 XOpenDisplay ();
int
main ()
{
XOpenDisplay ();
  ;
  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
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet  $LIBS"
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.  */

/* 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 dnet_ntoa ();
int
main ()
{
dnet_ntoa ();
  ;
  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_dnet_dnet_ntoa=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dnet_dnet_ntoa=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_dnet_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
fi

    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet_stub  $LIBS"
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.  */

/* 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 dnet_ntoa ();
int
main ()
{
dnet_ntoa ();
  ;
  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_dnet_stub_dnet_ntoa=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dnet_stub_dnet_ntoa=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_dnet_stub_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
fi

    fi
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    LIBS="$ac_xsave_LIBS"

    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
    # to get the SysV transport functions.
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
    # needs -lnsl.
    # The nsl library prevents programs from opening the X display
    # on Irix 5.2, according to T.E. Dickey.
    # The functions gethostbyname, getservbyname, and inet_addr are
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostbyname (); 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 gethostbyname ();
/* 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_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
char (*f) () = gethostbyname;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != gethostbyname;
  ;
  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_func_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_gethostbyname=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6

    if test $ac_cv_func_gethostbyname = no; then
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_gethostbyname+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.  */
_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 gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  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_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_nsl_gethostbyname=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_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
if test $ac_cv_lib_nsl_gethostbyname = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
fi

      if test $ac_cv_lib_nsl_gethostbyname = no; then
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd  $LIBS"
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.  */

/* 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 gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  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_bsd_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_bsd_gethostbyname=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_bsd_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
if test $ac_cv_lib_bsd_gethostbyname = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
fi

      fi
    fi

    # lieder@skyler.mavd.honeywell.com says without -lsocket,
    # socket/setsockopt and other routines are undefined under SCO ODT
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
    # on later versions), says Simon Leinen: it contains gethostby*
    # variants that don't use the name server (or something).  -lsocket
    # must be given before -lnsl if both are needed.  We assume that
    # if connect needs -lnsl, so does gethostbyname.
    echo "$as_me:$LINENO: checking for connect" >&5
echo $ECHO_N "checking for connect... $ECHO_C" >&6
if test "${ac_cv_func_connect+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char connect (); 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 connect ();
/* 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_connect) || defined (__stub___connect)
choke me
#else
char (*f) () = connect;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != connect;
  ;
  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_func_connect=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_connect=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
echo "${ECHO_T}$ac_cv_func_connect" >&6

    if test $ac_cv_func_connect = no; then
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_connect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
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.  */

/* 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 connect ();
int
main ()
{
connect ();
  ;
  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_connect=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_socket_connect=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_connect" >&5
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
if test $ac_cv_lib_socket_connect = yes; then
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
fi

    fi

    # Guillermo Gomez says -lposix is necessary on A/UX.
    echo "$as_me:$LINENO: checking for remove" >&5
echo $ECHO_N "checking for remove... $ECHO_C" >&6
if test "${ac_cv_func_remove+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char remove (); 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 remove ();
/* 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_remove) || defined (__stub___remove)
choke me
#else
char (*f) () = remove;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != remove;
  ;
  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_func_remove=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_remove=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
echo "${ECHO_T}$ac_cv_func_remove" >&6

    if test $ac_cv_func_remove = no; then
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
if test "${ac_cv_lib_posix_remove+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix  $LIBS"
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.  */

/* 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 remove ();
int
main ()
{
remove ();
  ;
  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_posix_remove=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_posix_remove=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_posix_remove" >&5
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
if test $ac_cv_lib_posix_remove = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
fi

    fi

    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    echo "$as_me:$LINENO: checking for shmat" >&5
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
if test "${ac_cv_func_shmat+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shmat (); 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 shmat ();
/* 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_shmat) || defined (__stub___shmat)
choke me
#else
char (*f) () = shmat;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != shmat;
  ;
  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_func_shmat=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_shmat=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
echo "${ECHO_T}$ac_cv_func_shmat" >&6

    if test $ac_cv_func_shmat = no; then
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lipc  $LIBS"
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.  */

/* 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 shmat ();
int
main ()
{
shmat ();
  ;
  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_ipc_shmat=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ipc_shmat=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_ipc_shmat" >&5
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
if test $ac_cv_lib_ipc_shmat = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
fi

    fi
  fi

  # Check for libraries that X11R6 Xt/Xaw programs need.
  ac_save_LDFLAGS=$LDFLAGS
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  # check for ICE first), but we must link in the order -lSM -lICE or
  # we get undefined symbols.  So assume we have SM if we have ICE.
  # These have to be linked with before -lX11, unlike the other
  # libraries we check for below, so use a different variable.
  # John Interrante, Karl Berry
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
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.  */

/* 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 IceConnectionNumber ();
int
main ()
{
IceConnectionNumber ();
  ;
  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_ICE_IceConnectionNumber=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ICE_IceConnectionNumber=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_ICE_IceConnectionNumber" >&5
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
fi

  LDFLAGS=$ac_save_LDFLAGS

fi


if test "x$x_includes" = "x"; then
  x_includes="/usr/include"
fi
if test "x$x_libraries" = "x"; then
  x_libraries="/usr/lib"
fi



if test "x$no_x" = "xyes"; then
  { { echo "$as_me:$LINENO: error:
*** ERROR: X11 headers or libraries not found. Please refer to 'config.log'
***        to see why. GWXLIBS requires X11 for most packages here to make
***        any sense whatsoever.
" >&5
echo "$as_me: error:
*** ERROR: X11 headers or libraries not found. Please refer to 'config.log'
***        to see why. GWXLIBS requires X11 for most packages here to make
***        any sense whatsoever.
" >&2;}
   { (exit 1); exit 1; }; }
fi

SHAPE_EXT=
SHM_EXT=
CASECONV=
X_LDFLAGS="$X_LIBS $LDFLAGS"

X_CFLAGS=`echo "$X_CFLAGS" | sed -e 's,-I/usr/include,,'`
X_LIBS=`echo "$X_LIBS" | sed -e 's,-L/usr/lib,,'`
X_LDFLAGS=`echo "$X_LDFLAGS" | sed -e 's,-L/usr/lib,,'`

LDFLAGS="$X_LDFLAGS"

echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lX11 $X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
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.  */

/* 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 XOpenDisplay ();
int
main ()
{
XOpenDisplay ();
  ;
  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_X11_XOpenDisplay=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_X11_XOpenDisplay=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_X11_XOpenDisplay" >&5
echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
if test $ac_cv_lib_X11_XOpenDisplay = yes; then
  GWX_X_LIBS="$X_PRE_LIBS -lX11"

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

  X_CFLAGS="-DHAVE_X11 $X_CFLAGS"
else
  { { echo "$as_me:$LINENO: error: *** ERROR: library X11 missing. Check 'config.log'." >&5
echo "$as_me: error: *** ERROR: library X11 missing. Check 'config.log'." >&2;}
   { (exit 1); exit 1; }; }
fi


echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5
echo $ECHO_N "checking for XShmAttach in -lXext... $ECHO_C" >&6
if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lXext $GWX_X_LIBS $X_EXTRA_LIBS $LIBS"
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.  */

/* 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 XShmAttach ();
int
main ()
{
XShmAttach ();
  ;
  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_Xext_XShmAttach=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_Xext_XShmAttach=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_Xext_XShmAttach" >&5
echo "${ECHO_T}$ac_cv_lib_Xext_XShmAttach" >&6
if test $ac_cv_lib_Xext_XShmAttach = yes; then

  GWX_XEXT_LIBS="-lXext"

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


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

  SHM_EXT="-DHAVE_SHM_EXT -DHAVE_XSHM"
else

  echo "$as_me:$LINENO: checking for XShmAttach in -lXextSam" >&5
echo $ECHO_N "checking for XShmAttach in -lXextSam... $ECHO_C" >&6
if test "${ac_cv_lib_XextSam_XShmAttach+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lXextSam $GWX_X_LIBS $X_EXTRA_LIBS $LIBS"
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.  */

/* 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 XShmAttach ();
int
main ()
{
XShmAttach ();
  ;
  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_XextSam_XShmAttach=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_XextSam_XShmAttach=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_XextSam_XShmAttach" >&5
echo "${ECHO_T}$ac_cv_lib_XextSam_XShmAttach" >&6
if test $ac_cv_lib_XextSam_XShmAttach = yes; then

    GWX_XEXT_LIBS="-lXextSam -lXext"
    SHM_EXT="-DHAVE_SHM_EXT -DHAVE_XSHM"
else


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


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

    GWX_XEXT_LIBS=""
fi

fi


echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lXext $GWX_X_LIBS $X_EXTRA_LIBS $LIBS"
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.  */

/* 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 XShapeCombineMask ();
int
main ()
{
XShapeCombineMask ();
  ;
  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_Xext_XShapeCombineMask=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_Xext_XShapeCombineMask=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_Xext_XShapeCombineMask" >&5
echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then

  if test -z "`echo "$GWX_XEXT_LIBS" | grep lXext 2>/dev/null`"; then
    GWX_XEXT_LIBS="-lXext"
  fi

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


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

  SHAPE_EXT="-DHAVE_SHAPE_EXT -DHAVE_SHAPE"
fi


echo "$as_me:$LINENO: checking for XConvertCase in -lX11" >&5
echo $ECHO_N "checking for XConvertCase in -lX11... $ECHO_C" >&6
if test "${ac_cv_lib_X11_XConvertCase+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lX11 $GWX_X_LIBS $X_EXTRA_LIBS $LIBS"
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.  */

/* 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 XConvertCase ();
int
main ()
{
XConvertCase ();
  ;
  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_X11_XConvertCase=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_X11_XConvertCase=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_X11_XConvertCase" >&5
echo "${ECHO_T}$ac_cv_lib_X11_XConvertCase" >&6
if test $ac_cv_lib_X11_XConvertCase = yes; then

  CASECONV="-DHAVE_XCONVERTCASE"

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

fi


echo "$as_me:$LINENO: checking for XUnregisterIMInstantiateCallback in -lX11" >&5
echo $ECHO_N "checking for XUnregisterIMInstantiateCallback in -lX11... $ECHO_C" >&6
if test "${ac_cv_lib_X11_XUnregisterIMInstantiateCallback+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lX11 $GWX_X_LIBS $X_EXTRA_LIBS $LIBS"
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.  */

/* 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 XUnregisterIMInstantiateCallback ();
int
main ()
{
XUnregisterIMInstantiateCallback ();
  ;
  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_X11_XUnregisterIMInstantiateCallback=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_X11_XUnregisterIMInstantiateCallback=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_X11_XUnregisterIMInstantiateCallback" >&5
echo "${ECHO_T}$ac_cv_lib_X11_XUnregisterIMInstantiateCallback" >&6
if test $ac_cv_lib_X11_XUnregisterIMInstantiateCallback = yes; then
  :
else
  enable_xim_inst="no"
fi


echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lX11 $GWX_X_LIBS $X_EXTRA_LIBS $LIBS"
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.  */

/* 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 XkbQueryExtension ();
int
main ()
{
XkbQueryExtension ();
  ;
  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_X11_XkbQueryExtension=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_X11_XkbQueryExtension=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_X11_XkbQueryExtension" >&5
echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_XKB 1
_ACEOF

fi


REQXT=

echo "$as_me:$LINENO: checking for XtCalloc in -lXt" >&5
echo $ECHO_N "checking for XtCalloc in -lXt... $ECHO_C" >&6
if test "${ac_cv_lib_Xt_XtCalloc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lXt $GWX_XEXT_LIBS $GWX_X_LIBS $X_EXTRA_LIBS $LIBS"
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.  */

/* 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 XtCalloc ();
int
main ()
{
XtCalloc ();
  ;
  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_Xt_XtCalloc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_Xt_XtCalloc=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_Xt_XtCalloc" >&5
echo "${ECHO_T}$ac_cv_lib_Xt_XtCalloc" >&6
if test $ac_cv_lib_Xt_XtCalloc = yes; then
  REQXT="-lXt"
fi


echo "$as_me:$LINENO: checking for XmuLookupStandardColormap in -lXmu" >&5
echo $ECHO_N "checking for XmuLookupStandardColormap in -lXmu... $ECHO_C" >&6
if test "${ac_cv_lib_Xmu_XmuLookupStandardColormap+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lXmu $GWX_XEXT_LIBS $REQXT $GWX_X_LIBS $X_EXTRA_LIBS $LIBS"
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.  */

/* 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 XmuLookupStandardColormap ();
int
main ()
{
XmuLookupStandardColormap ();
  ;
  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_Xmu_XmuLookupStandardColormap=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_Xmu_XmuLookupStandardColormap=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_Xmu_XmuLookupStandardColormap" >&5
echo "${ECHO_T}$ac_cv_lib_Xmu_XmuLookupStandardColormap" >&6
if test $ac_cv_lib_Xmu_XmuLookupStandardColormap = yes; then

  GWX_XEXT_LIBS="$GWX_XEXT_LIBS -lXmu $REQXT"
else

  echo "$as_me:$LINENO: checking for XmuGetAtomName in -lXmu" >&5
echo $ECHO_N "checking for XmuGetAtomName in -lXmu... $ECHO_C" >&6
if test "${ac_cv_lib_Xmu_XmuGetAtomName+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lXmu $GWX_XEXT_LIBS $REQXT -lXi $GWX_X_LIBS $X_EXTRA_LIBS $LIBS"
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.  */

/* 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 XmuGetAtomName ();
int
main ()
{
XmuGetAtomName ();
  ;
  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_Xmu_XmuGetAtomName=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_Xmu_XmuGetAtomName=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_Xmu_XmuGetAtomName" >&5
echo "${ECHO_T}$ac_cv_lib_Xmu_XmuGetAtomName" >&6
if test $ac_cv_lib_Xmu_XmuGetAtomName = yes; then

    GWX_XEXT_LIBS="$GWX_XEXT_LIBS -lXmu -lXi $REQXT"
fi


fi


GWX_XEXT_LIBS="$GWX_XEXT_LIBS $REQXT $GWX_X_LIBS"

GWX_XAW=
echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lXaw $GWX_XEXT_LIBS $X_EXTRA_LIBS $LIBS"
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.  */

/* 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 XawInitializeWidgetSet ();
int
main ()
{
XawInitializeWidgetSet ();
  ;
  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_Xaw_XawInitializeWidgetSet=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_Xaw_XawInitializeWidgetSet=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_Xaw_XawInitializeWidgetSet" >&5
echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then


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

  GWX_XAW="-lXaw"
  X_CFLAGS="$X_CFLAGS -DHAVE_XAW"

fi


GWX_XM=
MOTIF_VER=unknown
MOTIF_CFLAGS=
if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
  echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking Xm/Xm.h usability" >&5
echo $ECHO_N "checking Xm/Xm.h 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 <Xm/Xm.h>
_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
sed 's/^/| /' 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 Xm/Xm.h presence" >&5
echo $ECHO_N "checking Xm/Xm.h 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 <Xm/Xm.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
  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 in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: Xm/Xm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: Xm/Xm.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: Xm/Xm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: Xm/Xm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: Xm/Xm.h: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: Xm/Xm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: Xm/Xm.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 Xm/Xm.h" >&5
echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_Xm_Xm_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6

fi
if test $ac_cv_header_Xm_Xm_h = yes; then


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

  GWX_XM="-lXm"
  MOTIF_CFLAGS="-DHAVE_MOTIF"

  echo "$as_me:$LINENO: checking Motif version" >&5
echo $ECHO_N "checking Motif version... $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 <Xm/Xm.h>
#if (XmVERSION == 1) && (XmREVISION == 0)
yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then

MOTIF_VER="1.0"
MOTIF_CFLAGS="$MOTIF_CFLAGS -DHAVE_MOTIF10"

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 <Xm/Xm.h>
#if (XmVERSION == 1) && (XmREVISION == 1)
yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then

MOTIF_VER="1.1"
MOTIF_CFLAGS="$MOTIF_CFLAGS -DHAVE_MOTIF11"

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 <Xm/Xm.h>
#if (XmVERSION == 1) && (XmREVISION == 2)
yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then

MOTIF_VER="1.2"
MOTIF_CFLAGS="$MOTIF_CFLAGS -DHAVE_MOTIF12"

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 <Xm/Xm.h>
#if (XmVERSION == 2)
yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then

MOTIF_VER="2.x"
MOTIF_CFLAGS="$MOTIF_CFLAGS -DHAVE_MOTIF2"

fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f conftest*
  echo "$as_me:$LINENO: result: ${MOTIF_VER}" >&5
echo "${ECHO_T}${MOTIF_VER}" >&6


fi


# Check for private display resource base variable
echo "$as_me:$LINENO: checking resource base field in XDisplay" >&5
echo $ECHO_N "checking resource base field in XDisplay... $ECHO_C" >&6
if test "${glib_cv_display_resource_base+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  glib_cv_display_resource_base="private3"
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.  */

#define XLIB_ILLEGAL_ACCESS
#include <X11/Xlib.h>

int
main ()
{
  Display *display;

  return 0;

  display->resource_base;
}
_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
  glib_cv_display_resource_base="resource_base"
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 )
glib_cv_display_resource_base="private3"
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

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

cat >>confdefs.h <<_ACEOF
#define RESOURCE_BASE gdk_display->$glib_cv_display_resource_base
_ACEOF


# Check if X_LOCALE definition is necessary

echo "$as_me:$LINENO: checking if we need -DX_LOCALE" >&5
echo $ECHO_N "checking if we need -DX_LOCALE... $ECHO_C" >&6

if test "$cross_compiling" = yes; then
  need_x_locale=no
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 <X11/Xlocale.h>
#include <stdio.h>

int
main ()
{
  return setlocale (LC_ALL, "${with_locale}") == NULL;
}
_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
  need_x_locale=no
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 )
need_x_locale=yes
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $need_x_locale" >&5
echo "${ECHO_T}$need_x_locale" >&6

if test $need_x_locale = yes; then
  X_CFLAGS="$X_CFLAGS -DX_LOCALE"
fi

X_CFLAGS="$X_CFLAGS $SHAPE_EXT $SHM_EXT $CASECONV"

LIBS="$non_x_libs"
LDFLAGS="$non_x_ldflags"

PCFILES=







          ac_config_files="$ac_config_files pc/sysxextlibs.pc"

 PCFILES="$PCFILES sysxextlibs.pc"

          ac_config_files="$ac_config_files pc/sysx11libs.pc"

 PCFILES="$PCFILES sysx11libs.pc"

          ac_config_files="$ac_config_files pc/sysxtralibs.pc"

 PCFILES="$PCFILES sysxtralibs.pc"


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
#line $LINENO "configure"
/* 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 { (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_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 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
#line $LINENO "configure"
/* 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
#line $LINENO "configure"
/* 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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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

#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
  :
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 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

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"
/* 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 { (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_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 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

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
#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 <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






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
  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 <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
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
  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 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
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
ac_cv_search_opendir=no
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.  */

/* 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:$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="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 dir; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    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.  */

/* 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:$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
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

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
ac_cv_search_opendir=no
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.  */

/* 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:$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="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"
    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.  */

/* 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:$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
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

echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
if test "${ac_cv_header_sys_wait_h+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 <sys/wait.h>
#ifndef WEXITSTATUS
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
#endif
#ifndef WIFEXITED
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif

int
main ()
{
  int s;
  wait (&s);
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  ;
  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_header_sys_wait_h=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

fi




























































































































for ac_header in \
stdio.h \
stdlib.h \
strings.h \
sys/types.h \
sys/time.h \
sys/select.h \
sys/socket.h \
unistd.h \
alloca.h \
ansidecl.h \
arpa/inet.h \
arpa/nameser.h \
assert.h \
bsdtime.h \
bsdtypes.h \
crypt.h \
ctype.h \
cursesX.h \
curses.h \
dbm.h \
dir.h \
direct.h \
dirent.h \
dlfcn.h \
dn.h \
dnetdb.h \
errno.h \
fcntl.h \
filio.h \
float.h \
fp_class.h \
getopt.h \
grp.h \
ieeefp.h \
in.h \
inet.h \
inttypes.h \
io.h \
kernel/OS.h \
libc.h \
libutil.h \
limits.h \
locale.h \
ltdl.h \
malloc.h \
manifest.h \
math.h \
memory.h \
nan.h \
ndbm.h \
netdb.h \
net/errno.h \
net/if.h \
netinet/in.h \
netinet/tcp.h \
process.h \
psap.h \
pwd.h \
regex.h \
resolv.h \
resource.h \
rxposix.h \
sched.h \
search.h \
select.h \
setjmp.h \
sgtty.h \
shadow.h \
signal.h \
socket.h \
stat.h \
stddefs.h \
stdarg.h \
stddef.h \
stdint.h \
string.h \
sysexits.h \
syslog.h \
sys/errno.h \
sys/fcntl.h \
sys/file.h \
sys/filio.h \
sys/ioctl.h \
sys/ipc.h \
sys/limits.h \
sys/machine.h \
sys/mman.h \
sys/param.h \
sys/poll.h \
sys/pte.h \
sys/ptem.h \
sys/resource.h \
sys/sem.h \
sys/shm.h \
sys/signal.h \
sys/sockio.h \
sys/stat.h \
sys/stream.h \
sys/syslog.h \
sys/systeminfo.h \
sys/times.h \
sys/uio.h \
sys/un.h \
sys/unistd.h \
sys/utime.h \
sys/utsname.h \
sys/wait.h \
tcp.h \
termcap.h \
termio.h \
termios.h \
time.h \
types.h \
unixlib.h \
utime.h \
values.h \
varargs.h \
wais.h \
wais/wais.h \
wchar.h \
wcstr.h \
wctype.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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_STDIO_H
#include <stdio.h>
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif


#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
sed 's/^/| /' 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



echo "$as_me:$LINENO: checking if iswalnum() and friends are properly defined" >&5
echo $ECHO_N "checking if iswalnum() and friends are properly defined... $ECHO_C" >&6
if test "${glib_cv_wctype_ok+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 <stdlib.h>
int
main ()
{

#if (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H))
#  ifdef HAVE_WCTYPE_H
#    include <wctype.h>
#  else
#    ifdef HAVE_WCHAR_H
#      include <wchar.h>
#    endif
#  endif
#else
#  define iswalnum(c) ((wchar_t)(c) <= 0xFF && isalnum(c))
#endif
iswalnum((wchar_t) 0);

  ;
  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
  glib_cv_wctype_ok=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

glib_cv_wctype_ok=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

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

if test $glib_cv_wctype_ok = no; then

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

fi

GDK_WLIBS=
echo "$as_me:$LINENO: checking for iswalnum" >&5
echo $ECHO_N "checking for iswalnum... $ECHO_C" >&6
if test "${ac_cv_func_iswalnum+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char iswalnum (); 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 iswalnum ();
/* 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_iswalnum) || defined (__stub___iswalnum)
choke me
#else
char (*f) () = iswalnum;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != iswalnum;
  ;
  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_func_iswalnum=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_iswalnum=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_iswalnum" >&5
echo "${ECHO_T}$ac_cv_func_iswalnum" >&6
if test $ac_cv_func_iswalnum = yes; then
  :
else
  echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
if test "${ac_cv_lib_w_iswalnum+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lw  $LIBS"
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.  */

/* 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 iswalnum ();
int
main ()
{
iswalnum ();
  ;
  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_w_iswalnum=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_w_iswalnum=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_w_iswalnum" >&5
echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
if test $ac_cv_lib_w_iswalnum = yes; then
  GDK_WLIBS=-lw
fi

fi





echo "$as_me:$LINENO: checking whether realloc (NULL) will work" >&5
echo $ECHO_N "checking whether realloc (NULL) will work... $ECHO_C" >&6
if test "${glib_cv_sane_realloc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	if test "$cross_compiling" = yes; then
  glib_cv_sane_realloc=yes
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 <stdlib.h>
	int main() {
	  return realloc (0, sizeof (int)) == 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
  glib_cv_sane_realloc=yes
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 )
glib_cv_sane_realloc=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

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

if test $glib_cv_sane_realloc = yes; then

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


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

fi


if test $ac_cv_header_locale_h = yes; then
  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
if test "${am_cv_val_LC_MESSAGES+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 <locale.h>
int
main ()
{
return LC_MESSAGES
  ;
  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
  am_cv_val_LC_MESSAGES=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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


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

  fi
fi

USE_NLS=yes



echo "$as_me:$LINENO: checking for an implementation of va_copy()" >&5
echo $ECHO_N "checking for an implementation of va_copy()... $ECHO_C" >&6
if test "${glib_cv_va_copy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#include <stdarg.h>
	void f (int i, ...) {
	va_list args1, args2;
	va_start (args1, i);
	va_copy (args2, args1);
	if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
	  exit (1);
	va_end (args1); va_end (args2);
	}
	int main() {
	  f (0, 42);
	  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
  glib_cv_va_copy=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

glib_cv_va_copy=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi
echo "$as_me:$LINENO: result: $glib_cv_va_copy" >&5
echo "${ECHO_T}$glib_cv_va_copy" >&6
echo "$as_me:$LINENO: checking for an implementation of __va_copy()" >&5
echo $ECHO_N "checking for an implementation of __va_copy()... $ECHO_C" >&6
if test "${glib_cv___va_copy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#include <stdarg.h>
	void f (int i, ...) {
	va_list args1, args2;
	va_start (args1, i);
	__va_copy (args2, args1);
	if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
	  exit (1);
	va_end (args1); va_end (args2);
	}
	int main() {
	  f (0, 42);
	  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
  glib_cv___va_copy=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

glib_cv___va_copy=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

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

if test "x$glib_cv_va_copy" = "xyes"; then
  g_va_copy_func=va_copy
else if test "x$glib_cv___va_copy" = "xyes"; then
  g_va_copy_func=__va_copy
fi
fi

if test -n "$g_va_copy_func"; then


cat >>confdefs.h <<_ACEOF
#define G_VA_COPY $g_va_copy_func
_ACEOF

fi

echo "$as_me:$LINENO: checking whether va_lists can be copied by value" >&5
echo $ECHO_N "checking whether va_lists can be copied by value... $ECHO_C" >&6
if test "${glib_cv_va_val_copy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	if test "$cross_compiling" = yes; then
  glib_cv_va_val_copy=yes
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 <stdarg.h>
	void f (int i, ...) {
	va_list args1, args2;
	va_start (args1, i);
	args2 = args1;
	if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
	  exit (1);
	va_end (args1); va_end (args2);
	}
	int main() {
	  f (0, 42);
	  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
  glib_cv_va_val_copy=yes
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 )
glib_cv_va_val_copy=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

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

if test "x$glib_cv_va_val_copy" = "xno"; then


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

fi

# check for flavours of varargs macros
echo "$as_me:$LINENO: checking for ISO C99 varargs macros in C" >&5
echo $ECHO_N "checking for ISO C99 varargs macros in C... $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.  */

int
main ()
{

int a(int p1, int p2, int p3);
#define call_a(...) a(1,__VA_ARGS__)
call_a(2,3);

  ;
  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
  g_have_iso_c_varargs=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

g_have_iso_c_varargs=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $g_have_iso_c_varargs" >&5
echo "${ECHO_T}$g_have_iso_c_varargs" >&6

echo "$as_me:$LINENO: checking for ISO C99 varargs macros in C++" >&5
echo $ECHO_N "checking for ISO C99 varargs macros in C++... $ECHO_C" >&6
if test "$CXX" = ""; then
  g_have_iso_cxx_varargs=no
else
  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 $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

int a(int p1, int p2, int p3);
#define call_a(...) a(1,__VA_ARGS__)
call_a(2,3);

  ;
  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
  g_have_iso_cxx_varargs=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

g_have_iso_cxx_varargs=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:$LINENO: result: $g_have_iso_cxx_varargs" >&5
echo "${ECHO_T}$g_have_iso_cxx_varargs" >&6

echo "$as_me:$LINENO: checking for GNUC varargs macros" >&5
echo $ECHO_N "checking for GNUC varargs macros... $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.  */

int
main ()
{

int a(int p1, int p2, int p3);
#define call_a(params...) a(1,params)
call_a(2,3);

  ;
  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
  g_have_gnuc_varargs=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

g_have_gnuc_varargs=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $g_have_gnuc_varargs" >&5
echo "${ECHO_T}$g_have_gnuc_varargs" >&6

echo "$as_me:$LINENO: checking whether make is GNU Make" >&5
echo $ECHO_N "checking whether make is GNU Make... $ECHO_C" >&6
STRIP_BEGIN=
STRIP_END=
if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
        STRIP_BEGIN='$(strip $(STRIP_DUMMY)'
        STRIP_END=')'
        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
STRIP_DUMMY=




# check additional type sizes
size_includes="
#include <stdarg.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
"
if test "x$ac_cv_header_stdint_h" = "xyes"; then
  size_includes="$size_includes
#include <stdint.h>
"
fi
if test "x$ac_cv_header_unistd_h" = "xyes"; then
  size_includes="$size_includes
#include <unistd.h>
"
fi
echo "$as_me:$LINENO: checking size of size_t" >&5
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
if test "${glib_cv_sizeof_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
$size_includes
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(size_t));
  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
  glib_cv_sizeof_size_t=`cat conftestval`
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 )
glib_cv_sizeof_size_t=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $glib_cv_sizeof_size_t" >&5
echo "${ECHO_T}$glib_cv_sizeof_size_t" >&6


cat >>confdefs.h <<_ACEOF
#define GLIB_SIZEOF_SIZE_T $glib_cv_sizeof_size_t
_ACEOF


echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6
if test "${glib_cv_sizeof_ptrdiff_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
$size_includes
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(ptrdiff_t));
  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
  glib_cv_sizeof_ptrdiff_t=`cat conftestval`
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 )
glib_cv_sizeof_ptrdiff_t=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $glib_cv_sizeof_ptrdiff_t" >&5
echo "${ECHO_T}$glib_cv_sizeof_ptrdiff_t" >&6


cat >>confdefs.h <<_ACEOF
#define GLIB_SIZEOF_PTRDIFF_T $glib_cv_sizeof_ptrdiff_t
_ACEOF


echo "$as_me:$LINENO: checking size of intmax_t" >&5
echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
if test "${glib_cv_sizeof_intmax_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
$size_includes
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(intmax_t));
  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
  glib_cv_sizeof_intmax_t=`cat conftestval`
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 )
glib_cv_sizeof_intmax_t=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $glib_cv_sizeof_intmax_t" >&5
echo "${ECHO_T}$glib_cv_sizeof_intmax_t" >&6


cat >>confdefs.h <<_ACEOF
#define GLIB_SIZEOF_INTMAX_T $glib_cv_sizeof_intmax_t
_ACEOF



echo "$as_me:$LINENO: checking for the appropriate definition for size_t" >&5
echo $ECHO_N "checking for the appropriate definition for size_t... $ECHO_C" >&6

case $glib_cv_sizeof_size_t in
  $ac_cv_sizeof_short)
      glib_size_type=short
      ;;
  $ac_cv_sizeof_int)
      glib_size_type=int
      ;;
  $ac_cv_sizeof_long)
      glib_size_type=long
      ;;
  *)  { { echo "$as_me:$LINENO: error: No type matching size_t in size" >&5
echo "$as_me: error: No type matching size_t in size" >&2;}
   { (exit 1); exit 1; }; }
      ;;
esac

if test $glib_cv_sizeof_size_t = $ac_cv_sizeof_int &&
   test $glib_cv_sizeof_size_t = $ac_cv_sizeof_long ; then
  cat >conftest.$ac_ext <<_ACEOF

#include <stddef.h>
int main ()
{
  size_t s = 1;
  unsigned int *size_int = &s;
  return (int)*size_int;
}

_ACEOF
rm -f conftest.$ac_objext
glib_ac_compile_save="$ac_compile"
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
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='(if test -s conftest.err; then false ; else true; fi)'
  { (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
  glib_size_type=int
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF

#include <stddef.h>
int main ()
{
   size_t s = 1;
   unsigned long *size_long = &s;
   return (int)*size_long;
}

_ACEOF
rm -f conftest.$ac_objext
glib_ac_compile_save="$ac_compile"
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
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='(if test -s conftest.err; then false ; else true; fi)'
  { (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
  glib_size_type=long
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
ac_compile="$glib_ac_compile_save"
rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
fi
ac_compile="$glib_ac_compile_save"
rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
fi

echo "$as_me:$LINENO: result: unsigned $glib_size_type" >&5
echo "${ECHO_T}unsigned $glib_size_type" >&6

echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_c99+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_vsnprintf_c99=no
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 <stdio.h>
#include <stdarg.h>

int
doit(char * s, ...)
{
  char buffer[32];
  va_list args;
  int r;

  va_start(args, s);
  r = vsnprintf(buffer, 5, s, args);
  va_end(args);

  if (r != 7)
    exit(1);

  exit(0);
}

int
main(void)
{
  doit("1234567");
  exit(1);
}
_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_func_vsnprintf_c99=yes
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_func_vsnprintf_c99=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_c99" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_c99" >&6
if test $ac_cv_func_vsnprintf_c99 = yes; then

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

fi

echo "$as_me:$LINENO: checking for UNIX95 vsnprintf" >&5
echo $ECHO_N "checking for UNIX95 vsnprintf... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_unix95+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_vsnprintf_unix95=yes
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 <stdio.h>
#include <stdarg.h>

int
doit(char * s, ...)
{
  char buffer[32];
  va_list args;
  int r;

  va_start(args, s);
  r = vsnprintf(buffer, 5, s, args);
  va_end(args);

  if (r == -1)
    exit(0);

  exit(1);
}

int
main(void)
{
  doit("1234567");
  exit(1);
}
_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_func_vsnprintf_unix95=yes
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_func_vsnprintf_unix95=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_unix95" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_unix95" >&6
if test $ac_cv_func_vsnprintf_unix95 = yes; then


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

fi

echo "$as_me:$LINENO: checking whether printf supports positional parameters" >&5
echo $ECHO_N "checking whether printf supports positional parameters... $ECHO_C" >&6
if test "${ac_cv_func_printf_unix98+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_printf_unix98=no
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 <stdio.h>
LINK
int
main (void)
{
  char buffer[128];

  sprintf (buffer, "%2\$d %3\$d %1\$d", 1, 2, 3);
  if (strcmp ("2 3 1", buffer) == 0)
    exit (0);
  exit (1);
}
_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_func_printf_unix98=yes
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_func_printf_unix98=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_printf_unix98" >&5
echo "${ECHO_T}$ac_cv_func_printf_unix98" >&6
if test $ac_cv_func_printf_unix98 = yes; then

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

fi



for ac_header in unistd.h vfork.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'
  { (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.$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
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 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



for ac_func in fork vfork
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.  */
_ACEOF
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

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>&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.$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

if test "x$ac_cv_func_fork" = xyes; then
  echo "$as_me:$LINENO: checking for working fork" >&5
echo $ECHO_N "checking for working fork... $ECHO_C" >&6
if test "${ac_cv_func_fork_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_fork_works=cross
else
  cat >conftest.$ac_ext <<_ACEOF
/* By Ruediger Kuhlmann. */
      #include <sys/types.h>
      #if HAVE_UNISTD_H
      # include <unistd.h>
      #endif
      /* Some systems only have a dummy stub for fork() */
      int main ()
      {
        if (fork() < 0)
          exit (1);
        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
  ac_cv_func_fork_works=yes
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_func_fork_works=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
echo "${ECHO_T}$ac_cv_func_fork_works" >&6

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  echo "$as_me:$LINENO: checking for working vfork" >&5
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
if test "${ac_cv_func_vfork_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_vfork_works=cross
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.  */
/* Thanks to Paul Eggert for this test.  */
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#if HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    exit(
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 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_func_vfork_works=yes
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_func_vfork_works=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=ac_cv_func_vfork
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

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

else

cat >>confdefs.h <<\_ACEOF
#define vfork fork
_ACEOF

fi
if test "x$ac_cv_func_fork_works" = xyes; then

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

fi



for ac_header in sys/select.h sys/socket.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'
  { (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.$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
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 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 types of arguments for select" >&5
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
if test "${ac_cv_func_select_args+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; 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.  */
$ac_includes_default
#if HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif

int
main ()
{
extern int select ($ac_arg1,
                                            $ac_arg234, $ac_arg234, $ac_arg234,
                                            $ac_arg5);
  ;
  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_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
 done
done
# Provide a safe default value.
: ${ac_cv_func_select_args='int,int *,struct timeval *'}

fi
echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
echo "${ECHO_T}$ac_cv_func_select_args" >&6
ac_save_IFS=$IFS; IFS=','
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
IFS=$ac_save_IFS
shift

cat >>confdefs.h <<_ACEOF
#define SELECT_TYPE_ARG1 $1
_ACEOF


cat >>confdefs.h <<_ACEOF
#define SELECT_TYPE_ARG234 ($2)
_ACEOF


cat >>confdefs.h <<_ACEOF
#define SELECT_TYPE_ARG5 ($3)
_ACEOF

rm -f conftest*


if test "$ac_cv_func_vsnprintf_c99" = "yes" -o "$ac_cv_func_vsnprintf_unix95" = "yes"; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_VSNPRINTF 1
_ACEOF

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

fi

#
# Check whether to use trio printf
#

# Check whether --enable-included-printf or --disable-included-printf was given.
if test "${enable_included_printf+set}" = set; then
  enableval="$enable_included_printf"
  enable_trio="$enableval"
fi;

need_trio=no
if test "x$enable_trio" = "xyes" ; then
  need_trio=yes
fi
if test "$ac_cv_func_vsnprintf_c99" != "yes" ; then
  need_trio=yes
fi
if test "$ac_cv_func_printf_unix98" != "yes" ; then
  need_trio=yes
fi
if test "x$ac_cv_sizeof_long_long" = "x8" &&
   test -z "$glib_cv_long_long_format" ; then
  need_trio=yes
fi

if test "x$enable_trio" = "xno" &&
   test "x$need_trio" = "xyes" ; then
  { { echo "$as_me:$LINENO: error:
*** Your C library's printf doesn't appear to have the features that
*** GLib needs, but you specified --enable-included-printf=no." >&5
echo "$as_me: error:
*** Your C library's printf doesn't appear to have the features that
*** GLib needs, but you specified --enable-included-printf=no." >&2;}
   { (exit 1); exit 1; }; }
fi

enable_trio=$need_trio

if test "$enable_trio" != "yes" ; then
  GWX_TRIO="#"


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

else
  GWX_TRIO=
  glib_cv_long_long_format="ll"

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


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


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

  TRIO_LIBS=-lm
  GWXCFG_DEP_GLIB2=sysmathlib

fi



echo "$as_me:$LINENO: checking for O_RDONLY location" >&5
echo $ECHO_N "checking for O_RDONLY location... $ECHO_C" >&6
rdonly_loc="unknown"
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 <fcntl.h>
 #if defined(O_RDONLY)
  yes
 #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then

rdonly_loc="fcntl.h"

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


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/file.h>
 #if defined(O_RDONLY)
  yes
 #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then

rdonly_loc="sys/file.h"

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


fi
rm -f conftest*

fi
rm -f conftest*
echo "$as_me:$LINENO: result: ${rdonly_loc}" >&5
echo "${ECHO_T}${rdonly_loc}" >&6

echo "$as_me:$LINENO: checking for fd_set" >&5
echo $ECHO_N "checking for fd_set... $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 <sys/types.h>
int
main ()
{
fd_set readMask, writeMask;
  ;
  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
  gtk_ok=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gtk_ok=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
if test $gtk_ok = yes; then
  echo "$as_me:$LINENO: result: yes, found in sys/types.h" >&5
echo "${ECHO_T}yes, found in sys/types.h" >&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/select.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "fd_set" >/dev/null 2>&1; then
  gtk_ok=yes
fi
rm -f conftest*

    if test "$gtk_ok" = "yes"; then

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

        echo "$as_me:$LINENO: result: yes, found in sys/select.h" >&5
echo "${ECHO_T}yes, found in sys/select.h" >&6
    else

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

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



G_MODULE_LIBS=
G_MODULE_LIBS_EXTRA=
G_MODULE_PLUGIN_LIBS=
G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
G_MODULE_IMPL=
G_MODULE_NEED_USCORE=0
G_MODULE_BROKEN_RTLD_GLOBAL=0
G_MODULE_HAVE_DLERROR=0

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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
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 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
/* 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>&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.$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


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

  echo "$as_me:$LINENO: checking for dlsym" >&5
echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
if test "${ac_cv_func_dlsym+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlsym (); 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 dlsym ();
/* 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_dlsym) || defined (__stub___dlsym)
choke me
#else
char (*f) () = dlsym;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != dlsym;
  ;
  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_func_dlsym=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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


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

    G_MODULE_IMPL=G_MODULE_IMPL_DL
fi

fi



if test -z "$G_MODULE_IMPL" && test "x$glib_native_beos" = "xyes"; then
  echo "$as_me:$LINENO: checking for load_image in -lroot" >&5
echo $ECHO_N "checking for load_image in -lroot... $ECHO_C" >&6
if test "${ac_cv_lib_root_load_image+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lroot  $LIBS"
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.  */

/* 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 load_image ();
int
main ()
{
load_image ();
  ;
  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_root_load_image=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_root_load_image=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_root_load_image" >&5
echo "${ECHO_T}$ac_cv_lib_root_load_image" >&6
if test $ac_cv_lib_root_load_image = yes; then
  G_MODULE_LIBS="-lbe -lroot -lglib"
      G_MODULE_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
      G_MODULE_PLUGIN_LIBS="-L\$(top_builddir_full)/gmodule/.libs -lgmodule"
      G_MODULE_IMPL=G_MODULE_IMPL_BEOS
fi

fi
if test -z "$G_MODULE_IMPL"; then
 	echo "$as_me:$LINENO: checking for NSLinkModule" >&5
echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
if test "${ac_cv_func_NSLinkModule+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char NSLinkModule (); 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 NSLinkModule ();
/* 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_NSLinkModule) || defined (__stub___NSLinkModule)
choke me
#else
char (*f) () = NSLinkModule;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != NSLinkModule;
  ;
  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_func_NSLinkModule=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_NSLinkModule=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
if test $ac_cv_func_NSLinkModule = yes; then
  G_MODULE_IMPL=G_MODULE_IMPL_DYLD
		       G_MODULE_NEED_USCORE=1
fi

fi
if test -z "$G_MODULE_IMPL"; then
  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
#line $LINENO "configure"
/* 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>&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.$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


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


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

    echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlsym+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 $LINENO "configure"
/* 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 dlsym ();
int
main ()
{
dlsym ();
  ;
  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_dl_dlsym=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dl_dlsym=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_dl_dlsym" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
if test $ac_cv_lib_dl_dlsym = yes; then


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

      G_MODULE_LIBS=-ldl
      G_MODULE_IMPL=G_MODULE_IMPL_DL
fi

fi

fi

if test -z "$G_MODULE_IMPL"; then
  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
#line $LINENO "configure"
/* 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>&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.$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


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


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

    G_MODULE_LIBS=-ldld
    G_MODULE_IMPL=G_MODULE_IMPL_DLD
fi

fi

if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL"; then
  LIBS_orig="$LIBS"
  LDFLAGS_orig="$LDFLAGS"
  LIBS="$LIBS $G_MODULE_LIBS"
  LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
  echo "$as_me:$LINENO: checking for RTLD_GLOBAL brokenness" >&5
echo $ECHO_N "checking for RTLD_GLOBAL brokenness... $ECHO_C" >&6
if test "${glib_cv_rtldglobal_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

                #include <dlfcn.h>
                #ifndef RTLD_GLOBAL
                #define RTLD_GLOBAL 0
                #endif
                #ifndef RTLD_LAZY
                #define RTLD_LAZY 0
                #endif
                int pthread_create;
                int main () {
                void *handle, *global, *local;
                global = &pthread_create;
                handle = dlopen ("libpthread.so", RTLD_GLOBAL | RTLD_LAZY);
                if (!handle) return 0;
                local = dlsym (handle, "pthread_create");
                return global == local;
                }
_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
  glib_cv_rtldglobal_broken=no
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 )
glib_cv_rtldglobal_broken=yes
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
                rm -f plugin.c plugin.o plugin.lo

fi
echo "$as_me:$LINENO: result: $glib_cv_rtldglobal_broken" >&5
echo "${ECHO_T}$glib_cv_rtldglobal_broken" >&6
  if test "x$glib_cv_rtldglobal_broken" = "xyes"; then
    G_MODULE_BROKEN_RTLD_GLOBAL=1
  else
    G_MODULE_BROKEN_RTLD_GLOBAL=0
  fi

  echo "$as_me:$LINENO: checking for preceeding underscore in symbols" >&5
echo $ECHO_N "checking for preceeding underscore in symbols... $ECHO_C" >&6
  if test "${glib_cv_uscore+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

		#include <dlfcn.h>
                int glib_underscore_test (void) { return 42; }
		int main() {
		  void *f1 = (void*)0, *f2 = (void*)0, *handle;
		  handle = dlopen ((void*)0, 0);
		  if (handle) {
		    f1 = dlsym (handle, "glib_underscore_test");
		    f2 = dlsym (handle, "_glib_underscore_test");
		  } return (!f2 || f1);
		}
_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
  glib_cv_uscore=yes
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 )
glib_cv_uscore=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
    rm -f plugin.c plugin.o plugin.lo

fi

  echo "$as_me:$LINENO: result: $glib_cv_uscore" >&5
echo "${ECHO_T}$glib_cv_uscore" >&6
  if test "x$glib_cv_uscore" = "xyes"; then

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


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

    G_MODULE_NEED_USCORE=1
  else
    G_MODULE_NEED_USCORE=0
  fi
  LDFLAGS="$LDFLAGS_orig"

    echo "$as_me:$LINENO: checking for dlerror" >&5
echo $ECHO_N "checking for dlerror... $ECHO_C" >&6
if test "${ac_cv_func_dlerror+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlerror (); 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 dlerror ();
/* 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_dlerror) || defined (__stub___dlerror)
choke me
#else
char (*f) () = dlerror;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != dlerror;
  ;
  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_func_dlerror=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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


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

    G_MODULE_HAVE_DLERROR=1
else
  G_MODULE_HAVE_DLERROR=0
fi

  LIBS="$LIBS_orig"
fi

if test ! -z "$G_MODULE_IMPL"; then

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

  G_MODULE_SUPPORTED=true
else
  G_MODULE_IMPL=0
  G_MODULE_SUPPORTED=false
fi

echo "$as_me:$LINENO: checking for the suffix of shared libraries" >&5
echo $ECHO_N "checking for the suffix of shared libraries... $ECHO_C" >&6
case "$host_os" in
  hpux9* | hpux10* | hpux11*)  # taken from ltconfig
    glib_gmodule_suffix='sl'
    ;;
  cygwin* | mingw*)
    glib_gmodule_suffix='dll'
    ;;
  *)
    glib_gmodule_suffix='so'
    ;;
esac
echo "$as_me:$LINENO: result: .$glib_gmodule_suffix" >&5
echo "${ECHO_T}.$glib_gmodule_suffix" >&6

DLLIBS=$G_MODULE_LIBS
DLLDFLAGS=$G_MODULE_LDFLAGS













NONSOCKLIBS="$LIBS"

   # Most operating systems have gethostbyname() in the default searched
   # libraries (i.e. libc):
   saved_net_LIBS="$LIBS"
   LIBS=
   echo "$as_me:$LINENO: checking for inet_ntoa in -lresolv" >&5
echo $ECHO_N "checking for inet_ntoa in -lresolv... $ECHO_C" >&6
if test "${ac_cv_lib_resolv_inet_ntoa+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lresolv  $LIBS"
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.  */

/* 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 inet_ntoa ();
int
main ()
{
inet_ntoa ();
  ;
  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_resolv_inet_ntoa=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_resolv_inet_ntoa=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_resolv_inet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_resolv_inet_ntoa" >&6
if test $ac_cv_lib_resolv_inet_ntoa = yes; then

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

fi

   echo "$as_me:$LINENO: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostbyname (); 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 gethostbyname ();
/* 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_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
char (*f) () = gethostbyname;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != gethostbyname;
  ;
  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_func_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_gethostbyname=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
if test $ac_cv_func_gethostbyname = yes; then
  :
else
  # Some OSes (eg. Solaris) place it in libnsl:

echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_gethostbyname+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.  */
_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 gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  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_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_nsl_gethostbyname=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_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
if test $ac_cv_lib_nsl_gethostbyname = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBNSL 1
_ACEOF

  LIBS="-lnsl $LIBS"

else
  # Some strange OSes (SINIX) have it in libsocket:

echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_gethostbyname+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"
/* 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 gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  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_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_socket_gethostbyname=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_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
if test $ac_cv_lib_socket_gethostbyname = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSOCKET 1
_ACEOF

  LIBS="-lsocket $LIBS"

else
  # Unfortunately libsocket sometimes depends on libnsl.
          # AC_CHECK_LIB's API is essentially broken so the following
          # ugliness is necessary:
          echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket -lnsl $LIBS"
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.  */

/* 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 gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  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_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_socket_gethostbyname=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_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
if test $ac_cv_lib_socket_gethostbyname = yes; then
  LIBS="-lsocket -lnsl $LIBS"
else

echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lresolv  $LIBS"
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.  */

/* 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 gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  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_resolv_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_resolv_gethostbyname=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_resolv_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
if test $ac_cv_lib_resolv_gethostbyname = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBRESOLV 1
_ACEOF

  LIBS="-lresolv $LIBS"

fi

fi


fi


fi


fi

  echo "$as_me:$LINENO: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_func_socket+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char socket (); 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 socket ();
/* 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_socket) || defined (__stub___socket)
choke me
#else
char (*f) () = socket;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != socket;
  ;
  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_func_socket=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_socket+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"
/* 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 socket ();
int
main ()
{
socket ();
  ;
  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_socket=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_socket_socket=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_socket" >&5
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
if test $ac_cv_lib_socket_socket = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSOCKET 1
_ACEOF

  LIBS="-lsocket $LIBS"

else
  echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_socket+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket -lnsl $LIBS"
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.  */

/* 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 socket ();
int
main ()
{
socket ();
  ;
  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_socket=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_socket_socket=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_socket" >&5
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
if test $ac_cv_lib_socket_socket = yes; then
  LIBS="-lsocket -lnsl $LIBS"
fi

fi

fi

  SYSSOCKLIBS="$LIBS"

  LIBS="$saved_net_LIBS $SYSSOCKLIBS"

SOCKLIBS="$LIBS"
LIBS="$NONSOCKLIBS"


echo "$as_me:$LINENO: checking for cos in -lm" >&5
echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
if test "${ac_cv_lib_m_cos+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 $LINENO "configure"
/* 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 cos ();
int
main ()
{
cos ();
  ;
  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_cos=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_m_cos=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_cos" >&5
echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
if test $ac_cv_lib_m_cos = yes; then
  MATHLIB=-lm
fi



echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lndbm  $LIBS"
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.  */

/* 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 dbm_open ();
int
main ()
{
dbm_open ();
  ;
  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_ndbm_dbm_open=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ndbm_dbm_open=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_ndbm_dbm_open" >&5
echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
if test $ac_cv_lib_ndbm_dbm_open = yes; then

    gwx_using_NDBM=yes
    gwx_NDBM="-lndbm"
else

    echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
if test "${ac_cv_lib_c_dbm_open+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
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.  */

/* 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 dbm_open ();
int
main ()
{
dbm_open ();
  ;
  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_c_dbm_open=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_c_dbm_open=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_c_dbm_open" >&5
echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
if test $ac_cv_lib_c_dbm_open = yes; then

      gwx_using_NDBM=yes
      gwx_NDBM=""
fi

fi


echo "$as_me:$LINENO: checking for crypt" >&5
echo $ECHO_N "checking for crypt... $ECHO_C" >&6
if test "${ac_cv_func_crypt+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char crypt (); 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 crypt ();
/* 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_crypt) || defined (__stub___crypt)
choke me
#else
char (*f) () = crypt;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != crypt;
  ;
  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_func_crypt=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_crypt=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
echo "${ECHO_T}$ac_cv_func_crypt" >&6
if test $ac_cv_func_crypt = yes; then
  gwx_have_crypt=yes
else
  echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcrypt  $LIBS"
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.  */

/* 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 crypt ();
int
main ()
{
crypt ();
  ;
  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_crypt_crypt=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_crypt_crypt=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_crypt_crypt" >&5
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
if test $ac_cv_lib_crypt_crypt = yes; then

      CRYPT_LIB="-lcrypt"
      gwx_have_crypt=yes
else
  gwx_have_crypt=no
fi

fi



AIX_SECLIB=
echo "$as_me:$LINENO: checking for afopen in -ls" >&5
echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
if test "${ac_cv_lib_s_afopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ls  $LIBS"
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.  */

/* 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 afopen ();
int
main ()
{
afopen ();
  ;
  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_s_afopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_s_afopen=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_s_afopen" >&5
echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
if test $ac_cv_lib_s_afopen = yes; then

	AIX_SECLIB=-ls


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


fi


LIBS="$SOCKLIBS $MATHLIB"

for ac_func in vprintf
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.  */
_ACEOF
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

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>&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.$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

echo "$as_me:$LINENO: checking for _doprnt" >&5
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
if test "${ac_cv_func__doprnt+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _doprnt (); 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 _doprnt ();
/* 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__doprnt) || defined (__stub____doprnt)
choke me
#else
char (*f) () = _doprnt;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != _doprnt;
  ;
  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_func__doprnt=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

fi

fi
done






























































































































































































































for ac_func in \
__secure_getenv \
_fstati64 \
_stat \
acosh \
asinh \
atanh \
asctime \
at_exit \
atexit \
basename \
bcopy \
break \
bsearch \
cfgetospeed \
chdir \
chown \
chroot \
class \
clock_gettime \
closesocket \
connect \
cos \
create_area \
endgrent \
endpwent \
fabs \
fcntl \
finite \
flock \
flockfile \
floor \
fp_class \
fpclass \
fsync \
ftime \
ftruncate \
gai_strerror \
getaddrinfo \
getc_unlocked \
getcwd \
getdelim \
getdomainname \
getdtablesize \
getegid \
geteuid \
getgid \
getgrgid \
gethostbyaddr \
gethostbyname \
gethostent \
gethostname \
getlogin \
getnameinfo \
getopt \
getopt_long \
getpagesize \
getpass \
getpass_r \
getpassphrase \
getpid \
getppid \
getpwnam \
getpwuid \
getresuid \
getrusage \
getsockopt \
getspnam \
gettimeofday \
getuid \
getuserpw \
getwd \
gmtime \
inet_addr \
inet_aton \
inet_ntoa \
inet_ntop \
initgroups \
ioctl \
isascii \
isinf \
isnan \
isnand \
issetugid \
iswcntrl \
iswprint \
isxdigit \
jrand48 \
kill \
localtime \
localtime_r \
lockf \
lrand48 \
lstat \
lstat64 \
mblen \
mbsinit \
memcmp \
memcpy \
memmove \
memset \
mkdir \
mkdtemp \
mkfifo \
mkstemp \
mktime \
mlock \
munlock \
munmap \
nanosleep \
nl_langinfo \
on_exit \
opendir \
pathconf \
perror \
pipe \
poll \
popen \
posix_spawn \
pow \
pread \
putc_unlocked \
putenv \
pwrite \
qsort \
raise \
readdir \
readlink \
recv \
recvfrom \
regexec \
regfree \
remove \
rename \
sched_yield \
select \
semctl \
semget \
send \
sendto \
setegid \
setenv \
seteuid \
setgid \
setlocale \
setpgid \
setproctitle \
setpwfile \
setsid \
setsockopt \
setuid \
setvbuf \
shm_open \
shm_unlink \
shmat \
shmctl \
shmdt \
shmget \
sigaction \
sigaddset \
sigemptyset \
signal \
sigprocmask \
sigset \
sigsetjmp \
snprintf \
socket \
stat \
stpcpy \
stpncpy \
strcasecmp \
strchr \
strcmp \
strcmpi \
strcspn \
strdup \
strerror \
strftime \
stricmp \
strlcat \
strlcpy \
strncasecmp \
strndup \
strpbrk \
strrchr \
strsep \
strsignal \
strspn \
strstr \
strtod \
strtok \
strtok_r \
strtol \
strtoul \
sysconf \
sysinfo \
syslog \
tcgetattr \
tcsetattr \
tempnam \
time \
timegm \
times \
tsearch \
tzset \
umask \
uname \
unlink \
unsetenv \
utime \
utimes \
vasprintf \
vfscanf \
vfsnprintf \
vsnprintf \
wait4 \
waitpid \
wcscmp \
wcsxfrm \
wcwidth \
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
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
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

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>&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.$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

  func="$ac_func"
  echo "$as_me:$LINENO: checking deeper for $func" >&5
echo $ECHO_N "checking deeper for $func... $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.  */

int
main ()
{
 $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>&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
  echo "$as_me:$LINENO: result: yes!" >&5
echo "${ECHO_T}yes!" >&6
               eval "ac_cv_func_$func=yes"
               def=`echo "HAVE_$func" | tr 'a-z' 'A-Z'`

cat >>confdefs.h <<_ACEOF
#define $def 1
_ACEOF

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

echo "$as_me:$LINENO: result: but still no" >&5
echo "${ECHO_T}but still no" >&6

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi
done


if test "$ac_cv_func_sigsetjmp" != "yes"; then
  echo "$as_me:$LINENO: checking for sigsetjmp defined as macro" >&5
echo $ECHO_N "checking for sigsetjmp defined as macro... $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 <setjmp.h>
int
main ()
{
sigjmp_buf jmpenv;
                sigsetjmp(jmpenv, 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
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

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

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

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi

echo "$as_me:$LINENO: checking whether closedir returns void" >&5
echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
if test "${ac_cv_func_closedir_void+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_closedir_void=yes
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.  */
$ac_includes_default
#include <$ac_header_dirent>
#ifndef __cplusplus
int closedir ();
#endif

int
main ()
{
exit (closedir (opendir (".")) != 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_func_closedir_void=no
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_func_closedir_void=yes
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
if test $ac_cv_func_closedir_void = yes; then

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

fi

echo "$as_me:$LINENO: checking for long file names" >&5
echo $ECHO_N "checking for long file names... $ECHO_C" >&6
if test "${ac_cv_sys_long_file_names+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_long_file_names=yes
# Test for long file names in all the places we know might matter:
#      .		the current directory, where building will happen
#      $prefix/lib	where we will be installing things
#      $exec_prefix/lib	likewise
# eval it to expand exec_prefix.
#      $TMPDIR		if set, where it might want to write temporary files
# if $TMPDIR is not set:
#      /tmp		where it might want to write temporary files
#      /var/tmp		likewise
#      /usr/tmp		likewise
if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
  ac_tmpdirs=$TMPDIR
else
  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
fi
for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
  test -d $ac_dir || continue
  test -w $ac_dir || continue # It is less confusing to not echo anything here.
  ac_xdir=$ac_dir/cf$$
  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
  ac_tf1=$ac_xdir/conftest9012345
  ac_tf2=$ac_xdir/conftest9012346
  (echo 1 >$ac_tf1) 2>/dev/null
  (echo 2 >$ac_tf2) 2>/dev/null
  ac_val=`cat $ac_tf1 2>/dev/null`
  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
    ac_cv_sys_long_file_names=no
    rm -rf $ac_xdir 2>/dev/null
    break
  fi
  rm -rf $ac_xdir 2>/dev/null
done
fi
echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
if test $ac_cv_sys_long_file_names = yes; then

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

fi


            echo "$as_me:$LINENO: checking for working fnmatch function" >&5
echo $ECHO_N "checking for working fnmatch function... $ECHO_C" >&6
if test "${gwx_cv_func_fnmatch_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    if test "$cross_compiling" = yes; then
  gwx_cv_func_fnmatch_works=no
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 <stdlib.h>
#     include <fnmatch.h>
      int main ()
      {
        exit (fnmatch ("a*", "abc", 0) != 0
              || fnmatch ("d*/*1", "d/s/1", FNM_PATHNAME) != FNM_NOMATCH);
      }

_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
  gwx_cv_func_fnmatch_works=yes
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 )
gwx_cv_func_fnmatch_works=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

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

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

  fi

  gwx_getline_needs_run_time_check=no
  echo "$as_me:$LINENO: checking for getline" >&5
echo $ECHO_N "checking for getline... $ECHO_C" >&6
if test "${ac_cv_func_getline+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getline (); 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 getline ();
/* 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_getline) || defined (__stub___getline)
choke me
#else
char (*f) () = getline;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != getline;
  ;
  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_func_getline=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_getline=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
echo "${ECHO_T}$ac_cv_func_getline" >&6
if test $ac_cv_func_getline = yes; then
  		am_getline_needs_run_time_check=yes
else
  gwx_cv_func_working_getline=no
fi

  if test $gwx_getline_needs_run_time_check = yes; then
    echo "$as_me:$LINENO: checking for working getline function" >&5
echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
if test "${gwx_cv_func_working_getline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  echo fooN |tr -d '\012'|tr N '\012' > conftest.data
    if test "$cross_compiling" = yes; then
  gwx_cv_func_working_getline=no
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 <stdio.h>
#    include <stdlib.h>
#    include <string.h>
    int main ()
    { /* Based on a test program from Karl Heuer.  */
      char *line = NULL;
      size_t siz = 0;
      int len;
      FILE *in = fopen ("./conftest.data", "r");
      if (!in)
	return 1;
      len = getline (&line, &siz, in);
      exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
    }

_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
  gwx_cv_func_working_getline=yes
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 )
gwx_cv_func_working_getline=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gwx_cv_func_working_getline" >&5
echo "${ECHO_T}$gwx_cv_func_working_getline" >&6
  fi




  echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
if test "${gwx_cv_func_mbrtowc+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 <wchar.h>
int
main ()
{
mbstate_t state; return ! (sizeof state && mbrtowc);
  ;
  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
  gwx_cv_func_mbrtowc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

  fi


  echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
if test "${gwx_cv_have_decl_wcwidth+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.  */

/* AIX 3.2.5 declares wcwidth in <string.h>. */
#if HAVE_STRING_H
# include <string.h>
#endif
#if HAVE_WCHAR_H
# include <wchar.h>
#endif

int
main ()
{

#ifndef wcwidth
  char *p = (char *) wcwidth;
#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
  gwx_cv_have_decl_wcwidth=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gwx_cv_have_decl_wcwidth=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gwx_cv_have_decl_wcwidth" >&5
echo "${ECHO_T}$gwx_cv_have_decl_wcwidth" >&6
  if test $gwx_cv_have_decl_wcwidth = yes; then
    ac_val=1
  else
    ac_val=0
  fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_WCWIDTH $ac_val
_ACEOF




for ac_header in stdlib.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'
  { (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.$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
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 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 mbstate_t" >&5
echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
if test "${gwx_cv_type_mbstate_t+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.  */

#if HAVE_STDLIB_H
# include <stdlib.h>
#endif
#include <wchar.h>
int
main ()
{
mbstate_t x; return sizeof x;
  ;
  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
  gwx_cv_type_mbstate_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

cat >>confdefs.h <<\_ACEOF
#define mbstate_t int
_ACEOF

   fi



  echo "$as_me:$LINENO: checking for error_at_line" >&5
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
if test "${am_cv_lib_error_at_line+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.  */

int
main ()
{
error_at_line(0, 0, "", 0, "");
  ;
  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
  am_cv_lib_error_at_line=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

  fi


  echo "$as_me:$LINENO: checking for setlocale declaration" >&5
echo $ECHO_N "checking for setlocale declaration... $ECHO_C" >&6
  if test "${gwx_cv_proto_setlocale+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 <stdlib.h>
#include <locale.h>
extern
#ifdef __cplusplus
"C"
#endif
#if defined(__STDC__) || defined(__cplusplus)
char *setlocale (int category, char *locale);
#else
char *setlocale();
#endif

int
main ()
{

  ;
  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
  gwx_cv_proto_setlocale_arg1=""
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gwx_cv_proto_setlocale_arg1="const"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
gwx_cv_proto_setlocale="extern char *setlocale (int category, $gwx_cv_proto_setlocale_arg1 char *locale);"
fi

  gwx_cv_proto_setlocale=`echo "$gt_cv_proto_setlocale" | tr -s ' ' | sed -e 's/( /(/'`
  echo "$as_me:$LINENO: result: ${ac_t:-
         }$gwx_cv_proto_setlocale" >&5
echo "${ECHO_T}${ac_t:-
         }$gwx_cv_proto_setlocale" >&6

cat >>confdefs.h <<_ACEOF
#define SETLOCALE_CONST $gwx_cv_proto_setlocale_arg1
_ACEOF



  echo "$as_me:$LINENO: checking for union wait" >&5
echo $ECHO_N "checking for union wait... $ECHO_C" >&6
  if test "${gwx_cv_union_wait+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 <sys/wait.h>
int
main ()
{
union wait status; int pid; pid = wait (&status);
#ifdef WEXITSTATUS
/* Some POSIXoid systems have both the new-style macros and the old
   union wait type, and they do not work together.  If union wait
   conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
if (WEXITSTATUS (status) != 0) pid = -1;
#ifdef WTERMSIG
/* If we have WEXITSTATUS and WTERMSIG, just use them on ints.  */
-- blow chunks here --
#endif
#endif
#ifdef HAVE_WAITPID
/* Make sure union wait works with waitpid.  */
pid = waitpid (-1, &status, 0);
#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
  gwx_cv_union_wait=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gwx_cv_union_wait=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi

  if test "$gwx_cv_union_wait" = yes; then

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

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


  signals_not_posix=
  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 <signal.h>

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

  if test -z "$signals_not_posix"; then
    echo "$as_me:$LINENO: checking for sigprocmask" >&5
echo $ECHO_N "checking for sigprocmask... $ECHO_C" >&6
if test "${ac_cv_func_sigprocmask+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sigprocmask (); 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 sigprocmask ();
/* 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_sigprocmask) || defined (__stub___sigprocmask)
choke me
#else
char (*f) () = sigprocmask;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != sigprocmask;
  ;
  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_func_sigprocmask=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

fi

  fi


  echo "$as_me:$LINENO: checking for signal handlers with siginfo_t" >&5
echo $ECHO_N "checking for signal handlers with siginfo_t... $ECHO_C" >&6
if test "${gwx_cv_siginfo_t+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 <signal.h>
int
main ()
{

struct sigaction action;
siginfo_t info;
action.sa_flags = SA_SIGINFO;
action.sa_sigaction = (void *) 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
  gwx_cv_siginfo_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

  fi



  echo "$as_me:$LINENO: checking if errno is properly declared" >&5
echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
  if test "${gwx_cv_var_errno_declaration+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 <errno.h>
      extern struct { int foo; } errno;
int
main ()
{
errno.foo = 1;
  ;
  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
  gwx_cv_var_errno_declaration=no
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gwx_cv_var_errno_declaration=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

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

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

  fi



  echo "$as_me:$LINENO: checking if environ is properly declared" >&5
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
  if test "${gwx_cv_var_environ_declaration+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 <unistd.h>
      extern struct { int foo; } environ;
int
main ()
{
environ.foo = 1;
  ;
  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
  gwx_cv_var_environ_declaration=no
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gwx_cv_var_environ_declaration=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

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

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

  fi


echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
echo $ECHO_N "checking for IPv6 sockets... $ECHO_C" >&6
if test "${gwx_cv_socket_ipv6+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 <sys/socket.h>
#include <netinet/in.h>
int
main ()
{
int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
  ;
  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
  gt_cv_socket_ipv6=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gt_cv_socket_ipv6=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

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

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


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

fi


# Check whether --with-reentrancy or --without-reentrancy was given.
if test "${with_reentrancy+set}" = set; then
  withval="$with_reentrancy"

fi;
if test "x$with_reentrancy" = "xyes"; then
  CFLAGS="$CFLAGS -D_REENTRANT"

  have_missing_r_funcs=
  echo "$as_me:$LINENO: checking for asctime_r" >&5
echo $ECHO_N "checking for asctime_r... $ECHO_C" >&6
  if test "${ac_cv_asctime_args+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 <time.h>
int
main ()
{

      struct tm tmb;
      char buf[128];
      asctime_r(&tmb, buf);
  ;
  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_asctime_args=2
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 -z "$ac_cv_asctime_args" ; 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.  */
#include <time.h>
int
main ()
{

        struct tm tmb;
        char buf[128];
        asctime_r(&tmb, buf, 128);
  ;
  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_asctime_args=3
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
    fi
    if test -z "$ac_cv_asctime_args"; then
      ac_cv_asctime_args=0
    fi

fi
  if test "x$ac_cv_asctime_args" = "x0"; then
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    have_missing_r_funcs="$have_missing_r_funcs asctime_r"
  else

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

    echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_asctime_args arguments" >&5
echo "${ECHO_T}yes, and it takes $ac_cv_asctime_args arguments" >&6
    if test "$ac_cv_asctime_args" = 2; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_ASCTIME_R_2 1
_ACEOF

    elif test "$ac_cv_asctime_args" = 3; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_ASCTIME_R_3 1
_ACEOF

    fi
  fi

  echo "$as_me:$LINENO: checking for ctime_r" >&5
echo $ECHO_N "checking for ctime_r... $ECHO_C" >&6
  if test "${ac_cv_ctime_args+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 <time.h>
int
main ()
{

      time_t clock;
      char buf[26];
      ctime_r(&clock, buf);
  ;
  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_ctime_args=2
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 -z "$ac_cv_ctime_args" ; 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.  */
#include <time.h>
int
main ()
{

        time_t clock;
        char buf[26];
        ctime_r(&clock, buf, 26);
  ;
  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_ctime_args=3
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
    fi
    if test -z "$ac_cv_ctime_args"; then
      ac_cv_ctime_args=0
    fi

fi
  if test "x$ac_cv_ctime_args" = "x0"; then
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    have_missing_r_funcs="$have_missing_r_funcs ctime_r"
  else

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

    echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_ctime_args arguments" >&5
echo "${ECHO_T}yes, and it takes $ac_cv_ctime_args arguments" >&6
    if test "$ac_cv_ctime_args" = 2; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_CTIME_R_2 1
_ACEOF

    elif test "$ac_cv_ctime_args" = 3; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_CTIME_R_3 1
_ACEOF

    fi
  fi

  echo "$as_me:$LINENO: checking for localtime_r" >&5
echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
  if test "${ac_cv_localtime_args+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 <time.h>
int
main ()
{

      time_t clock;
      struct tm buf;
      localtime_r(&clock, &buf);
  ;
  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_localtime_args=2
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 -z "$ac_cv_localtime_args" ; 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.  */
#include <time.h>
int
main ()
{

        time_t clock;
        struct tm buf;
        localtime_r(&clock, &buf, sizeof(buf));
  ;
  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_localtime_args=3
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
    fi
    if test -z "$ac_cv_localtime_args"; then
      ac_cv_localtime_args=0
    fi

fi
  if test "x$ac_cv_localtime_args" = "x0"; then
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    have_missing_r_funcs="$have_missing_r_funcs localtime_r"
  else

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

    echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_localtime_args arguments" >&5
echo "${ECHO_T}yes, and it takes $ac_cv_localtime_args arguments" >&6
    if test "$ac_cv_localtime_args" = 2; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_LOCALTIME_R_2 1
_ACEOF

    elif test "$ac_cv_localtime_args" = 3; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_LOCALTIME_R_3 1
_ACEOF

    fi
  fi

  echo "$as_me:$LINENO: checking for gmtime_r" >&5
echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
  if test "${ac_cv_gmtime_args+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 <time.h>
int
main ()
{

      time_t clock;
      struct tm buf;
      gmtime_r(&clock, &buf);
  ;
  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_gmtime_args=2
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 -z "$ac_cv_gmtime_args" ; 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.  */
#include <time.h>
int
main ()
{

        time_t clock;
        struct tm buf;
        gmtime_r(&clock, &buf, sizeof(buf));
  ;
  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_gmtime_args=3
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
    fi
    if test -z "$ac_cv_gmtime_args"; then
      ac_cv_gmtime_args=0
    fi

fi
  if test "x$ac_cv_gmtime_args" = "x0"; then
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    have_missing_r_funcs="$have_missing_r_funcs gmtime_r"
  else

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

    echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_gmtime_args arguments" >&5
echo "${ECHO_T}yes, and it takes $ac_cv_gmtime_args arguments" >&6
    if test "$ac_cv_gmtime_args" = 2; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_GMTIME_R_2 1
_ACEOF

    elif test "$ac_cv_gmtime_args" = 3; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_GMTIME_R_3 1
_ACEOF

    fi
  fi

  echo "$as_me:$LINENO: checking for readdir_r" >&5
echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
  if test "${ac_cv_readdir_args+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>

#if defined(HAVE_DIRENT_H)
#   include <dirent.h>
#   define NAMLEN(dirent) strlen((dirent)->d_name)
#else
#   define dirent direct
#   define NAMLEN(dirent) (dirent)->d_namlen
#   if defined(HAVE_SYS_NDIR_H)
#       include <sys/ndir.h>
#   endif
#   if defined(HAVE_SYS_DIR_H)
#       include <sys/dir.h>
#   endif
#   if defined(HAVE_NDIR_H)
#       include <ndir.h>
#   endif
#endif
int
main ()
{

      struct dirent dir, *dirp;
      DIR *mydir;
      dirp = readdir_r(mydir, &dir);
  ;
  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_readdir_args=2
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 -z "$ac_cv_readdir_args"; 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.  */

#include <sys/types.h>
#if defined(HAVE_DIRENT_H)
#   include <dirent.h>
#   define NAMLEN(dirent) strlen((dirent)->d_name)
#else
#   define dirent direct
#   define NAMLEN(dirent) (dirent)->d_namlen
#   if defined(HAVE_SYS_NDIR_H)
#       include <sys/ndir.h>
#   endif
#   if defined(HAVE_SYS_DIR_H)
#       include <sys/dir.h>
#   endif
#   if defined(HAVE_NDIR_H)
#       include <ndir.h>
#   endif
#endif
int
main ()
{

      struct dirent dir, *dirp;
      DIR *mydir;
      int rc;
      rc = readdir_r(mydir, &dir, &dirp);
  ;
  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_readdir_args=3
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
    fi

    if test -z "$ac_cv_readdir_args"; then
      ac_cv_readdir_args=0
    fi

fi
  if test "x$ac_cv_readdir_args" = "x0"; then
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    have_missing_r_funcs="$have_missing_r_funcs readdir_r"
  else

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

    echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_readdir_args arguments" >&5
echo "${ECHO_T}yes, and it takes $ac_cv_readdir_args arguments" >&6
    if test "$ac_cv_readdir_args" = 2; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_READDIR_R_2 1
_ACEOF

    elif test "$ac_cv_readdir_args" = 3; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_READDIR_R_3 1
_ACEOF

    fi
  fi

  echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
  if test "${ac_cv_gethostbyname_args+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 <netdb.h>
int
main ()
{

struct hostent *hp;
struct hostent h;
char *name;
char buffer[10];
int  h_errno;
hp = gethostbyname_r(name, &h, buffer, 10, &h_errno);
  ;
  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_gethostbyname_args=5
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 -z "$ac_cv_gethostbyname_args"; 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.  */

#include <sys/types.h>
#include <netdb.h>
int
main ()
{

struct hostent h;
struct hostent_data hdata;
char *name;
int  rc;
rc = gethostbyname_r(name, &h, &hdata);
  ;
  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_gethostbyname_args=3
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
    fi
    if test -z "$ac_cv_gethostbyname_args"; 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.  */

#include <sys/types.h>
#include <netdb.h>
int
main ()
{

struct hostent h;
struct hostent *hp;
char *name;
char buf[10];
int rc;
int h_errno;

rc = gethostbyname_r(name, &h, buf, 10, &hp, &h_errno);
  ;
  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_gethostbyname_args=6
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
    fi
    if test -z "$ac_cv_gethostbyname_args"; then
      ac_cv_gethostbyname_args=0
    fi

fi
  if test "x$ac_cv_gethostbyname_args" = "x0"; then
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    have_missing_r_funcs="$have_missing_r_funcs gethostbyname_r"
  else

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

    echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_gethostbyname_args arguments" >&5
echo "${ECHO_T}yes, and it takes $ac_cv_gethostbyname_args arguments" >&6
    if test "$ac_cv_gethostbyname_args" = 3; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_GETHOSTBYNAME_R_3 1
_ACEOF

    elif test "$ac_cv_gethostbyname_args" = 5; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_GETHOSTBYNAME_R_5 1
_ACEOF

    elif test "$ac_cv_gethostbyname_args" = 6; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_GETHOSTBYNAME_R_6 1
_ACEOF

    fi
  fi

  echo "$as_me:$LINENO: checking for gethostbyaddr_r" >&5
echo $ECHO_N "checking for gethostbyaddr_r... $ECHO_C" >&6
  if test "${ac_cv_gethostbyaddr_args+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 <netdb.h>
int
main ()
{

char * address;
int length;
int type;
struct hostent h;
struct hostent_data hdata;
int rc;
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
  ;
  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_gethostbyaddr_args=5
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 -z "$ac_cv_gethostbyaddr_args"; 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.  */

#include <sys/types.h>
#include <netdb.h>
int
main ()
{

char * address;
int length;
int type;
struct hostent h;
char buffer[10];
int buflen;
int h_errnop;
struct hostent * hp;

hp = gethostbyaddr_r(address, length, type, &h, buffer, buflen, &h_errnop);
  ;
  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_gethostbyaddr_args=7
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
    fi

    if test -z "$ac_cv_gethostbyaddr_args"; 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.  */

#include <sys/types.h>
#include <netdb.h>
int
main ()
{

char * address;
int length;
int type;
struct hostent h;
char buffer[10];
int buflen;
int h_errnop;
struct hostent * hp;
int rc;

rc=gethostbyaddr_r(address,length,type,&h,buffer,buflen,&hp,&h_errnop);
  ;
  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_gethostbyaddr_args=8
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
    fi

    if test -z "$ac_cv_gethostbyaddr_args"; then
      ac_cv_gethostbyaddr_args=0
    fi

fi
  if test "x$ac_cv_gethostbyaddr_args" = "x0"; then
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    have_missing_r_funcs="$have_missing_r_funcs gethostbyaddr_r"
  else

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

    echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_gethostbyaddr_args arguments" >&5
echo "${ECHO_T}yes, and it takes $ac_cv_gethostbyaddr_args arguments" >&6
    if test "$ac_cv_gethostbyaddr_args" = 5; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_GETHOSTBYADDR_R_5 1
_ACEOF

    elif test "$ac_cv_gethostbyaddr_args" = 7; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_GETHOSTBYADDR_R_7 1
_ACEOF

    elif test "$ac_cv_gethostbyaddr_args" = 8; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_GETHOSTBYADDR_R_8 1
_ACEOF

    fi
  fi

  echo "$as_me:$LINENO: checking for getlogin_r" >&5
echo $ECHO_N "checking for getlogin_r... $ECHO_C" >&6
  if test "${ac_cv_getlogin_r_style+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    if test "$cross_compiling" = yes; then
  ac_cv_getlogin_r_style=
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 <unistd.h>

int main()
{
    char name[1024];
    int len=1024;
    int rc;
    char *login;

    name[0]='\0';

    rc = getlogin_r(name, len);
    if(rc == 0 && name[0] != '\0') {
	return 0; /* returns zero on success */
    } else if(rc != 0 && name[0] == '\0') {
	return 0; /* returns errno on failure */
    } else if(rc == 0 && name[0] == '\0') {
	return 0; /* can't tell */
    } else if(rc != 0 && name[0] != '\0') {
	return 1; /* returns pointer on success */
    }
}
_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_getlogin_r_style=1
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_getlogin_r_style=2
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
    if test -z "$ac_cv_getlogin_r_style"; then
      ac_cv_getlogin_r_style=0
    fi

fi
  if test "x$ac_cv_getlogin_r_style" = "x0"; then
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    have_missing_r_funcs="$have_missing_r_funcs getlogin_r"
  else

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

    if test "$ac_cv_getlogin_r_style" = 1; then
      cat >>confdefs.h <<\_ACEOF
#define GETLOGIN_R_RETURNS_INT 1
_ACEOF

      echo "$as_me:$LINENO: result: yes, returning an int" >&5
echo "${ECHO_T}yes, returning an int" >&6
    elif test "$ac_cv_getlogin_r_style" = 2; then
      cat >>confdefs.h <<\_ACEOF
#define GETLOGIN_R_RETURNS_POINTER 1
_ACEOF

      echo "$as_me:$LINENO: result: yes, returning a pointer" >&5
echo "${ECHO_T}yes, returning a pointer" >&6
    fi
  fi

  echo "$as_me:$LINENO: checking for inet_ntoa_r" >&5
echo $ECHO_N "checking for inet_ntoa_r... $ECHO_C" >&6
  if test "${ac_cv_inet_ntoa_args+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 <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h
int
main ()
{

struct in_addr in;
char *rv;
rv = inet_ntoa_r(in, buf);
  ;
  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_inet_ntoa_args=2
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 -z "$ac_cv_inet_ntoa_args"; 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.  */

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h
int
main ()
{

struct in_addr in;
char buf[128], *rv;
rv = inet_ntoa_r(in, buf, 128);
  ;
  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_inet_ntoa_args=3
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
    fi

    if test -z "$ac_cv_inet_ntoa_args"; then
      ac_cv_inet_ntoa_args=0
    fi

fi
  if test "x$ac_cv_inet_ntoa_args" = "x0"; then
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    have_missing_r_funcs="$have_missing_r_funcs inet_ntoa_r"
  else

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

    echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_inet_ntoa_args arguments" >&5
echo "${ECHO_T}yes, and it takes $ac_cv_inet_ntoa_args arguments" >&6
    if test "$ac_cv_inet_ntoa_args" = 2; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_INET_NTOA_R_5 1
_ACEOF

    elif test "$ac_cv_inet_ntoa_args" = 3; then
      cat >>confdefs.h <<\_ACEOF
#define HAVE_INET_NTOA_R_7 1
_ACEOF

    fi
  fi

  if test -n "$have_missing_r_funcs"; then
    { echo "$as_me:$LINENO: WARNING: missing reentrant functions: $have_missing_r_funcs" >&5
echo "$as_me: WARNING: missing reentrant functions: $have_missing_r_funcs" >&2;}
  fi

fi

GWX_OPENSSL=

# Check whether --with-openssl or --without-openssl was given.
if test "${with_openssl+set}" = set; then
  withval="$with_openssl"

fi;
if test "x$with_openssl" = "xyes"; then
  for dir in /usr /usr/local /usr/local/openssl /usr/openssl; do
    if test -e $dir/include/openssl && test -e $dir/include/openssl/ssl.h &&
      test -e $dir/lib/libssl.a -o -e $dir/lib/libssl.so; then
      GWX_OPENSSL=$dir
    fi
  done
elif test "x$with_openssl" != "xno"; then
  dir=$with_openssl
  if test -e $dir/include/openssl && test -e $dir/include/openssl/ssl.h &&
    test -e $dir/lib/libssl.a -o -e $dir/lib/libssl.so; then
    GWX_OPENSSL=$dir
  fi
fi


# Check whether --with-egd-socket or --without-egd-socket was given.
if test "${with_egd_socket+set}" = set; then
  withval="$with_egd_socket"
   EGD_SOCKET="$withval"

fi;
if test -n "$EGD_SOCKET" ; then

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

fi


# Check whether --with-random or --without-random was given.
if test "${with_random+set}" = set; then
  withval="$with_random"
   RANDOM_FILE="$withval"
else

                echo "$as_me:$LINENO: checking for \"/dev/urandom\"" >&5
echo $ECHO_N "checking for \"/dev/urandom\"... $ECHO_C" >&6
if test "${ac_cv_file___dev_urandom_+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  test "$cross_compiling" = yes &&
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r ""/dev/urandom""; then
  ac_cv_file___dev_urandom_=yes
else
  ac_cv_file___dev_urandom_=no
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_file___dev_urandom_" >&5
echo "${ECHO_T}$ac_cv_file___dev_urandom_" >&6
if test $ac_cv_file___dev_urandom_ = yes; then
   RANDOM_FILE="/dev/urandom"
fi



fi;
if test -n "$RANDOM_FILE" ; then


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

fi

if test "x$with_openssl" != "xno" -a -z "$GWX_OPENSSL"; then
  { { echo "$as_me:$LINENO: error: Could not find OpenSSL installation" >&5
echo "$as_me: error: Could not find OpenSSL installation" >&2;}
   { (exit 1); exit 1; }; }
fi

found_iconv=no
# Check in the C library first
echo "$as_me:$LINENO: checking for iconv_open" >&5
echo $ECHO_N "checking for iconv_open... $ECHO_C" >&6
if test "${ac_cv_func_iconv_open+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char iconv_open (); 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 iconv_open ();
/* 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_iconv_open) || defined (__stub___iconv_open)
choke me
#else
char (*f) () = iconv_open;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != iconv_open;
  ;
  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_func_iconv_open=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_iconv_open=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_iconv_open" >&5
echo "${ECHO_T}$ac_cv_func_iconv_open" >&6
if test $ac_cv_func_iconv_open = yes; then
  with_libiconv=no; found_iconv=yes
fi

if test "x$found_iconv" = "xno"; then
# Check if we have GNU libiconv
  echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-liconv  $LIBS"
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.  */

/* 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 libiconv_open ();
int
main ()
{
libiconv_open ();
  ;
  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_iconv_libiconv_open=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_iconv_libiconv_open=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_iconv_libiconv_open" >&5
echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
if test $ac_cv_lib_iconv_libiconv_open = yes; then
  with_libiconv=gnu; found_iconv=yes
fi

fi
# Check if we have a iconv in -liconv, possibly from vendor
if test "x$found_iconv" = "xno"; then
  echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-liconv  $LIBS"
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.  */

/* 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 iconv_open ();
int
main ()
{
iconv_open ();
  ;
  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_iconv_iconv_open=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_iconv_iconv_open=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_iconv_iconv_open" >&5
echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
if test $ac_cv_lib_iconv_iconv_open = yes; then
  with_libiconv=native; found_iconv=yes
fi

fi

echo "$as_me:$LINENO: checking for sigsetjmp" >&5
echo $ECHO_N "checking for sigsetjmp... $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 <setjmp.h>
int
main ()
{

sigjmp_buf env;
sigsetjmp(env, 0);

  ;
  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
  gtk_ok=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gtk_ok=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
echo "$as_me:$LINENO: result: $gtk_ok" >&5
echo "${ECHO_T}$gtk_ok" >&6
if test "$gtk_ok" = "yes"; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_SIGSETJMP 1
_ACEOF

fi

if test $ac_cv_func_setproctitle = no; then
  echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
if test "${ac_cv_lib_util_setproctitle+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lutil  $LIBS"
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.  */

/* 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 setproctitle ();
int
main ()
{
setproctitle ();
  ;
  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_util_setproctitle=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_util_setproctitle=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_util_setproctitle" >&5
echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
if test $ac_cv_lib_util_setproctitle = yes; then

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

    ac_cv_func_setproctitle=yes

fi

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
echo "$as_me:$LINENO: checking for working alloca.h" >&5
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
if test "${ac_cv_working_alloca_h+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 <alloca.h>
int
main ()
{
char *p = (char *) alloca (2 * sizeof (int));
  ;
  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_working_alloca_h=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

fi

echo "$as_me:$LINENO: checking for alloca" >&5
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
if test "${ac_cv_func_alloca_works+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.  */
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  if HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
#    endif
#   endif
#  endif
# endif
#endif

int
main ()
{
char *p = (char *) alloca (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
  ac_cv_func_alloca_works=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_alloca_works=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6

if test $ac_cv_func_alloca_works = yes; then

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

else
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble.  Some versions do not even contain alloca or
# contain a buggy version.  If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.

ALLOCA=alloca.$ac_objext

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


echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
if test "${ac_cv_os_cray+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.  */
#if defined(CRAY) && ! defined(CRAY2)
webecray
#else
wenotbecray
#endif

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

fi
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
echo "${ECHO_T}$ac_cv_os_cray" >&6
if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; 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.  */
_ACEOF
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

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>&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.$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 CRAY_STACKSEG_END $ac_func
_ACEOF

    break
fi

  done
fi

echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
if test "${ac_cv_c_stack_direction+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_c_stack_direction=0
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.  */
int
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}

int
main ()
{
  exit (find_stack_direction () < 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_c_stack_direction=1
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_c_stack_direction=-1
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6

cat >>confdefs.h <<_ACEOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
_ACEOF


fi


for ac_func in vprintf
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.  */
_ACEOF
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

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>&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.$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

echo "$as_me:$LINENO: checking for _doprnt" >&5
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
if test "${ac_cv_func__doprnt+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _doprnt (); 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 _doprnt ();
/* 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__doprnt) || defined (__stub____doprnt)
choke me
#else
char (*f) () = _doprnt;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != _doprnt;
  ;
  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_func__doprnt=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

fi

fi
done


echo "$as_me:$LINENO: checking for working strcoll" >&5
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
if test "${ac_cv_func_strcoll_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_strcoll_works=no
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.  */
$ac_includes_default
int
main ()
{
exit (strcoll ("abc", "def") >= 0 ||
	 strcoll ("ABC", "DEF") >= 0 ||
	 strcoll ("123", "456") >= 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_func_strcoll_works=yes
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_func_strcoll_works=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
if test $ac_cv_func_strcoll_works = yes; then

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

fi



for ac_header in stdlib.h unistd.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'
  { (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.$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
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 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


for ac_func in getpagesize
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.  */
_ACEOF
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

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>&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.$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

echo "$as_me:$LINENO: checking for working mmap" >&5
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
if test "${ac_cv_func_mmap_multi+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_multi=1
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.  */
$ac_includes_default
/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propogated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */

#include <fcntl.h>
#include <sys/mman.h>
#include <errno.h>

#if !STDC_HEADERS && !HAVE_STDLIB_H
char *malloc ();
#endif

/* This mess was copied from the GNU getpagesize.h.  */
#if !HAVE_GETPAGESIZE
/* Assume that all systems that can run configure have sys/param.h.  */
# if !HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  if HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

int
main ()
{
  char *data, *data2, *data3, *data4;
  char tout[8];
  int i, pagesize;
  int fd, ret = 0;

  pagesize = getpagesize ();

  /* First, make a file with some known garbage in it. */
  data = (char *) malloc (pagesize);
  if (!data)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    *(data + i) = rand ();
  umask (0);
  fd = creat ("conftest.mmap", 0600);
  if (fd < 0)
    exit (1);
  if (write (fd, data, pagesize) != pagesize)
    exit (1);
  close (fd);

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftest.mmap", O_RDWR);
  if (fd < 0)
    exit (1);
  data2 = (char *) malloc (2 * pagesize);
  if (!data2)
    exit (1);
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  data4 = mmap (data2, pagesize, PROT_READ | PROT_WRITE,
                     MAP_PRIVATE | MAP_FIXED, fd, 0L);
  if (errno != 0 && errno == ENOMEM) {
      errno = 0;
      data4 = mmap (data, pagesize, PROT_READ | PROT_WRITE,
	  MAP_PRIVATE, fd, 0L);
      if (errno != 0)
	  exit (1);
      ret = 2;
  } else if (data4 != data2)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data4 + i))
      exit (1);

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data4 + i) = *(data4 + i) + 1;
  data3 = (char *) malloc (pagesize);
  if (!data3)
    exit (1);
  if (read (fd, data3, pagesize) != pagesize)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data3 + i))
      exit (1);
  close (fd);
  fd=creat("conftestmp", 0600);
  if (fd < 0)
      exit (1);
  tout[0] = '0' + ret;
  tout[1] = '\n';
  write (fd, tout, 2);
  close (fd);
  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
  ac_cv_func_mmap_multi=`cat conftestmp`
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_func_mmap_multi=1
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

if test $ac_cv_func_mmap_multi = 0; then
  ac_cv_func_mmap_fixed_mapped=yes
  ac_cv_func_mmap=yes
elif test $ac_cv_func_mmap_multi = 1; then
  ac_cv_func_mmap_fixed_mapped=no
  ac_cv_func_mmap=no
else
  ac_cv_func_mmap_fixed_mapped=no
  ac_cv_func_mmap=yes
fi
if test $ac_cv_func_mmap_fixed_mapped = yes; then


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

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


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

  echo "$as_me:$LINENO: result: yes, without MAP_FIXED" >&5
echo "${ECHO_T}yes, without MAP_FIXED" >&6
fi
if test $ac_cv_func_mmap_multi = 1; then
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest.mmap conftestmp


for ac_func in vprintf
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.  */
_ACEOF
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

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>&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.$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

echo "$as_me:$LINENO: checking for _doprnt" >&5
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
if test "${ac_cv_func__doprnt+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _doprnt (); 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 _doprnt ();
/* 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__doprnt) || defined (__stub____doprnt)
choke me
#else
char (*f) () = _doprnt;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != _doprnt;
  ;
  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_func__doprnt=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

fi

fi
done



if test "$ac_cv_func_memmove" != "yes"; then
  echo "$as_me:$LINENO: checking whether bcopy can handle overlapping copies" >&5
echo $ECHO_N "checking whether bcopy can handle overlapping copies... $ECHO_C" >&6
if test "${glib_cv_working_bcopy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

      int main() {
        char buf[128], abc[128], *b;
        int len, off, align;
        bcopy("abcdefghijklmnopqrstuvwxyz0123456789", abc, 36);
        for (align = 7; align >= 0; align--) {
          for (len = 36; len; len--) {
            b = buf+align; bcopy(abc, b, len);
            for (off = 1; off <= len; off++) {
              bcopy(b, b+off, len); bcopy(b+off, b, len);
                if (bcmp(b, abc, len)) return(1);
            }
          }
        }
        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
  glib_cv_working_bcopy=yes
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 )
glib_cv_working_bcopy=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $glib_cv_working_bcopy" >&5
echo "${ECHO_T}$glib_cv_working_bcopy" >&6
  if test "$glib_cv_working_bcopy" = "yes"; then


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

  fi
fi

echo "$as_me:$LINENO: checking for getsubopt" >&5
echo $ECHO_N "checking for getsubopt... $ECHO_C" >&6
if test "${ac_cv_func_getsubopt+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getsubopt (); 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 getsubopt ();
/* 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_getsubopt) || defined (__stub___getsubopt)
choke me
#else
char (*f) () = getsubopt;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != getsubopt;
  ;
  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_func_getsubopt=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_getsubopt=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_getsubopt" >&5
echo "${ECHO_T}$ac_cv_func_getsubopt" >&6
if test $ac_cv_func_getsubopt = yes; then
  gwx_getsubopt=yes
else
  gwx_getsubopt=no
fi



echo "$as_me:$LINENO: checking for type of signal functions" >&5
echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
if test "${bash_cv_signal_vintage+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 <signal.h>
int
main ()
{

    sigset_t ss;
    struct sigaction sa;
    sigemptyset(&ss); sigsuspend(&ss);
    sigaction(SIGINT, &sa, (struct sigaction *) 0);
    sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);

  ;
  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
  bash_cv_signal_vintage=posix
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


    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 <signal.h>
int
main ()
{

	int mask = sigmask(SIGINT);
	sigsetmask(mask); sigblock(mask); sigpause(mask);

  ;
  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
  bash_cv_signal_vintage=4.2bsd
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


      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 <signal.h>
	RETSIGTYPE foo() { }
int
main ()
{

		int mask = sigmask(SIGINT);
		sigset(SIGINT, foo); sigrelse(SIGINT);
		sighold(SIGINT); sigpause(SIGINT);

  ;
  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
  bash_cv_signal_vintage=svr3
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

bash_cv_signal_vintage=v7

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi

echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
echo "${ECHO_T}$bash_cv_signal_vintage" >&6
if test "$bash_cv_signal_vintage" = posix; then

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

elif test "$bash_cv_signal_vintage" = "4.2bsd"; then

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

elif test "$bash_cv_signal_vintage" = svr3; then

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

fi



echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot check signal handling if cross compiling -- defaulting to no" >&5
echo "$as_me: error: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
   { (exit 1); exit 1; }; }
    bash_cv_must_reinstall_sighandlers=no

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 <signal.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

typedef RETSIGTYPE sigfunc();

int nsigint;

#ifdef HAVE_POSIX_SIGNALS
sigfunc *
set_signal_handler(sig, handler)
     int sig;
     sigfunc *handler;
{
  struct sigaction act, oact;
  act.sa_handler = handler;
  act.sa_flags = 0;
  sigemptyset (&act.sa_mask);
  sigemptyset (&oact.sa_mask);
  sigaction (sig, &act, &oact);
  return (oact.sa_handler);
}
#else
#define set_signal_handler(s, h) signal(s, h)
#endif

RETSIGTYPE
sigint(s)
int s;
{
  nsigint++;
}

main()
{
	nsigint = 0;
	set_signal_handler(SIGINT, sigint);
	kill((int)getpid(), SIGINT);
	kill((int)getpid(), SIGINT);
	exit(nsigint != 2);
}

_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
  bash_cv_must_reinstall_sighandlers=no
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 )
bash_cv_must_reinstall_sighandlers=yes
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

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

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

fi


echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
if test "${bash_cv_func_sigsetjmp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
echo "$as_me: error: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
   { (exit 1); exit 1; }; }
     bash_cv_func_sigsetjmp=missing

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.  */

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/types.h>
#include <signal.h>
#include <setjmp.h>

main()
{
#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
exit (1);
#else

int code;
sigset_t set, oset;
sigjmp_buf xx;

/* get the mask */
sigemptyset(&set);
sigemptyset(&oset);
sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);

/* save it */
code = sigsetjmp(xx, 1);
if (code)
  exit(0);	/* could get sigmask and compare to oset here. */

/* change it */
sigaddset(&set, SIGINT);
sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);

/* and siglongjmp */
siglongjmp(xx, 10);
exit(1);
#endif
}
_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
  bash_cv_func_sigsetjmp=present
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 )
bash_cv_func_sigsetjmp=missing
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
if test $bash_cv_func_sigsetjmp = present; then

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

fi

echo "$as_me:$LINENO: checking for lstat" >&5
echo $ECHO_N "checking for lstat... $ECHO_C" >&6
if test "${bash_cv_func_lstat+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 <sys/stat.h>

int
main ()
{
 lstat(".",(struct stat *)0);
  ;
  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
  bash_cv_func_lstat=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

fi

echo "$as_me:$LINENO: checking whether programs are able to redeclare getpw functions" >&5
echo $ECHO_N "checking whether programs are able to redeclare getpw functions... $ECHO_C" >&6
if test "${bash_cv_can_redecl_getpw+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 <pwd.h>
extern struct passwd *getpwent();
extern struct passwd *getpwuid();
extern struct passwd *getpwnam();
int
main ()
{
struct passwd *z; z = getpwent(); z = getpwuid(0); z = getpwnam("root");
  ;
  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
  bash_cv_can_redecl_getpw=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

bash_cv_can_redecl_getpw=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

echo "$as_me:$LINENO: result: $bash_cv_can_redecl_getpw" >&5
echo "${ECHO_T}$bash_cv_can_redecl_getpw" >&6
if test $bash_cv_can_redecl_getpw = no; then

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

fi


echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
if test "${bash_cv_func_strcoll_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot check strcoll if cross compiling -- defaulting to no" >&5
echo "$as_me: error: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
   { (exit 1); exit 1; }; }
    bash_cv_func_strcoll_broken=no

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 <stdio.h>
#if defined (HAVE_LOCALE_H)
#include <locale.h>
#endif

main(c, v)
int     c;
char    *v[];
{
        int     r1, r2;
        char    *deflocale, *defcoll;

#ifdef HAVE_SETLOCALE
        deflocale = setlocale(LC_ALL, "");
	defcoll = setlocale(LC_COLLATE, "");
#endif

#ifdef HAVE_STRCOLL
	/* These two values are taken from tests/glob-test. */
        r1 = strcoll("abd", "aXd");
#else
	r1 = 0;
#endif
        r2 = strcmp("abd", "aXd");

	/* These two should both be greater than 0.  It is permissible for
	   a system to return different values, as long as the sign is the
	   same. */

        /* Exit with 1 (failure) if these two values are both > 0, since
	   this tests whether strcoll(3) is broken with respect to strcmp(3)
	   in the default locale. */
	exit (r1 > 0 && r2 > 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
  bash_cv_func_strcoll_broken=yes
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 )
bash_cv_func_strcoll_broken=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

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

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

fi

echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
if test "${bash_cv_void_sighandler+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 <signal.h>
#ifdef signal
#undef signal
#endif
#ifdef __cplusplus
extern "C"
#endif
void (*signal ()) ();
int
main ()
{
int i;
  ;
  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
  bash_cv_void_sighandler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

fi

echo "$as_me:$LINENO: checking for TIOCGWINSZ in sys/ioctl.h" >&5
echo $ECHO_N "checking for TIOCGWINSZ in sys/ioctl.h... $ECHO_C" >&6
if test "${bash_cv_tiocgwinsz_in_ioctl+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 <sys/ioctl.h>
int
main ()
{
int x = TIOCGWINSZ;
  ;
  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
  bash_cv_tiocgwinsz_in_ioctl=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

bash_cv_tiocgwinsz_in_ioctl=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

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

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

fi

echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
if test "${bash_cv_tiocstat_in_ioctl+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 <sys/ioctl.h>
int
main ()
{
int x = TIOCSTAT;
  ;
  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
  bash_cv_tiocstat_in_ioctl=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

bash_cv_tiocstat_in_ioctl=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

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

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

fi

echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
if test "${bash_cv_fionread_in_ioctl+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 <sys/ioctl.h>
int
main ()
{
int x = FIONREAD;
  ;
  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
  bash_cv_fionread_in_ioctl=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

bash_cv_fionread_in_ioctl=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

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

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

fi

echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
if test "${bash_cv_speed_t_in_sys_types+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>
int
main ()
{
speed_t x;
  ;
  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
  bash_cv_speed_t_in_sys_types=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

bash_cv_speed_t_in_sys_types=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

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

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

fi

echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
if test "${bash_cv_struct_winsize_header+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 <sys/ioctl.h>
int
main ()
{
struct winsize x;
  ;
  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
  bash_cv_struct_winsize_header=ioctl_h
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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 <termios.h>
int
main ()
{
struct winsize x;
  ;
  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
  bash_cv_struct_winsize_header=termios_h
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

bash_cv_struct_winsize_header=other
fi
rm -f conftest.$ac_objext conftest.$ac_ext

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

if test $bash_cv_struct_winsize_header = ioctl_h; then
  echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
echo "${ECHO_T}sys/ioctl.h" >&6

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


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

elif test $bash_cv_struct_winsize_header = termios_h; then
  echo "$as_me:$LINENO: result: termios.h" >&5
echo "${ECHO_T}termios.h" >&6

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


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

else
  echo "$as_me:$LINENO: result: not found" >&5
echo "${ECHO_T}not found" >&6
fi


echo "$as_me:$LINENO: checking if struct dirent has a d_ino member" >&5
echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6
if test "${bash_cv_dirent_has_dino+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 <stdio.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif /* HAVE_UNISTD_H */
#if defined(HAVE_DIRENT_H)
# include <dirent.h>
#else
# define dirent direct
# ifdef HAVE_SYS_NDIR_H
#  include <sys/ndir.h>
# endif /* SYSNDIR */
# ifdef HAVE_SYS_DIR_H
#  include <sys/dir.h>
# endif /* SYSDIR */
# ifdef HAVE_NDIR_H
#  include <ndir.h>
# endif
#endif /* HAVE_DIRENT_H */

int
main ()
{

struct dirent d; int z; z = d.d_ino;

  ;
  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
  bash_cv_dirent_has_dino=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

bash_cv_dirent_has_dino=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

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

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

fi


echo "$as_me:$LINENO: checking if struct dirent has a d_fileno member" >&5
echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6
if test "${bash_cv_dirent_has_d_fileno+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 <stdio.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif /* HAVE_UNISTD_H */
#if defined(HAVE_DIRENT_H)
# include <dirent.h>
#else
# define dirent direct
# ifdef HAVE_SYS_NDIR_H
#  include <sys/ndir.h>
# endif /* SYSNDIR */
# ifdef HAVE_SYS_DIR_H
#  include <sys/dir.h>
# endif /* SYSDIR */
# ifdef HAVE_NDIR_H
#  include <ndir.h>
# endif
#endif /* HAVE_DIRENT_H */

int
main ()
{

struct dirent d; int z; z = d.d_fileno;

  ;
  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
  bash_cv_dirent_has_d_fileno=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

bash_cv_dirent_has_d_fileno=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

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

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

fi



for ac_header in wctype.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'
  { (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.$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
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 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


for ac_header in wchar.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'
  { (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.$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
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 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


for ac_header in langinfo.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'
  { (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.$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
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 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 mbsrtowcs" >&5
echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
if test "${ac_cv_func_mbsrtowcs+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char mbsrtowcs (); 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 mbsrtowcs ();
/* 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_mbsrtowcs) || defined (__stub___mbsrtowcs)
choke me
#else
char (*f) () = mbsrtowcs;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != mbsrtowcs;
  ;
  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_func_mbsrtowcs=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_mbsrtowcs=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
if test $ac_cv_func_mbsrtowcs = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_MBSRTOWCS 1
_ACEOF

fi

echo "$as_me:$LINENO: checking for wcwidth" >&5
echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
if test "${ac_cv_func_wcwidth+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char wcwidth (); 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 wcwidth ();
/* 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_wcwidth) || defined (__stub___wcwidth)
choke me
#else
char (*f) () = wcwidth;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != wcwidth;
  ;
  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_func_wcwidth=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_wcwidth=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
if test $ac_cv_func_wcwidth = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_WCWIDTH 1
_ACEOF

fi


echo "$as_me:$LINENO: checking for mbstate_t" >&5
echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
if test "${bash_cv_have_mbstate_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <wchar.h>
int
main ()
{
  mbstate_t ps;
  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
  bash_cv_have_mbstate_t=yes
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 )
bash_cv_have_mbstate_t=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
if test $bash_cv_have_mbstate_t = yes; then

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

fi

echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
if test "${bash_cv_langinfo_codeset+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 <langinfo.h>
int
main ()
{
char* cs = nl_langinfo(CODESET);
  ;
  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
  bash_cv_langinfo_codeset=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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


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



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

fi





echo "$as_me:$LINENO: checking for sys_errlist" >&5
echo $ECHO_N "checking for sys_errlist... $ECHO_C" >&6
if test "${glib_cv_var_sys_errlist+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.  */

int
main ()
{

extern char *sys_errlist[];
extern int sys_nerr;
sys_errlist[sys_nerr-1][0] = 0;

  ;
  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
  glib_cv_var_sys_errlist=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

glib_cv_var_sys_errlist=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

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


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

fi

 echo "$as_me:$LINENO: checking if sys_errlist must be declared" >&5
echo $ECHO_N "checking if sys_errlist must be declared... $ECHO_C" >&6
  if test "${ac_cv_decl_need_sys_errlist+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
    tmp_inc_errno=""
  for ac_hdr in errno.h sys/errno.h; 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.  */
#include <$ac_hdr>
_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
   tmp_inc_errno="#include <$ac_hdr>"
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
  done

    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.  */
$tmp_inc_errno
int
main ()
{
*sys_errlist;
  ;
  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_decl_need_sys_errlist=no
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_decl_need_sys_errlist=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

  echo "$as_me:$LINENO: result: $ac_cv_decl_need_sys_errlist" >&5
echo "${ECHO_T}$ac_cv_decl_need_sys_errlist" >&6
  if test $ac_cv_decl_need_sys_errlist = yes ; then
    cat >>confdefs.h <<\_ACEOF
#define NEED_SYS_ERRLIST_DECLARED 1
_ACEOF

  fi
  echo "$as_me:$LINENO: checking if sys_nerr must be declared" >&5
echo $ECHO_N "checking if sys_nerr must be declared... $ECHO_C" >&6
  if test "${ac_cv_decl_need_sys_nerr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
    tmp_inc_errno=""
  for ac_hdr in errno.h sys/errno.h; 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.  */
#include <$ac_hdr>
_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
   tmp_inc_errno="#include <$ac_hdr>"
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
  done

    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.  */
$tmp_inc_errno
int
main ()
{
sys_nerr;
  ;
  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_decl_need_sys_nerr=no
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_decl_need_sys_nerr=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

  echo "$as_me:$LINENO: result: $ac_cv_decl_need_sys_nerr" >&5
echo "${ECHO_T}$ac_cv_decl_need_sys_nerr" >&6
  if test $ac_cv_decl_need_sys_nerr = yes ; then
    cat >>confdefs.h <<\_ACEOF
#define NEED_SYS_NERR_DECLARED 1
_ACEOF

  fi



echo "$as_me:$LINENO: checking for sys_siglist" >&5
echo $ECHO_N "checking for sys_siglist... $ECHO_C" >&6
if test "${glib_cv_var_sys_siglist+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.  */

int
main ()
{

extern char *sys_siglist[];
sys_siglist[0][0] = 0;

  ;
  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
  glib_cv_var_sys_siglist=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

glib_cv_var_sys_siglist=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

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


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

fi



echo "$as_me:$LINENO: checking for sys_siglist declaration" >&5
echo $ECHO_N "checking for sys_siglist declaration... $ECHO_C" >&6
if test "${glib_cv_var_sys_siglist_decl+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 <signal.h>
int
main ()
{

strlen (sys_siglist[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
  glib_cv_var_sys_siglist_decl=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

glib_cv_var_sys_siglist_decl=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

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


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

fi


echo "$as_me:$LINENO: checking for res_query" >&5
echo $ECHO_N "checking for res_query... $ECHO_C" >&6
if test "${ac_cv_func_res_query+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char res_query (); 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 res_query ();
/* 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_res_query) || defined (__stub___res_query)
choke me
#else
char (*f) () = res_query;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != res_query;
  ;
  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_func_res_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

if test $ac_cv_func_res_query = no ; then
	echo "$as_me:$LINENO: checking for __res_query" >&5
echo $ECHO_N "checking for __res_query... $ECHO_C" >&6
if test "${ac_cv_func___res_query+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.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __res_query (); 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 __res_query ();
/* 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___res_query) || defined (__stub_____res_query)
choke me
#else
char (*f) () = __res_query;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != __res_query;
  ;
  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_func___res_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

	ac_cv_func_res_query=$ac_cv_func___res_query
fi

if test $ac_cv_func_res_query = no ; then

echo "$as_me:$LINENO: checking for res_query in -lbind" >&5
echo $ECHO_N "checking for res_query in -lbind... $ECHO_C" >&6
if test "${ac_cv_lib_bind_res_query+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbind  $LIBS"
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.  */

/* 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 res_query ();
int
main ()
{
res_query ();
  ;
  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_bind_res_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_bind_res_query=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_bind_res_query" >&5
echo "${ECHO_T}$ac_cv_lib_bind_res_query" >&6
if test $ac_cv_lib_bind_res_query = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBBIND 1
_ACEOF

  LIBS="-lbind $LIBS"

fi

	ac_cv_func_res_query=$ac_cv_lib_bind_res_query
fi

if test $ac_cv_func_res_query = no ; then

echo "$as_me:$LINENO: checking for __res_query in -lbind" >&5
echo $ECHO_N "checking for __res_query in -lbind... $ECHO_C" >&6
if test "${ac_cv_lib_bind___res_query+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbind  $LIBS"
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.  */

/* 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 __res_query ();
int
main ()
{
__res_query ();
  ;
  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_bind___res_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_bind___res_query=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_bind___res_query" >&5
echo "${ECHO_T}$ac_cv_lib_bind___res_query" >&6
if test $ac_cv_lib_bind___res_query = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBBIND 1
_ACEOF

  LIBS="-lbind $LIBS"

fi

	ac_cv_func_res_query=$ac_cv_lib_bind___res_query
fi

if test $ac_cv_func_res_query = no ; then

echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6
if test "${ac_cv_lib_resolv_res_query+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lresolv  $LIBS"
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.  */

/* 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 res_query ();
int
main ()
{
res_query ();
  ;
  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_resolv_res_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_resolv_res_query=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_resolv_res_query" >&5
echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6
if test $ac_cv_lib_resolv_res_query = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBRESOLV 1
_ACEOF

  LIBS="-lresolv $LIBS"

fi

	ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
fi

if test $ac_cv_func_res_query = no ; then

echo "$as_me:$LINENO: checking for __res_query in -lresolv" >&5
echo $ECHO_N "checking for __res_query in -lresolv... $ECHO_C" >&6
if test "${ac_cv_lib_resolv___res_query+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lresolv  $LIBS"
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.  */

/* 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 __res_query ();
int
main ()
{
__res_query ();
  ;
  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_resolv___res_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_resolv___res_query=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_resolv___res_query" >&5
echo "${ECHO_T}$ac_cv_lib_resolv___res_query" >&6
if test $ac_cv_lib_resolv___res_query = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBRESOLV 1
_ACEOF

  LIBS="-lresolv $LIBS"

fi

	ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
fi

if test $ac_cv_func_res_query = no ; then

echo "$as_me:$LINENO: checking for res_query in -lsocket" >&5
echo $ECHO_N "checking for res_query in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_res_query+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"
/* 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 res_query ();
int
main ()
{
res_query ();
  ;
  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_res_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_socket_res_query=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_res_query" >&5
echo "${ECHO_T}$ac_cv_lib_socket_res_query" >&6
if test $ac_cv_lib_socket_res_query = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSOCKET 1
_ACEOF

  LIBS="-lsocket $LIBS"

fi

	ac_cv_func_res_query=$ac_cv_lib_socket_res_query
fi

if test $ac_cv_func_res_query = no ; then

echo "$as_me:$LINENO: checking for __res_query in -lsocket" >&5
echo $ECHO_N "checking for __res_query in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket___res_query+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"
/* 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 __res_query ();
int
main ()
{
__res_query ();
  ;
  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___res_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_socket___res_query=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___res_query" >&5
echo "${ECHO_T}$ac_cv_lib_socket___res_query" >&6
if test $ac_cv_lib_socket___res_query = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSOCKET 1
_ACEOF

  LIBS="-lsocket $LIBS"

fi

	ac_cv_func_res_query=$ac_cv_lib_socket___res_query
fi

if test "$ac_cv_func_res_query" = yes ; then


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

fi

echo "$as_me:$LINENO: checking for sa_restorer in struct sigaction" >&5
echo $ECHO_N "checking for sa_restorer in struct sigaction... $ECHO_C" >&6
if test "${ac_cv_struct_sa_restorer+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 <sys/signal.h>
int
main ()
{
struct sigaction s; s.sa_restorer;
  ;
  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_struct_sa_restorer=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_struct_sa_restorer=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_struct_sa_restorer" >&5
echo "${ECHO_T}$ac_cv_struct_sa_restorer" >&6
if test $ac_cv_struct_sa_restorer = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_SA_RESTORER 1
_ACEOF

fi


MAXPATHLEN=
echo "$as_me:$LINENO: checking for MAXPATHLEN definition" >&5
echo $ECHO_N "checking for MAXPATHLEN definition... $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 <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif

#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif

#if defined(MAXPATHLEN)
yes
#endif

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

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

if test "x$maxpath" = xno; then



for ac_func in pathconf getcwd getwd
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.  */
_ACEOF
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

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>&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.$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

  if test "$cross_compiling" = yes; then
  maxpathlen=512
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 <stdio.h>

  #ifdef HAVE_STDLIB_H
  #include <stdlib.h>
  #endif

  #ifdef HAVE_UNISTD_H
  #include <unistd.h>
  #endif

  #ifdef HAVE_LIMITS_H
  #include <limits.h>
  #endif

  #ifdef HAVE_SYS_PARAM_H
  #include <sys/param.h>
  #endif

  main()
  {
    FILE *maxpath;
    int max = 0;
    char *pwdbuf = malloc(4096);

  #if defined(HAVE_PATHCONF) && defined(_PC_PATH_MAX)
  #ifdef HAVE_GETCWD
    char *pwd = getcwd (pwdbuf, 4095);
  #else
  #ifdef HAVE_GETWD
    char *pwd = getwd (pwdbuf);
  #endif
  #endif /* HAVE_GETCWD */
    if (pwd != (char *)0) {
      max = pathconf (pwd, _PC_PATH_MAX);
    }
  #endif
    if (max <= 0)
      max = 512;
    unlink("conftestmp");
    maxpath = fopen ("conftestmp", "w");
    if (maxpath) {
      fprintf (maxpath, "%d\n", max);
      fclose (maxpath);
      exit (0);
    }
    exit (1);
  }

_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
  maxpathlen=`cat conftestmp`
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 )
maxpathlen=512
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
  echo "$as_me:$LINENO: checking for MAXPATHLEN value" >&5
echo $ECHO_N "checking for MAXPATHLEN value... $ECHO_C" >&6
  echo "$as_me:$LINENO: result: ${maxpathlen}" >&5
echo "${ECHO_T}${maxpathlen}" >&6
  CFLAGS="-DMAXPATHLEN=$maxpathlen $CFLAGS"
  MAXPATHLEN="-DMAXPATHLEN=$maxpathlen"
fi


if test "$ac_cv_func_getrusage" = "no"; then
  echo "$as_me:$LINENO: checking for where to find CLK_TCK symbol" >&5
echo $ECHO_N "checking for where to find CLK_TCK symbol... $ECHO_C" >&6
  clk_tck_where=""
  for hdr in "<time.h>" "<limits.h>" ; do
    if test -z "$clk_tck_where"; 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.  */
#include $hdr
 #ifdef CLK_TCK
  yes
 #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then
  clk_tck_where=$hdr
fi
rm -f conftest*

    fi
  done
  if test -z "$clk_tck_where"; then
    { echo "$as_me:$LINENO: WARNING: CLK_TCK not found, assuming 60 ticks/sec" >&5
echo "$as_me: WARNING: CLK_TCK not found, assuming 60 ticks/sec" >&2;}

cat >>confdefs.h <<\_ACEOF
#define CLK_TCK 60
_ACEOF

  else
    echo "$as_me:$LINENO: result: $clk_tck_where" >&5
echo "${ECHO_T}$clk_tck_where" >&6
  fi
fi

if test "$ac_cv_func_mmap" != yes; then
	TT_FILE_COMPONENT=ttfile.c
else
	TT_FILE_COMPONENT=ttmmap.c
	echo "$as_me:$LINENO: checking whether munmap must be declared" >&5
echo $ECHO_N "checking whether munmap must be declared... $ECHO_C" >&6
if test "${ft_cv_munmap_decl+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.  */

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/mman.h>
int
main ()
{
char *(*pfn) = (char *(*))munmap
  ;
  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
  ft_cv_munmap_decl=no
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ft_cv_munmap_decl=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

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

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

fi
	echo "$as_me:$LINENO: checking for munmap's first parameter type" >&5
echo $ECHO_N "checking for munmap's first parameter type... $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 <unistd.h>
#include <sys/mman.h>
int munmap(void *, size_t);
int
main ()
{

  ;
  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
  echo "$as_me:$LINENO: result: void *" >&5
echo "${ECHO_T}void *" >&6;
cat >>confdefs.h <<\_ACEOF
#define MUNMAP_USES_VOIDP 1
_ACEOF

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

echo "$as_me:$LINENO: result: char *" >&5
echo "${ECHO_T}char *" >&6
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi



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"
/* 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 { (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_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"
/* 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 { (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_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 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


fi

echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
if test "${ac_cv_struct_tm+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 <time.h>

int
main ()
{
struct tm *tp; tp->tm_sec;
  ;
  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_struct_tm=time.h
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_struct_tm=sys/time.h
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
echo "${ECHO_T}$ac_cv_struct_tm" >&6
if test $ac_cv_struct_tm = sys/time.h; then

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

fi

echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
if test "${ac_cv_member_struct_tm_tm_zone+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 <$ac_cv_struct_tm>


int
main ()
{
static struct tm ac_aggr;
if (ac_aggr.tm_zone)
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_member_struct_tm_tm_zone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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 <$ac_cv_struct_tm>


int
main ()
{
static struct tm ac_aggr;
if (sizeof ac_aggr.tm_zone)
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_member_struct_tm_tm_zone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_member_struct_tm_tm_zone=no
fi
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_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
if test $ac_cv_member_struct_tm_tm_zone = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_TM_TM_ZONE 1
_ACEOF


fi

if test "$ac_cv_member_struct_tm_tm_zone" = yes; then

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

else
  echo "$as_me:$LINENO: checking for tzname" >&5
echo $ECHO_N "checking for tzname... $ECHO_C" >&6
if test "${ac_cv_var_tzname+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 <time.h>
#ifndef tzname /* For SGI.  */
extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
#endif

int
main ()
{
atoi(*tzname);
  ;
  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_var_tzname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

  fi
fi


# Check for ANSI C exit success/failure values.
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 <stdlib.h>
    #ifdef EXIT_SUCCESS
    yes
    #endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then


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

fi
rm -f conftest*


# 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

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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#include <fcntl.h>
main(){exit(fcntl(1, F_SETFD, 1) == -1);}
_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
  db_cv_fcntl_f_setfd=yes
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_fcntl_f_setfd=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
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

# 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:$LINENO: 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
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){char buf[20]; exit(sprintf(buf, "XXX") != 3);}
_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
  db_cv_sprintf_count=yes
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_sprintf_count=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $db_cv_sprintf_count" >&5
echo "${ECHO_T}$db_cv_sprintf_count" >&6
if test "$db_cv_sprintf_count" = no; then

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

fi

echo "$as_me:$LINENO: checking for function raise" >&5
echo $ECHO_N "checking for function raise... $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.  */

#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
#ifdef HAVE_SYS_SIGNAL_H
#include <sys/signal.h>
#endif

int
main ()
{
raise(1);
  ;
  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_have_raise=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

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

fi

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/socket.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "sockaddr_storage" >/dev/null 2>&1; then

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

fi
rm -f conftest*


echo "$as_me:$LINENO: checking for __attribute__" >&5
echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
if test "${ac_cv___attribute__+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 <stdlib.h>

int
main ()
{

static void foo(void) __attribute__ ((noreturn));

static void
foo(void)
{
  exit(1);
}

  ;
  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___attribute__=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv___attribute__=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

if test "$ac_cv___attribute__" = "yes"; then


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

fi
echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
echo "${ECHO_T}$ac_cv___attribute__" >&6
LIBS="$NONSOCKLIBS"

have_LTDL=no
echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lltdl  $LIBS"
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.  */

/* 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 lt_dlinit ();
int
main ()
{
lt_dlinit ();
  ;
  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_ltdl_lt_dlinit=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ltdl_lt_dlinit=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_ltdl_lt_dlinit" >&5
echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
if test $ac_cv_lib_ltdl_lt_dlinit = yes; then

  have_LTDL=-lltdl


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


fi


gwx_debugging=no
gwx_asserts=no
gwx_threads=no

echo "$as_me:$LINENO: checking for option GWX_GLOBAL_DEBUGGING" >&5
echo $ECHO_N "checking for option GWX_GLOBAL_DEBUGGING... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 34465 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GLOBAL_DEBUGGING)
# if (GWX_GLOBAL_DEBUGGING != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  gwx_debugging=yes
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_GLOBAL_ASSERTIONS" >&5
echo $ECHO_N "checking for option GWX_GLOBAL_ASSERTIONS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 34490 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GLOBAL_ASSERTIONS)
# if (GWX_GLOBAL_ASSERTIONS != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  gwx_asserts=yes
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_GLOBAL_THREADS" >&5
echo $ECHO_N "checking for option GWX_GLOBAL_THREADS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 34515 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GLOBAL_THREADS)
# if (GWX_GLOBAL_THREADS != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  gwx_threads=yes
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

if test "x$gwx_debugging" = "xno"; then
  if test "x$gwx_asserts" = "xno"; then
    CFLAGS="$CFLAGS -DNDEBUG"
  fi
fi

ac_save_CPPFLAGS="$CPPFLAGS"
echo "$as_me:$LINENO: checking for iconv" >&5
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
if test "${ac_cv_func_iconv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  ac_cv_func_iconv="no, consider installing GNU libiconv"
  ac_cv_lib_iconv=no
  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 <stdlib.h>
#include <iconv.h>
int
main ()
{

      iconv_t cd = iconv_open("","");
      iconv(cd,NULL,NULL,NULL,NULL);
      iconv_close(cd);
  ;
  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_func_iconv=yes
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_func_iconv" != yes; then
    ac_save_LIBS="$LIBS"
    LIBS="$LIBS $LIBICONV"
    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 <stdlib.h>
#include <iconv.h>
int
main ()
{

      iconv_t cd = iconv_open("","");
      iconv(cd,NULL,NULL,NULL,NULL);
      iconv_close(cd);
  ;
  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_iconv=yes
      ac_cv_func_iconv=yes
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
    LIBS="$ac_save_LIBS"
  fi

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

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


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


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


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

  echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
echo $ECHO_N "checking whether iconv.h defines iconv_t... $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 <iconv.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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


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

else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest*

fi

if test "$ac_cv_lib_iconv" = yes; then
  echo "$as_me:$LINENO: checking how to link with libiconv" >&5
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  echo "$as_me:$LINENO: result: $LIBICONV" >&5
echo "${ECHO_T}$LIBICONV" >&6
else
      CPPFLAGS="$ac_save_CPPFLAGS"
  LIBICONV=
fi


if test "$ac_cv_func_iconv" = yes; then
  echo "$as_me:$LINENO: checking for iconv declaration" >&5
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  if test "${ac_cv_proto_iconv+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 <stdlib.h>
#include <iconv.h>
extern
#ifdef __cplusplus
"C"
#endif
#if defined(__STDC__) || defined(__cplusplus)
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
#else
size_t iconv();
#endif

int
main ()
{

  ;
  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_proto_iconv_arg1=""
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_proto_iconv_arg1="const"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
    ac_cv_proto_iconv="extern size_t iconv (iconv_t cd, $ac_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
fi

  ac_cv_proto_iconv=`echo "$ac_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  echo "$as_me:$LINENO: result: ${ac_t:-
         }$ac_cv_proto_iconv" >&5
echo "${ECHO_T}${ac_t:-
         }$ac_cv_proto_iconv" >&6

cat >>confdefs.h <<_ACEOF
#define ICONV_CONST $ac_cv_proto_iconv_arg1
_ACEOF

fi

if test "x$gwx_threads" = "xyes"; then
  GWX_THREAD_TYPE=none
  GWX_THREAD_CFLAGS=
  GWX_THREAD_LDFLAGS=
  GWX_THREAD_LIBS=

fi #End of if we want threads

MISSING_FUNCS=
if test "x$ac_cv_func_alloca_works" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS alloca.c"
fi

if test "x$gwx_cv_func_working_getline" != "xyes"; then
  cat >>confdefs.h <<\_ACEOF
#define MISSING_GETLINE 1
_ACEOF

  MISSING_FUNCS="$MISSING_FUNCS getline.c"
fi

if test "x$ac_cv_func_memmove" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS memmove.c"
fi

if test "x$ac_cv_func_memset" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS memset.c"
fi

if test "x$ac_cv_func_mkdtemp" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS mkdtemp.c"
fi

if test $gwx_cv_func_fnmatch_works = no; then
  cat >>confdefs.h <<\_ACEOF
#define MISSING_FNMATCH 1
_ACEOF

  MISSING_FUNCS="$MISSING_FUNCS pfnmatch.c"
fi

if test "x$ac_cv_func_setenv" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS setenv.c"
fi

if test "x$ac_cv_func_stpcpy" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS stpcpy.c"
fi

if test "x$ac_cv_func_stpncpy" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS stpncpy.c"
fi

if test "x$ac_cv_func_strcasecmp" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS strcasecmp.c"
fi

if test "x$ac_cv_func_strcspn" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS strcspn.c"
fi

if test "x$ac_cv_func_strncasecmp" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS strncasecmp.c"
fi

if test "x$ac_cv_func_strpbrk" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS strpbrk.c"
fi

if test "x$ac_cv_func_strstr" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS strstr.c"
fi

if test "x$ac_cv_func_strtol" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS strtol.c"
fi

if test "x$ac_cv_func_strtoul" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS strtoul.c"
fi

if test "x$ac_cv_func_unsetenv" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS unsetenv.c"
fi

if test "x$ac_cv_func_vasprintf" != "xyes"; then
  MISSING_FUNCS="$MISSING_FUNCS vasprintf.c"
fi



GWXDIRS=
                    ac_config_files="$ac_config_files Makefile Makefile.top"

          ac_config_headers="$ac_config_headers gwxsys.h"


if test -n "$MISSING_FUNCS"; then
  GWXDIRS="$GWXDIRS missing"
            ac_config_files="$ac_config_files missing/Makefile"

            ac_config_headers="$ac_config_headers missing/mconfig.h"

  GLDFLAG_MISSING_L="-lmissing"
  GLDFLAG_MISSING="\$(DEPTH)/missing/libmissing.a"
  GINCLUDE_MISSING="-I\$(DEPTH)/missing -I\$(TOP)/missing"



fi


gwx_using_EXPAT=no
echo "$as_me:$LINENO: checking for library EXPAT" >&5
echo $ECHO_N "checking for library EXPAT... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 34891 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_EXPAT)
# if (GWX_COMPILE_EXPAT)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_EXPAT=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_EXPAT 1
EOF
  GHAVE_EXPAT="-DHAVE_LIBEXPAT -DHAVE_EXPAT"
  GWXCFG_DEP_EXPAT=""
  GWXDIRS="$GWXDIRS expat"
                      ac_config_files="$ac_config_files expat/Makefile expat/expat.h"

            ac_config_files="$ac_config_files pc/expat.pc"

 PCFILES="$PCFILES expat.pc"

            ac_config_headers="$ac_config_headers expat/expat_config.h"


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

  GINCLUDE_EXPAT="-I\$(DEPTH)/expat -I\$(TOP)/expat"
  GLDFLAG_EXPAT_L="-lexpat"
  GLDFLAG_EXPAT="\$(DEPTH)/expat/libexpat.la"
  if test "$ac_cv_func_mmap" != yes; then
    EXPAT_FILESRC=unixfilemap.c
  else
    EXPAT_FILESRC=readfilemap.c
  fi
  EXPAT_MAJOR_VERSION=1
  EXPAT_MINOR_VERSION=95
  EXPAT_EDIT=6





else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_GETTEXT=no
echo "$as_me:$LINENO: checking for library GETTEXT" >&5
echo $ECHO_N "checking for library GETTEXT... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 34970 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_GETTEXT)
# if (GWX_COMPILE_GETTEXT)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_GETTEXT=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_GETTEXT 1
EOF
  GHAVE_GETTEXT="-DHAVE_LIBGETTEXT -DHAVE_GETTEXT"
  GWXCFG_DEP_GETTEXT=""
  GWXDIRS="$GWXDIRS gettext"
                      ac_config_files="$ac_config_files gettext/Makefile gettext/lib/Makefile"

                      ac_config_files="$ac_config_files gettext/intl/Makefile gettext/src/Makefile"

                      ac_config_files="$ac_config_files gettext/doc/Makefile gettext/man/Makefile"

                      ac_config_files="$ac_config_files gettext/m4/Makefile gettext/po/Makefile"

            ac_config_files="$ac_config_files gettext/src/user-email"

            ac_config_files="$ac_config_files gettext/src/autopoint"

            ac_config_files="$ac_config_files gettext/src/gettextize"

  GHAVE_GETTEXT="$GHAVE_GETTEXT -DHAVE_LIBINTL -DHAVE_LIBGNUINTL"
  GLDFLAG_GETTEXT="\$(DEPTH)/gettext/intl/libgnuintl.la"
  GLDFLAG_GETTEXT_L="-lgnuintl"

  GETTEXT_CFLAGS="-D_GNU_SOURCE=1"
  GETTEXT_PACKAGE="gettext"
  GETTEXT_VERSION="0.11.5"
  GWXI18N=yes



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



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



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



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


  MSGFMT=$localebin/msgfmt
  ac_cv_path_MSGFMT=$MSGFMT
  GMSGFMT=$MSGFMT
  ac_cv_path_GMSGFMT=$GMSGFMT
  MSGMERGE=$localebin/msgmerge
  ac_cv_path_MSGMERGE=$MSGMERGE
  XGETTEXT=$localebin/xgettext
  ac_cv_path_XGETTEXT=$XGETTEXT

  CATOBJEXT=.gmo
  DATADIRNAME=share
  INSTOBJEXT=.mo

  I18NLIBS="$GLDFLAG_GETTEXT_L"
  if test "$found_iconv" = "yes"; then
    if test "$with_libiconv" != "no"; then
      I18NLIBS="$I18NLIBS -liconv"
    fi
  fi

  GWXMSGFMT="\$(DEPTH)/gettext/src/msgfmt"
  GWXGMSGFMT="$GWXMSGFMT"
  GWXMSGMERGE="\$(DEPTH)/gettext/src/msgmerge"
  GWXXGETTEXT="\$(DEPTH)/gettext/src/xgettext"









else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


if test "$gwx_using_GETTEXT" = "no"; then
  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 $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

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 $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

  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:$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

  RANLIB=$ac_ct_RANLIB
else
  RANLIB="$ac_cv_prog_RANLIB"
fi


  GWXI18N=no

  i18nsave_LIBS="$LIBS"









for ac_header in \
argz.h \
limits.h \
locale.h \
nl_types.h \
malloc.h \
string.h \
unistd.h \
sys/param.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'
  { (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.$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
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 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













for ac_func in \
getcwd \
munmap \
putenv \
setenv \
setlocale \
strchr \
strcasecmp \
strdup \
__argz_count \
__argz_stringify \
__argz_next
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.  */
_ACEOF
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

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>&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.$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


    nls_cv_force_use_gnu_gettext="no"

  nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
                    nls_cv_header_intl=
    nls_cv_header_libgt=
    CATOBJEXT=NONE
    XGETTEXT=:

    if test "${ac_cv_header_libintl_h+set}" = set; then
  echo "$as_me:$LINENO: checking for libintl.h" >&5
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
if test "${ac_cv_header_libintl_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking libintl.h usability" >&5
echo $ECHO_N "checking libintl.h 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 <libintl.h>
_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
sed 's/^/| /' 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 libintl.h presence" >&5
echo $ECHO_N "checking libintl.h 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 <libintl.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
  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 in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: libintl.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: libintl.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: libintl.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 libintl.h" >&5
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
if test "${ac_cv_header_libintl_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_libintl_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6

fi
if test $ac_cv_header_libintl_h = yes; then

      echo "$as_me:$LINENO: checking for dgettext in libc" >&5
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
if test "${gt_cv_func_dgettext_libc+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 <libintl.h>
int
main ()
{
return (int) dgettext ("","")
  ;
  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
  gt_cv_func_dgettext_libc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gt_cv_func_dgettext_libc=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6

      gt_cv_func_dgettext_libgnuintl="no"
      libintl_extra_libs=""

      if test "$gt_cv_func_dgettext_libc" != "yes" ; then
        echo "$as_me:$LINENO: checking for bindtextdomain in -lgnuintl" >&5
echo $ECHO_N "checking for bindtextdomain in -lgnuintl... $ECHO_C" >&6
if test "${ac_cv_lib_gnuintl_bindtextdomain+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgnuintl  $LIBS"
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.  */

/* 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 bindtextdomain ();
int
main ()
{
bindtextdomain ();
  ;
  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_gnuintl_bindtextdomain=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gnuintl_bindtextdomain=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_gnuintl_bindtextdomain" >&5
echo "${ECHO_T}$ac_cv_lib_gnuintl_bindtextdomain" >&6
if test $ac_cv_lib_gnuintl_bindtextdomain = yes; then

          echo "$as_me:$LINENO: checking for dgettext in -lgnuintl" >&5
echo $ECHO_N "checking for dgettext in -lgnuintl... $ECHO_C" >&6
if test "${ac_cv_lib_gnuintl_dgettext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgnuintl  $LIBS"
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.  */

/* 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 dgettext ();
int
main ()
{
dgettext ();
  ;
  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_gnuintl_dgettext=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gnuintl_dgettext=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_gnuintl_dgettext" >&5
echo "${ECHO_T}$ac_cv_lib_gnuintl_dgettext" >&6
if test $ac_cv_lib_gnuintl_dgettext = yes; then
  gt_cv_func_dgettext_libgnuintl=yes
fi

fi


        if test "$gt_cv_func_dgettext_libc" != "yes" ; then
          echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
          echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
          echo "$as_me:$LINENO: checking for dcgettext in -lgnuintl" >&5
echo $ECHO_N "checking for dcgettext in -lgnuintl... $ECHO_C" >&6
if test "${ac_cv_lib_gnuintl_dcgettext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgnuintl -liconv $LIBS"
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.  */

/* 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 dcgettext ();
int
main ()
{
dcgettext ();
  ;
  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_gnuintl_dcgettext=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gnuintl_dcgettext=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_gnuintl_dcgettext" >&5
echo "${ECHO_T}$ac_cv_lib_gnuintl_dcgettext" >&6
if test $ac_cv_lib_gnuintl_dcgettext = yes; then

	    gt_cv_func_dgettext_libgnuintl=yes
            libintl_extra_libs=-liconv
else
  :
fi

        fi
      fi

            if test "$gt_cv_func_dgettext_libgnuintl" = "no"; then
        gt_cv_func_dgettext_libintl="no"
        libintl_extra_libs=""

        if test "$gt_cv_func_dgettext_libc" != "yes" ; then
          echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl  $LIBS"
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.  */

/* 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 bindtextdomain ();
int
main ()
{
bindtextdomain ();
  ;
  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_intl_bindtextdomain=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_intl_bindtextdomain=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_intl_bindtextdomain" >&5
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
if test $ac_cv_lib_intl_bindtextdomain = yes; then

            echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl  $LIBS"
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.  */

/* 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 dgettext ();
int
main ()
{
dgettext ();
  ;
  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_intl_dgettext=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_intl_dgettext=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_intl_dgettext" >&5
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
if test $ac_cv_lib_intl_dgettext = yes; then
  gt_cv_func_dgettext_libintl=yes
fi

fi


          if test "$gt_cv_func_dgettext_libc" != "yes" ; then
            echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
            echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
            echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl -liconv $LIBS"
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.  */

/* 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 dcgettext ();
int
main ()
{
dcgettext ();
  ;
  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_intl_dcgettext=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_intl_dcgettext=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_intl_dcgettext" >&5
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
if test $ac_cv_lib_intl_dcgettext = yes; then

	      gt_cv_func_dgettext_libintl=yes
              libintl_extra_libs=-liconv
else
  :
fi

          fi
        fi
      fi

      if test "$gt_cv_func_dgettext_libgnuintl" = "yes"; then
        I18NLIBS="-lgnuintl $libintl_extra_libs";
      elif test "$gt_cv_func_dgettext_libintl" = "yes"; then
        I18NLIBS="-lintl $libintl_extra_libs";
      fi

      LIBS="$LIBS $I18NLIBS"

      if test "$gt_cv_func_dgettext_libc" = "yes" \
        || test "$gt_cv_func_dgettext_libgnuintl" = "yes" \
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
        GWXI18N=yes


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

        # Extract the first word of "msgfmt", so it can be a program name with args.
set dummy msgfmt; 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_MSGFMT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case "$MSGFMT" in
  /*)
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if
          test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
	break
      fi
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  ;;
esac
fi
MSGFMT="$ac_cv_path_MSGFMT"
if test "$MSGFMT" != "no"; then
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
echo "${ECHO_T}$MSGFMT" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
        if test "$MSGFMT" != "no"; then

for ac_func in dcgettext
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.  */
_ACEOF
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

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>&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.$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

          # Extract the first word of "gmsgfmt", so it can be a program name with args.
set dummy gmsgfmt; 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_GMSGFMT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $GMSGFMT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GMSGFMT="$GMSGFMT" # 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_GMSGFMT="$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_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  ;;
esac
fi
GMSGFMT=$ac_cv_path_GMSGFMT

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

          # Extract the first word of "msgmerge", so it can be a program name with args.
set dummy msgmerge; 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_MSGMERGE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MSGMERGE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MSGMERGE="$MSGMERGE" # 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_MSGMERGE="$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_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  ;;
esac
fi
MSGMERGE=$ac_cv_path_MSGMERGE

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

          # Extract the first word of "xgettext", so it can be a program name with args.
set dummy xgettext; 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_XGETTEXT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case "$XGETTEXT" in
  /*)
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if
            test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
	break
      fi
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  ;;
esac
fi
XGETTEXT="$ac_cv_path_XGETTEXT"
if test "$XGETTEXT" != ":"; then
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
echo "${ECHO_T}$XGETTEXT" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

          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.  */

int
main ()
{
extern int _nl_msg_cat_cntr;
            return _nl_msg_cat_cntr
  ;
  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

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


            CATOBJEXT=.mo
            DATADIRNAME=lib
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
          INSTOBJEXT=.mo
        fi
      fi

fi



    if test "$CATOBJEXT" = "NONE"; then
                  nls_cv_use_gnu_gettext=yes
    fi
  fi

  if test "$nls_cv_use_gnu_gettext" != "yes"; then


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

  else
        CATOBJEXT=
  fi

    if test "$XGETTEXT" != ":"; then
            if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
      : ;
    else
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
      XGETTEXT=":"
    fi
  fi






  if test "x$with_localedir" = "x"; then
    localedir="${prefix}/$DATADIRNAME/locale"
  fi
  LIBS="$i18nsave_LIBS"


  GWXMSGFMT=$MSGFMT
  GWXGMSGFMT=$MSGFMT
  GWXMSGMERGE=$MSGMERGE
  GWXXGETTEXT=$XGETTEXT
fi







gwx_using_ZLIB=no
echo "$as_me:$LINENO: checking for library ZLIB" >&5
echo $ECHO_N "checking for library ZLIB... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 36374 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_ZLIB)
# if (GWX_COMPILE_ZLIB)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_ZLIB=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_ZLIB 1
EOF
  GHAVE_ZLIB="-DHAVE_LIBZLIB -DHAVE_ZLIB"
  GWXCFG_DEP_ZLIB=""
  GWXDIRS="$GWXDIRS zlib"
  GHAVE_ZLIB="$GHAVE_ZLIB -DHAVE_LIBZ"
            ac_config_files="$ac_config_files zlib/Makefile"

            ac_config_files="$ac_config_files pc/zlib.pc"

 PCFILES="$PCFILES zlib.pc"


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


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


  ZLIBCFLAGS=
  ZLIBASMS=


echo "$as_me:$LINENO: checking for option GWX_ZLIB_586ASM" >&5
echo $ECHO_N "checking for option GWX_ZLIB_586ASM... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 36437 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_ZLIB_586ASM)
# if (GWX_ZLIB_586ASM != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    ZLIBASMS=match586.S
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_ZLIB_686ASM" >&5
echo $ECHO_N "checking for option GWX_ZLIB_686ASM... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 36462 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_ZLIB_686ASM)
# if (GWX_ZLIB_686ASM != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

      ZLIBASMS=match686.S
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

fi
rm -rf conftest*


  if test -n "$ZLIBASMS"; then
    ZLIBCFLAGS=-DASMV
  fi

  if test "x$glib_cv_uscore" = "xno"; then
    ZLIBCFLAGS="$ZLIBCFLAGS -DNO_UNDERLINE"
  fi

  if test "x$ac_cv_func_vsnprintf" = "xyes"; then
    ZLIBCFLAGS="$ZLIBCFLAGS -DHAVE_VSNPRINTF"
  fi

  if test "x$ac_cv_func_snprintf" = "xyes"; then
    ZLIBCFLAGS="$ZLIBCFLAGS -DHAVE_SNPRINTF"
  fi

  if test "x$ac_cv_func_memcpy" = "xyes"; then
    ZLIBCFLAGS="$ZLIBCFLAGS -DHAVE_MEMCPY"
  fi

  if test "x$ac_cv_func_strerror" = "xyes"; then
    ZLIBCFLAGS="$ZLIBCFLAGS -DHAVE_STRERROR"
  fi

  if test "x$ac_cv_header_unistd_h" = "xyes"; then
    ZLIBCFLAGS="$ZLIBCFLAGS -DHAVE_UNISTD_H"
  fi

  if test "x$ac_cv_func_vsnprintf_c99" = "xyes" -o "x$ac_cv_func_vsnprintf_unix95" = "xyes"; then
    ZLIBCFLAGS="$ZLIBCFLAGS -DHAVE_VSNPRINTF_RETURN"
  fi




  GINCLUDE_ZLIB="-I\$(DEPTH)/zlib -I\$(TOP)/zlib"
  GLDFLAG_ZLIB_L="-lz"
  GLDFLAG_ZLIB="\$(DEPTH)/zlib/libz.la"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_BZIP2=no
echo "$as_me:$LINENO: checking for library BZIP2" >&5
echo $ECHO_N "checking for library BZIP2... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 36538 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_BZIP2)
# if (GWX_COMPILE_BZIP2)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_BZIP2=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_BZIP2 1
EOF
  GHAVE_BZIP2="-DHAVE_LIBBZIP2 -DHAVE_BZIP2"
  GWXCFG_DEP_BZIP2=""
  GWXDIRS="$GWXDIRS bzip2"
            ac_config_files="$ac_config_files bzip2/Makefile"

            ac_config_files="$ac_config_files pc/bzip2.pc"

 PCFILES="$PCFILES bzip2.pc"

  GHAVE_BZIP2="$GHAVE_BZIP2 -DHAVE_LIBBZ -DHAVE_LIBBZ2"

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

  GINCLUDE_BZIP2="-I\$(DEPTH)/bzip2 -I\$(TOP)/bzip2"
  GLDFLAG_BZIP2_L="-lbz2"
  GLDFLAG_BZIP2="\$(DEPTH)/bzip2/libbz2.la"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_JPEG=no
echo "$as_me:$LINENO: checking for library JPEG" >&5
echo $ECHO_N "checking for library JPEG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 36603 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_JPEG)
# if (GWX_COMPILE_JPEG)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_JPEG=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_JPEG 1
EOF
  GHAVE_JPEG="-DHAVE_LIBJPEG -DHAVE_JPEG"
  GWXCFG_DEP_JPEG=""
  GWXDIRS="$GWXDIRS jpeg"
            ac_config_files="$ac_config_files jpeg/Makefile"

            ac_config_files="$ac_config_files pc/jpeg.pc"

 PCFILES="$PCFILES jpeg.pc"

            ac_config_headers="$ac_config_headers jpeg/jconfig.h:jpeg/jconfig.cfg"

  GINCLUDE_JPEG="-I\$(DEPTH)/jpeg -I\$(TOP)/jpeg"
  GLDFLAG_JPEG_L="-ljpeg"
  GLDFLAG_JPEG="\$(DEPTH)/jpeg/libjpeg.la"
  CJPEG_PROG="\${bindir}/cjpeg"
  DJPEG_PROG="\${bindir}/djpeg"

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


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


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


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


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




echo "$as_me:$LINENO: checking for option GWX_JPEG_PROGRESS" >&5
echo $ECHO_N "checking for option GWX_JPEG_PROGRESS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 36685 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_JPEG_PROGRESS)
# if (GWX_JPEG_PROGRESS != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_JPEG_TWOFILE" >&5
echo $ECHO_N "checking for option GWX_JPEG_TWOFILE... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 36714 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_JPEG_TWOFILE)
# if (GWX_JPEG_TWOFILE != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_JPEG_BMP" >&5
echo $ECHO_N "checking for option GWX_JPEG_BMP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 36743 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_JPEG_BMP)
# if (GWX_JPEG_BMP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_JPEG_GIF" >&5
echo $ECHO_N "checking for option GWX_JPEG_GIF... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 36772 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_JPEG_GIF)
# if (GWX_JPEG_GIF != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_JPEG_PPM" >&5
echo $ECHO_N "checking for option GWX_JPEG_PPM... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 36801 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_JPEG_PPM)
# if (GWX_JPEG_PPM != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_JPEG_RLE" >&5
echo $ECHO_N "checking for option GWX_JPEG_RLE... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 36830 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_JPEG_RLE)
# if (GWX_JPEG_RLE != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_JPEG_TARGA" >&5
echo $ECHO_N "checking for option GWX_JPEG_TARGA... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 36859 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_JPEG_TARGA)
# if (GWX_JPEG_TARGA != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_JASPER=no
echo "$as_me:$LINENO: checking for library JASPER" >&5
echo $ECHO_N "checking for library JASPER... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 36897 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_JASPER)
# if (GWX_COMPILE_JASPER)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_JASPER=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_JASPER 1
EOF
  GHAVE_JASPER="-DHAVE_LIBJASPER -DHAVE_JASPER"
  GWXCFG_DEP_JASPER=""
  GWXDIRS="$GWXDIRS jasper"
                                ac_config_files="$ac_config_files jasper/Makefile jasper/lib/Makefile jasper/appl/Makefile"

            ac_config_files="$ac_config_files jasper/include/Makefile"

            ac_config_files="$ac_config_files pc/jasper.pc"

 PCFILES="$PCFILES jasper.pc"

            ac_config_headers="$ac_config_headers jasper/include/jasper/jas_config.h"

  JAS_MAJOR_VERSION=1
  JAS_MINOR_VERSION=700
  JAS_MICRO_VERSION=2
  JAS_INTERFACE_AGE=0
  JAS_VERSION=$JAS_MAJOR_VERSION.$JAS_MINOR_VERSION.$JAS_MICRO_VERSION
  GINCLUDE_JASPER="-I\$(DEPTH)/jasper/include -I\$(TOP)/jasper/include"
  GLDFLAG_JASPER_L="-ljasper"
  GLDFLAG_JASPER="\$(DEPTH)/jasper/lib/libjasper.la"

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

  GLDFLAG_DEP_JASPER_L="$GLDFLAG_JPEG_L"
  GLDFLAG_DEP_JASPER="\$(GLDFLAG_JPEG)"
  GWXCFG_DEP_JASPER="$GWXCFG_DEP_JASPER jpeg"
  GWXCFG_DEP_JASPER="$GWXCFG_DEP_JASPER sysmathlib"
  GLDFLAG_DEP_JASPERL_L="$GLDFLAG_DEP_JASPER_L $MATHLIB"
  GLDFLAG_DEP_JASPER="$GLDFLAG_DEP_JASPER $MATHLIB"
  GLDFLAG_JASPER_L="$GLDFLAG_JASPER_L $GLDFLAG_DEP_JASPER_L"
  GLDFLAG_JASPER="$GLDFLAG_JASPER $GLDFLAG_DEP_JASPER"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_JBIG=no
echo "$as_me:$LINENO: checking for library JBIG" >&5
echo $ECHO_N "checking for library JBIG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37064 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_JBIG)
# if (GWX_COMPILE_JBIG)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_JBIG=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_JBIG 1
EOF
  GHAVE_JBIG="-DHAVE_LIBJBIG -DHAVE_JBIG"
  GWXCFG_DEP_JBIG=""
  GWXDIRS="$GWXDIRS jbig"
                                ac_config_files="$ac_config_files jbig/Makefile jbig/libjbig/Makefile jbig/pbmtools/Makefile"

            ac_config_files="$ac_config_files pc/jbig.pc"

 PCFILES="$PCFILES jbig.pc"


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

  GINCLUDE_JBIG="-I\$(DEPTH)/jbig/libjbig -I\$(TOP)/jbig/libjbig"
  GLDFLAG_JBIG_L="-ljbig"
  GLDFLAG_JBIG="\$(DEPTH)/jbig/libjbig/libjbig.la"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_TIFF=no
echo "$as_me:$LINENO: checking for library TIFF" >&5
echo $ECHO_N "checking for library TIFF... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37129 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_TIFF)
# if (GWX_COMPILE_TIFF)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_TIFF=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_TIFF 1
EOF
  GHAVE_TIFF="-DHAVE_LIBTIFF -DHAVE_TIFF"
  GWXCFG_DEP_TIFF=""
  GWXDIRS="$GWXDIRS tiff"
                                ac_config_files="$ac_config_files tiff/Makefile tiff/libtiff/Makefile tiff/tools/Makefile"

                      ac_config_files="$ac_config_files tiff/man/Makefile tiff/libtiff/tiffconf.h.in"

            ac_config_files="$ac_config_files pc/tiff.pc"

 PCFILES="$PCFILES tiff.pc"

            ac_config_headers="$ac_config_headers tiff/libtiff/tiffconf.h"


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


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

  TIFFPNMPROGS="tifftopnm pnmtotiff"
  TIFFPNMSRCS="tifftopnm.c pnmtotiff.c"
  GINCLUDE_TIFF="-I\$(DEPTH)/tiff/libtiff -I\$(TOP)/tiff/libtiff"
  GLDFLAG_TIFF_L="-ltiff"
  GLDFLAG_TIFF="\$(DEPTH)/tiff/libtiff/libtiff.la"

echo "$as_me:$LINENO: checking for option GWX_TIFF_COLORIMETRY" >&5
echo $ECHO_N "checking for option GWX_TIFF_COLORIMETRY... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37196 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_COLORIMETRY)
# if (GWX_TIFF_COLORIMETRY != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_YCBCR" >&5
echo $ECHO_N "checking for option GWX_TIFF_YCBCR... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37225 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_YCBCR)
# if (GWX_TIFF_YCBCR != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_CMYK" >&5
echo $ECHO_N "checking for option GWX_TIFF_CMYK... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37254 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_CMYK)
# if (GWX_TIFF_CMYK != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_ICC" >&5
echo $ECHO_N "checking for option GWX_TIFF_ICC... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37283 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_ICC)
# if (GWX_TIFF_ICC != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_PSP" >&5
echo $ECHO_N "checking for option GWX_TIFF_PSP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37312 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_PSP)
# if (GWX_TIFF_PSP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_IPTC" >&5
echo $ECHO_N "checking for option GWX_TIFF_IPTC... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37341 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_IPTC)
# if (GWX_TIFF_IPTC != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_CCITT" >&5
echo $ECHO_N "checking for option GWX_TIFF_CCITT... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37370 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_CCITT)
# if (GWX_TIFF_CCITT != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_PACKBITS" >&5
echo $ECHO_N "checking for option GWX_TIFF_PACKBITS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37399 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_PACKBITS)
# if (GWX_TIFF_PACKBITS != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_LZW" >&5
echo $ECHO_N "checking for option GWX_TIFF_LZW... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37428 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_LZW)
# if (GWX_TIFF_LZW != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_THUNDER" >&5
echo $ECHO_N "checking for option GWX_TIFF_THUNDER... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37457 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_THUNDER)
# if (GWX_TIFF_THUNDER != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_NEXT" >&5
echo $ECHO_N "checking for option GWX_TIFF_NEXT... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37486 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_NEXT)
# if (GWX_TIFF_NEXT != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_PIXARLOG" >&5
echo $ECHO_N "checking for option GWX_TIFF_PIXARLOG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37515 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_PIXARLOG)
# if (GWX_TIFF_PIXARLOG != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_LOGLUV" >&5
echo $ECHO_N "checking for option GWX_TIFF_LOGLUV... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37544 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_LOGLUV)
# if (GWX_TIFF_LOGLUV != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_SUBIFD" >&5
echo $ECHO_N "checking for option GWX_TIFF_SUBIFD... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37573 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_SUBIFD)
# if (GWX_TIFF_SUBIFD != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_JPEG" >&5
echo $ECHO_N "checking for option GWX_TIFF_JPEG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37602 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_JPEG)
# if (GWX_TIFF_JPEG != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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


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


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


echo "$as_me:$LINENO: checking for option GWX_TIFF_OJPEG" >&5
echo $ECHO_N "checking for option GWX_TIFF_OJPEG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37635 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_OJPEG)
# if (GWX_TIFF_OJPEG != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

    GWXCFG_DEP_TIFF="$GWXCFG_DEP_TIFF jpeg"
    GLDFLAG_DEP_TIFF_L="$GLDFLAG_JPEG_L"
    GLDFLAG_DEP_TIFF="\$(GLDFLAG_JPEG)"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_TIFF_ZLIB" >&5
echo $ECHO_N "checking for option GWX_TIFF_ZLIB... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37673 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_TIFF_ZLIB)
# if (GWX_TIFF_ZLIB != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

    GWXCFG_DEP_TIFF="$GWXCFG_DEP_TIFF zlib"
    GLDFLAG_DEP_TIFF_L="$GLDFLAG_DEP_TIFF_L $GLDFLAG_ZLIB_L"
    GLDFLAG_DEP_TIFF="$GLDFLAG_DEP_TIFF \$(GLDFLAG_ZLIB)"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

  GWXCFG_DEP_TIFF="$GWXCFG_DEP_TIFF sysmathlib"
  GLDFLAG_DEP_TIFF_L="$GLDFLAG_DEP_TIFF_L $MATHLIB"
  GLDFLAG_DEP_TIFF="$GLDFLAG_DEP_TIFF $MATHLIB"
  GLDFLAG_TIFF_L="$GLDFLAG_TIFF_L $GLDFLAG_DEP_TIFF_L"
  GLDFLAG_TIFF="$GLDFLAG_TIFF $GLDFLAG_DEP_TIFF"

  HOSTFILLORDER=FILLORDER_MSB2LSB

  case "$host" in
    mips-dec-* | i[3456]86*) HOSTFILLORDER=FILLORDER_LSB2MSB ;;
  esac

  if test "x$endian" = "xBIG"; then

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

  fi





else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_PNG=no
echo "$as_me:$LINENO: checking for library PNG" >&5
echo $ECHO_N "checking for library PNG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37737 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_PNG)
# if (GWX_COMPILE_PNG)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_PNG=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_PNG 1
EOF
  GHAVE_PNG="-DHAVE_LIBPNG -DHAVE_PNG"
  GWXCFG_DEP_PNG=""
  GWXDIRS="$GWXDIRS png"
            ac_config_files="$ac_config_files png/Makefile"

            ac_config_files="$ac_config_files pc/libpng.pc"

 PCFILES="$PCFILES libpng.pc"


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


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

  GINCLUDE_PNG="-I\$(DEPTH)/png -I\$(TOP)/png \$(GINCLUDE_ZLIB)"
  GWXCFG_DEP_PNG="$GWXCFG_DEP_PNG zlib sysmathlib"
  GLDFLAG_DEP_PNG_L="$GLDFLAG_ZLIB_L $MATHLIB"
  GLDFLAG_DEP_PNG="\$(GLDFLAG_ZLIB) $MATHLIB"
  GLDFLAG_PNG_L="-lpng $GLDFLAG_DEP_PNG_L"
  GLDFLAG_PNG="\$(DEPTH)/png/libpng.la $GLDFLAG_DEP_PNG"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_LCMS=no
echo "$as_me:$LINENO: checking for library LCMS" >&5
echo $ECHO_N "checking for library LCMS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37810 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_LCMS)
# if (GWX_COMPILE_LCMS)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_LCMS=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_LCMS 1
EOF
  GHAVE_LCMS="-DHAVE_LIBLCMS -DHAVE_LCMS"
  GWXCFG_DEP_LCMS=""
  GWXDIRS="$GWXDIRS lcms"
            ac_config_files="$ac_config_files lcms/Makefile"

            ac_config_files="$ac_config_files pc/lcms.pc"

 PCFILES="$PCFILES lcms.pc"

  GINCLUDE_LCMS="-I\$(DEPTH)/lcms -I\$(TOP)/lcms"
  GWXCFG_DEP_LCMS="$GWXCFG_DEP_LCMS zlib"
  GLDFLAG_DEP_LCMS_L="$GLDFLAG_ZLIB_L $MATHLIB"
  GLDFLAG_DEP_LCMS="\$(GLDFLAG_ZLIB) $MATHLIB"
  GLDFLAG_LCMS_L="-llcms $GLDFLAG_DEP_LCMS_L"
  GLDFLAG_LCMS="\$(DEPTH)/lcms/liblcms.la $GLDFLAG_DEP_LCMS"
  LCMS_EXTRA=
  if test "$gwx_using_TIFF" = "yes" -a "$gwx_using_JPEG" = "yes" -a "$gwx_using_ZLIB" = "yes" ; then
      LCMS_EXTRA=tifficc
  fi
  if test "$gwx_using_JPEG" = "yes" ; then
      LCMS_EXTRA="$LCMS_EXTRA jpegicc"
  fi


else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_MNG=no
echo "$as_me:$LINENO: checking for library MNG" >&5
echo $ECHO_N "checking for library MNG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37881 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_MNG)
# if (GWX_COMPILE_MNG)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_MNG=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_MNG 1
EOF
  GHAVE_MNG="-DHAVE_LIBMNG -DHAVE_MNG"
  GWXCFG_DEP_MNG=""
  GWXDIRS="$GWXDIRS mng"
            ac_config_files="$ac_config_files mng/Makefile"

            ac_config_files="$ac_config_files pc/libmng.pc"

 PCFILES="$PCFILES libmng.pc"


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


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


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

  GINCLUDE_MNG="-I\$(DEPTH)/mng -I\$(TOP)/mng"
  GWXCFG_DEP_MNG="$GWXCFG_DEP_MNG zlib"
  GLDFLAG_DEP_MNG_L="$GLDFLAG_ZLIB_L"
  GLDFLAG_DEP_MNG="\$(GLDFLAG_ZLIB)"
  GLDFLAG_MNG_L="-lmng"
  GLDFLAG_MNG="\$(DEPTH)/mng/libmng.la"
  MNGDEFS="-DMNG_SUPPORT_FULL=1 -DMNG_ERROR_TELLTALE=1 -DMNG_SUPPORT_READ=1"
  MNGDEFS="$MNGDEFS -DMNG_SUPPORT_WRITE=1 -DMNG_SUPPORT_DISPLAY=1"
  MNGDEFS="$MNGDEFS -DMNG_ACCESS_CHUNKS=1 -DMNG_STORE_CHUNKS=1"
  MNGDEFS="$MNGDEFS -DMNG_SUPPORT_DYNAMICMNG -DMNG_ERROR_TELLTALE"
  if test "$gwx_using_LCMS" = "yes"; then
      MNGDEFS="$MNGDEFS -DMNG_FULL_CMS=1"
      GLDFLAG_DEP_MNG_L="$GLDFLAG_DEP_MNG_L $GLDFLAG_LCMS_L"
      GLDFLAG_DEP_MNG="$GLDFLAG_DEP_MNG \$(GLDFLAG_LCMS)"
      GWXCFG_DEP_MNG="$GWXCFG_DEP_MNG lcms"
  fi
  if test "$gwx_using_JPEG" = "yes"; then
      MNGDEFS="$MNGDEFS -DMNG_SUPPORT_IJG6B=1"
      GLDFLAG_DEP_MNG_L="$GLDFLAG_DEP_MNG_L $GLDFLAG_JPEG_L"
      GLDFLAG_DEP_MNG="$GLDFLAG_DEP_MNG \$(GLDFLAG_JPEG)"
      GWXCFG_DEP_MNG="$GWXCFG_DEP_MNG jpeg"
  fi

  GLDFLAG_MNG="$GLDFLAG_MNG $GLDFLAG_DEP_MNG"
  GLDFLAG_MNG_L="$GLDFLAG_MNG_L $GLDFLAG_DEP_MNG_L"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_XPM=no
echo "$as_me:$LINENO: checking for library XPM" >&5
echo $ECHO_N "checking for library XPM... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 37978 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_XPM)
# if (GWX_COMPILE_XPM)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_XPM=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_XPM 1
EOF
  GHAVE_XPM="-DHAVE_LIBXPM -DHAVE_XPM"
  GWXCFG_DEP_XPM=""
  GWXDIRS="$GWXDIRS xpm"
            ac_config_files="$ac_config_files xpm/Makefile"

            ac_config_files="$ac_config_files pc/xpm.pc"

 PCFILES="$PCFILES xpm.pc"

  GWXCFG_DEP_XPM="$GWXCFG_DEP_XPM syssocklib"

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


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

  case "$host" in
    *sco3.2v5*) GLDFLAG_DEP_XPM="/usr/lib/libX11.a" ;;
    *) GLDFLAG_DEP_XPM="-lX11" ;;
  esac
  GLDFLAG_DEP_XPM="$GLDFLAG_DEP_XPM $SYSSOCKLIBS"
  GLDFLAG_DEP_XPM_L="-lX11 $SYSSOCKLIBS"
  GINCLUDE_XPM="-I\$(DEPTH)/xpm -I\$(TOP)/xpm"
  GLDFLAG_XPM_L="-lXpm $GLDFLAG_DEP_XPM_L"
  GLDFLAG_XPM="\$(DEPTH)/xpm/libXpm.la $SYSSOCKLIBS"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_NETPBM=no
echo "$as_me:$LINENO: checking for library NETPBM" >&5
echo $ECHO_N "checking for library NETPBM... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 38054 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_NETPBM)
# if (GWX_COMPILE_NETPBM)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_NETPBM=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_NETPBM 1
EOF
  GHAVE_NETPBM="-DHAVE_LIBNETPBM -DHAVE_NETPBM"
  GWXCFG_DEP_NETPBM=""
  GWXDIRS="$GWXDIRS netpbm"
                      ac_config_files="$ac_config_files netpbm/Makefile netpbm/lib/Makefile"

                      ac_config_files="$ac_config_files netpbm/cvt/Makefile netpbm/cvt/hpcdtoppm/Makefile"

            ac_config_files="$ac_config_files netpbm/cvt/ppmtompeg/Makefile"

            ac_config_files="$ac_config_files pc/netpbm.pc"

 PCFILES="$PCFILES netpbm.pc"


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


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


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


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


  GINCLUDE_NETPBM="-I\$(DEPTH)/netpbm/lib -I\$(TOP)/netpbm/lib"
  GLDFLAG_NETPBM_L="-lnetpbm"
  GLDFLAG_NETPBM="\$(DEPTH)/netpbm/lib/libnetpbm.la"
  GLDFLAG_DEP_NETPBM=
  GLDFLAG_DEP_NETPBM_L=
  NETPBM_PATH="\${bindir}"
  NETPBM_VERSION="10.17"


echo "$as_me:$LINENO: checking for option GWX_NETPBM_ARGVSWITCH" >&5
echo $ECHO_N "checking for option GWX_NETPBM_ARGVSWITCH... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 38135 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_NETPBM_ARGVSWITCH)
# if (GWX_NETPBM_ARGVSWITCH != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    NETPBMTGT=netpbm
    NETPBMMERGED=

else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*

    NETPBMTGT="\$(PROGRAMS)"
    NETPBMMERGED="#"

fi
rm -rf conftest*




      NETPBMXSRC=
  NETPBMINCS=
  NETPBMLIBS=
  NETPBMXTRA=


  if test "$gwx_using_TIFF" = "yes" -a "$gwx_using_JPEG" = "yes" -a "$gwx_using_ZLIB" = "yes" ; then
      NETPBMXSRC="tifftopnm.c pnmtotiff.c pnmtotiffcmyk.c"
      NETPBMINCS="\$(GINCLUDE_TIFF)"
      NETPBMLIBS="\$(GLDFLAG_TIFF)"
  fi

  NETPBMJPEG="#"
  if test "$gwx_using_JPEG" = "yes" ; then
      NETPBMXSRC="$NETPBMXSRC jpegtopnm.c pnmtojpeg.c"
      NETPBMINCS="$NETPBMINCS \$(GINCLUDE_JPEG)"
      NETPBMLIBS="$NETPBMLIBS \$(GLDFLAG_JPEG)"
      NETPBMXTRA="exif.c jpegdatasource.c"
      NETPBMJPEG=
  fi


  if test "$gwx_using_PNG" = "yes" -a "$gwx_using_ZLIB" = "yes"; then
      NETPBMXSRC="$NETPBMXSRC pnmtopng.c pngtopnm.c"
      NETPBMINCS="$NETPBMINCS \$(GINCLUDE_PNG)"
      NETPBMLIBS="$NETPBMLIBS \$(GLDFLAG_PNG)"
  fi

  if test "$gwx_using_JBIG" = "yes" -a "$gwx_using_ZLIB" = "yes"; then
      NETPBMXSRC="$NETPBMXSRC pnmtojbig.c jbigtopnm.c"
      NETPBMINCS="$NETPBMINCS \$(GINCLUDE_JBIG)"
      NETPBMLIBS="$NETPBMLIBS \$(GLDFLAG_JBIG)"
  fi






else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_GIFLIB=no
echo "$as_me:$LINENO: checking for library GIFLIB" >&5
echo $ECHO_N "checking for library GIFLIB... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 38218 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_GIFLIB)
# if (GWX_COMPILE_GIFLIB)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_GIFLIB=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_GIFLIB 1
EOF
  GHAVE_GIFLIB="-DHAVE_LIBGIFLIB -DHAVE_GIFLIB"
  GWXCFG_DEP_GIFLIB=""
  GWXDIRS="$GWXDIRS giflib"
                      ac_config_files="$ac_config_files giflib/Makefile giflib/lib/Makefile"

            ac_config_files="$ac_config_files giflib/util/Makefile"

            ac_config_files="$ac_config_files pc/giflib.pc"

 PCFILES="$PCFILES giflib.pc"


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

  GHAVE_GIFLIB="$GHAVE_GIFLIB -DHAVE_LIBGIF"
  GLDFLAG_GIFLIB_L="-lgif"
  GLDFLAG_GIFLIB="\$(DEPTH)/giflib/lib/libgif.la"
  GINCLUDE_GIFLIB="-I\$(DEPTH)/giflib/lib -I\$(TOP)/giflib/lib"

echo "$as_me:$LINENO: checking for option GWX_GIFLIB_GRABX11" >&5
echo $ECHO_N "checking for option GWX_GIFLIB_GRABX11... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 38277 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GIFLIB_GRABX11)
# if (GWX_GIFLIB_GRABX11 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GIFLIB_DEVX11=-D__X11__

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_GIFLIB_GRABSGI" >&5
echo $ECHO_N "checking for option GWX_GIFLIB_GRABSGI... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 38303 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GIFLIB_GRABSGI)
# if (GWX_GIFLIB_GRABSGI != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GIFLIB_DEVSGI=-D__SGI__

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_COMPFACE=no
echo "$as_me:$LINENO: checking for library COMPFACE" >&5
echo $ECHO_N "checking for library COMPFACE... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 38337 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_COMPFACE)
# if (GWX_COMPILE_COMPFACE)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_COMPFACE=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_COMPFACE 1
EOF
  GHAVE_COMPFACE="-DHAVE_LIBCOMPFACE -DHAVE_COMPFACE"
  GWXCFG_DEP_COMPFACE=""
  GWXDIRS="$GWXDIRS compface"
            ac_config_files="$ac_config_files compface/Makefile"

            ac_config_files="$ac_config_files pc/compface.pc"

 PCFILES="$PCFILES compface.pc"


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

  GINCLUDE_COMPFACE="-I\$(DEPTH)/compface -I\$(TOP)/compface"
  GLDFLAG_COMPFACE_L="-lcompface"
  GLDFLAG_COMPFACE="\$(DEPTH)/compface/libcompface.la"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


MPEGLIBDSRCS=

gwx_using_MPEGLIB=no
echo "$as_me:$LINENO: checking for library MPEGLIB" >&5
echo $ECHO_N "checking for library MPEGLIB... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 38402 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_MPEGLIB)
# if (GWX_COMPILE_MPEGLIB)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_MPEGLIB=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_MPEGLIB 1
EOF
  GHAVE_MPEGLIB="-DHAVE_LIBMPEGLIB -DHAVE_MPEGLIB"
  GWXCFG_DEP_MPEGLIB=""
  GWXDIRS="$GWXDIRS mpeg_lib"
            ac_config_files="$ac_config_files mpeg_lib/Makefile"

            ac_config_files="$ac_config_files pc/mpeglib.pc"

 PCFILES="$PCFILES mpeglib.pc"

            ac_config_headers="$ac_config_headers mpeg_lib/config.h"


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

  GHAVE_MPEGLIB="$GHAVE_MPEGLIB -DHAVE_LIBMPEG"
  GINCLUDE_MPEGLIB="-I\$(DEPTH)/mpeg_lib -I\$(TOP)/mpeg_lib"
  GLDFLAG_MPEGWX_L="-lmpeg"
  GLDFLAG_MPEGLIB="\$(DEPTH)/mpeg_lib/libmpeg.la"

echo "$as_me:$LINENO: checking for option GWX_MPEGWX_DITHER" >&5
echo $ECHO_N "checking for option GWX_MPEGWX_DITHER... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 38461 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_MPEGWX_DITHER)
# if (GWX_MPEGWX_DITHER != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

  MPEGLIBDSRCS="fs2.c fs2fast.c fs4.c hybrid.c hybriderr.c 2x2.c gray.c"
  MPEGLIBDSRCS="$MPEGLIBDSRCS mono.c ordered.c ordered2.c mb_ordered.c"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_READLINE=no
echo "$as_me:$LINENO: checking for library READLINE" >&5
echo $ECHO_N "checking for library READLINE... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 38501 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_READLINE)
# if (GWX_COMPILE_READLINE)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_READLINE=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_READLINE 1
EOF
  GHAVE_READLINE="-DHAVE_LIBREADLINE -DHAVE_READLINE"
  GWXCFG_DEP_READLINE=""
  GWXDIRS="$GWXDIRS readline"
                      ac_config_files="$ac_config_files readline/Makefile readline/doc/Makefile"

            ac_config_files="$ac_config_files pc/readline.pc"

 PCFILES="$PCFILES readline.pc"

            ac_config_files="$ac_config_files pc/history.pc"

 PCFILES="$PCFILES history.pc"

            ac_config_headers="$ac_config_headers readline/config.h"

  GHAVE_READLINE="$GHAVE_READLINE -DHAVE_LIBHISTORY"

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

  GINCLUDE_READLINE="-I\$(DEPTH)/readline -I\$(TOP)/readline"
  GINCLUDE_HISTORY="-I\$(DEPTH)/readline -I\$(TOP)/readline"
  GLDFLAG_READLINE_L="-lreadline"
  GLDFLAG_READLINE="\$(DEPTH)/readline/libreadline.la"
  GLDFLAG_HISTORY_L="-lhistory"
  GLDFLAG_HISTORY="\$(DEPTH)/readline/libhistory.la"
  GLDFLAG_DEP_HISTORY=
  GLDFLAG_DEP_HISTORY_L=






echo "$as_me:$LINENO: checking for option GWX_READLINE_CURSES" >&5
echo $ECHO_N "checking for option GWX_READLINE_CURSES... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 38644 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_READLINE_CURSES)
# if (GWX_READLINE_CURSES != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  rl_prefer_curses=yes
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


if test "X$bash_cv_termcap_lib" = "X"; then
_bash_needmsg=yes
else
echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
_bash_needmsg=
fi
if test "${bash_cv_termcap_lib+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltinfo  $LIBS"
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.  */

/* 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 tgetent ();
int
main ()
{
tgetent ();
  ;
  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_tinfo_tgetent=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_tinfo_tgetent=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_tinfo_tgetent" >&5
echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
if test $ac_cv_lib_tinfo_tgetent = yes; then
  bash_cv_termcap_lib=libtinfo
else
  echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltermcap  $LIBS"
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.  */

/* 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 tgetent ();
int
main ()
{
tgetent ();
  ;
  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_termcap_tgetent=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_termcap_tgetent=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_termcap_tgetent" >&5
echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
if test $ac_cv_lib_termcap_tgetent = yes; then
  bash_cv_termcap_lib=libtermcap
else
  echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
if test "${ac_cv_lib_curses_tgetent+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcurses  $LIBS"
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.  */

/* 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 tgetent ();
int
main ()
{
tgetent ();
  ;
  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_curses_tgetent=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_curses_tgetent=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_curses_tgetent" >&5
echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
if test $ac_cv_lib_curses_tgetent = yes; then
  bash_cv_termcap_lib=libcurses
else
  echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lncurses  $LIBS"
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.  */

/* 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 tgetent ();
int
main ()
{
tgetent ();
  ;
  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_ncurses_tgetent=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ncurses_tgetent=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_ncurses_tgetent" >&5
echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
if test $ac_cv_lib_ncurses_tgetent = yes; then
  bash_cv_termcap_lib=libncurses
else
  bash_cv_termcap_lib=gnutermcap
fi

fi

fi

fi

fi

if test "X$_bash_needmsg" = "Xyes"; then
echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
if test $bash_cv_termcap_lib = gnutermcap && test -z "$rl_prefer_curses"; then
LDFLAGS="$LDFLAGS -L./lib/termcap"
TERMCAP_LIB="./lib/termcap/libtermcap.a"
TERMCAP_DEP="./lib/termcap/libtermcap.a"
elif test $bash_cv_termcap_lib = libtermcap && test -z "$rl_prefer_curses"; then
TERMCAP_LIB=-ltermcap
TERMCAP_DEP=
elif test $bash_cv_termcap_lib = libncurses; then
TERMCAP_LIB=-lncurses
TERMCAP_DEP=
elif test $bash_cv_termcap_lib = libtinfo; then
TERMCAP_LIB=-ltinfo
TERMCAP_DEP=
else
TERMCAP_LIB=-lcurses
TERMCAP_DEP=
fi

  if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
    TERMCAP_LIB="-ltermcap"
  fi
            ac_config_files="$ac_config_files pc/systermlib.pc"

 PCFILES="$PCFILES systermlib.pc"

  GWXCFG_DEP_READLINE="$GWXCFG_DEP_READLINE systermlib"
  GLDFLAG_DEP_READLINE="$GLDFLAG_DEP_READLINE $TERMCAP_LIB"
  GLDFLAG_DEP_READLINE_L="$GLDFLAG_DEP_READLINE_L $TERMCAP_LIB"
  GLDFLAG_READLINE="$GLDFLAG_READLINE $GLDFLAG_DEP_READLINE"
  GLDFLAG_READLINE_L="$GLDFLAG_READLINE_L $GLDFLAG_DEP_READLINE_L"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_XAW3D=no
echo "$as_me:$LINENO: checking for library XAW3D" >&5
echo $ECHO_N "checking for library XAW3D... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 38964 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_XAW3D)
# if (GWX_COMPILE_XAW3D)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_XAW3D=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_XAW3D 1
EOF
  GHAVE_XAW3D="-DHAVE_LIBXAW3D -DHAVE_XAW3D"
  GWXCFG_DEP_XAW3D=""
  GWXDIRS="$GWXDIRS Xaw3D"
                      ac_config_files="$ac_config_files Xaw3D/Makefile Xaw3D/$X11VERSION/Makefile"

  GINCLUDE_XAW3D="-I\$(DEPTH)/Xaw3D/$X11VERSION -I\$(TOP)/Xaw3D/$X11VERSION"
  GLDFLAG_XAW3D_L="-lXaw3d"
  GLDFLAG_XAW3D="\$(DEPTH)/Xaw3D/$X11VERSION/libXaw3d.la"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_SLANG=no
echo "$as_me:$LINENO: checking for library SLANG" >&5
echo $ECHO_N "checking for library SLANG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 39019 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_SLANG)
# if (GWX_COMPILE_SLANG)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_SLANG=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_SLANG 1
EOF
  GHAVE_SLANG="-DHAVE_LIBSLANG -DHAVE_SLANG"
  GWXCFG_DEP_SLANG=""
  GWXDIRS="$GWXDIRS slang"
                      ac_config_files="$ac_config_files slang/Makefile slang/slsh.rc"

            ac_config_files="$ac_config_files pc/slang.pc"

 PCFILES="$PCFILES slang.pc"

            ac_config_headers="$ac_config_headers slang/config.h:slang/config.hin"

  GINCLUDE_SLANG="-I\$(DEPTH)/slang -I\$(TOP)/slang"
  GLDFLAG_DEP_SLANG="$MATHLIB"
  GLDFLAG_DEP_SLANG_L="$MATHLIB"
  GLDFLAG_SLANG_L="-lslang $GLDFLAG_DEP_SLANG_L"
  GLDFLAG_SLANG="\$(DEPTH)/slang/libslang.la $GLDFLAG_DEP_SLANG"
  GWXCFG_DEP_SLANG="$GWXCFG_DEP_SLANG systermlib"
  slang_major_version=1
  slang_minor_version=4.9


          has_terminfo=no
  tilib=
  checklibs="tinfo curses ncurses terminfo termlib"
  for clib in $checklibs; do
    if test "$has_terminfo" = "no"; then
      as_ac_Lib=`echo "ac_cv_lib_${clib}''_tigetstr" | $as_tr_sh`
echo "$as_me:$LINENO: checking for tigetstr in -l${clib}" >&5
echo $ECHO_N "checking for tigetstr in -l${clib}... $ECHO_C" >&6
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l${clib}  $LIBS"
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.  */

/* 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 tigetstr ();
int
main ()
{
tigetstr ();
  ;
  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_Lib=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_Lib=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: `eval echo '${'$as_ac_Lib'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  has_terminfo=yes;tilib="-l${clib}"
fi

    fi
  done
  SLANG_TERMCAP=
  echo "$as_me:$LINENO: checking \"for terminfo support\"" >&5
echo $ECHO_N "checking \"for terminfo support\"... $ECHO_C" >&6
  if test "$has_terminfo" = "no"; then
    echo "$as_me:$LINENO: result: no - using termcap" >&5
echo "${ECHO_T}no - using termcap" >&6

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

  else
    echo "$as_me:$LINENO: result: $tilib" >&5
echo "${ECHO_T}$tilib" >&6
  fi
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_GDBM=no
echo "$as_me:$LINENO: checking for library GDBM" >&5
echo $ECHO_N "checking for library GDBM... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 39168 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_GDBM)
# if (GWX_COMPILE_GDBM)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_GDBM=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_GDBM 1
EOF
  GHAVE_GDBM="-DHAVE_LIBGDBM -DHAVE_GDBM"
  GWXCFG_DEP_GDBM=""
  GWXDIRS="$GWXDIRS gdbm"
            ac_config_files="$ac_config_files gdbm/Makefile"

            ac_config_files="$ac_config_files pc/gdbm.pc"

 PCFILES="$PCFILES gdbm.pc"

            ac_config_headers="$ac_config_headers gdbm/autoconf.h"


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

  GINCLUDE_GDBM="-I\$(DEPTH)/gdbm -I\$(TOP)/gdbm"
  GLDFLAG_GDBM_L="-lgdbm"
  GLDFLAG_GDBM="\$(DEPTH)/gdbm/libgdbm.la"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_DB=no
echo "$as_me:$LINENO: checking for library DB" >&5
echo $ECHO_N "checking for library DB... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 39234 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_DB)
# if (GWX_COMPILE_DB)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_DB=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_DB 1
EOF
  GHAVE_DB="-DHAVE_LIBDB -DHAVE_DB"
  GWXCFG_DEP_DB=""
  GWXDIRS="$GWXDIRS db"

echo "$as_me:$LINENO: checking for option GWX_DB_UNIQUENAMES" >&5
echo $ECHO_N "checking for option GWX_DB_UNIQUENAMES... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 39276 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_DB_UNIQUENAMES)
# if (GWX_DB_UNIQUENAMES != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  db_uniq=yes
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  db_uniq=no
fi
rm -rf conftest*

            ac_config_files="$ac_config_files db/Makefile"

            ac_config_files="$ac_config_files db/db_int.h:db/dbinc/db_int.in"

            ac_config_files="$ac_config_files db/db_cxx.h:db/dbinc/db_cxx.in"




  if test "x$db_uniq" = "xyes"; then
    DB_VERSION_UNIQUE_NAME="_4001"
    db_int_def='#include "db_int_def.h"'
    gwx_cv_db_cfg1="db/dbinc/db.in:db/dbinc_auto/rpc_defs.in:db/dbinc_auto/ext_def.in:db/dbinc_auto/ext_prot.in"
    gwx_cv_db_cfg2="db/dbinc/db_185.in:db/dbinc_auto/ext_185_def.in:db/dbinc_auto/ext_185_prot.in"
    gwx_cv_db_cfg3="db/db185_int.in:db/dbinc_auto/ext_185_def.in:db/dbinc_auto/ext_185_prot.in"
    gwx_cv_db_cfg4="db/dbinc_auto/int_def.h"
              ac_config_files="$ac_config_files db/db_int_def.h:$gwx_cv_db_cfg4"

  else
    DB_VERSION_UNIQUE_NAME=
    gwx_cv_db_cfg1="db/dbinc/db.in:db/dbinc_auto/rpc_defs.in:db/dbinc_auto/ext_prot.in"
    gwx_cv_db_cfg2="db/dbinc/db_185.in:db/dbinc_auto/ext_185_prot.in"
    gwx_cv_db_cfg3="db/db185_int.in:db/dbinc_auto/ext_185_prot.in"
  fi

            ac_config_files="$ac_config_files db/db.h:$gwx_cv_db_cfg1"

            ac_config_files="$ac_config_files db/db_185.h:$gwx_cv_db_cfg2"

            ac_config_files="$ac_config_files db/db185_int.h:$gwx_cv_db_cfg3"


            ac_config_files="$ac_config_files pc/db-4.1.pc"

 PCFILES="$PCFILES db-4.1.pc"

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


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


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


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

  GINCLUDE_DB="-I\$(DEPTH)/db/dbinc -I\$(TOP)/db/dbinc"
  GINCLUDE_DB="$GINCLUDE_DB -I\$(DEPTH)/db -I\$(DEPTH)/db/dbinc_auto"
  GINCLUDE_DB="$GINCLUDE_DB -I\$(TOP)/db -I\$(TOP)/db/dbinc_auto"
  GLDFLAG_DB_L="-ldb"
  GLDFLAG_DB="\$(DEPTH)/db/libdb.la"
  GLDFLAG_DBCXX_L="-ldb_cxx"
  GLDFLAG_DBCXX="\$(DEPTH)/db/libdb_cxx.la"
  DBXTRASRC=
  DBXTRAHDR=
  DBXTRAHPP=
  DBXTRATGT=
  DBXTRAPRG=
  db_cv_posixmutexes=no
  db_cv_uimutexes=no
  db_cv_cxx=no

echo "$as_me:$LINENO: checking for option GWX_DB_COMPAT185" >&5
echo $ECHO_N "checking for option GWX_DB_COMPAT185... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 39371 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_DB_COMPAT185)
# if (GWX_DB_COMPAT185 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  DBXTRASRC=db185.c
    DBXTRAPRG=db_dump185
    DBXTRAPRGSRC=db_dump185.c

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

    DBXTRAHDR=db_185.h
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_DB_CXX" >&5
echo $ECHO_N "checking for option GWX_DB_CXX... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 39404 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_DB_CXX)
# if (GWX_DB_CXX != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  DBXTRATGT=libdb_cxx.la
    db_cv_cxx=yes


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=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 $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <iostream>

int
main ()
{
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
  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 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
    DBXTRAHDR="$DBXTRAHDR db_cxx.h"
    DBXTRAHPP="cxx_common.h cxx_except.h"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_DB_CRYPTO" >&5
echo $ECHO_N "checking for option GWX_DB_CRYPTO... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 39497 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_DB_CRYPTO)
# if (GWX_DB_CRYPTO != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6


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

    DBXTRASRC="$DBXTRASRC crypto.c aes_method.c"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_DB_ROP" >&5
echo $ECHO_N "checking for option GWX_DB_ROP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 39528 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_DB_ROP)
# if (GWX_DB_ROP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_DB_WOP" >&5
echo $ECHO_N "checking for option GWX_DB_WOP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 39557 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_DB_WOP)
# if (GWX_DB_WOP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_DB_UMRW" >&5
echo $ECHO_N "checking for option GWX_DB_UMRW... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 39586 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_DB_UMRW)
# if (GWX_DB_UMRW != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_DB_DIAGS" >&5
echo $ECHO_N "checking for option GWX_DB_DIAGS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 39615 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_DB_DIAGS)
# if (GWX_DB_DIAGS != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_DB_POSIXMTX" >&5
echo $ECHO_N "checking for option GWX_DB_POSIXMTX... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 39644 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_DB_POSIXMTX)
# if (GWX_DB_POSIXMTX != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  db_cv_posixmutexes=yes
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_DB_UIMTX" >&5
echo $ECHO_N "checking for option GWX_DB_UIMTX... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 39669 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_DB_UIMTX)
# if (GWX_DB_UIMTX != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  db_cv_uimutexes=yes
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_DB_RPC" >&5
echo $ECHO_N "checking for option GWX_DB_RPC... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 39694 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_DB_RPC)
# if (GWX_DB_RPC != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

                            haverpclib=no
    saved_LIBS=$LIBS
    LIBS=$SOCKLIBS
    echo "$as_me:$LINENO: checking for getprcport in -lrpc" >&5
echo $ECHO_N "checking for getprcport in -lrpc... $ECHO_C" >&6
if test "${ac_cv_lib_rpc_getprcport+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrpc  $LIBS"
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.  */

/* 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 getprcport ();
int
main ()
{
getprcport ();
  ;
  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_rpc_getprcport=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_rpc_getprcport=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_rpc_getprcport" >&5
echo "${ECHO_T}$ac_cv_lib_rpc_getprcport" >&6
if test $ac_cv_lib_rpc_getprcport = yes; then
  haverpclib=rpc
else

      echo "$as_me:$LINENO: checking for getrpcport in -lrpclib" >&5
echo $ECHO_N "checking for getrpcport in -lrpclib... $ECHO_C" >&6
if test "${ac_cv_lib_rpclib_getrpcport+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrpclib  $LIBS"
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.  */

/* 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 getrpcport ();
int
main ()
{
getrpcport ();
  ;
  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_rpclib_getrpcport=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_rpclib_getrpcport=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_rpclib_getrpcport" >&5
echo "${ECHO_T}$ac_cv_lib_rpclib_getrpcport" >&6
if test $ac_cv_lib_rpclib_getrpcport = yes; then
  haverpclib=rpclib
else

	echo "$as_me:$LINENO: checking for getrpcport in -lrpcsvc" >&5
echo $ECHO_N "checking for getrpcport in -lrpcsvc... $ECHO_C" >&6
if test "${ac_cv_lib_rpcsvc_getrpcport+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrpcsvc  $LIBS"
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.  */

/* 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 getrpcport ();
int
main ()
{
getrpcport ();
  ;
  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_rpcsvc_getrpcport=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_rpcsvc_getrpcport=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_rpcsvc_getrpcport" >&5
echo "${ECHO_T}$ac_cv_lib_rpcsvc_getrpcport" >&6
if test $ac_cv_lib_rpcsvc_getrpcport = yes; then
  haverpclib=rpcsvc
fi

fi

fi

    echo "$as_me:$LINENO: checking for a suitable RPC library" >&5
echo $ECHO_N "checking for a suitable RPC library... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: $haverpclib" >&5
echo "${ECHO_T}$haverpclib" >&6
    LIBS=$saved_LIBS
    if test "x$haverpclib" = "xno"; then
      { echo "$as_me:$LINENO: WARNING: no RPC library found, disabling RPC support" >&5
echo "$as_me: WARNING: no RPC library found, disabling RPC support" >&2;}
    else
      DBRPCLIB="-l$haverpclib $SYSSOCKLIBS"

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

      DBXTRASRC="$DBXTRASRC client.c db_server_clnt.c db_server_xdr.c"
      DBXTRASRC="$DBXTRASRC gen_client.c gen_client_ret.c"
      DBXTRAPRG="$DBXTRAPRG berkeley_db_svc"
      if test "x$db_cv_cxx" = "xyes"; then
        DBXTRAPRG="$DBXTRAPRG berkeley_db_cxxsvc"
      fi
    fi

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

          saved_LIBS=$LIBS
  if test "x$haverpclib" != "xno"; then
    LIBS=$SOCKLIBS
  fi

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 mutexes.
#
# Assume that -lpthread exists when the user specifies POSIX mutexes.  (I
# only expect this option to be used on Solaris, which has -lpthread.)
if test "$db_cv_posixmutexes" = yes; then
	db_cv_mutex="posix_only"
fi

# 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.)
if test "$db_cv_uimutexes" = yes; then
	db_cv_mutex="ui_only"
fi

# 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.
if test "$db_cv_mutex" = no; then
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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));
}
_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
  db_cv_mutex="Solaris/lwp"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

# UI threads: thr_XXX
#
# Try with and without the -lthread library.
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
LIBS="-lthread $LIBS"
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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));
}
_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
  db_cv_mutex="UI/threads/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 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" = "ui_only"; then
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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));
}
_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
  db_cv_mutex="UI/threads"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
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


# POSIX.1 pthreads: pthread_XXX
#
# Try with and without the -lpthread library.
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
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"
/* 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 { (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
  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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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 "$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"
/* 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 { (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
  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 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 mutex interfaces" >&5
echo "$as_me: error: unable to find POSIX 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
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end 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
}
_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
  db_cv_mutex="HP/msem_init"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

# msemaphore: AIX, OSF/1
if test "$db_cv_mutex" = no; then
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"
/* 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>;
main(){
	typedef msemaphore tsl_t;
	msemaphore x;
	msem_init(&x, 0);
	msem_lock(&x, 0);
	msem_unlock(&x, 0);
	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
  db_cv_mutex="UNIX/msem_init"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

# ReliantUNIX
if test "$db_cv_mutex" = no; then
LIBS="$LIBS -lmproc"
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 <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 { (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="ReliantUNIX/initspin"
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
LIBS="$orig_libs"
fi

# SCO: UnixWare has threads in libthread, but OpenServer doesn't.
if test "$db_cv_mutex" = no; then
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

main(){
#if defined(__USLC__)
	exit(0);
#endif
	exit(1);
}
_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
  db_cv_mutex="OpenUNIX/x86/cc-assembly"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

# abilock_t: SGI
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.  */
#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 { (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="SGI/init_lock"
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
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
#line $LINENO "configure"
/* 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 { (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="UNIX/sema_init"
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
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
#line $LINENO "configure"
/* 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 { (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

fi
rm -f 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
#line $LINENO "configure"
/* 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 { (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

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi

# Alpha/gcc: OSF/1
if test "$db_cv_mutex" = no; then
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){
#if defined(__alpha)
#if defined(__GNUC__)
exit(0);
#endif
#endif
exit(1);}
_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
  db_cv_mutex="ALPHA/gcc-assembly"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

# PaRisc/gcc: HP/UX
if test "$db_cv_mutex" = no; then
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){
#if defined(__hppa)
#if defined(__GNUC__)
exit(0);
#endif
#endif
exit(1);}
_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
  db_cv_mutex="HPPA/gcc-assembly"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

# PPC/gcc:
if test "$db_cv_mutex" = no; then
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){
#if defined(__powerpc__) || defined(__ppc__)
#if defined(__GNUC__)
exit(0);
#endif
#endif
exit(1);}
_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
  db_cv_mutex="PPC/gcc-assembly"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

# Sparc/gcc: SunOS, Solaris
if test "$db_cv_mutex" = no; then
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){
#if defined(__sparc__)
#if defined(__GNUC__)
	exit(0);
#endif
#endif
	exit(1);
}
_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
  db_cv_mutex="Sparc/gcc-assembly"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

# 68K/gcc: SunOS
if test "$db_cv_mutex" = no; then
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){
#if (defined(mc68020) || defined(sun3))
#if defined(__GNUC__)
	exit(0);
#endif
#endif
	exit(1);
}
_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
  db_cv_mutex="68K/gcc-assembly"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

# x86/gcc: FreeBSD, NetBSD, BSD/OS, Linux
if test "$db_cv_mutex" = no; then
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){
#if defined(i386) || defined(__i386__)
#if defined(__GNUC__)
	exit(0);
#endif
#endif
	exit(1);
}
_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
  db_cv_mutex="x86/gcc-assembly"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

# ia86/gcc: Linux
if test "$db_cv_mutex" = no; then
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){
#if defined(__ia64)
#if defined(__GNUC__)
	exit(0);
#endif
#endif
	exit(1);
}
_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
  db_cv_mutex="ia64/gcc-assembly"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

# uts/cc: UTS
if test "$db_cv_mutex" = no; then
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main(){
#if defined(_UTS)
	exit(0);
#endif
	exit(1);
}
_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
  db_cv_mutex="UTS/cc-assembly"
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

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

if test "$db_cv_mutex" = no; then
	{ echo "$as_me:$LINENO: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&5
echo "$as_me: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&2;}
	DBXTRASRC="mut_fcntl.c $DBXTRASRC"
else

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

fi

case "$db_cv_mutex" in
68K/gcc-assembly)	DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_68K_GCC_ASSEMBLY 1
_ACEOF
;;
AIX/_check_lock)	DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_AIX_CHECK_LOCK 1
_ACEOF
;;
ALPHA/gcc-assembly)	DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1
_ACEOF
;;
HP/msem_init)		DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_HPPA_MSEM_INIT 1
_ACEOF
;;
HPPA/gcc-assembly)	DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1
_ACEOF
;;
ia64/gcc-assembly)	DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1
_ACEOF
;;
POSIX/pthreads)		DBXTRASRC="mut_pthread.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF
;;
POSIX/pthreads/library)	LIBS="-lpthread $LIBS"
			DBXTRASRC="mut_pthread.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PTHREADS 1
_ACEOF
;;
PPC/gcc-assembly)	DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_PPC_GCC_ASSEMBLY 1
_ACEOF
;;
ReliantUNIX/initspin)	LIBS="$LIBS -lmproc"
			DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1
_ACEOF
;;
OpenUNIX/x86/cc-assembly)	DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1
_ACEOF
;;
SGI/init_lock)		DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SGI_INIT_LOCK 1
_ACEOF
;;
Solaris/_lock_try)	DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1
_ACEOF
;;
Solaris/lwp)		DBXTRASRC="mut_pthread.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SOLARIS_LWP 1
_ACEOF
;;
Sparc/gcc-assembly)	DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1
_ACEOF
;;
UI/threads)		DBXTRASRC="mut_pthread.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UI_THREADS 1
_ACEOF
;;
UI/threads/library)	LIBS="-lthread $LIBS"
			DBXTRASRC="mut_pthread.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UI_THREADS 1
_ACEOF
;;
UNIX/msem_init)		DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_MSEM_INIT 1
_ACEOF
;;
UNIX/sema_init)		DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_SEMA_INIT 1
_ACEOF
;;
UTS/cc-assembly)	DBXTRASRC="$DBXTRASRC uts4.cc.s"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_UTS_CC_ASSEMBLY 1
_ACEOF
;;
x86/gcc-assembly)	DBXTRASRC="mut_tas.c $DBXTRASRC"

cat >>confdefs.h <<\_ACEOF
#define HAVE_MUTEX_X86_GCC_ASSEMBLY 1
_ACEOF
;;
esac
  DBLIBS="$DBRPCLIB $LIBS"
  LIBS=$saved_LIBS
  DB_VERSION_MAJOR=4
  DB_VERSION_MINOR=1
  DB_VERSION_PATCH=25
  DB_RELEASE_DATE=`date "+%B %e, %Y"`
  DB_VERSION_STRING="\"GWXLIBS: Berkeley DB 4.1.25: ($DB_RELEASE_DATE)\""





















else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_XML2=no
echo "$as_me:$LINENO: checking for library XML2" >&5
echo $ECHO_N "checking for library XML2... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41166 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_XML2)
# if (GWX_COMPILE_XML2)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_XML2=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_XML2 1
EOF
  GHAVE_XML2="-DHAVE_LIBXML2 -DHAVE_XML2"
  GWXCFG_DEP_XML2=""
  GWXDIRS="$GWXDIRS xml2"
            ac_config_files="$ac_config_files xml2/Makefile"

            ac_config_files="$ac_config_files xml2/include/Makefile"

            ac_config_files="$ac_config_files xml2/include/libxml/xmlversion.h.in"

            ac_config_files="$ac_config_files pc/libxml-2.0.pc"

 PCFILES="$PCFILES libxml-2.0.pc"

                      ac_config_headers="$ac_config_headers xml2/config.h xml2/include/libxml/xmlversion.h"

  GINCLUDE_XML2="-I\$(DEPTH)/xml2/include -I\$(TOP)/xml2/include"
  GLDFLAG_XML2_L="-lxml2"
  GLDFLAG_XML2="\$(DEPTH)/xml2/libxml2.la"
  LIBXML_VERSION=2.5.8
  LIBXML_VERSION_NUMBER=20508
  XML2_CFLAGS=




echo "$as_me:$LINENO: checking for option GWX_XML2_ZLIB" >&5
echo $ECHO_N "checking for option GWX_XML2_ZLIB... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41229 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_ZLIB)
# if (GWX_XML2_ZLIB != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    GLDFLAG_DEP_XML2="\$(GLDFLAG_ZLIB)"
    GLDFLAG_DEP_XML2_L="$GLDFLAG_ZLIB_L"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

    GWXCFG_DEP_XML2="$GWXCFG_DEP_XML2 zlib"

echo "$as_me:$LINENO: checking for option GWX_XML2_USEBUFS" >&5
echo $ECHO_N "checking for option GWX_XML2_USEBUFS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41257 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_USEBUFS)
# if (GWX_XML2_USEBUFS != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  XML2_CFLAGS="$XML2_CFLAGS -DXML_USE_BUFFER_CONTENT"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_FTP" >&5
echo $ECHO_N "checking for option GWX_XML2_FTP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41282 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_FTP)
# if (GWX_XML2_FTP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_HTTP" >&5
echo $ECHO_N "checking for option GWX_XML2_HTTP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41311 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_HTTP)
# if (GWX_XML2_HTTP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_HTML" >&5
echo $ECHO_N "checking for option GWX_XML2_HTML... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41340 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_HTML)
# if (GWX_XML2_HTML != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_CATALOG" >&5
echo $ECHO_N "checking for option GWX_XML2_CATALOG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41369 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_CATALOG)
# if (GWX_XML2_CATALOG != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_DOCBOOK" >&5
echo $ECHO_N "checking for option GWX_XML2_DOCBOOK... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41398 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_DOCBOOK)
# if (GWX_XML2_DOCBOOK != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_XPATH" >&5
echo $ECHO_N "checking for option GWX_XML2_XPATH... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41427 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_XPATH)
# if (GWX_XML2_XPATH != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_XPOINTER" >&5
echo $ECHO_N "checking for option GWX_XML2_XPOINTER... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41456 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_XPOINTER)
# if (GWX_XML2_XPOINTER != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_XINCLUDE" >&5
echo $ECHO_N "checking for option GWX_XML2_XINCLUDE... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41485 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_XINCLUDE)
# if (GWX_XML2_XINCLUDE != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_C14N" >&5
echo $ECHO_N "checking for option GWX_XML2_C14N... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41514 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_C14N)
# if (GWX_XML2_C14N != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_ICONV" >&5
echo $ECHO_N "checking for option GWX_XML2_ICONV... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41543 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_ICONV)
# if (GWX_XML2_ICONV != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_DEBUG" >&5
echo $ECHO_N "checking for option GWX_XML2_DEBUG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41572 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_DEBUG)
# if (GWX_XML2_DEBUG != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_SCHEMAS" >&5
echo $ECHO_N "checking for option GWX_XML2_SCHEMAS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41601 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_SCHEMAS)
# if (GWX_XML2_SCHEMAS != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_THREADS" >&5
echo $ECHO_N "checking for option GWX_XML2_THREADS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41630 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_THREADS)
# if (GWX_XML2_THREADS != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_UNICODE" >&5
echo $ECHO_N "checking for option GWX_XML2_UNICODE... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41659 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_UNICODE)
# if (GWX_XML2_UNICODE != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_AUTOMATA" >&5
echo $ECHO_N "checking for option GWX_XML2_AUTOMATA... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41688 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_AUTOMATA)
# if (GWX_XML2_AUTOMATA != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_MEMDEBUG" >&5
echo $ECHO_N "checking for option GWX_XML2_MEMDEBUG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41717 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_MEMDEBUG)
# if (GWX_XML2_MEMDEBUG != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XML2_REGEXP" >&5
echo $ECHO_N "checking for option GWX_XML2_REGEXP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41746 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XML2_REGEXP)
# if (GWX_XML2_REGEXP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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


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


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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


  GLDFLAG_XML2="$GLDFLAG_XML2 $GLDFLAG_DEP_XML2"
  GLDFLAG_XML2_L="$GLDFLAG_XML2_L $GLDFLAG_DEP_XML2_L"

  GWXCFG_DEP_XML2="$GWXCFG_DEP_XML2 syssocklib"


else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_XSLT=no
echo "$as_me:$LINENO: checking for library XSLT" >&5
echo $ECHO_N "checking for library XSLT... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41800 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_XSLT)
# if (GWX_COMPILE_XSLT)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_XSLT=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_XSLT 1
EOF
  GHAVE_XSLT="-DHAVE_LIBXSLT -DHAVE_XSLT"
  GWXCFG_DEP_XSLT=""
  GWXDIRS="$GWXDIRS xslt"
                      ac_config_files="$ac_config_files xslt/Makefile xslt/libxslt/Makefile"

                      ac_config_files="$ac_config_files xslt/libxslt/xsltconfig.h xslt/libexslt/Makefile"

                      ac_config_files="$ac_config_files xslt/libexslt/exsltconfig.h xslt/xsltproc/Makefile"

            ac_config_files="$ac_config_files pc/libxslt.pc"

 PCFILES="$PCFILES libxslt.pc"

            ac_config_files="$ac_config_files pc/libexslt.pc"

 PCFILES="$PCFILES libexslt.pc"

            ac_config_headers="$ac_config_headers xslt/config.h"


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

  GHAVE_XSLT="$GHAVE_XSLT -DHAVE_EXSLT -DHAVE_LIBEXSLT"
  GINCLUDE_XSLT="\$(GINCLUDE_XML2) -I\$(DEPTH)/xslt/libxslt -I\$(TOP)/xslt/libxslt"
  GINCLUDE_EXSLT="\$(GINCLUDE_XSLT) -I\$(DEPTH)/xslt/libexslt"
  GINCLUDE_EXSLT="$GINCLUDE_EXSLT -I\$(TOP)/xslt/libexslt"

  GLDFLAG_DEP_XSLT="\$(GLDFLAG_XML2)"
  GLDFLAG_DEP_XSLT_L="$GLDFLAG_XML2_L"
  GWXCFG_DEP_XSLT="$GWXCFG_DEP_XSLT libxml-2.0 >= 2.5.6"
  GLDFLAG_XSLT="\$(DEPTH)/xslt/libxslt/libxslt.la $GLDFLAG_DEP_XSLT"
  GLDFLAG_XSLT_L="-lxslt $GLDFLAG_DEP_XSLT_L"

  GLDFLAG_DEP_EXSLT="\$(GLDFLAG_XSLT)"
  GLDFLAG_DEP_EXSLT_L="$GLDFLAG_XSLT_L"
  GLDFLAG_EXSLT="\$(DEPTH)/xslt/libexslt/libexslt.la $GLDFLAG_DEP_EXSLT"
  GLDFLAG_EXSLT_L="-lexslt $GLDFLAG_DEP_EXSLT_L"

  XSLTVERSION=1.0.31
  EXSLTVERSION=0.7.21
  LIBXSLT_VERSION_NUMBER=10031
  LIBEXSLT_VERSION_NUMBER=721

echo "$as_me:$LINENO: checking for option GWX_XSLT_DEBUG" >&5
echo $ECHO_N "checking for option GWX_XSLT_DEBUG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41883 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XSLT_DEBUG)
# if (GWX_XSLT_DEBUG != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  WITH_XSLT_DEBUG=1
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  WITH_XSLT_DEBUG=0
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XSLT_MEMDEBUG" >&5
echo $ECHO_N "checking for option GWX_XSLT_MEMDEBUG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41910 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XSLT_MEMDEBUG)
# if (GWX_XSLT_MEMDEBUG != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  WITH_XSLT_MEM_DEBUG=1
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  WITH_XSLT_MEM_DEBUG=0
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XSLT_DEBUGGER" >&5
echo $ECHO_N "checking for option GWX_XSLT_DEBUGGER... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41937 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XSLT_DEBUGGER)
# if (GWX_XSLT_DEBUGGER != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  WITH_DEBUGGER=1
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  WITH_DEBUGGER=0
fi
rm -rf conftest*













else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


TT_EXTEND_SRC=

gwx_using_FREETYPE1=no
echo "$as_me:$LINENO: checking for library FREETYPE1" >&5
echo $ECHO_N "checking for library FREETYPE1... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 41985 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_FREETYPE1)
# if (GWX_COMPILE_FREETYPE1)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_FREETYPE1=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_FREETYPE1 1
EOF
  GHAVE_FREETYPE1="-DHAVE_LIBFREETYPE1 -DHAVE_FREETYPE1"
  GWXCFG_DEP_FREETYPE1=""
  GWXDIRS="$GWXDIRS freetype1"
                      ac_config_files="$ac_config_files freetype1/Makefile freetype1/lib/Makefile"

            ac_config_files="$ac_config_files pc/ttf.pc"

 PCFILES="$PCFILES ttf.pc"

            ac_config_headers="$ac_config_headers freetype1/ft_conf.h"


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

  GHAVE_FREETYPE1="$GHAVE_FREETYPE1 -DHAVE_LIBTTF -DHAVE_TTF"
  GINCLUDE_FREETYPE1="-I\$(DEPTH)/freetype1/lib -I\$(TOP)/freetype1/lib"
  GLDFLAG_FREETYPE1_L="-lttf"
  GLDFLAG_FREETYPE1="\$(DEPTH)/freetype1/lib/libttf.la"
  TTF_VERSION="1.3.1"

echo "$as_me:$LINENO: checking for option GWX_FREETYPE_EXTENDED" >&5
echo $ECHO_N "checking for option GWX_FREETYPE_EXTENDED... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42045 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FREETYPE_EXTENDED)
# if (GWX_FREETYPE_EXTENDED != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6


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

    TT_EXTEND_SRC="ttextend.c ftxcmap.c ftxerr18.c ftxgasp.c ftxgdef.c ftxgpos.c ftxgsub.c ftxkern.c ftxopen.c ftxpost.c ftxsbit.c ftxwidth.c"

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


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


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


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


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


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


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


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


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


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


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


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

    TT_EXTEND_HDR="ttextend.h ftxcmap.h ftxerr18.h ftxgasp.h ftxgdef.h ftxgpos.h ftxgsub.h ftxkern.h ftxopen.h ftxpost.h ftxsbit.h ftxwidth.h"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

  GLDFLAG_DEP_FREETYPE1="$MATHLIB"
  GLDFLAG_DEP_FREETYPE1_L="$MATHLIB"
  GWXCFG_DEP_FREETYPE1="$GWXCFG_DEP_FREETYPE1 sysmathlib"




echo "$as_me:$LINENO: checking for option GWX_FREETYPE_GRAYSCALE" >&5
echo $ECHO_N "checking for option GWX_FREETYPE_GRAYSCALE... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42143 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FREETYPE_GRAYSCALE)
# if (GWX_FREETYPE_GRAYSCALE != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FREETYPE_INTSWITCH" >&5
echo $ECHO_N "checking for option GWX_FREETYPE_INTSWITCH... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42172 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FREETYPE_INTSWITCH)
# if (GWX_FREETYPE_INTSWITCH != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FREETYPE_THREADED" >&5
echo $ECHO_N "checking for option GWX_FREETYPE_THREADED... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42201 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FREETYPE_THREADED)
# if (GWX_FREETYPE_THREADED != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

  GLDFLAG_FREETYPE1="$GLDFLAG_FREETYPE1 $GLDFLAG_DEP_FREETYPE1"
  GLDFLAG_FREETYPE1_L="$GLDFLAG_FREETYPE1_L $GLDFLAG_DEP_FREETYPE1_L"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_FREETYPE2=no
echo "$as_me:$LINENO: checking for library FREETYPE2" >&5
echo $ECHO_N "checking for library FREETYPE2... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42241 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_FREETYPE2)
# if (GWX_COMPILE_FREETYPE2)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_FREETYPE2=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_FREETYPE2 1
EOF
  GHAVE_FREETYPE2="-DHAVE_LIBFREETYPE2 -DHAVE_FREETYPE2"
  GWXCFG_DEP_FREETYPE2=""
  GWXDIRS="$GWXDIRS freetype2"
            ac_config_headers="$ac_config_headers freetype2/include/freetype/config/ftconfig.h:freetype2/ftconfig.in"

                      ac_config_files="$ac_config_files freetype2/Makefile freetype2/lib/Makefile"

            ac_config_files="$ac_config_files freetype2/include/freetype/config/ftoption.h"

            ac_config_files="$ac_config_files freetype2/include/Makefile"

            ac_config_files="$ac_config_files pc/freetype2.pc"

 PCFILES="$PCFILES freetype2.pc"


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


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

  GHAVE_FREETYPE2="$GHAVE_FREETYPE2 -DHAVE_LIBFREETYPE -DHAVE_FREETYPE2"
  GINCLUDE_FREETYPE2="-I\$(DEPTH)/freetype2/include -I\$(TOP)/freetype2/include"
  GLDFLAG_FREETYPE2_L="-lfreetype"
  GLDFLAG_FREETYPE2="\$(DEPTH)/freetype2/lib/libfreetype.la"
  FREETYPE_VERSION="2.1.4"
  FREETYPE_LTVERSION="9.3.3"




echo "$as_me:$LINENO: checking for option GWX_FT2_FORCE_INT64" >&5
echo $ECHO_N "checking for option GWX_FT2_FORCE_INT64... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42314 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_FORCE_INT64)
# if (GWX_FT2_FORCE_INT64 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_FORCE_INT64=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_FORCE_INT64=undef
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FT2_GZIP" >&5
echo $ECHO_N "checking for option GWX_FT2_GZIP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42341 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_GZIP)
# if (GWX_FT2_GZIP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_GZIP=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_GZIP=undef
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FT2_PS_NAMES" >&5
echo $ECHO_N "checking for option GWX_FT2_PS_NAMES... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42368 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_PS_NAMES)
# if (GWX_FT2_PS_NAMES != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_PS_NAMES=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_PS_NAMES=undef
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FT2_ADOBE_NAMES" >&5
echo $ECHO_N "checking for option GWX_FT2_ADOBE_NAMES... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42395 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_ADOBE_NAMES)
# if (GWX_FT2_ADOBE_NAMES != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_ADOBE_NAMES=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_ADOBE_NAMES=undef
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FT2_INCREMENTAL" >&5
echo $ECHO_N "checking for option GWX_FT2_INCREMENTAL... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42422 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_INCREMENTAL)
# if (GWX_FT2_INCREMENTAL != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_INCREMENTAL=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_INCREMENTAL=undef
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FT2_DEBUG_ERROR" >&5
echo $ECHO_N "checking for option GWX_FT2_DEBUG_ERROR... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42449 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_DEBUG_ERROR)
# if (GWX_FT2_DEBUG_ERROR != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_DEBUG_ERROR=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_DEBUG_ERROR=undef
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FT2_DEBUG_TRACE" >&5
echo $ECHO_N "checking for option GWX_FT2_DEBUG_TRACE... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42476 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_DEBUG_TRACE)
# if (GWX_FT2_DEBUG_TRACE != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_DEBUG_TRACE=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_DEBUG_TRACE=undef
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FT2_DEBUG_MEM" >&5
echo $ECHO_N "checking for option GWX_FT2_DEBUG_MEM... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42503 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_DEBUG_MEM)
# if (GWX_FT2_DEBUG_MEM != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_DEBUG_MEM=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_DEBUG_MEM=undef
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FT2_MODULE_ERRS" >&5
echo $ECHO_N "checking for option GWX_FT2_MODULE_ERRS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42530 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_MODULE_ERRS)
# if (GWX_FT2_MODULE_ERRS != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_MODULE_ERRS=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_MODULE_ERRS=undef
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FT2_EMB_BITMAPS" >&5
echo $ECHO_N "checking for option GWX_FT2_EMB_BITMAPS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42557 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_EMB_BITMAPS)
# if (GWX_FT2_EMB_BITMAPS != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_EMB_BITMAPS=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_EMB_BITMAPS=undef
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FT2_TTPSNAMES" >&5
echo $ECHO_N "checking for option GWX_FT2_TTPSNAMES... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42584 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_TTPSNAMES)
# if (GWX_FT2_TTPSNAMES != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_TTPSNAMES=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_TTPSNAMES=undef
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FT2_TTSFNTNAMES" >&5
echo $ECHO_N "checking for option GWX_FT2_TTSFNTNAMES... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42611 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_TTSFNTNAMES)
# if (GWX_FT2_TTSFNTNAMES != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_TTSFNTNAMES=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_TTSFNTNAMES=undef
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FT2_BYTECODE" >&5
echo $ECHO_N "checking for option GWX_FT2_BYTECODE... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42638 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_BYTECODE)
# if (GWX_FT2_BYTECODE != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_BYTECODE=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_BYTECODE=undef
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FT2_NO_AFM" >&5
echo $ECHO_N "checking for option GWX_FT2_NO_AFM... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42665 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_NO_AFM)
# if (GWX_FT2_NO_AFM != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_NO_AFM=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_NO_AFM=undef
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_FT2_NO_MULTIMASTER" >&5
echo $ECHO_N "checking for option GWX_FT2_NO_MULTIMASTER... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42692 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_FT2_NO_MULTIMASTER)
# if (GWX_FT2_NO_MULTIMASTER != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  GWX_FT2_NO_MULTIMASTER=define
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  GWX_FT2_NO_MULTIMASTER=undef
fi
rm -rf conftest*



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


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
















  if test "x$GWX_FT2_GZIP" = "xdefine"; then
    GWXCFG_DEP_FREETYPE2="$GWXCFG_DEP_FREETYPE2 zlib"
    GLDFLAG_DEP_FREETYPE2="$GLDFLAG_DEP_FREETYPE2 \$(GLDFLAG_ZLIB)"
    GLDFLAG_DEP_FREETYPE2_L="$GLDFLAG_DEP_FREETYPE2 $GLDFLAG_ZLIB_L"
  fi
  GWXCFG_DEP_FREETYPE2="$GWXCFG_DEP_FREETYPE2 sysmathlib"
  GLDFLAG_DEP_FREETYPE2="$GLDFLAG_DEP_FREETYPE2 $MATHLIB"
  GLDFLAG_DEP_FREETYPE2_L="$GLDFLAG_DEP_FREETYPE2_L $MATHLIB"
  GLDFLAG_FREETYPE2="$GLDFLAG_FREETYPE2 $GLDFLAG_DEP_FREETYPE2"
  GLDFLAG_FREETYPE2_L="$GLDFLAG_FREETYPE2_L $GLDFLAG_DEP_FREETYPE2_L"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_GD1=no
echo "$as_me:$LINENO: checking for library GD1" >&5
echo $ECHO_N "checking for library GD1... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42764 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_GD1)
# if (GWX_COMPILE_GD1)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_GD1=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_GD1 1
EOF
  GHAVE_GD1="-DHAVE_LIBGD1 -DHAVE_GD1"
  GWXCFG_DEP_GD1=""
  GWXDIRS="$GWXDIRS gd1"
            ac_config_files="$ac_config_files gd1/Makefile"

            ac_config_files="$ac_config_files pc/gd1.pc"

 PCFILES="$PCFILES gd1.pc"

  GINCLUDE_GD1="-I\$(DEPTH)/gd1 -I\$(TOP)/gd1"
  GLDFLAG_GD1_L="-lgd1"
  GLDFLAG_GD1="\$(DEPTH)/gd1/libgd1.la"

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

  GD1VERSION="1.8.4"

  GLDFLAG_DEP_GD1=
  GLDFLAG_DEP_GD1_L=
                          GD1UNDEF=
  GD1INCLUDES="\$(GINCLUDE_ZLIB)"

echo "$as_me:$LINENO: checking for option GWX_GD_JPEG" >&5
echo $ECHO_N "checking for option GWX_GD_JPEG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42826 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GD_JPEG)
# if (GWX_GD_JPEG != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    GWXCFG_DEP_GD1="$GWXCFG_DEP_GD1 jpeg"
    GD1INCLUDES="$GD1INCLUDES \$(GINCLUDE_JPEG)"
    GLDFLAG_DEP_GD1="$GLDFLAG_DEP_GD1 \$(GLDFLAG_JPEG)"
    GLDFLAG_DEP_GD1_L="$GLDFLAG_DEP_GD1_L $GLDFLAG_JPEG_L"
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*

    GD1UNDEF="$GD1UNDEF -UHAVE_JPEG -UHAVE_LIBJPEG"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_GD_PNG" >&5
echo $ECHO_N "checking for option GWX_GD_PNG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42858 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GD_PNG)
# if (GWX_GD_PNG != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    GWXCFG_DEP_GD1="$GWXCFG_DEP_GD1 libpng"
    GD1INCLUDES="$GD1INCLUDES \$(GINCLUDE_PNG)"
    GLDFLAG_DEP_GD1="$GLDFLAG_DEP_GD1 \$(GLDFLAG_PNG)"
    GLDFLAG_DEP_GD1_L="$GLDFLAG_DEP_GD1_L $GLDFLAG_PNG_L"
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*

    GD1UNDEF="$GD1UNDEF -UHAVE_PNG -UHAVE_LIBPNG"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_GD_XPM" >&5
echo $ECHO_N "checking for option GWX_GD_XPM... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42890 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GD_XPM)
# if (GWX_GD_XPM != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    GWXCFG_DEP_GD1="$GWXCFG_DEP_GD1 xpm"
    GD1INCLUDES="$GD1INCLUDES \$(GINCLUDE_XPM)"
    GLDFLAG_DEP_GD1="$GLDFLAG_DEP_GD1 \$(GLDFLAG_XPM)"
    GLDFLAG_DEP_GD1_L="$GLDFLAG_DEP_GD1_L $GLDFLAG_XPM_L"
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*

    GD1UNDEF="$GD1UNDEF -UHAVE_XPM -UHAVE_LIBXPM"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_GD_FREETYPE1" >&5
echo $ECHO_N "checking for option GWX_GD_FREETYPE1... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42922 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GD_FREETYPE1)
# if (GWX_GD_FREETYPE1 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    GWXCFG_DEP_GD1="$GWXCFG_DEP_GD1 ttf"
    GD1INCLUDES="$GD1INCLUDES \$(GINCLUDE_FREETYPE1)"
    GLDFLAG_DEP_GD1="$GLDFLAG_DEP_GD1 \$(GLDFLAG_FREETYPE1)"
    GLDFLAG_DEP_GD1_L="$GLDFLAG_DEP_GD1_L $GLDFLAG_FREETYPE1_L"
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*

    GD1UNDEF="$GD1UNDEF -UHAVE_FREETYPE1 -UHAVE_TTF -UHAVE_LIBFREETYPE1 -UHAVE_LIBTTF"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_GD_FREETYPE2" >&5
echo $ECHO_N "checking for option GWX_GD_FREETYPE2... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 42954 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GD_FREETYPE2)
# if (GWX_GD_FREETYPE2 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    GWXCFG_DEP_GD1="$GWXCFG_DEP_GD1 freetype2"
    GD1INCLUDES="$GD1INCLUDES \$(GINCLUDE_FREETYPE2)"
    GLDFLAG_DEP_GD1="$GLDFLAG_DEP_GD1 \$(GLDFLAG_FREETYPE2)"
    GLDFLAG_DEP_GD1_L="$GLDFLAG_DEP_GD1_L $GLDFLAG_FREETYPE2_L"
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*

    GD1UNDEF="$GD1UNDEF -UHAVE_FREETYPE2 -UHAVE_LIBFREETYPE2 -UHAVE_LIBFREETYPE"
fi
rm -rf conftest*

  GWXCFG_DEP_GD1="$GWXCFG_DEP_GD1 sysmathlib"
  GLDFLAG_DEP_GD1="$GLDFLAG_DEP_GD1 \$(GLDFLAG_ZLIB) $MATHLIB"
  GLDFLAG_DEP_GD1_L="$GLDFLAG_DEP_GD1_L $GLDFLAG_ZLIB_L $MATHLIB"
  GLDFLAG_GD1="$GLDFLAG_GD1 $GLDFLAG_DEP_GD1"
  GLDFLAG_GD1_L="$GLDFLAG_GD1_L $GLDFLAG_DEP_GD1_L"



else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_GD2=no
echo "$as_me:$LINENO: checking for library GD2" >&5
echo $ECHO_N "checking for library GD2... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 43002 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_GD2)
# if (GWX_COMPILE_GD2)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_GD2=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_GD2 1
EOF
  GHAVE_GD2="-DHAVE_LIBGD2 -DHAVE_GD2"
  GWXCFG_DEP_GD2=""
  GWXDIRS="$GWXDIRS gd2"
            ac_config_headers="$ac_config_headers gd2/config.h:gd2/config.hin"

                      ac_config_files="$ac_config_files gd2/Makefile gd2/bdftogd"

            ac_config_files="$ac_config_files pc/gdlib.pc"

 PCFILES="$PCFILES gdlib.pc"

  GINCLUDE_GD2="-I\$(DEPTH)/gd2 -I\$(TOP)/gd2"
  GLDFLAG_GD2_L="-lgd2"
  GLDFLAG_GD2="\$(DEPTH)/gd2/libgd2.la"

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

  GD2VERSION="2.0.15"
  GDLIB_MAJOR=2
  GDLIB_MINOR=0
  GDLIB_REVISION=15





                          GD2UNDEF=


echo "$as_me:$LINENO: checking for option GWX_GD_FREETYPE2" >&5
echo $ECHO_N "checking for option GWX_GD_FREETYPE2... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 43071 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GD_FREETYPE2)
# if (GWX_GD_FREETYPE2 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    GWXCFG_DEP_GD2="freetype2"
    GD2INCLUDES="\$(GINCLUDE_FREETYPE2)"
    GLDFLAG_DEP_GD2="\$(GLDFLAG_FREETYPE2)"
    GLDFLAG_DEP_GD2_L="$GLDFLAG_FREETYPE2_L"
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*

    GD2UNDEF="-UHAVE_FREETYPE2 -UHAVE_LIBFREETYPE2 -UHAVE_LIBFREETYPE"
fi
rm -rf conftest*


  GD2INCLUDES="$GD2INCLUDES \$(GINCLUDE_XPM) \$(GINCLUDE_JPEG)"
  GD2INCLUDES="$GD2INCLUDES \$(GINCLUDE_PNG) \$(GINCLUDE_ZLIB)"

  GLDFLAG_DEP_GD2="$GLDFLAG_DEP_GD2 \$(GLDFLAG_XPM) \$(GLDFLAG_JPEG)"
  GLDFLAG_DEP_GD2="$GLDFLAG_DEP_GD2 \$(GLDFLAG_PNG) \$(GLDFLAG_ZLIB)"
  GLDFLAG_DEP_GD2="$GLDFLAG_DEP_GD2 $MATHLIB"

  GLDFLAG_DEP_GD2_L="$GLDFLAG_DEP_GD2_L $GLDFLAG_XPM_L $GLDFLAG_JPEG_L"
  GLDFLAG_DEP_GD2_L="$GLDFLAG_DEP_GD2_L $GLDFLAG_PNG_L $GLDFLAG_ZLIB_L"
  GLDFLAG_DEP_GD2_L="$GLDFLAG_DEP_GD2_L $MATHLIB"

  GWXCFG_DEP_GD2="$GWXCFG_DEP_GD2 xpm jpeg libpng zlib sysmathlib"

  GLDFLAG_GD2="$GLDFLAG_GD2 $GLDFLAG_DEP_GD2"
  GLDFLAG_GD2_L="$GLDFLAG_GD2_L $GLDFLAG_DEP_GD2_L"



else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_FONTCONFIG=no
echo "$as_me:$LINENO: checking for library FONTCONFIG" >&5
echo $ECHO_N "checking for library FONTCONFIG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 43130 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_FONTCONFIG)
# if (GWX_COMPILE_FONTCONFIG)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_FONTCONFIG=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_FONTCONFIG 1
EOF
  GHAVE_FONTCONFIG="-DHAVE_LIBFONTCONFIG -DHAVE_FONTCONFIG"
  GWXCFG_DEP_FONTCONFIG=""
  GWXDIRS="$GWXDIRS fontconfig"
                      ac_config_files="$ac_config_files fontconfig/Makefile fontconfig/src/Makefile"

                      ac_config_files="$ac_config_files fontconfig/fc-cache/Makefile fontconfig/fc-list/Makefile"

            ac_config_files="$ac_config_files fontconfig/fontconfig/Makefile"

            ac_config_files="$ac_config_files fontconfig/fonts.conf"

            ac_config_headers="$ac_config_headers fontconfig/config.h"

            ac_config_files="$ac_config_files pc/fontconfig.pc"

 PCFILES="$PCFILES fontconfig.pc"

  GWXCFG_DEP_FONTCONFIG="$GWXCFG_DEP_FONTCONFIG expat"

  GINCLUDE_FONTCONFIG="-I\$(DEPTH)/fontconfig -I\$(TOP)/fontconfig"
  GLDFLAG_FONTCONFIG_L="-lfontconfig"
  GLDFLAG_FONTCONFIG="\$(DEPTH)/fontconfig/src/libfontconfig.la"

  GLDFLAG_DEP_FONTCONFIG="$GLDFLAG_DEP_FONTCONFIG \$(GLDFLAG_EXPAT)"
  GLDFLAG_DEP_FONTCONFIG_L="$GLDFLAG_DEP_FONTCONFIG_L $GLDFLAG_EXPAT_L"
  GLDFLAG_DEP_FONTCONFIG="$GLDFLAG_DEP_FONTCONFIG \$(GLDFLAG_FREETYPE2)"
  GLDFLAG_DEP_FONTCONFIG_L="$GLDFLAG_DEP_FONTCONFIG_L $GLDFLAG_FREETYPE2_L"

  FC_DEFAULT_FONTS="$sharedir/fonts"
  FONTCONFDIR="$sysconfdir/fonts"
  FONTCONFG_VERSION=1.0.1


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


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






else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


gwx_gtk2small=no
gwx_anygtk=no
want_threads=$gwx_threads
have_threads=no
want_xi=no
want_shm=no
G_THREAD_LIBS=
G_THREAD_LIBS_EXTRA=
G_THREAD_CFLAGS=

THREAD_NO_IMPLEMENTATION="You do not have any known thread system on your
                computer. GLib will not have a default thread implementation."

FLAG_DOES_NOT_WORK="I can't find the MACRO to enable thread safety on your
                platform (normally it's "_REENTRANT"). I'll not use any flag on
                compilation now, but then your programs might not work.
                Please provide information on how it is done on your system."

LIBS_NOT_FOUND_1="I can't find the libraries for the thread implementation
		"

LIBS_NOT_FOUND_2=". Please choose another thread implementation or
		provide information on your thread implementation.
		You can also run 'configure --disable-threads'
		to compile without thread support."

FUNC_NO_GETPWUID_R="the 'g_get_(user_name|real_name|home_dir|tmp_dir)'
		functions will not be MT-safe during their first call because
		there is no working 'getpwuid_r' on your system."

FUNC_NO_LOCALTIME_R="the 'g_date_set_time' function will not be MT-safe
		because there is no 'localtime_r' on your system."

POSIX_NO_YIELD="I can not find a yield functions for your platform. A rather
		crude surrogate will be used. If you happen to know a
		yield function for your system, please inform the GLib
		developers."

POSIX_NO_PRIORITIES="I can not find the minimal and maximal priorities for
		threads on your system. Thus threads can only have the default
		priority. If you happen to know these main/max
		priorities, please inform the GLib developers."

AIX_COMPILE_INFO="AIX's C compiler needs to be called by a different name, when
		linking threaded applications. As GLib cannot do that
		automatically, you will get an linkg error everytime you are
		not using the right compiler. In that case you have to relink
		with the right compiler. Ususally just '_r' is appended
		to the compiler name."



gwx_using_GTKPLUS1=no
echo "$as_me:$LINENO: checking for library GTKPLUS1" >&5
echo $ECHO_N "checking for library GTKPLUS1... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 43275 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_GTKPLUS1)
# if (GWX_COMPILE_GTKPLUS1)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_GTKPLUS1=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_GTKPLUS1 1
EOF
  GHAVE_GTKPLUS1="-DHAVE_LIBGTKPLUS1 -DHAVE_GTKPLUS1"
  GWXCFG_DEP_GTKPLUS1=""
  :
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


gwx_using_GTKPLUS2=no
echo "$as_me:$LINENO: checking for library GTKPLUS2" >&5
echo $ECHO_N "checking for library GTKPLUS2... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 43324 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_GTKPLUS2)
# if (GWX_COMPILE_GTKPLUS2)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_GTKPLUS2=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_GTKPLUS2 1
EOF
  GHAVE_GTKPLUS2="-DHAVE_LIBGTKPLUS2 -DHAVE_GTKPLUS2"
  GWXCFG_DEP_GTKPLUS2=""


echo "$as_me:$LINENO: checking for option GWX_GTKPLUS2_SMALL" >&5
echo $ECHO_N "checking for option GWX_GTKPLUS2_SMALL... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 43366 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GTKPLUS2_SMALL)
# if (GWX_GTKPLUS2_SMALL != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  gwx_gtk2small=yes
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

    if test "x$gwx_gtk2small" = "xyes"; then
      GTKISSMALL="#"
    else
      GTKISSMALL=
    fi


else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


if test "x$gwx_using_GTKPLUS1" = "xyes" -o "x$gwx_using_GTKPLUS2" = "xyes"; then
  gwx_anygtk=yes

if test "x$want_threads" = xyes; then
       	case $host in
               	*-*-solaris*)
              	echo "$as_me:$LINENO: checking for cond_init in -lthread" >&5
echo $ECHO_N "checking for cond_init in -lthread... $ECHO_C" >&6
if test "${ac_cv_lib_thread_cond_init+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
#line $LINENO "configure"
/* 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 cond_init ();
int
main ()
{
cond_init ();
  ;
  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_thread_cond_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_thread_cond_init=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_thread_cond_init" >&5
echo "${ECHO_T}$ac_cv_lib_thread_cond_init" >&6
if test $ac_cv_lib_thread_cond_init = yes; then
  have_threads=solaris
fi

		;;
	esac
fi
if test "x$want_threads" = xyes; then
	# -D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE is for DG/UX
	# -U_OSF_SOURCE is for Digital UNIX 4.0d
	GTHREAD_COMPILE_IMPL_DEFINES="-D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE -U_OSF_SOURCE"
	glib_save_CPPFLAGS="$CPPFLAGS"
	CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
        if test "x$have_threads" = xno; 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.  */
#include <pthread.h>
int
main ()
{
pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
  ;
  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
  have_threads=posix
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
        fi
if test "x$gwx_using_GTKPLUS2" = "xyes"; then
        if test "x$have_threads" = xno; 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.  */
#include <pthread.h>
int
main ()
{
pthread_mutex_t m;
                         pthread_mutex_init (&m, pthread_mutexattr_default);
  ;
  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
  have_threads=dce
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
        fi
fi
if test "x$gwx_using_GTKPLUS1" = "xyes"; then
	if test "x$have_threads" = xno; then
		echo "$as_me:$LINENO: checking for PRP_NewNakedCondVar in -lnspr21" >&5
echo $ECHO_N "checking for PRP_NewNakedCondVar in -lnspr21... $ECHO_C" >&6
if test "${ac_cv_lib_nspr21_PRP_NewNakedCondVar+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnspr21  $LIBS"
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.  */

/* 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 PRP_NewNakedCondVar ();
int
main ()
{
PRP_NewNakedCondVar ();
  ;
  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_nspr21_PRP_NewNakedCondVar=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_nspr21_PRP_NewNakedCondVar=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_nspr21_PRP_NewNakedCondVar" >&5
echo "${ECHO_T}$ac_cv_lib_nspr21_PRP_NewNakedCondVar" >&6
if test $ac_cv_lib_nspr21_PRP_NewNakedCondVar = yes; then
  have_threads=nspr
fi

	fi
fi
	CPPFLAGS="$glib_save_CPPFLAGS"
fi

echo "$as_me:$LINENO: checking for thread implementation" >&5
echo $ECHO_N "checking for thread implementation... $ECHO_C" >&6

if test "x$have_threads" = xno && test "x$want_threads" != xno; then
	echo "$as_me:$LINENO: result: none available" >&5
echo "${ECHO_T}none available" >&6
        { echo "$as_me:$LINENO: WARNING: $THREAD_NO_IMPLEMENTATION" >&5
echo "$as_me: WARNING: $THREAD_NO_IMPLEMENTATION" >&2;}
else
	echo "$as_me:$LINENO: result: $have_threads" >&5
echo "${ECHO_T}$have_threads" >&6
fi







if test x"$have_threads" != xno; then

  if test x"$have_threads" = xposix; then
    # First we test for posix, whether -pthread or -pthreads do the trick as
    # both CPPFLAG and LIBS.
    # One of them does for most gcc versions and some other platforms/compilers
    # too and could be considered as the canonical way to go.
    for flag in pthread pthreads; do
      glib_save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -$flag"
      if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF

#include <pthread.h>
int check_me = 0;
void* func(void* data) {return check_me = 42;}
main()
 { pthread_t t;
   void *ret;
   pthread_create (&t, 0, func, 0);
   pthread_join (t, &ret);
   exit (check_me != 42 || ret != 42);
}
_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
  glib_flag_works=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

glib_flag_works=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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 <pthread.h>
int check_me = 0;
void* func(void* data) {return check_me = 42;}
main()
 { pthread_t t;
   void *ret;
   pthread_create (&t, 0, func, 0);
   pthread_join (t, &ret);
   exit (check_me != 42 || ret != 42);
}
_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
  glib_flag_works=yes
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 )
glib_flag_works=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
      CFLAGS="$glib_save_CFLAGS"
      if test $glib_flag_works = yes ; then
         G_THREAD_CFLAGS=-$flag
	 G_THREAD_LIBS=-$flag
      fi
    done
  fi

  if test x"$G_THREAD_CFLAGS" = x; then

    # The canonical -pthread[s] does not work. Try something different.

    case $host in
	*-aix*)
		if test x"$GCC" = xyes; then
			# GCC 3.0 and above needs -pthread.
			# Should be coverd by the case above.
			# GCC 2.x and below needs -mthreads
			G_THREAD_CFLAGS="-mthreads"
			G_THREAD_LIBS=$G_THREAD_CFLAGS
		else
			# We are probably using the aix compiler. Normaly a
			# program would have to be compiled with the _r variant
			# of the corresponding compiler, but we as GLib cannot
			# do that: but the good news is that for compiling the
			# only difference is the added -D_THREAD_SAFE compile
			# option. This is according to the "C for AIX User's
			# Guide".
			G_THREAD_CFLAGS="-D_THREAD_SAFE"
		fi
		;;
	*-dg-dgux*)  # DG/UX
		G_THREAD_CFLAGS="-D_REENTRANT -D_POSIX4A_DRAFT10_SOURCE"
		;;
	*-osf*)
		# So we are using dce threads. posix threads are already
		# catched above.
		G_THREAD_CFLAGS="-threads"
		G_THREAD_LIBS=$G_THREAD_CFLAGS
		;;
	*-solaris*)
		if test x"$GCC" = xyes; then
		   # We are using solaris threads. posix threads are
		   # already catched above.
			G_THREAD_CFLAGS="-threads"
		else
			G_THREAD_CFLAGS="-mt"
		fi
		G_THREAD_LIBS=$G_THREAD_CFLAGS
		;;
	*-sysv5*) # UnixWare 7
		# We are not using gcc with -pthread. Catched above.
		G_THREAD_CFLAGS="-Kthread"
		G_THREAD_LIBS=$G_THREAD_CFLAGS
		;;
	*)
		G_THREAD_CFLAGS="-D_REENTRANT" # good default guess otherwise
		;;
    esac

  fi

    # if we are not finding the localtime_r function, then we probably are
    # not using the proper multithread flag

    glib_save_CPPFLAGS="$CPPFLAGS"
    CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"

    # First we test, whether localtime_r is declared in time.h
    # directly. Then we test whether a macro localtime_r exists, in
    # which case localtime_r in the test program is replaced and thus
    # if we still find localtime_r in the output, it is not defined as
    # a macro.

    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 <time.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then
  :
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 <time.h>
							   localtime_r(a,b)
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then
  { echo "$as_me:$LINENO: WARNING: $FLAG_DOES_NOT_WORK" >&5
echo "$as_me: WARNING: $FLAG_DOES_NOT_WORK" >&2;}
fi
rm -f conftest*

fi
rm -f conftest*


    CPPFLAGS="$glib_save_CPPFLAGS"

    echo "$as_me:$LINENO: checking thread related cflags" >&5
echo $ECHO_N "checking thread related cflags... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: $G_THREAD_CFLAGS" >&5
echo "${ECHO_T}$G_THREAD_CFLAGS" >&6
    CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
fi


mutex_has_default=no
case $have_threads in
        posix|dce)
	  glib_save_CPPFLAGS="$CPPFLAGS"
	  CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
          if test x"$G_THREAD_LIBS" = x; then
            case $host in
              *-aix*)
                # We are not using gcc (would have set G_THREAD_LIBS) and thus
                # probably using the aix compiler.
		{ echo "$as_me:$LINENO: WARNING: $AIX_COMPILE_INFO" >&5
echo "$as_me: WARNING: $AIX_COMPILE_INFO" >&2;}
                ;;
              *)
                G_THREAD_LIBS=error
	        glib_save_LIBS="$LIBS"
	        for thread_lib in "" pthread pthread32 pthreads thread dce; do
			if test x"$thread_lib" = x; then
				add_thread_lib=""
				IN=""
			else
				add_thread_lib="-l$thread_lib"
				IN=" in -l$thread_lib"
			fi
			if test x"$have_threads" = xposix; then
				defattr=0
			else
				defattr=pthread_attr_default
			fi

			LIBS="$add_thread_lib $glib_save_LIBS"

			echo "$as_me:$LINENO: checking for pthread_create/pthread_join$IN" >&5
echo $ECHO_N "checking for pthread_create/pthread_join$IN... $ECHO_C" >&6
			if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF

#include <pthread.h>
int check_me = 0;
void* func(void* data) {return check_me = 42;}
main()
 { pthread_t t;
   void *ret;
   pthread_create (&t, 0, func, 0);
   pthread_join (t, &ret);
   exit (check_me != 42 || ret != 42);
}
_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
  glib_result=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

glib_result=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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 <pthread.h>
int check_me = 0;
void* func(void* data) {return check_me = 42;}
main()
 { pthread_t t;
   void *ret;
   pthread_create (&t, 0, func, 0);
   pthread_join (t, &ret);
   exit (check_me != 42 || ret != 42);
}
_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
  glib_result=yes
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 )
glib_result=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
                        echo "$as_me:$LINENO: result: $glib_result" >&5
echo "${ECHO_T}$glib_result" >&6

                        if test "$glib_result" = "yes" ; then
			  G_THREAD_LIBS="$add_thread_lib"
                          break
                        fi
		done
		if test "x$G_THREAD_LIBS" = xerror; then
		  { { echo "$as_me:$LINENO: error: $LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" >&5
echo "$as_me: error: $LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" >&2;}
   { (exit 1); exit 1; }; }
		fi
		LIBS="$glib_save_LIBS"
                ;;
            esac
          fi

          glib_save_LIBS="$LIBS"
	  for thread_lib in "" rt rte; do
	    if test x"$thread_lib" = x; then
	      add_thread_lib=""
	      IN=""
	    else
	      add_thread_lib="-l$thread_lib"
	      IN=" in -l$thread_lib"
	    fi
	    LIBS="$add_thread_lib $glib_save_LIBS"

            echo "$as_me:$LINENO: checking for sched_get_priority_min$IN" >&5
echo $ECHO_N "checking for sched_get_priority_min$IN... $ECHO_C" >&6
	    if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF

#include <sched.h>
#include <errno.h>
int main() {
    errno = 0;
    return sched_get_priority_min(SCHED_OTHER)==-1
 	   && errno != 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
  glib_result=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

glib_result=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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 <sched.h>
#include <errno.h>
int main() {
    errno = 0;
    return sched_get_priority_min(SCHED_OTHER)==-1
 	   && errno != 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
  glib_result=yes
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 )
glib_result=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
	    echo "$as_me:$LINENO: result: $glib_result" >&5
echo "${ECHO_T}$glib_result" >&6

	    if test "$glib_result" = "yes" ; then
 	       G_THREAD_LIBS="$G_THREAD_LIBS $add_thread_lib"
	       posix_priority_min="sched_get_priority_min(SCHED_OTHER)"
	       posix_priority_max="sched_get_priority_max(SCHED_OTHER)"
	       break
            fi
	  done
	  LIBS="$glib_save_LIBS"
          mutex_has_default=yes
          mutex_default_type='pthread_mutex_t'
          mutex_default_init='PTHREAD_MUTEX_INITIALIZER'
          mutex_header_file='pthread.h'
	  if test "x$have_threads" = "xposix"; then
	    g_threads_impl="POSIX"
	  else
	    g_threads_impl="DCE"
	    have_threads="posix"
	  fi

          CPPFLAGS="$glib_save_CPPFLAGS"
          ;;
        solaris)
           mutex_has_default=yes
           mutex_default_type='mutex_t'
	   mutex_default_init="DEFAULTMUTEX"
           mutex_header_file='thread.h'
	   g_threads_impl="SOLARIS"
           ;;
	nspr)
	   g_threads_impl="NSPR"
	   ;;
        none|no)
	   g_threads_impl="NONE"
           ;;
        *)
	   g_threads_impl="NONE"
           G_THREAD_LIBS=error
           ;;
esac

if test "x$G_THREAD_LIBS" = xerror; then
        { { echo "$as_me:$LINENO: error: $LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" >&5
echo "$as_me: error: $LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" >&2;}
   { (exit 1); exit 1; }; }
fi

case $host in
  *-*-beos*)
    G_THREAD_LIBS="-lbe -lroot -lglib "
    G_THREAD_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
    ;;
  *)
    ;;
esac


echo "$as_me:$LINENO: checking thread related libraries" >&5
echo $ECHO_N "checking thread related libraries... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $G_THREAD_LIBS" >&5
echo "${ECHO_T}$G_THREAD_LIBS" >&6


if test x"$have_threads" != xno; then
	glib_save_LIBS="$LIBS"
	# we are not doing the following for now, as this might require glib
	# to always be linked with the thread libs on some platforms.
	# LIBS="$LIBS $G_THREAD_LIBS"

for ac_func in localtime_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 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.  */
_ACEOF
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

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>&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.$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

	if test "$ac_cv_header_pwd_h" = "yes"; then
	 	echo "$as_me:$LINENO: checking for posix getpwuid_r" >&5
echo $ECHO_N "checking for posix getpwuid_r... $ECHO_C" >&6
if test "${ac_cv_func_posix_getpwuid_r+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <errno.h>
#include <pwd.h>
int main () {
    char buffer[10000];
    struct passwd pwd, *pwptr = &pwd;
    int error;
    errno = 0;
    error = getpwuid_r (0, &pwd, buffer,
                        sizeof (buffer), &pwptr);
   return (error < 0 && errno == ENOSYS)
	   || error == ENOSYS;
}
_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_func_posix_getpwuid_r=yes
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_func_posix_getpwuid_r=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_posix_getpwuid_r" >&5
echo "${ECHO_T}$ac_cv_func_posix_getpwuid_r" >&6
		if test "x${ac_cv_func_posix_getpwuid_r+set}" != "xset" ; then
  { { echo "$as_me:$LINENO: error: ac_cv_func_posix_getpwuid_r must be set in cache file when cross-compiling." >&5
echo "$as_me: error: ac_cv_func_posix_getpwuid_r must be set in cache file when cross-compiling." >&2;}
   { (exit 1); exit 1; }; }
fi

		if test "$ac_cv_func_posix_getpwuid_r" = yes; then

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

		else
	 		echo "$as_me:$LINENO: checking for nonposix getpwuid_r" >&5
echo $ECHO_N "checking for nonposix getpwuid_r... $ECHO_C" >&6
if test "${ac_cv_func_nonposix_getpwuid_r+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 <pwd.h>
int
main ()
{
char buffer[10000];
                                	struct passwd pwd;
                                	getpwuid_r (0, &pwd, buffer,
                                        		sizeof (buffer));
  ;
  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_func_nonposix_getpwuid_r=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_nonposix_getpwuid_r=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_nonposix_getpwuid_r" >&5
echo "${ECHO_T}$ac_cv_func_nonposix_getpwuid_r" >&6
			if test "x${ac_cv_func_nonposix_getpwuid_r+set}" != "xset" ; then
  { { echo "$as_me:$LINENO: error: ac_cv_func_nonposix_getpwuid_r must be set in cache file when cross-compiling." >&5
echo "$as_me: error: ac_cv_func_nonposix_getpwuid_r must be set in cache file when cross-compiling." >&2;}
   { (exit 1); exit 1; }; }
fi

			if test "$ac_cv_func_nonposix_getpwuid_r" = yes; then

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

			fi
		fi
	fi
	LIBS="$G_THREAD_LIBS $LIBS"
	if test x"$have_threads" = xposix; then
		glib_save_CPPFLAGS="$CPPFLAGS"
		CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
				echo "$as_me:$LINENO: checking size of pthread_t" >&5
echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
if test "${glib_cv_sizeof_system_thread+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <pthread.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(pthread_t));
  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
  glib_cv_sizeof_system_thread=`cat conftestval`
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 )
glib_cv_sizeof_system_thread=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $glib_cv_sizeof_system_thread" >&5
echo "${ECHO_T}$glib_cv_sizeof_system_thread" >&6


cat >>confdefs.h <<_ACEOF
#define GLIB_SIZEOF_SYSTEM_THREAD $glib_cv_sizeof_system_thread
_ACEOF


		# This is not AC_CHECK_FUNC to also work with function
		# name mangling in header files.
		echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
echo $ECHO_N "checking for pthread_attr_setstacksize... $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 <pthread.h>
int
main ()
{
pthread_attr_t t; pthread_attr_setstacksize(&t,0)
  ;
  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
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

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

echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
		echo "$as_me:$LINENO: checking for minimal/maximal thread priority" >&5
echo $ECHO_N "checking for minimal/maximal thread priority... $ECHO_C" >&6
		if test x"$posix_priority_min" = x; 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.  */
#include <pthread.h>
				PX_PRIO_MIN
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "PX_PRIO_MIN" >/dev/null 2>&1; then
  :
else

				posix_priority_min=PX_PRIO_MIN
				posix_priority_max=PX_PRIO_MAX
fi
rm -f conftest*

		fi
		if test x"$posix_priority_min" = x; then
			# AIX
			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 <pthread.h>
				PTHREAD_PRIO_MIN
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "PTHREAD_PRIO_MIN" >/dev/null 2>&1; then
  :
else

				posix_priority_min=PTHREAD_PRIO_MIN
				posix_priority_max=PTHREAD_PRIO_MAX
fi
rm -f conftest*

		fi
		if test x"$posix_priority_min" = x; 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.  */
#include <pthread.h>
				PRI_OTHER_MIN
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "PRI_OTHER_MIN" >/dev/null 2>&1; then
  :
else

				posix_priority_min=PRI_OTHER_MIN
				posix_priority_max=PRI_OTHER_MAX
fi
rm -f conftest*

		fi
		if test x"$posix_priority_min" = x; then
			echo "$as_me:$LINENO: result: none found" >&5
echo "${ECHO_T}none found" >&6
			{ echo "$as_me:$LINENO: WARNING: $POSIX_NO_PRIORITIES" >&5
echo "$as_me: WARNING: $POSIX_NO_PRIORITIES" >&2;}
	                posix_priority_min=-1
			posix_priority_max=-1
		else
			echo "$as_me:$LINENO: result: $posix_priority_min/$posix_priority_max" >&5
echo "${ECHO_T}$posix_priority_min/$posix_priority_max" >&6
			echo "$as_me:$LINENO: checking for pthread_setschedparam" >&5
echo $ECHO_N "checking for pthread_setschedparam... $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 <pthread.h>
int
main ()
{
pthread_t t; pthread_setschedparam(&t, 0, NULL)
  ;
  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
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6


cat >>confdefs.h <<_ACEOF
#define POSIX_MIN_PRIORITY $posix_priority_min
_ACEOF



cat >>confdefs.h <<_ACEOF
#define POSIX_MAX_PRIORITY $posix_priority_max
_ACEOF

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

echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
			 { echo "$as_me:$LINENO: WARNING: $POSIX_NO_PRIORITIES" >&5
echo "$as_me: WARNING: $POSIX_NO_PRIORITIES" >&2;}
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
		fi
		posix_yield_func=none
		echo "$as_me:$LINENO: checking for posix yield function" >&5
echo $ECHO_N "checking for posix yield function... $ECHO_C" >&6
		for yield_func in sched_yield pthread_yield_np pthread_yield \
							thr_yield; 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.  */
#include <pthread.h>
int
main ()
{
$yield_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>&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
  posix_yield_func="$yield_func"
				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
		if test x"$posix_yield_func" = xnone; then
			echo "$as_me:$LINENO: result: none found" >&5
echo "${ECHO_T}none found" >&6
			{ echo "$as_me:$LINENO: WARNING: $POSIX_NO_YIELD" >&5
echo "$as_me: WARNING: $POSIX_NO_YIELD" >&2;}
	                posix_yield_func="g_usleep(1000)"
		else
			echo "$as_me:$LINENO: result: $posix_yield_func" >&5
echo "${ECHO_T}$posix_yield_func" >&6
			posix_yield_func="$posix_yield_func()"
		fi


cat >>confdefs.h <<_ACEOF
#define POSIX_YIELD_FUNC $posix_yield_func
_ACEOF

		CPPFLAGS="$glib_save_CPPFLAGS"

		echo "$as_me:$LINENO: checking whether to use the PID niceness surrogate for thread priorities" >&5
echo $ECHO_N "checking whether to use the PID niceness surrogate for thread priorities... $ECHO_C" >&6
if test "${glib_cv_use_pid_surrogate+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <pthread.h>
#include <sys/types.h>
#include <unistd.h>
pid_t other_pid = 0;

void* func(void* data) {other_pid = getpid();}
main()
{ pthread_t t;
  void *ret;
  pthread_create (&t, 0, func, NULL);
  pthread_join (t, &ret);
  exit (getpid()==other_pid ||
	$posix_priority_min != $posix_priority_max);
}
_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
  glib_cv_use_pid_surrogate=yes
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 )
glib_cv_use_pid_surrogate=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $glib_cv_use_pid_surrogate" >&5
echo "${ECHO_T}$glib_cv_use_pid_surrogate" >&6
	  if test "x${glib_cv_use_pid_surrogate+set}" != "xset" ; then
  { { echo "$as_me:$LINENO: error: glib_cv_use_pid_surrogate must be set in cache file when cross-compiling." >&5
echo "$as_me: error: glib_cv_use_pid_surrogate must be set in cache file when cross-compiling." >&2;}
   { (exit 1); exit 1; }; }
fi

          if test "$glib_cv_use_pid_surrogate" = "yes" ; then


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

          fi

	elif test x"$have_threads" = xwin32; then
		# It's a pointer to a private struct
		echo "$as_me:$LINENO: checking size of struct _GThreadData *" >&5
echo $ECHO_N "checking size of struct _GThreadData *... $ECHO_C" >&6
if test "${glib_cv_sizeof_system_thread+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(struct _GThreadData *));
  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
  glib_cv_sizeof_system_thread=`cat conftestval`
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 )
glib_cv_sizeof_system_thread=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $glib_cv_sizeof_system_thread" >&5
echo "${ECHO_T}$glib_cv_sizeof_system_thread" >&6


cat >>confdefs.h <<_ACEOF
#define GLIB_SIZEOF_SYSTEM_THREAD $glib_cv_sizeof_system_thread
_ACEOF


	elif test x"$have_threads" = xsolaris; then
		echo "$as_me:$LINENO: checking size of thread_t" >&5
echo $ECHO_N "checking size of thread_t... $ECHO_C" >&6
if test "${glib_cv_sizeof_system_thread+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <thread.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(thread_t));
  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
  glib_cv_sizeof_system_thread=`cat conftestval`
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 )
glib_cv_sizeof_system_thread=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $glib_cv_sizeof_system_thread" >&5
echo "${ECHO_T}$glib_cv_sizeof_system_thread" >&6


cat >>confdefs.h <<_ACEOF
#define GLIB_SIZEOF_SYSTEM_THREAD $glib_cv_sizeof_system_thread
_ACEOF


	fi

	LIBS="$glib_save_LIBS"

	# now spit out all the warnings.
	if test "$ac_cv_func_posix_getpwuid_r" != "yes" &&
	   test "$ac_cv_func_nonposix_getpwuid_r" != "yes"; then
		{ echo "$as_me:$LINENO: WARNING: $FUNC_NO_GETPWUID_R" >&5
echo "$as_me: WARNING: $FUNC_NO_GETPWUID_R" >&2;}
	fi
	if test "$ac_cv_func_localtime_r" != "yes"; then
		{ echo "$as_me:$LINENO: WARNING: $FUNC_NO_LOCALTIME_R" >&5
echo "$as_me: WARNING: $FUNC_NO_LOCALTIME_R" >&2;}
	fi
fi

if test x"$glib_cv_sizeof_system_thread" = x; then
   # use a pointer as a fallback.
   echo "$as_me:$LINENO: checking size of void *" >&5
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
if test "${glib_cv_sizeof_system_thread+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(void *));
  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
  glib_cv_sizeof_system_thread=`cat conftestval`
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 )
glib_cv_sizeof_system_thread=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $glib_cv_sizeof_system_thread" >&5
echo "${ECHO_T}$glib_cv_sizeof_system_thread" >&6


cat >>confdefs.h <<_ACEOF
#define GLIB_SIZEOF_SYSTEM_THREAD $glib_cv_sizeof_system_thread
_ACEOF


fi

#
# Hack to deal with:
#
#  a) GCC < 3.3 for Linux doesn't include -lpthread when
#     building shared libraries with linux.
#  b) libtool doesn't recognize -pthread as a library dependency.
#
case $host in
  *-*-linux*)
    G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`"
    ;;
  *)
    G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-Wc,-pthread/`"
    ;;
esac

if test "x$have_threads" = "xno"; then
  have_threads=none
fi



cat >>confdefs.h <<_ACEOF
#define G_THREAD_SOURCE "gthread-$have_threads.c"
_ACEOF






if test $mutex_has_default = yes ; then
	glib_save_CPPFLAGS="$CPPFLAGS"
	glib_save_LIBS="$LIBS"
	LIBS="$LIBS $G_THREAD_LIBS"
	CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
	echo "$as_me:$LINENO: checking size of $mutex_default_type" >&5
echo $ECHO_N "checking size of $mutex_default_type... $ECHO_C" >&6
if test "${glib_cv_sizeof_gmutex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <$mutex_header_file>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof($mutex_default_type));
  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
  glib_cv_sizeof_gmutex=`cat conftestval`
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 )
glib_cv_sizeof_gmutex=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $glib_cv_sizeof_gmutex" >&5
echo "${ECHO_T}$glib_cv_sizeof_gmutex" >&6


cat >>confdefs.h <<_ACEOF
#define GLIB_SIZEOF_GMUTEX $glib_cv_sizeof_gmutex
_ACEOF


	echo "$as_me:$LINENO: checking byte contents of $mutex_default_init" >&5
echo $ECHO_N "checking byte contents of $mutex_default_init... $ECHO_C" >&6
if test "${glib_cv_byte_contents_gmutex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  glib_cv_byte_contents_gmutex=no
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 <stdio.h>
#include <$mutex_header_file>
main()
{
  static $mutex_default_type tv = $mutex_default_init;
  char *p = (char*) &tv;
  int i;
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  for (i = 0; i < $glib_cv_sizeof_gmutex; i++)
    fprintf(f, "%s%d", i?",":"", *(p++));
  fprintf(f, "\n");
  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
  glib_cv_byte_contents_gmutex=`cat conftestval`
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 )
glib_cv_byte_contents_gmutex=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $glib_cv_byte_contents_gmutex" >&5
echo "${ECHO_T}$glib_cv_byte_contents_gmutex" >&6

cat >>confdefs.h <<_ACEOF
#define GLIB_BYTE_CONTENTS_GMUTEX $glib_cv_byte_contents_gmutex
_ACEOF


	if test x"$glib_cv_byte_contents_gmutex" = xno; then
		mutex_has_default=no
	fi
	CPPFLAGS="$glib_save_CPPFLAGS"
	LIBS="$glib_save_LIBS"
fi

# use a pointer as a fallback.
echo "$as_me:$LINENO: checking size of void *" >&5
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
if test "${glib_cv_sizeof_system_thread+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(void *));
  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
  glib_cv_sizeof_system_thread=`cat conftestval`
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 )
glib_cv_sizeof_system_thread=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $glib_cv_sizeof_system_thread" >&5
echo "${ECHO_T}$glib_cv_sizeof_system_thread" >&6


cat >>confdefs.h <<_ACEOF
#define GLIB_SIZEOF_SYSTEM_THREAD $glib_cv_sizeof_system_thread
_ACEOF



rm -f glibconfig-sysdefs.h
glib_sysdefso="glibconfig-sysdefs.h"
glib_sysdef_msg=`echo POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32 | sed 's/:[^ 	]*//g'`
if test "x`(echo '\n') 2>/dev/null`" != 'x\n'; then
  glib_nl='\\n'
else
  glib_nl='\n'
fi
echo "$as_me:$LINENO: checking system definitions for $glib_sysdef_msg" >&5
echo $ECHO_N "checking system definitions for $glib_sysdef_msg... $ECHO_C" >&6
cat >confrun.c <<_______EOF
#include <stdio.h>
#include <sys/types.h>
   #include <sys/poll.h>
int main (int c, char **v) {
  FILE *f = fopen ("$glib_sysdefso", "a");
  if (!f) return 1;
_______EOF
for glib_sysdef_input in POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32 ; do
	glib_sysdef=`echo $glib_sysdef_input | sed 's/^\([^:]*\):.*$/\1/'`
	glib_default=`echo $glib_sysdef_input | sed 's/^[^:]*:\(.*\)$/\1/'`
	echo "#ifdef $glib_sysdef" >>confrun.c
	echo "  fprintf (f, \"#define GLIB_SYSDEF_%s %s%d${glib_nl}\", \"$glib_sysdef\", \"=\", $glib_sysdef);" >>confrun.c
	echo "#else" >>confrun.c
	if test $glib_sysdef != $glib_default; then
		echo "  fprintf (f, \"#define GLIB_SYSDEF_%s %s%d${glib_nl}\", \"$glib_sysdef\", \"=\", $glib_default);" >>confrun.c
	else
		echo "  fprintf (f, \"#define GLIB_SYSDEF_%s${glib_nl}\", \"$glib_sysdef\");" >>confrun.c
	fi
	echo "#endif" >>confrun.c
done
echo "return 0; }" >>confrun.c
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
`cat confrun.c`
_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
  echo "$as_me:$LINENO: result: done" >&5
echo "${ECHO_T}done" >&6
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 )
	for glib_sysdef_input in POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32 ; do
		glib_sysdef=`echo $glib_sysdef_input | sed 's/^\([^:]*\):.*$/\1/'`
		glib_default=`echo $glib_sysdef_input | sed 's/^[^:]*:\(.*\)$/\1/'`
		if test $glib_sysdef != $glib_default; then
			glib_default=" =$glib_default"
		else
			glib_default=
		fi
		echo "#define GLIB_SYSDEF_$glib_sysdef$glib_default" >>$glib_sysdefso
	done
	echo "$as_me:$LINENO: result: failed" >&5
echo "${ECHO_T}failed" >&6
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f confrun.c



echo "$as_me:$LINENO: checking for option GWX_GTK_XIM" >&5
echo $ECHO_N "checking for option GWX_GTK_XIM... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 45267 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GTK_XIM)
# if (GWX_GTK_XIM != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  CFLAGS_XIM="-DUSE_XIM"

echo "$as_me:$LINENO: checking for option GWX_GTK_XIM_INST" >&5
echo $ECHO_N "checking for option GWX_GTK_XIM_INST... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 45286 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GTK_XIM_INST)
# if (GWX_GTK_XIM_INST != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  enable_xim_inst="maybe"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

    if test "x$enable_xim_inst" = "xmaybe"; then
      case host in
        *-*-solaris*)
          enable_xim_inst="no"
          ;;
        *)
	  if test "$glib_cv_x11_version" = "R5"; then
            enable_xim_inst="no"
	  else
            enable_xim_inst="yes"
	  fi
          ;;
      esac
    fi
    if test "x$enable_xim_inst" = "xyes"; then

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

    fi

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_GTK_XINPUT_GXI" >&5
echo $ECHO_N "checking for option GWX_GTK_XINPUT_GXI... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 45339 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GTK_XINPUT_GXI)
# if (GWX_GTK_XINPUT_GXI != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  want_xi=gxi
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_GTK_XINPUT_XF86" >&5
echo $ECHO_N "checking for option GWX_GTK_XINPUT_XF86... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 45364 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GTK_XINPUT_XF86)
# if (GWX_GTK_XINPUT_XF86 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  want_xi=xf86
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_GTK_SHM" >&5
echo $ECHO_N "checking for option GWX_GTK_SHM... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 45389 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GTK_SHM)
# if (GWX_GTK_SHM != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  want_shm=yes
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


fi # End of if we are using any version of GTK

if test "x$gwx_using_GTKPLUS1" = "xyes"; then
  GWXDIRS="$GWXDIRS gtk+"
                                ac_config_files="$ac_config_files gtk+/Makefile gtk+/glib/Makefile gtk+/gdk/Makefile"

            ac_config_files="$ac_config_files gtk+/docs/Makefile"

                      ac_config_files="$ac_config_files gtk+/gtk/Makefile gtk+/gtk/po/Makefile"

                      ac_config_files="$ac_config_files gtk+/gtk/gtkfeatures.h gtk+/glib/gmoduleconf.h"

                      ac_config_headers="$ac_config_headers gtk+/config.h gtk+/glib/config.h"

            ac_config_files="$ac_config_files pc/glib-1.2.pc"

 PCFILES="$PCFILES glib-1.2.pc"

            ac_config_files="$ac_config_files pc/gmodule-1.2.pc"

 PCFILES="$PCFILES gmodule-1.2.pc"

            ac_config_files="$ac_config_files pc/gthread-1.2.pc"

 PCFILES="$PCFILES gthread-1.2.pc"

            ac_config_files="$ac_config_files pc/gdk-1.2.pc"

 PCFILES="$PCFILES gdk-1.2.pc"

            ac_config_files="$ac_config_files pc/gtk+-1.2.pc"

 PCFILES="$PCFILES gtk+-1.2.pc"


            ac_config_commands="$ac_config_commands gtk+/glib/glibconfig.h"


  GHAVE_GTKPLUS1="-DHAVE_GTKPLUS -DHAVE_LIBGTK -DHAVE_LIBGLIB -DHAVE_LIBGDK"
  GHAVE_GTKPLUS1="$GHAVE_GTKPLUS1 -DHAVE_LIBGTKPLUS -DHAVE_GMODULE"
  GHAVE_GTKPLUS1="$GHAVE_GTKPLUS1 -DHAVE_GTHREAD"

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


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


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


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


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


  GINCLUDE_GLIB1="-I\$(DEPTH)/gtk+/glib -I\$(TOP)/gtk+/glib -I\$(DEPTH)/gtk+ -I\$(TOP)/gtk+"
  GINCLUDE_GDK1="-I\$(DEPTH)/gtk+/gdk -I\$(TOP)/gtk+/gdk"
  GINCLUDE_GDK1="$GINCLUDE_GDK1 \$(GINCLUDE_GLIB1)"
  GINCLUDE_GTKPLUS1="-I\$(DEPTH)/gtk+/gtk -I\$(DEPTH)/gtk+"
  GINCLUDE_GTKPLUS1="$GINCLUDE_GTKPLUS1 -I\$(TOP)/gtk+/gtk -I\$(TOP)/gtk+"
  GINCLUDE_GTKPLUS1="$GINCLUDE_GTKPLUS1 \$(GINCLUDE_GDK1)"

  GLDFLAG_GLIB1="\$(DEPTH)/gtk+/glib/libglib-1.2.la"
  GLDFLAG_GLIB1_L="-lglib-1.2"
  GLDFLAG_DEP_GLIB1=
  GLDFLAG_DEP_GLIB1_L=

  GLDFLAG_GMODULE1="\$(DEPTH)/gtk+/glib/libgmodule-1.2.la"
  GLDFLAG_GMODULE1_L="-lgmodule-1.2"
  GLDFLAG_DEP_GMODULE1="\$(GLDFLAG_GLIB1)"
  GLDFLAG_DEP_GMODULE1_L="$GLDFLAG_GLIB1_L"

  GLDFLAG_GTHREAD1="\$(DEPTH)/gtk+/glib/libgthread-1.2.la"
  GLDFLAG_GTHREAD1_L="-lgthread-1.2"
  GLDFLAG_DEP_GTHREAD1="\$(GLDFLAG_GLIB1) $G_THREAD_LIBS"
  GLDFLAG_DEP_GTHREAD1_L="$GLDFLAG_GLIB1_L $G_THREAD_LIBS"

  GLDFLAG_GDK1="\$(DEPTH)/gtk+/gdk/libgdk-1.2.la"
  GLDFLAG_GDK1_L="-lgdk-1.2"
  GLDFLAG_DEP_GDK1="\$(GLDFLAG_GLIB1) \$(GLDFLAG_GTHREAD1)"
  GLDFLAG_DEP_GDK1_L="$GLDFLAG_GLIB1_L $GLDFLAG_GTHREAD1_L"

  GLDFLAG_GTKPLUS1="\$(DEPTH)/gtk+/gtk/libgtk-1.2.la"
  GLDFLAG_GTKPLUS1_L="-lgtk-1.2"
  GLDFLAG_DEP_GTKPLUS1="\$(GLDFLAG_GDK1) \$(GLDFLAG_GMODULE1)"
  GLDFLAG_DEP_GTKPLUS1="$GLDFLAG_DEP_GTKPLUS1 \$(I18NLIBS) $MATHLIB"
  GLDFLAG_DEP_GTKPLUS1_L="$GLDFLAG_GDK1_L $GLDFLAG_GMODULE1_L"
  GLDFLAG_DEP_GTKPLUS1_L="$GLDFLAG_DEP_GTKPLUS1_L $I18NLIBS $MATHLIB"

  GLDFLAG_GLIB1="$GLDFLAG_GLIB1 $GLDFLAG_DEP_GLIB1"
  GLDFLAG_GLIB1_L="$GLDFLAG_GLIB1_L $GLDFLAG_DEP_GLIB1_L"
  GLDFLAG_GMODULE1="$GLDFLAG_GMODULE1 $GLDFLAG_DEP_GMODULE1"
  GLDFLAG_GMODULE1_L="$GLDFLAG_GMODULE1_L $GLDFLAG_DEP_GMODULE1_L"
  GLDFLAG_GTHREAD1="$GLDFLAG_GTHREAD1 $GLDFLAG_DEP_GTHREAD1"
  GLDFLAG_GTHREAD1_L="$GLDFLAG_GTHREAD1_L $GLDFLAG_DEP_GTHREAD1_L"
  GLDFLAG_GDK1="$GLDFLAG_GDK1 $GLDFLAG_DEP_GDK1"
  GLDFLAG_GDK1_L="$GLDFLAG_GDK1_L $GLDFLAG_DEP_GDK1_L"
  GLDFLAG_GTKPLUS1="$GLDFLAG_GTKPLUS1 $GLDFLAG_DEP_GTKPLUS1"
  GLDFLAG_GTKPLUS1_L="$GLDFLAG_GTKPLUS1_L $GLDFLAG_DEP_GTKPLUS1_L"
























  GTK1_MAJOR_VERSION=1
  GTK1_MINOR_VERSION=2
  GTK1_MICRO_VERSION=10
  GTK1_INTERFACE_AGE=1
  GTK1_BINARY_AGE=10
  GTK1_VERSION=$GTK1_MAJOR_VERSION.$GTK1_MINOR_VERSION.$GTK1_MICRO_VERSION

  GLIB1_MAJOR_VERSION=1
  GLIB1_MINOR_VERSION=2
  GLIB1_MICRO_VERSION=10
  GLIB1_BINARY_AGE=10
  GLIB1_INTERFACE_AGE=10
  GLIB1_VERSION=$GLIB1_MAJOR_VERSION.$GLIB1_MINOR_VERSION.$GLIB1_MICRO_VERSION

  IMLIB_GDK="gdk_imlib utils"














cat >>confdefs.h <<_ACEOF
#define GLIB1_MAJOR_VERSION $GLIB1_MAJOR_VERSION
_ACEOF



cat >>confdefs.h <<_ACEOF
#define GLIB1_MINOR_VERSION $GLIB1_MINOR_VERSION
_ACEOF



cat >>confdefs.h <<_ACEOF
#define GLIB1_MICRO_VERSION $GLIB1_MICRO_VERSION
_ACEOF



cat >>confdefs.h <<_ACEOF
#define GLIB1_INTERFACE_AGE $GLIB1_INTERFACE_AGE
_ACEOF



cat >>confdefs.h <<_ACEOF
#define GLIB1_BINARY_AGE $GLIB1_BINARY_AGE
_ACEOF



cat >>confdefs.h <<_ACEOF
#define GTK1_MAJOR_VERSION $GTK1_MAJOR_VERSION
_ACEOF



cat >>confdefs.h <<_ACEOF
#define GTK1_MINOR_VERSION $GTK1_MINOR_VERSION
_ACEOF



cat >>confdefs.h <<_ACEOF
#define GTK1_MICRO_VERSION $GTK1_MICRO_VERSION
_ACEOF



cat >>confdefs.h <<_ACEOF
#define GTK1_INTERFACE_AGE $GTK1_INTERFACE_AGE
_ACEOF



cat >>confdefs.h <<_ACEOF
#define GTK1_BINARY_AGE $GTK1_BINARY_AGE
_ACEOF


  GTK1GETTEXT_PACKAGE="gtk+"

fi # End if if we are compiling GTK+-1.2

if test "x$gwx_using_GTKPLUS2" = "xyes"; then
  GWXDIRS="$GWXDIRS gtk2+"
            ac_config_files="$ac_config_files gtk2+/Makefile"

            ac_config_files="$ac_config_files gtk2+/glib/config.h.in"

                      ac_config_files="$ac_config_files gtk2+/glib/Makefile gtk2+/glib/gmodule/Makefile"

                      ac_config_files="$ac_config_files gtk2+/glib/gobject/Makefile gtk2+/glib/gthread/Makefile"

            ac_config_files="$ac_config_files gtk2+/glib/gmodule/gmoduleconf.h"

            ac_config_files="$ac_config_files gtk2+/glib/gobject/glib-mkenums"

            ac_config_files="$ac_config_files gtk2+/glib/po/Makefile"

            ac_config_files="$ac_config_files pc/glib-2.0.pc"

 PCFILES="$PCFILES glib-2.0.pc"

            ac_config_files="$ac_config_files pc/gmodule-2.0.pc"

 PCFILES="$PCFILES gmodule-2.0.pc"

            ac_config_files="$ac_config_files pc/gobject-2.0.pc"

 PCFILES="$PCFILES gobject-2.0.pc"

            ac_config_files="$ac_config_files pc/gthread-2.0.pc"

 PCFILES="$PCFILES gthread-2.0.pc"

            ac_config_headers="$ac_config_headers gtk2+/glib/config.h"


            ac_config_commands="$ac_config_commands gtk2+/glib/glibconfig.h"



  GLIB2_MAJOR_VERSION=2
  GLIB2_MINOR_VERSION=2
  GLIB2_MICRO_VERSION=2
  GLIB2_INTERFACE_AGE=2
  GLIB2_BINARY_AGE=`expr 100 '*' $GLIB2_MINOR_VERSION + $GLIB2_MICRO_VERSION`
  GLIB2_VERSION=$GLIB2_MAJOR_VERSION.$GLIB2_MINOR_VERSION.$GLIB2_MICRO_VERSION








cat >>confdefs.h <<_ACEOF
#define GLIB2_MAJOR_VERSION $GLIB2_MAJOR_VERSION
_ACEOF



cat >>confdefs.h <<_ACEOF
#define GLIB2_MINOR_VERSION $GLIB2_MINOR_VERSION
_ACEOF



cat >>confdefs.h <<_ACEOF
#define GLIB2_MICRO_VERSION $GLIB2_MICRO_VERSION
_ACEOF



cat >>confdefs.h <<_ACEOF
#define GLIB2_INTERFACE_AGE $GLIB2_INTERFACE_AGE
_ACEOF



cat >>confdefs.h <<_ACEOF
#define GLIB2_BINARY_AGE $GLIB2_BINARY_AGE
_ACEOF




cat >>confdefs.h <<_ACEOF
#define G_COMPILED_WITH_DEBUGGING "no"
_ACEOF


  GINCLUDE_GOBJECT2="-I\$(DEPTH)/gtk2+/glib/gobject -I\$(TOP)/gtk2+/glib/gobject"
  GINCLUDE_GMODULE2="-I\$(DEPTH)/gtk2+/glib/gmodule -I\$(TOP)/gtk2+/glib/gmodule"
  GINCLUDE_GTHREAD2="-I\$(DEPTH)/gtk2+/glib/gthread -I\$(TOP)/gtk2+/glib/gthread"
  GINCLUDE_GLIB2="-I\$(DEPTH)/gtk2+/glib -I\$(TOP)/gtk2+/glib -I\$(DEPTH)/gtk2+ -I\$(TOP)/gtk2+ \$(GINCLUDE_GOBJECT2) \$(GINCLUDE_GMODULE2) \$(GINCLUDE_GTHREAD2)"

  GLDFLAG_GLIB2="\$(DEPTH)/gtk2+/glib/libglib-2.0.la"
  GLDFLAG_GLIB2_L="-lglib-2.0"
  GLDFLAG_DEP_GLIB2=$TRIO_LIBS
  GLDFLAG_DEP_GLIB2_L=$TRIO_LIBS

  GLDFLAG_GMODULE2="\$(DEPTH)/gtk2+/glib/gmodule/libgmodule-2.0.la"
  GLDFLAG_GMODULE2_L="-lgmodule-2.0"
  GLDFLAG_DEP_GMODULE2="\$(GLDFLAG_GLIB2)"
  GLDFLAG_DEP_GMODULE2_L="$GLDFLAG_GLIB2_L"

  GLDFLAG_GTHREAD2="\$(DEPTH)/gtk2+/glib/gthread/libgthread-2.0.la"
  GLDFLAG_GTHREAD2_L="-lgthread-2.0"
  GLDFLAG_DEP_GTHREAD2="\$(GLDFLAG_GLIB2) $G_THREAD_LIBS"
  GLDFLAG_DEP_GTHREAD2_L="$GLDFLAG_GLIB2_L $G_THREAD_LIBS"

  GLDFLAG_GOBJECT2="\$(DEPTH)/gtk2+/glib/gobject/libgobject-2.0.la"
  GLDFLAG_GOBJECT2_L="-lgobject-2.0"
  GLDFLAG_DEP_GOBJECT2="\$(GLDFLAG_GLIB2)"
  GLDFLAG_DEP_GOBJECT2_L="$GLDFLAG_GLIB2_L"

  GLDFLAG_GLIB2_L="$GLDFLAG_GLIB2_L $GLDFLAG_DEP_GLIB2_L"
  GLDFLAG_GMODULE2_L="$GLDFLAG_GMODULE2_L $GLDFLAG_DEP_GMODULE2_L"
  GLDFLAG_GTHREAD2_L="$GLDFLAG_GTHREAD2_L $GLDFLAG_DEP_GTHREAD2_L"
  GLDFLAG_GOBJECT2_L="$GLDFLAG_GOBJECT2_L $GLDFLAG_DEP_GOBJECT2_L"























echo "$as_me:$LINENO: checking for option GWX_GTK2_GCFRIENDLY" >&5
echo $ECHO_N "checking for option GWX_GTK2_GCFRIENDLY... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 45782 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GTK2_GCFRIENDLY)
# if (GWX_GTK2_GCFRIENDLY != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



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



else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_GTK2_NOPOOLS" >&5
echo $ECHO_N "checking for option GWX_GTK2_NOPOOLS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 45815 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GTK2_NOPOOLS)
# if (GWX_GTK2_NOPOOLS != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



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



else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


  if test "$GWXI18N" = "no"; then
    { { echo "$as_me:$LINENO: error:
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
*** GTK+ 2.2.x can not compile without it. Possibly disable this library.
    " >&5
echo "$as_me: error:
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
*** GTK+ 2.2.x can not compile without it. Possibly disable this library.
    " >&2;}
   { (exit 1); exit 1; }; }
  fi

  GLIB2GETTEXT_PACKAGE=glib20
  GLIB2_LOCALE_DIR=$localedir




for ac_func in bind_textdomain_codeset
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.  */
_ACEOF
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

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>&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.$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


  if test x$with_libiconv != xno ; then
    case " $I18NLIBS " in
    *[\ \	]-liconv[\ \	]*) ;;
    *) ICONV_LIBS="-liconv" ;;
    esac
  fi


  case $with_libiconv in
    gnu)

cat >>confdefs.h <<\_ACEOF
#define USE_LIBICONV_GNU Using GNU libiconv
_ACEOF

      ;;
    native)

cat >>confdefs.h <<\_ACEOF
#define USE_LIBICONV_NATIVE Using a native implementation of iconv in a separate library
_ACEOF

      ;;
  esac

  if test x$ac_cv_sizeof_long = x8 || test x$ac_cv_sizeof_long_long = x8 || test x$ac_cv_sizeof___int64 = x8 ; then
    :
  else
    { { echo "$as_me:$LINENO: error:
*** GLib requires a 64 bit type. You might want to consider
*** using the GNU C compiler.
" >&5
echo "$as_me: error:
*** GLib requires a 64 bit type. You might want to consider
*** using the GNU C compiler.
" >&2;}
   { (exit 1); exit 1; }; }
  fi

  if test x$ac_cv_sizeof_long_long = x8; then
	# long long is a 64 bit integer.
	echo "$as_me:$LINENO: checking for format to printf and scanf a guint64" >&5
echo $ECHO_N "checking for format to printf and scanf a guint64... $ECHO_C" >&6
	if test "${glib_cv_long_long_format+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		for format in ll q I64; do
		  if test "$cross_compiling" = yes; then
  :
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 <stdio.h>
			int main()
			{
			  long long b, a = -0x3AFAFAFAFAFAFAFALL;
			  char buffer[1000];
			  sprintf (buffer, "%${format}u", a);
  			  sscanf (buffer, "%${format}u", &b);
			  exit (b!=a);
			}

_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
  glib_cv_long_long_format=${format}
			break
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 gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
		done
fi

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

SANE_MALLOC_PROTOS=no
echo "$as_me:$LINENO: checking if malloc() and friends prototypes are gmem.h compatible" >&5
echo $ECHO_N "checking if malloc() and friends prototypes are gmem.h compatible... $ECHO_C" >&6
glib_save_CFLAGS=$CFLAGS
if test "x$GCC" = "xyes"; then
  CFLAGS="$CFLAGS -Werror"
  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 <stdlib.h>
int
main ()
{

    void* (*my_calloc_p)  (size_t, size_t) = calloc;
    void* (*my_malloc_p)  (size_t)         = malloc;
    void  (*my_free_p)    (void*)          = free;
    void* (*my_realloc_p) (void*, size_t)  = realloc;
    my_calloc_p = 0;
    my_malloc_p = 0;
    my_free_p = 0;
    my_realloc_p = 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


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

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

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $SANE_MALLOC_PROTOS" >&5
echo "${ECHO_T}$SANE_MALLOC_PROTOS" >&6
CFLAGS=$glib_save_CFLAGS

echo "$as_me:$LINENO: checking for growing stack pointer" >&5
echo $ECHO_N "checking for growing stack pointer... $ECHO_C" >&6
if test "${glib_cv_stack_grows+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	volatile int *a = 0, *b = 0;
	void foo (void);
	int main () { volatile int y = 7; a = &y; foo (); return b > a; }
	void foo (void) { volatile int x = 5; b = &x; }

_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
  glib_cv_stack_grows=no

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 )
glib_cv_stack_grows=yes

fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

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

echo "$as_me:$LINENO: checking for EILSEQ" >&5
echo $ECHO_N "checking for EILSEQ... $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 <errno.h>

int
main ()
{

int error = EILSEQ;

  ;
  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
  have_eilseq=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

have_eilseq=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext;
echo "$as_me:$LINENO: result: $have_eilseq" >&5
echo "${ECHO_T}$have_eilseq" >&6

            ac_config_files="$ac_config_files gtk2+/pango/Makefile"

            ac_config_files="$ac_config_files pc/pango-1.0.pc"

 PCFILES="$PCFILES pango-1.0.pc"

            ac_config_files="$ac_config_files pc/pangox-1.0.pc"

 PCFILES="$PCFILES pangox-1.0.pc"

  PANGO_MAJOR_VERSION=1
  PANGO_MINOR_VERSION=2
  PANGO_MICRO_VERSION=3
  PANGO_INTERFACE_AGE=3
  PANGO_VERSION=$PANGO_MAJOR_VERSION.$PANGO_MINOR_VERSION.$PANGO_MICRO_VERSION
  PANGO_BINARY_AGE=`expr 100 '*' $PANGO_MINOR_VERSION + $PANGO_MICRO_VERSION`

    PANGO_API_VERSION=1.0
  PANGO_MODULE_VERSION=1.2.0











cat >>confdefs.h <<_ACEOF
#define PANGO_INTERFACE_AGE $PANGO_INTERFACE_AGE
_ACEOF


#
# Checks for Xft/XRender
#
  have_xft=false
  XFT_LIBS=""
  XFT_CFLAGS=""
  pango_save_cppflags="$CPPFLAGS"
  CPPFLAGS="$CPPFLAGS $GINCLUDE_FREETYPE2"

  echo "$as_me:$LINENO: checking for XRenderFindFormat in -lXrender" >&5
echo $ECHO_N "checking for XRenderFindFormat in -lXrender... $ECHO_C" >&6
if test "${ac_cv_lib_Xrender_XRenderFindFormat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lXrender -lXext $X_LIBS $LIBS"
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.  */

/* 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 XRenderFindFormat ();
int
main ()
{
XRenderFindFormat ();
  ;
  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_Xrender_XRenderFindFormat=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_Xrender_XRenderFindFormat=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_Xrender_XRenderFindFormat" >&5
echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderFindFormat" >&6
if test $ac_cv_lib_Xrender_XRenderFindFormat = yes; then
  echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lXft -lXrender -lXext $X_LIBS $GLDFLAG_FREETYPE2_L $LIBS"
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.  */

/* 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 XftFontOpen ();
int
main ()
{
XftFontOpen ();
  ;
  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_Xft_XftFontOpen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_Xft_XftFontOpen=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_Xft_XftFontOpen" >&5
echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
if test $ac_cv_lib_Xft_XftFontOpen = yes; then
  if test "${ac_cv_header_X11_Xft_XftFreetype_h+set}" = set; then
  echo "$as_me:$LINENO: checking for X11/Xft/XftFreetype.h" >&5
echo $ECHO_N "checking for X11/Xft/XftFreetype.h... $ECHO_C" >&6
if test "${ac_cv_header_X11_Xft_XftFreetype_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_XftFreetype_h" >&5
echo "${ECHO_T}$ac_cv_header_X11_Xft_XftFreetype_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking X11/Xft/XftFreetype.h usability" >&5
echo $ECHO_N "checking X11/Xft/XftFreetype.h 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 <X11/Xft/XftFreetype.h>
_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
sed 's/^/| /' 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 X11/Xft/XftFreetype.h presence" >&5
echo $ECHO_N "checking X11/Xft/XftFreetype.h 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 <X11/Xft/XftFreetype.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
  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 in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: X11/Xft/XftFreetype.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: X11/Xft/XftFreetype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: X11/Xft/XftFreetype.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: X11/Xft/XftFreetype.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: X11/Xft/XftFreetype.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: X11/Xft/XftFreetype.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: X11/Xft/XftFreetype.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: X11/Xft/XftFreetype.h: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: X11/Xft/XftFreetype.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: X11/Xft/XftFreetype.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 X11/Xft/XftFreetype.h" >&5
echo $ECHO_N "checking for X11/Xft/XftFreetype.h... $ECHO_C" >&6
if test "${ac_cv_header_X11_Xft_XftFreetype_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_X11_Xft_XftFreetype_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_XftFreetype_h" >&5
echo "${ECHO_T}$ac_cv_header_X11_Xft_XftFreetype_h" >&6

fi
if test $ac_cv_header_X11_Xft_XftFreetype_h = yes; then
  have_xft=true
else
  :
fi


else
  :
fi


else
  :
fi


  CPPFLAGS="$pango_save_cppflags"

  if $have_xft ; then
    XFT_LIBS="-lXft -lXrender"
              ac_config_files="$ac_config_files pc/sysxftlibs"

 PCFILES="$PCFILES sysxftlibs"

    GWXCFG_DEP_XFT="$GWXCFG_DEP_XFT sysxextlibs freetype2 fontconfig"

  fi



# Check whether --with-xftconfig-dir or --without-xftconfig-dir was given.
if test "${with_xftconfig_dir+set}" = set; then
  withval="$with_xftconfig_dir"

fi;

  if test "x$with_xftconfig_dir" != "x"; then

cat >>confdefs.h <<_ACEOF
#define MINI_XFTCONFIG_DIR "$with_xftconfig_dir"
_ACEOF

  fi


  use_la_modules=false
  case $host in
    *-aix*) use_la_modules=true
  esac

  if $use_la_modules ; then


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

  fi

        if test "x$gwx_using_FREETYPE2"; then
    PANGOFT2=
              ac_config_files="$ac_config_files pc/pangoft2-1.0.pc"

 PCFILES="$PCFILES pangoft2-1.0.pc"

  else
    PANGOFT2="#"
  fi

  if test "x$have_xft" = "xtrue"; then
    PANGOXFT=
              ac_config_files="$ac_config_files pc/pangoxft-1.0.pc"

 PCFILES="$PCFILES pangoxft-1.0.pc"

  else
    PANGOXFT="#"
  fi








  GLDFLAG_PANGO="\$(DEPTH)/gtk2+/pango/libpango-1.0.la"
  GLDFLAG_PANGO_L="-lpango-1.0"
  GLDFLAG_DEP_PANGO="\$(GLDFLAG_GLIB2) \$(GLDFLAG_GMODULE2) \$(GLDFLAG_GOBJECT2)"
  GLDFLAG_DEP_PANGO_L="$GLDFLAG_GLIB2_L $GLDFLAG_GMODULE2 $GLDFLAG_GOBJECT2"
  GLDFLAG_PANGO="$GLDFLAG_PANGO $GLDFLAG_DEP_PANGO"
  GLDFLAG_PANGO_L="$GLDFLAG_PANGO_L $GLDFLAG_DEP_PANGO_L"
  GWXCFG_DEP_PANGO="$GWXCFG_DEP_PANGO glib-2.0 gmodule-2.0 gobject-2.0"

  GLDFLAG_PANGOX11="\$(DEPTH)/gtk2+/pango/libpangox-1.0.la"
  GLDFLAG_PANGOX11_L="-lpangox-1.0"
  GLDFLAG_DEP_PANGOX11="\$(GLDFLAG_PANGO) $GWX_XEXT_LIBS"
  GLDFLAG_DEP_PANGOX11_L="$GLDFLAG_PANGO $GWX_XEXT_LIBS"
  GLDFLAG_PANGOX11="$GLDFLAG_PANGOX11 $GLDFLAG_DEP_PANGOX11 $X_EXTRA_LIBS"
  GLDFLAG_PANGOX11_L="$GLDFLAG_PANGOX11_L $GLDFLAG_DEP_PANGOX11_L $X_EXTRA_LIBS"
  GWXCFG_DEP_PANGOX="$GWXCFG_DEP_PANGOX pango sysxextlibs sysxtralibs"

  GLDFLAG_PANGOXFT="\$(DEPTH)/gtk2+/pango/libpangoxft-1.0.la"
  GLDFLAG_PANGOXFT="-lpangoxft-1.0"
  GLDFLAG_DEP_PANGOXFT="\$(GLDFLAG_PANGO) \$(GLDFLAG_FREETYPE2)"
  GLDFLAG_DEP_PANGOXFT="$GLDFLAG_DEP_PANGOXFT $XFT_LIBS $GWX_XEXT_LIBS"
  GLDFLAG_DEP_PANGOXFT_L="$GLDFLAG_PANGO $GLDFLAG_FREETYPE2_L"
  GLDFLAG_DEP_PANGOXFT_L="$GLDFLAG_DEP_PANGOXFT_L $XFT_LIBS $GWX_XEXT_LIBS"
  GLDFLAG_PANGOXFT="$GLDFLAG_PANGOXFT $GLDFLAG_DEP_PANGOXFT $X_EXTRA_LIBS"
  GLDFLAG_PANGOXFT_L="$GLDFLAG_PANGOXFT_L $GLDFLAG_DEP_PANGOXFT_L $X_EXTRA_LIBS"
  GWXCFG_DEP_PANGOXFT="$GWXCFG_DEP_PANGOXFT pango-1.0 sysxftlibs"

  GLDFLAG_PANGOFT2="\$(DEPTH)/gtk2+/pango/libpangoft2-1.0.la"
  GLDFLAG_PANGOFT2_L="-lpangoft2-1.0"
  GLDFLAG_DEP_PANGOFT2="\$(GLDFLAG_PANGO) \$(GLDFLAG_FREETYPE2)"
  GLDFLAG_DEP_PANGOFT2_L="$GLDFLAG_PANGO $GLDFLAG_FREETYPE2_L"
  GLDFLAG_DEP_PANGOFT2="\$(GLDFLAG_PANGO) \$(GLDFLAG_FONTCONFIG)"
  GLDFLAG_DEP_PANGOFT2_L="$GLDFLAG_PANGO $GLDFLAG_FONTCONFIG_L"
  GLDFLAG_PANGOFT2="$GLDFLAG_PANGOFT2 $GLDFLAG_DEP_PANGOFT2"
  GLDFLAG_PANGOFT2_L="$GLDFLAG_PANGOFT2_L $GLDFLAG_DEP_PANGOFT2_L"
  GWXCFG_DEP_PANGOFT2="$GWXCFG_DEP_PANGOFT2 pango-1.0 freetype2 fontconfig"

  GINCLUDE_PANGO="\$(DEPTH)/gtk2+/pango \$(TOP)/gtk2+/pango"



















                            ac_config_files="$ac_config_files gtk2+/atk/Makefile gtk2+/atk/po/Makefile"

            ac_config_headers="$ac_config_headers gtk2+/atk/config.h"

            ac_config_files="$ac_config_files pc/atk-1.0.pc"

 PCFILES="$PCFILES atk-1.0.pc"

  ATK_MAJOR_VERSION=1
  ATK_MINOR_VERSION=2
  ATK_MICRO_VERSION=4
  ATK_VERSION=$ATK_MAJOR_VERSION.$ATK_MINOR_VERSION.$ATK_MICRO_VERSION

    ATK_API_VERSION=1.0
  ATK_INTERFACE_AGE=4
  ATK_BINARY_AGE=`expr 100 '*' $ATK_MINOR_VERSION + $ATK_MICRO_VERSION`







  GWXCFG_DEP_ATK="$GWXCFG_DEP_ATK glib-2.0 gobject-2.0 gmodule-2.0"

  GLDFLAG_ATK="\$(DEPTH)/gtk2+/atk/libatk-1.0.la"
  GLDFLAG_ATK_L="-latk-1.0"
  GLDFLAG_DEP_ATK="\$(GLDFLAG_GLIB2) \$(GLDFLAG_GOBJECT2) \$(GLDFLAG_GMODULE2)"
  GLDFLAG_DEP_ATK_L="$GLDFLAG_GLIB2_L $GLDFLAG_GOBJECT2_L $GLDFLAG_GMODULE2_L"
  GLDFLAG_ATK="$GLDFLAG_ATK $GLDFLAG_DEP_ATK"
  GLDFLAG_ATK_L="$GLDFLAG_ATK_L $GLDFLAG_DEP_ATK_L"
  GINCLUDE_ATK="\$(DEPTH)/gtk2+/atk \$(TOP)/gtk2+/atk"





  ATKGETTEXT_PACKAGE="atk10"


                            ac_config_files="$ac_config_files gtk2+/gdk/Makefile gtk2+/gdk-pixbuf/Makefile"

                      ac_config_files="$ac_config_files gtk2+/gdk-pixbuf/gdk-pixbuf-features.h gtk2+/gtk/Makefile"

            ac_config_files="$ac_config_files gtk2+/gtk/po/Makefile"

                      ac_config_files="$ac_config_files gtk2+/gtk/gtkversion.h gtk2+/config.h.in"

            ac_config_files="$ac_config_files pc/gtk+-2.0.pc"

 PCFILES="$PCFILES gtk+-2.0.pc"

            ac_config_files="$ac_config_files pc/gdk-pixbuf-2.0.pc"

 PCFILES="$PCFILES gdk-pixbuf-2.0.pc"

            ac_config_headers="$ac_config_headers gtk2+/config.h"


            ac_config_commands="$ac_config_commands gtk2+/gdk/gdkconfig.h"



  GTK2_MAJOR_VERSION=2
  GTK2_MINOR_VERSION=2
  GTK2_MICRO_VERSION=1
  GTK2_INTERFACE_AGE=1
  GTK2_BINARY_AGE=`expr 100 '*' $GTK2_MINOR_VERSION + $GTK2_MICRO_VERSION`
  GTK2_VERSION=$GTK2_MAJOR_VERSION.$GTK2_MINOR_VERSION.$GTK2_MICRO_VERSION
  GTK2_BINARY_VERSION=$GTK2_MAJOR_VERSION.$GTK2_MINOR_VERSION.0
  GDK_PIXBUF_MAJOR=$GTK2_MAJOR_VERSION
  GDK_PIXBUF_MINOR=$GTK2_MINOR_VERSION
  GDK_PIXBUF_MICRO=$GTK2_MICRO_VERSION
  GDK_PIXBUF_VERSION="${GDK_PIXBUF_MAJOR}.${GDK_PIXBUF_MINOR}.${GDK_PIXBUF_MICRO}"
    GTK2_API_VERSION=2.0














cat >>confdefs.h <<_ACEOF
#define GTK_COMPILED_WITH_DEBUG "no"
_ACEOF


  GTK2GETTEXT_PACKAGE=gtk20
  GTK2_LOCALE_DIR=$localedir



cat >>confdefs.h <<_ACEOF
#define GTK2GETTEXT_PACKAGE 1
_ACEOF



echo "$as_me:$LINENO: checking for option GWX_GTK2_MODULES" >&5
echo $ECHO_N "checking for option GWX_GTK2_MODULES... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 46747 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GTK2_MODULES)
# if (GWX_GTK2_MODULES != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


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


  # Checks to see if we should compile in MMX support (there will be
  # a runtime test when the code is actually run to see if it should
  # be used - this just checks if we can compile it.)
  #
  # This code is partially taken from Mesa
  #
  echo "$as_me:$LINENO: checking for x86 platform" >&5
echo $ECHO_N "checking for x86 platform... $ECHO_C" >&6
  case $host_cpu in
    i386|i486|i586|i686|i786|k6|k7)
	use_x86_asm=yes
        ;;
     *)
  	use_x86_asm=no
  esac
  echo "$as_me:$LINENO: result: $use_x86_asm" >&5
echo "${ECHO_T}$use_x86_asm" >&6

  use_mmx_asm=no
  if test $use_x86_asm = yes; then
      save_ac_ext=$ac_ext
      ac_ext=S

      echo "$as_me:$LINENO: checking compiler support for MMX" >&5
echo $ECHO_N "checking compiler support for MMX... $ECHO_C" >&6
      cp ${srcdir}/gtk2+/gdk-pixbuf/scale_line_22_33_mmx.S conftest.S
      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
          use_mmx_asm=yes
      fi

      rm -rf conftest*

      ac_ext=$save_ac_ext
      GDKMMX="#"
      if test $use_mmx_asm = yes; then
        GDKMMX=

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

        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

  fi

  gdktarget=x11
  MKGDKTARGET=X11
  GDKFBMGR="#"

echo "$as_me:$LINENO: checking for option GWX_GTK2_LINUXFB" >&5
echo $ECHO_N "checking for option GWX_GTK2_LINUXFB... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 46839 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GTK2_LINUXFB)
# if (GWX_GTK2_LINUXFB != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    gdktarget=linux-fb
    MKGDKTARGET=LFB

echo "$as_me:$LINENO: checking for option GWX_GTK2_NOSHADOWFB" >&5
echo $ECHO_N "checking for option GWX_GTK2_NOSHADOWFB... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 46860 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GTK2_NOSHADOWFB)
# if (GWX_GTK2_NOSHADOWFB != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  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
  rm -rf conftest*

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

fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_GTK2_FBMANAGER" >&5
echo $ECHO_N "checking for option GWX_GTK2_FBMANAGER... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 46889 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GTK2_FBMANAGER)
# if (GWX_GTK2_FBMANAGER != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

      GDKFBMGR=

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*





  GLDFLAG_GDK2X11="\$(DEPTH)/gtk2+/gdk/libgdk-x11-2.0.la"
  GLDFLAG_GDK2X11_L="-lgdk-x11-2.0"
  GLDFLAG_GDK2LFB="\$(DEPTH)/gtk2+/gdk/libgdk-linux-fb-2.0.la"
  GLDFLAG_GDK2LFB_L="-lgdk-linux-fb-2.0"
  GLDFLAG_GDK2PIXBUF="\$(DEPTH)/gtk2+/gdk-pixbuf/libgdk_pixbuf-2.0.la"
  GLDFLAG_GDK2PIXBUF_L="-lgdk_pixbuf-2.0"

            ac_config_files="$ac_config_files pc/gdk-2.0.pc"

 PCFILES="$PCFILES gdk-2.0.pc"

            ac_config_files="$ac_config_files pc/gdk-${gdktarget}-2.0.pc:pc/gdk-2.0.pc.in"


  allgdkdep="\$(GLDFLAG_GLIB2) \$(GLDFLAG_GMODULE2) \$(GLDFLAG_GOBJECT2) $MATHLIB"
  allgdkdep_l="$GLDFLAG_GLIB2_L $GLDFLAG_GMODULE2_L $GLDFLAG_GOBJECT2_L $MATHLIB"

  GWXCFG_DEP_GDK2PIXBUF="$GWXCFG_DEP_GDK2PIXBUF glib-2.0 gmodule-2.0"
  GWXCFG_DEP_GDK2PIXBUF="$GWXCFG_DEP_GDK2PIXBUF gobject-2.0 sysmathlib"
  GWXCFG_DEP_GDK2="$GWXCFG_DEP_GDK2 gdk-pixbuf-2.0"
  GWXCFG_DEP_GTKPLUS2="$GWXCFG_DEP_GTKPLUS2 gdk-${gdktarget}-2.0 atk"



  if test "x$gdktarget" = "xx11"; then
    GWXCFG_DEP_GDK2="$GWXCFG_DEP_GDK2 pangox-1.0"
    GLDFLAG_DEP_GDK2X11="$GLDFLAG_DEP_GDK2X11 \$(GLDFLAG_PANGOX11)"
    GLDFLAG_DEP_GDK2X11_L="$GLDFLAG_DEP_GDK2X11_L $GLDFLAG_PANGOX11_L"
    if test "x$have_xft" = "xtrue"; then
      GWXCFG_DEP_GDK2="$GWXCFG_DEP_GDK2 pangox-1.0 pangoxft-1.0"
      GLDFLAG_DEP_GDK2X11="$GLDFLAG_DEP_GDK2X11 \$(GLDFLAG_PANGOXFT)"
      GLDFLAG_DEP_GDK2X11_L="$GLDFLAG_DEP_GDK2X11_L $GLDFLAG_PANGOXFT"
    fi
  else
    GWXCFG_DEP_GDK2="$GWXCFG_DEP_GDK2 pangoft2-1.0"
    GLDFLAG_DEP_GDKLFB="$GLDFLAG_LFB \$(GLDFLAG_PANGOFT2)"
    GLDFLAG_DEP_GDKLFB_L="$GLDFLAG_LFB_L $GLDFLAG_PANGOFT2_L"
  fi

  GLDFLAG_DEP_GDK2PIXBUF="\$(GLDFLAG_PANGOX11) $allgdkdep"
  GLDFLAG_DEP_GDK2PIXBUF_L="$GLDFLAG_PANGOX11 $allgdkdep_l"
  GLDFLAG_DEP_GDK2X11="$GLDFLAG_DEP_GDK2X11 $allgdkdep"
  GLDFLAG_DEP_GDK2X11_L="$GLDFLAG_DEP_GDK2X11_L $allgdkdep_l"
  GLDFLAG_DEP_GDK2LFB="$GLDFLAG_DEP_GDK2LFB $allgdkdep"
  GLDFLAG_DEP_GDK2LFB_L="$GLDFLAG_DEP_GDK2LFB_L $allgdkdep_l"

  GLDFLAG_GDK2PIXBUF="$GLDFLAG_GDK2PIXBUF $GLDFLAG_DEP_GDK2PIXBUF"
  GLDFLAG_GDK2PIXBUF_L="$GLDFLAG_GDK2PIXBUF_L $GLDFLAG_DEP_GDK2PIXBUF_L"
  GLDFLAG_GDK2X11="$GLDFLAG_GDK2X11 $GLDFLAG_DEP_GDK2X11"
  GLDFLAG_GDK2X11_L="$GLDFLAG_GDK2X11_L $GLDFLAG_DEP_GDK2X11_L"
  GLDFLAG_GDK2LFB="$GLDFLAG_GDK2LFB $GLDFLAG_DEP_GDK2LFB"
  GLDFLAG_GDK2LFB_L="$GLDFLAG_GDK2LFB_L $GLDFLAG_DEP_GDK2LFB_L"

  GINCLUDE_GDK2PIXBUF="-I\$(DEPTH)/gtk2+/gdk-pixbuf -I\$(TOP)/gtk2+/gdk-pixbuf"

  GINCLUDE_GDK2="-I\$(DEPTH)/gtk2+/gdk -I\$(TOP)/gtk2+/gdk"
  GINCLUDE_GDK2="$GINCLUDE_GDK2 \$(GINCLUDE_GDK2PIXBUF) \$(GINCLUDE_GLIB2)"

  GINCLUDE_GTKPLUS2="-I\$(DEPTH)/gtk2+/gtk -I\$(TOP)/gtk2+/gtk"
  GINCLUDE_GTKPLUS2="$GINCLUDE_GTKPLUS2 \$(GINCLUDE_GDK2)"

  GLDFLAG_GDK2X11="$GLDFLAG_GDK2X11 $GLDFLAG_DEP_GDK2X11"
  GLDFLAG_GDK2X11_L="$GLDFLAG_GDK2X11_L $GLDFLAG_DEP_GDK2X11_L"
  GLDFLAG_GDK2LFB="$GLDFLAG_GDK2LFB $GLDFLAG_DEP_GDK2LFB"
  GLDFLAG_GDK2LFB_L="$GLDFLAG_GDK2LFB_L $GLDFLAG_DEP_GDK2LFB_L"

  if test "x$gdktarget" = "xx11"; then
    GLDFLAG_GDK2=$GLDFLAG_GDK2X11
    GLDFLAG_GDK2_L=$GLDFLAG_GDK2X11_L
  else
    GLDFLAG_GDK2=$GLDFLAG_GDK2LFB
    GLDFLAG_GDK2_L=$GLDFLAG_GDK2LFB_L
  fi

  GLDFLAG_GTKPLUS2="\$(DEPTH)/gtk2+/gtk/libgtk-${gdktarget}-2.0.la"
  GLDFLAG_GTKPLUS2_L="-lgtk-${gdktarget}-2.0"
  GLDFLAG_DEP_GTKPLUS2="\$(GLDFLAG_GDK2) \$(GLDFLAG_GDK2PIXBUF)"
  GLDFLAG_DEP_GTKPLUS2="$GLDFLAG_DEP_GTKPLUS2 \$(GLDFLAG_ATK)"
  GLDFLAG_DEP_GTKPLUS2="$GLDFLAG_DEP_GTKPLUS2 \$(I18NLIBS) $X11EXTLIBS $MATHLIB"
  GLDFLAG_DEP_GTKPLUS2_L="$GLDFLAG_GDK2_L $GLDFLAG_GDK2PIXBUF_L"
  GLDFLAG_DEP_GTKPLUS2_L="$GLDFLAG_GTKPLUS2_L $GLDFLAG_ATK_L"
  GLDFLAG_DEP_GTKPLUS2_L="$GLDFLAG_GTKPLUS2_L $I18NLIBS $X11EXTLIBS $MATHLIB"
  GLDFLAG_GTKPLUS2="$GLDFLAG_GTKPLUS2 $GLDFLAG_DEP_GTKPLUS2"
  GLDFLAG_GTKPLUS2_L="$GLDFLAG_GTKPLUS2_L $GLDFLAG_DEP_GTKPLUS2_L"




















fi # End of if we are compiling GTK+ 2.0

if test "x$want_shm" = "xno"; then
  SHM_EXT=""
else
  # Check for shared memory
  if test "${ac_cv_header_sys_ipc_h+set}" = set; then
  echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
if test "${ac_cv_header_sys_ipc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
echo $ECHO_N "checking sys/ipc.h 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 <sys/ipc.h>
_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
sed 's/^/| /' 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 sys/ipc.h presence" >&5
echo $ECHO_N "checking sys/ipc.h 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 <sys/ipc.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
  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 in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: sys/ipc.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: sys/ipc.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: sys/ipc.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 sys/ipc.h" >&5
echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
if test "${ac_cv_header_sys_ipc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_sys_ipc_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6

fi
if test $ac_cv_header_sys_ipc_h = yes; then

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

else
  no_sys_ipc=yes
fi


  if test "${ac_cv_header_sys_shm_h+set}" = set; then
  echo "$as_me:$LINENO: checking for sys/shm.h" >&5
echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
if test "${ac_cv_header_sys_shm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
echo $ECHO_N "checking sys/shm.h 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 <sys/shm.h>
_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
sed 's/^/| /' 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 sys/shm.h presence" >&5
echo $ECHO_N "checking sys/shm.h 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 <sys/shm.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
  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 in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: sys/shm.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: sys/shm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: sys/shm.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 sys/shm.h" >&5
echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
if test "${ac_cv_header_sys_shm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_sys_shm_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6

fi
if test $ac_cv_header_sys_shm_h = yes; then

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

else
  no_sys_shm=yes
fi



  # Check whether shmctl IPC_RMID allowes subsequent attaches
  if test "$ac_cv_header_sys_shm_h" = "yes"; then
    echo "$as_me:$LINENO: checking whether shmctl IPC_RMID allowes subsequent attaches" >&5
echo $ECHO_N "checking whether shmctl IPC_RMID allowes subsequent attaches... $ECHO_C" >&6
    if test "$cross_compiling" = yes; then
  echo "$as_me:$LINENO: result: assuming no" >&5
echo "${ECHO_T}assuming no" >&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 <sys/ipc.h>
          #include <sys/shm.h>
          int main()
          {
            int id;
            char *shmaddr;
          id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0777);
          if (id == -1)
            exit (2);
            shmaddr = shmat (id, 0, 0);
            shmctl (id, IPC_RMID, 0);
            if ((char*) shmat (id, 0, 0) == (char*) -1)
            {
              shmdt (shmaddr);
              exit (1);
            }
            shmdt (shmaddr);
            shmdt (shmaddr);
            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

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

        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
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: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
  fi

  # Check for the X shared memory extension header file
  echo "$as_me:$LINENO: checking X11/extensions/XShm.h" >&5
echo $ECHO_N "checking X11/extensions/XShm.h... $ECHO_C" >&6
  if test -z "$GWX_XEXT_LIBS"; then
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    no_xshm=yes
  else
    if test -f "$x_includes/X11/extensions/XShm.h"; then
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

    else
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
      no_xshm=yes
    fi
  fi
fi

if test "x$gwx_using_GTKPLUS1" = "xyes"; then
  if test "x$want_xi" = "xyes"; then

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

    xinput_progs=gxid

  fi
fi

GTK2XIMODULE="im-xim.la"
if test "x$want_xi" = "xxf86"; then

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

  GWX_XEXT_LIBS="-lXi $GWX_XEXT_LIBS"
  GDK2XISRCS="gdkinput-x11.c gdkinput-xfree.c"
else

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

  GDK2XISRCS="gdkinput-none.c"
  GTK2XIMODULE=
fi




if test "x$gwx_using_GTKPLUS2" = "xyes"; then
  GWXCFG_GLIB="glib-2.0"
  GWXCFG_GTKPLUS="gtk+-2.0"
  GWXCFG_GDK="gdk-2.0"
  GWXCFG_GMODULE="gmodule-2.0"
  GWXCFG_GTHREAD="gthread-2.0"
  GLDFLAG_GTKPLUS="\$(GLDFLAG_GTKPLUS2)"
  GLDFLAG_GTKPLUS_L="\$(GLDFLAG_GTKPLUS2_L)"
  GLDFLAG_DEP_GTKPLUS="\$(GLDFLAG_DEP_GTKPLUS2)"
  GLDFLAG_DEP_GTKPLUS_L="\$(GLDFLAG_DEP_GTKPLUS2_L)"
  GINCLUDE_GTKPLUS="\$(GINCLUDE_GTKPLUS2)"
  GLDFLAG_GDK="\$(GLDFLAG_GDK2)"
  GLDFLAG_GDK_L="\$(GLDFLAG_GDK2_L)"
  GLDFLAG_DEP_GDK="\$(GLDFLAG_DEP_GDK2)"
  GLDFLAG_DEP_GDK_L="\$(GLDFLAG_DEP_GDK2_L)"
  GINCLUDE_GDK="\$(GINCLUDE_GDK2)"
  GLDFLAG_GLIB="\$(GLDFLAG_GLIB2)"
  GLDFLAG_GLIB_L="\$(GLDFLAG_GLIB2_L)"
  GLDFLAG_DEP_GLIB="\$(GLDFLAG_DEP_GLIB2)"
  GLDFLAG_DEP_GLIB_L="\$(GLDFLAG_DEP_GLIB2_L)"
  GINCLUDE_GLIB="\$(GINCLUDE_GLIB2)"
  GLDFLAG_GMODULE="\$(GLDFLAG_GMODULE2)"
  GLDFLAG_GMODULE_L="\$(GLDFLAG_GMODULE2_L)"
  GLDFLAG_DEP_GMODULE="\$(GLDFLAG_DEP_GMODULE2)"
  GLDFLAG_DEP_GMODULE_L="\$(GLDFLAG_DEP_GMODULE2_L)"
  GLDFLAG_GTHREAD="\$(GLDFLAG_GTHREAD2)"
  GLDFLAG_GTHREAD_L="\$(GLDFLAG_GTHREAD2_L)"
  GLDFLAG_DEP_GTHREAD="\$(GLDFLAG_DEP_GTHREAD2)"
  GLDFLAG_DEP_GTHREAD_L="\$(GLDFLAG_DEP_GTHREAD2_L)"
  GLDFLAG_GOBJECT="\$(GLDFLAG_GOBJECT2)"
  GLDFLAG_GOBJECT_L="\$(GLDFLAG_GOBJECT2_L)"
  GLDFLAG_DEP_GOBJECT="\$(GLDFLAG_DEP_GOBJECT2)"
  GLDFLAG_DEP_GOBJECT_L="\$(GLDFLAG_DEP_GOBJECT2_L)"
elif test "x$gwx_using_GTKPLUS1" = "xyes"; then
  GWXCFG_GLIB="glib-1.2"
  GWXCFG_GTKPLUS="gtk+-1.2"
  GWXCFG_GDK="gdk-1.2"
  GWXCFG_GMODULE="gmodule-1.2"
  GWXCFG_GTHREAD="gthread-1.2"
  GLDFLAG_GTKPLUS="\$(GLDFLAG_GTKPLUS1)"
  GLDFLAG_GTKPLUS_L="\$(GLDFLAG_GTKPLUS1_L)"
  GLDFLAG_DEP_GTKPLUS="\$(GLDFLAG_DEP_GTKPLUS1)"
  GLDFLAG_DEP_GTKPLUS_L="\$(GLDFLAG_DEP_GTKPLUS1_L)"
  GINCLUDE_GTKPLUS="\$(GINCLUDE_GTKPLUS1)"
  GLDFLAG_GDK="\$(GLDFLAG_GDK1)"
  GLDFLAG_GDK_L="\$(GLDFLAG_GDK1_L)"
  GLDFLAG_DEP_GDK="\$(GLDFLAG_DEP_GDK1)"
  GLDFLAG_DEP_GDK_L="\$(GLDFLAG_DEP_GDK1_L)"
  GINCLUDE_GDK="\$(GINCLUDE_GDK1)"
  GLDFLAG_GLIB="\$(GLDFLAG_GLIB1)"
  GLDFLAG_GLIB_L="\$(GLDFLAG_GLIB1_L)"
  GLDFLAG_DEP_GLIB="\$(GLDFLAG_DEP_GLIB1)"
  GLDFLAG_DEP_GLIB_L="\$(GLDFLAG_DEP_GLIB1_L)"
  GINCLUDE_GLIB="\$(GINCLUDE_GLIB1)"
  GLDFLAG_GMODULE="\$(GLDFLAG_GMODULE1)"
  GLDFLAG_GMODULE_L="\$(GLDFLAG_GMODULE1_L)"
  GLDFLAG_DEP_GMODULE="\$(GLDFLAG_DEP_GMODULE1)"
  GLDFLAG_DEP_GMODULE_L="\$(GLDFLAG_DEP_GMODULE1_L)"
  GLDFLAG_GTHREAD="\$(GLDFLAG_GTHREAD1)"
  GLDFLAG_GTHREAD_L="\$(GLDFLAG_GTHREAD1_L)"
  GLDFLAG_DEP_GTHREAD="\$(GLDFLAG_DEP_GTHREAD1)"
  GLDFLAG_DEP_GTHREAD_L="\$(GLDFLAG_DEP_GTHREAD1_L)"
  GLDFLAG_GOBJECT=
  GLDFLAG_GOBJECT_L=
  GLDFLAG_DEP_GOBJECT=
  GLDFLAG_DEP_GOBJECT_L=
fi






























gwx_using_IMLIB=no
echo "$as_me:$LINENO: checking for library IMLIB" >&5
echo $ECHO_N "checking for library IMLIB... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 47547 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_IMLIB)
# if (GWX_COMPILE_IMLIB)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_IMLIB=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_IMLIB 1
EOF
  GHAVE_IMLIB="-DHAVE_LIBIMLIB -DHAVE_IMLIB"
  GWXCFG_DEP_IMLIB=""
  GWXDIRS="$GWXDIRS imlib"
                      ac_config_files="$ac_config_files imlib/Makefile imlib/Imlib/Makefile"

            ac_config_files="$ac_config_files imlib/config/Makefile"

            ac_config_headers="$ac_config_headers imlib/config.h"

            ac_config_files="$ac_config_files pc/imlib.pc"

 PCFILES="$PCFILES imlib.pc"

  GLDFLAG_IMLIB="\$(DEPTH)/imlib/Imlib/libImlib.la"
  GLDFLAG_IMLIB_L="-lImlib"
  GINCLUDE_IMLIB="-I\$(DEPTH)/imlib/Imlib -I\$(TOP)/imlib/Imlib"
  GLDFLAG_DEP_IMLIB="\$(GLDFLAG_JPEG) \$(GLDFLAG_TIFF) \$(GLDFLAG_GIFLIB)"
  GLDFLAG_DEP_IMLIB="$GLDFLAG_DEP_IMLIB \$(GLDFLAG_PNG)"
  GLDFLAG_DEP_IMLIB_L="$GLDFLAG_JPEG_L $GLDFLAG_TIFF_L $GLDFLAG_GIFLIB_L"
  GLDFLAG_DEP_IMLIB_L="$GLDFLAG_DEP_IMLIB_L $GLDFLAG_PNG_L"
  GWXCFG_DEP_IMLIB="jpeg tiff giflib png"

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


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


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


  if test -n "$IMLIB_GDK" ; then
                        ac_config_files="$ac_config_files imlib/gdk_imlib/Makefile imlib/utils/Makefile"

              ac_config_files="$ac_config_files pc/imlibgdk.pc"

 PCFILES="$PCFILES imlibgdk.pc"

    GHAVE_GDKIMLIB="-DHAVE_GDKIMLIB"
    GINCLUDE_GDKIMLIB="-I\$(DEPTH)/imlib/gdk_imlib -I\$(TOP)/imlib/gdk_imlib"
    GLDFLAG_GDKIMLIB="\$(DEPTH)/imlib/gdk_imlib/libgdk_imlib.la"
    GLDFLAG_GDKIMLIB_L="-lgdk_imlib"
    GLDFLAG_DEP_GDKIMLIB="$GLDFLAG_DEP_IMLIB \$(GLDFLAG_GDK1)"
    GLDFLAG_DEP_GDKIMLIB_L="$GLDFLAG_DEP_IMLIB_L $GLDFLAG_GDK1_L"

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


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


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

  fi

    GLDFLAG_IMLIB="$GLDFLAG_IMLIB $GLDFLAG_DEP_IMLIB"
  GLDFLAG_GDKIMLIB="$GLDFLAG_GDKIMLIB $GLDFLAG_DEP_GDKIMLIB"
  GLDFLAG_IMLIB_L="$GLDFLAG_IMLIB_L $GLDFLAG_DEP_IMLIB_L"
  GLDFLAG_GDKIMLIB_L="$GLDFLAG_GDKIMLIB_L $GLDFLAG_DEP_GDKIMLIB_L"








  CONVERT_PATH="\${bindir}"
  IMLIB_VERSION=1.9.14



else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_GDOME2=no
echo "$as_me:$LINENO: checking for library GDOME2" >&5
echo $ECHO_N "checking for library GDOME2... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 47678 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_GDOME2)
# if (GWX_COMPILE_GDOME2)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_GDOME2=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_GDOME2 1
EOF
  GHAVE_GDOME2="-DHAVE_LIBGDOME2 -DHAVE_GDOME2"
  GWXCFG_DEP_GDOME2=""
  GWXDIRS="$GWXDIRS gdome2"
            ac_config_files="$ac_config_files gdome2/Makefile"

            ac_config_files="$ac_config_files pc/gdome2.pc"

 PCFILES="$PCFILES gdome2.pc"

            ac_config_files="$ac_config_files gdome2/gdome-config.1"

            ac_config_headers="$ac_config_headers gdome2/config.h"


  GDOME2_VERSION=0.7.4

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

  GINCLUDE_GDOME2="-I\$(DEPTH)/gdome2 -I\$(TOP)/gdome2"
  GLDFLAG_DEP_GDOME2="\$(GLDFLAG_XML2)"
  GLDFLAG_DEP_GDOME2_L="$GLDFLAG_XML2_L"
  GWXCFG_DEP_GDOME2="$GWXCFG_DEP_GDOME2 libxml-2.0"
  GLDFLAG_GDOME2="\$(DEPTH)/gdome2/libgdome2.la"
  GLDFLAG_GDOME2_L="-lgdome2"
  GDOME2_CFLAGS=

echo "$as_me:$LINENO: checking for option GWX_GDOME2_GLIB2" >&5
echo $ECHO_N "checking for option GWX_GDOME2_GLIB2... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 47744 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_GDOME2_GLIB2)
# if (GWX_GDOME2_GLIB2 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    GDOME2GLIBINC="\$(GINCLUDE_GLIB2)"
    GWXCFG_DEP_GDOME2="$GWXCFG_DEP_GDOME2 glib-2.0"
    GLDFLAG_DEP_GDOME2="$GLDFLAG_DEP_GDOME2 \$(GLDFLAG_GLIB2)"
    GLDFLAG_DEP_GDOME2_L="$GLDFLAG_DEP_GDOME2_L $GLDFLAG_GLIB2_L"
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*

    GDOME2GLIBINC="\$(GINCLUDE_GLIB1)"
    GWXCFG_DEP_GDOME2="$GWXCFG_DEP_GDOME2 glib-1.2"
    GLDFLAG_DEP_GDOME2="$GLDFLAG_DEP_GDOME2 \$(GLDFLAG_GLIB1)"
    GLDFLAG_DEP_GDOME2_L="$GLDFLAG_DEP_GDOME2_L $GLDFLAG_GLIB1_L"
fi
rm -rf conftest*




  GLDFLAG_GDOME2="$GLDFLAG_GDOME2 $GLDFLAG_DEP_GDOME2"
  GLDFLAG_GDOME2_L="$GLDFLAG_GDOME2_L $GLDFLAG_DEP_GDOME2_L"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_MD5=no
echo "$as_me:$LINENO: checking for library MD5" >&5
echo $ECHO_N "checking for library MD5... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 47793 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_MD5)
# if (GWX_COMPILE_MD5)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_MD5=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_MD5 1
EOF
  GHAVE_MD5="-DHAVE_LIBMD5 -DHAVE_MD5"
  GWXCFG_DEP_MD5=""
  GWXDIRS="$GWXDIRS md5"
            ac_config_files="$ac_config_files md5/Makefile"


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

            ac_config_files="$ac_config_files pc/md5.pc"

 PCFILES="$PCFILES md5.pc"

  GINCLUDE_MD5="-I\$(DEPTH)/md5 -I\$(TOP)/md5"
  GLDFLAG_MD5_L="-lmd5 $GLDFLAG_DEP_MD5_L"
  GLDFLAG_MD5="\$(DEPTH)/md5/libmd5.la $GLDFLAG_DEP_MD5"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_RAND=no
echo "$as_me:$LINENO: checking for library RAND" >&5
echo $ECHO_N "checking for library RAND... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 47858 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_RAND)
# if (GWX_COMPILE_RAND)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_RAND=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_RAND 1
EOF
  GHAVE_RAND="-DHAVE_LIBRAND -DHAVE_RAND"
  GWXCFG_DEP_RAND=""
  GWXDIRS="$GWXDIRS rand"
            ac_config_files="$ac_config_files rand/Makefile"

            ac_config_files="$ac_config_files pc/truerand.pc"

 PCFILES="$PCFILES truerand.pc"

  GINCLUDE_RAND="-I\$(DEPTH)/rand -I\$(TOP)/rand"
  GLDFLAG_RAND_L="-lrand $GLDFLAG_DEP_RAND_L"
  GLDFLAG_RAND="\$(DEPTH)/rand/librand.la $GLDFLAG_DEP_RAND"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_OPENSSL=no
echo "$as_me:$LINENO: checking for library OPENSSL" >&5
echo $ECHO_N "checking for library OPENSSL... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 47918 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_OPENSSL)
# if (GWX_COMPILE_OPENSSL)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_OPENSSL=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_OPENSSL 1
EOF
  GHAVE_OPENSSL="-DHAVE_LIBOPENSSL -DHAVE_OPENSSL"
  GWXCFG_DEP_OPENSSL=""

    if test -z "$GWX_OPENSSL"; then
    cat <<EOF
NOTE: You have selected to compile with support for OpenSSL. Due to the
sensitive nature of this software, GWXLIBS does not attempt to configure
it or change its configuration mechanism to fit in with the rest of the
GWXLIBS package. In order to use OpenSSL, you should extract, build and
install it before configuring GWXLIBS. OpenSSL 0.9.6i or later is
recommended. Not all packages in GWXLIBS support OpenSSL 0.9.7 yet.

If you have already installed OpenSSL, you need to invoke this configure
script with the --with-openssl option, telling where the base location
of the OpenSSL installation is. For example, --with-openssl=usr if
your OpenSSL include files are in /usr/include/openssl and your libraries
are in /usr/lib.

Please see the files INSTALL and README for details.
EOF
  { { echo "$as_me:$LINENO: error: Aborting configuration" >&5
echo "$as_me: error: Aborting configuration" >&2;}
   { (exit 1); exit 1; }; }
  else
            ac_config_files="$ac_config_files pc/openssl.pc"

 PCFILES="$PCFILES openssl.pc"

  GWXCFG_DEP_OPENSSL="$GWXCFG_DEP_OPENSSL syssocklib"
    OPENSSL_CFLAGS="-I$GWX_OPENSSL/include"
  saved_CPPFLAGS=$CPPFLAGS
  CPPFLAGS=$OPENSSL_CFLAGS
  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 <openssl/opensslv.h>
    #if OPENSSL_VERSION_NUMBER < 0x00907000L && OPENSSL_VERSION_NUMBER >= 0x0090609fL
        yes
    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; 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.  */

        #include <openssl/opensslv.h>
        #if OPENSSL_VERSION_NUMBER >= 0x0090701fL
          yes
        #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then
  OPENSSL_VERSION="0.9.7"
else
  OPENSSL_VERSION="0.9.6"
fi
rm -f conftest*


else
   { { echo "$as_me:$LINENO: error: You need at least OpenSSL 0.9.6i/0.9.7a or later" >&5
echo "$as_me: error: You need at least OpenSSL 0.9.6i/0.9.7a or later" >&2;}
   { (exit 1); exit 1; }; }

fi
rm -f conftest*

  SSL_LIBS="-lssl -lcrypto"
  CPPFLAGS=$saved_CPPFLAGS
  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 "openssl/crypto/opensslconf.h"
    #ifdef RSAref
      yes
    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then


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


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


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

      SSL_LIBS="$SSL_LIBS -lRSAglue -lrsaref"

fi
rm -f conftest*


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


  GINCLUDE_OPENSSL="-I$GWX_OPENSSL/include"
  GLDFLAG_OPENSSL="-L$GWX_OPENSSL/lib $SSL_LIBS"
  GLDFLAG_OPENSSL_L="$SSL_LIBS"
  GHAVE_OPENSSL="$GHAVE_OPENSSL -DHAVE_OPENSSL -DHAVE_LIBSSL -DHAVE_LIBCRYPTO"
  fi

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_OPENSLP=no
echo "$as_me:$LINENO: checking for library OPENSLP" >&5
echo $ECHO_N "checking for library OPENSLP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48381 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_OPENSLP)
# if (GWX_COMPILE_OPENSLP)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_OPENSLP=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_OPENSLP 1
EOF
  GHAVE_OPENSLP="-DHAVE_LIBOPENSLP -DHAVE_OPENSLP"
  GWXCFG_DEP_OPENSLP=""
  GWXDIRS="$GWXDIRS slp"
            ac_config_files="$ac_config_files slp/Makefile"

            ac_config_files="$ac_config_files pc/openslp.pc"

 PCFILES="$PCFILES openslp.pc"


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


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


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

  GHAVE_OPENSLP="$GHAVE_OPENSLP -DHAVE_LIBSLP"
  GINCLUDE_OPENSLP="-I\$(DEPTH)/slp -I\$(TOP)/slp"
  SLPVERSION=1.0.11
  SLPDEFS="-Dsocklen_t=$SOCKLEN_T -D_REENTRANT=1"
  case "$host_os" in
    *linux*) SLPDEFS="$SLPDEFS -DLINUX" ;;
    *solaris*) SLPDEFS="$SLPDEFS -DSOLARIS" ;;
  esac

echo "$as_me:$LINENO: checking for option GWX_SLP_SLPV1" >&5
echo $ECHO_N "checking for option GWX_SLP_SLPV1... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48452 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SLP_SLPV1)
# if (GWX_SLP_SLPV1 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    SLPDEFS="$SLPDEFS -DENABLE_SLPv1"
    SLPV1SRCS="slp_v1message.c slp_utf8.c"
    SLPDV1SRCS="slpd_v1process.c"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_SLP_PREDICATES" >&5
echo $ECHO_N "checking for option GWX_SLP_PREDICATES... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48481 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SLP_PREDICATES)
# if (GWX_SLP_PREDICATES != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    SLPDEFS="$SLPDEFS -DENABLE_PREDICATES"
    SLPDSRCS="libslpattr.c slpd_predicate.c"
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*

    SLPDSRCS="libslpattr_tiny.c"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_SLP_ASYNC" >&5
echo $ECHO_N "checking for option GWX_SLP_ASYNC... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48511 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SLP_ASYNC)
# if (GWX_SLP_ASYNC != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    SLPDEFS="$SLPDEFS -DENABLE_ASYNC_API"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

  if test "$gwx_using_OPENSSL" = "yes"; then

echo "$as_me:$LINENO: checking for option GWX_SLP_SECURITY" >&5
echo $ECHO_N "checking for option GWX_SLP_SECURITY... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48538 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SLP_SECURITY)
# if (GWX_SLP_SECURITY != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

      GWXCFG_DEP_OPENSLP="openssl"
      GLDFLAG_DEP_OPENSLP_L="-lcrypto"
      GLDFLAG_DEP_OPENSLP="-lcrypto"
      SLPSECSRCS="slp_auth.c slp_crypto.c slp_spi.c"
      SLPDSECSRCS="slpd_spi.c"
      SLPDEFS="$SLPDEFS -DENABLE_SLPv2_SECURITY"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

  fi
  GWXCFG_DEP_OPENSLP="$GWXCFG_DEP_OPENSLP sysmathlib"
  GLDFLAG_DEP_OPENSLP_L="$GLDFLAG_DEP_OPENSLP_L $MATHLIB"
  GLDFLAG_DEP_OPENSLP="$GLDFLAG_DEP_OPENSLP $MATHLIB"
  GLDFLAG_OPENSLP_L="-lslp $GLDFLAG_DEP_OPENSLP_L"
  GLDFLAG_OPENSLP="\$(DEPTH)/slp/libslp.la $GLDFLAG_DEP_OPENSLP"








else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



if test "x$gwx_using_OPENSSL" = "xyes"; then

gwx_using_XMLSEC=no
echo "$as_me:$LINENO: checking for library XMLSEC" >&5
echo $ECHO_N "checking for library XMLSEC... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48594 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_XMLSEC)
# if (GWX_COMPILE_XMLSEC)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_XMLSEC=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_XMLSEC 1
EOF
  GHAVE_XMLSEC="-DHAVE_LIBXMLSEC -DHAVE_XMLSEC"
  GWXCFG_DEP_XMLSEC=""
  GWXDIRS="$GWXDIRS xmlsec"
                                ac_config_files="$ac_config_files xmlsec/Makefile xmlsec/src/Makefile xmlsec/openssl/Makefile"

                      ac_config_files="$ac_config_files xmlsec/apps/Makefile xmlsec/include/Makefile"

            ac_config_files="$ac_config_files xmlsec/include/xmlsec/version.h"

            ac_config_files="$ac_config_files pc/xmlsec.pc"

 PCFILES="$PCFILES xmlsec.pc"

            ac_config_headers="$ac_config_headers xmlsec/config.h"

  GINCLUDE_XMLSEC="-I\$(DEPTH)/xmlsec/include -I\$(TOP)/xmlsec/include"

  XMLSEC_VERSION_MAJOR=1
  XMLSEC_VERSION_MINOR=0
  XMLSEC_VERSION_SUBMINOR=4
  XMLSEC_VERSION=$XMLSEC_VERSION_MAJOR.$XMLSEC_VERSION_MINOR.$XMLSEC_VERSION_SUBMINOR
  XMLSEC_VERSION_INFO=`echo $XMLSEC_VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'`
  XMLSEC_MIN_XMLVER=2.4.24
  XMLSEC_MIN_XSLTVER=1.0.20
  XMLSEC_DEFINES="-DXMLSEC_CRYPTO_OPENSSL=1"
  XMLSEC_PACKAGE="xmlsec1"










  GLDFLAG_XMLSEC="\$(DEPTH)/xmlsec/openssl/libxmlsec-openssl.la"
  GLDFLAG_XMLSEC="$GLDFLAG_XMLSEC \$(DEPTH)/xmlsec/src/libxmlsec.la"
  GLDFLAG_XMLSEC_L="-lxmlsec-openssl -lxmlsec"
  GLDFLAG_DEP_XMLSEC="\$(GLDFLAG_XML2)"
  GLDFLAG_DEP_XMLSEC_L="$GLDFLAG_XML2_L"

  GWXCFG_DEP_XMLSEC="$GWXCFG_DEP_XMLSEC libxml-2.0 >= $XMLSEC_MIN_XMLVER"

  if test "$OPENSSL_VERSION" = "0.9.7"; then

echo "$as_me:$LINENO: checking for option GWX_XMLSEC_AES" >&5
echo $ECHO_N "checking for option GWX_XMLSEC_AES... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48678 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XMLSEC_AES)
# if (GWX_XMLSEC_AES != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  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
  rm -rf conftest*
  XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_AES=1"
fi
rm -rf conftest*

  else
      XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_OPENSSL_096=1"
  fi

  if test "x$gwx_using_XSLT" = "xno"; then
    XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XSLT=1"
  else
    GWXCFG_DEP_XMLSEC="$GWXCFG_DEP_XMLSEC libxslt >= $XMLSEC_MIN_XSLTVER"
    GLDFLAG_DEP_XMLSEC="$GLDFLAG_DEP_XMLSEC \$(GLDFLAG_XSLT)"
    GLDFLAG_DEP_XMLSEC_L="$GLDFLAG_DEP_XMLSEC_L $GLDFLAG_XSLT_L"
  fi

  GLDFLAG_DEP_XMLSEC="$GLDFLAG_DEP_XMLSEC \$(GLDFLAG_OPENSSL)"
  GLDFLAG_DEP_XMLSEC_L="$GLDFLAG_XMLSEC_L $GLDFLAG_OPENSSL_L"

  GWXCFG_DEP_XMLSEC="$GWXCFG_DEP_XMLSEC openssl"


echo "$as_me:$LINENO: checking for option GWX_XMLSEC_SHA1" >&5
echo $ECHO_N "checking for option GWX_XMLSEC_SHA1... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48720 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XMLSEC_SHA1)
# if (GWX_XMLSEC_SHA1 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  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
  rm -rf conftest*
  XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA1=1"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XMLSEC_RIPEMD160" >&5
echo $ECHO_N "checking for option GWX_XMLSEC_RIPEMD160... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48745 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XMLSEC_RIPEMD160)
# if (GWX_XMLSEC_RIPEMD160 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  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
  rm -rf conftest*
  XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_RIPEMD160=1"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XMLSEC_HMAC" >&5
echo $ECHO_N "checking for option GWX_XMLSEC_HMAC... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48770 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XMLSEC_HMAC)
# if (GWX_XMLSEC_HMAC != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  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
  rm -rf conftest*
  XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_HMAC=1"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XMLSEC_DSA" >&5
echo $ECHO_N "checking for option GWX_XMLSEC_DSA... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48795 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XMLSEC_DSA)
# if (GWX_XMLSEC_DSA != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  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
  rm -rf conftest*
  XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_DSA=1"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XMLSEC_RSA" >&5
echo $ECHO_N "checking for option GWX_XMLSEC_RSA... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48820 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XMLSEC_RSA)
# if (GWX_XMLSEC_RSA != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  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
  rm -rf conftest*
  XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_RSA=1"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XMLSEC_X509" >&5
echo $ECHO_N "checking for option GWX_XMLSEC_X509... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48845 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XMLSEC_X509)
# if (GWX_XMLSEC_X509 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  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
  rm -rf conftest*
  XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_X509=1"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XMLSEC_DES" >&5
echo $ECHO_N "checking for option GWX_XMLSEC_DES... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48870 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XMLSEC_DES)
# if (GWX_XMLSEC_DES != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  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
  rm -rf conftest*
  XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_DES=1"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XMLSEC_XMLDSIG" >&5
echo $ECHO_N "checking for option GWX_XMLSEC_XMLDSIG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48895 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XMLSEC_XMLDSIG)
# if (GWX_XMLSEC_XMLDSIG != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  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
  rm -rf conftest*
  XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XMLDSIG=1"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XMLSEC_XMLENC" >&5
echo $ECHO_N "checking for option GWX_XMLSEC_XMLENC... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48920 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XMLSEC_XMLENC)
# if (GWX_XMLSEC_XMLENC != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  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
  rm -rf conftest*
  XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XMLENC=1"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_XMLSEC_SKM" >&5
echo $ECHO_N "checking for option GWX_XMLSEC_SKM... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48945 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_XMLSEC_SKM)
# if (GWX_XMLSEC_SKM != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  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
  rm -rf conftest*
  XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SKM_TEST=1"
fi
rm -rf conftest*

  GLDFLAG_XMLSEC="$GLDFLAG_XMLSEC $GLDFLAG_DEP_XMLSEC"
  GLDFLAG_XMLSEC_L="$GLDFLAG_XMLSEC_L $GLDFLAG_DEP_XMLSEC_L"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

fi

gwx_using_SASL=no
echo "$as_me:$LINENO: checking for library SASL" >&5
echo $ECHO_N "checking for library SASL... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 48981 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_SASL)
# if (GWX_COMPILE_SASL)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_SASL=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_SASL 1
EOF
  GHAVE_SASL="-DHAVE_LIBSASL -DHAVE_SASL"
  GWXCFG_DEP_SASL=""
  GWXDIRS="$GWXDIRS sasl"
                                ac_config_files="$ac_config_files sasl/Makefile sasl/saslauthd/Makefile sasl/man/Makefile"

                      ac_config_headers="$ac_config_headers sasl/config.h sasl/saslauthd/saslauthd.h"

            ac_config_files="$ac_config_files pc/sasl2.pc"

 PCFILES="$PCFILES sasl2.pc"

  GINCLUDE_SASL="-I\$(DEPTH)/sasl/include -I\$(TOP)/sasl/include"
  GLDFLAG_SASL_L="-lsasl2"
  GLDFLAG_SASL="\$(DEPTH)/sasl/libsasl2.la"
  SASL_VERSION="2.1.14"


  SASLXSRCS=
  SASLDB=

  salsssl=no

echo "$as_me:$LINENO: checking for option GWX_SASL_SASLAUTHD" >&5
echo $ECHO_N "checking for option GWX_SASL_SASLAUTHD... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 49041 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SASL_SASLAUTHD)
# if (GWX_SASL_SASLAUTHD != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    SASLAUTHD=authd

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

else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*
  SASLAUTHD="#"
fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_SASL_LDAP" >&5
echo $ECHO_N "checking for option GWX_SASL_LDAP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 49074 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SASL_LDAP)
# if (GWX_SASL_LDAP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

      SASL_LDAPLIBS="-lldap -llber"


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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_SASL_CHECKAPOP" >&5
echo $ECHO_N "checking for option GWX_SASL_CHECKAPOP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 49106 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SASL_CHECKAPOP)
# if (GWX_SASL_CHECKAPOP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_SASL_CRAM_MD5" >&5
echo $ECHO_N "checking for option GWX_SASL_CRAM_MD5... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 49135 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SASL_CRAM_MD5)
# if (GWX_SASL_CRAM_MD5 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6


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

    SASLXSRCS="$SASLXSRCS cram.c"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_SASL_DIGEST_MD5" >&5
echo $ECHO_N "checking for option GWX_SASL_DIGEST_MD5... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 49166 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SASL_DIGEST_MD5)
# if (GWX_SASL_DIGEST_MD5 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6


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

    SASLXSRCS="$SASLXSRCS digestmd5.c"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_SASL_OPIE" >&5
echo $ECHO_N "checking for option GWX_SASL_OPIE... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 49197 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SASL_OPIE)
# if (GWX_SASL_OPIE != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


  if test "x$gwx_using_OPENSSL" = "xyes"; then

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


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


echo "$as_me:$LINENO: checking for option GWX_SASL_OTP" >&5
echo $ECHO_N "checking for option GWX_SASL_OTP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 49238 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SASL_OTP)
# if (GWX_SASL_OTP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

      saslssl=yes

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

      SASLXSRCS="$SASLXSRCS otp.c"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_SASL_SRP" >&5
echo $ECHO_N "checking for option GWX_SASL_SRP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 49270 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SASL_SRP)
# if (GWX_SASL_SRP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

      saslssl=yes

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

      SASLXSRCS="$SASLXSRCS srp.c"

echo "$as_me:$LINENO: checking for option GWX_SASL_SRPSETPASS" >&5
echo $ECHO_N "checking for option GWX_SASL_SRPSETPASS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 49296 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SASL_SRPSETPASS)
# if (GWX_SASL_SRPSETPASS != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

    if test "x$saslssl" = "xyes"; then
      GWXCFG_DEP_SASL="$GWXCFG_DEP_SASL openssl"
      GLDFLAG_DEP_SASL_L="$GLDFLAG_OPENSSL_L"
      GLDFLAG_DEP_SASL="\$(GLDFLAG_OPENSSL)"
    fi
  fi

echo "$as_me:$LINENO: checking for option GWX_SASL_ANON" >&5
echo $ECHO_N "checking for option GWX_SASL_ANON... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 49338 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SASL_ANON)
# if (GWX_SASL_ANON != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6


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

    SASLXSRCS="$SASLXSRCS anonymous.c"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_SASL_PLAIN" >&5
echo $ECHO_N "checking for option GWX_SASL_PLAIN... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 49369 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SASL_PLAIN)
# if (GWX_SASL_PLAIN != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    if test "x$gwx_have_crypt" = "xno"; then
      { echo "$as_me:$LINENO: WARNING: SASL: PLAIN authentication requested but no crypt found" >&5
echo "$as_me: WARNING: SASL: PLAIN authentication requested but no crypt found" >&2;}
    else

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

      SASLXSRCS="$SASLXSRCS plain.c"
    fi
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*

echo "$as_me:$LINENO: checking for option GWX_SASL_DB" >&5
echo $ECHO_N "checking for option GWX_SASL_DB... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 49404 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_SASL_DB)
# if (GWX_SASL_DB != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6


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

    SASLXSRCS="$SASLXSRCS sasldb.c allockey.c"
    if test "x$gwx_using_DB" = "xyes"; then
      SASLDB=db_berkeley.c
      SASLDBLIB=$GLDFLAG_DB
      GWXCFG_DEP_SASL="$GWXCFG_DEP_SASL db-4.1"
      GLDFLAG_DEP_SASL_L="$GLDFLAG_DEP_SASL_L $GLDFLAG_DB_L"
      GLDFLAG_DEP_SASL="$GLDFLAG_DEP_SASL \$(GLDFLAG_DB)"

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

    elif test "x$gwx_using_GDBM" = "xyes"; then
      SASLDB=db_gdbm.c
      SASLDBLIB=$GLDFLAG_GDBM
      GWXCFG_DEP_SASL="$GWXCFG_DEP_SASL gdbm"
      GLDFLAG_DEP_SASL_L="$GLDFLAG_DEP_SASL_L $GLDFLAG_GDBM_L"
      GLDFLAG_DEP_SASL="$GLDFLAG_DEP_SASL \$(GLDFLAG_GDBM)"

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

    elif test "x$gwx_using_NDBM" = "xyes"; then
      SASLDB=db_ndbm.c
      SASLDBLIB=$gwx_NDBM
      GLDFLAG_DEP_SASL_L="$GLDFLAG_DEP_SASL_L $gwx_NDBM"
      GLDFLAG_DEP_SASL="$GLDFLAG_DEP_SASL $gwx_NDBM"

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

    else
      SASLDB=db_none.c
    fi

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


  if test "x$gwx_using_OPENSSL" = "xyes"; then

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

  fi

  if test "x$gwx_getsubopt" = "xno"; then
    SASLXSRCS="$SASLXSRCS getsubopt.c"
  else

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

  fi

  if test "x$ac_cv_func_getnameinfo" = "xno"; then
    SASLXSRCS="$SASLXSRCS getnameinfo.c"
  fi

  if test "x$ac_cv_func_getaddrinfo" = "xno"; then
    SASLXSRCS="$SASLXSRCS getaddrinfo.c"
  fi

  authdrundir="$sysconfdir/sasl/authd"
  plugindir="$prefix/lib/sasl2"
  sasldbpath="$sysconfdir/sasl"
  saslauthdconf="$sysconfdir/saslauthd.conf"

cat >>confdefs.h <<_ACEOF
#define PATH_SASLAUTHD_RUNDIR "$authdrundir"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define SASL_DB_PATH "$sasldbpath"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define SASL_PLUGINDIR "$plugindir"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define SASLAUTHD_CONF_FILE_DEFAULT "$saslauthdconf"
_ACEOF


  GLDFLAG_SASL="$GLDFLAG_SASL $GLDFLAG_DEP_SASL"
  GLDFLAG_SASL_L="$GLDFLAG_SASL_L $GLDFLAG_DEP_SASL_L"


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


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


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







else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_IDL=no
echo "$as_me:$LINENO: checking for library IDL" >&5
echo $ECHO_N "checking for library IDL... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 49555 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_IDL)
# if (GWX_COMPILE_IDL)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_IDL=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_IDL 1
EOF
  GHAVE_IDL="-DHAVE_LIBIDL -DHAVE_IDL"
  GWXCFG_DEP_IDL=""
  GWXDIRS="$GWXDIRS idl"
                                ac_config_files="$ac_config_files idl/Makefile idl/IDL.h idl/libIDL.m4"

            ac_config_files="$ac_config_files pc/libIDL-2.0.pc"

 PCFILES="$PCFILES libIDL-2.0.pc"

  GINCLUDE_IDL="-I\$(DEPTH)/idl -I\$(TOP)/idl"
  GWXCFG_DEP_IDL="$GWXCFG_DEP_IDL $GWXCFG_GLIB"
  GLDFLAG_DEP_IDL="\$(GLDFLAG_GLIB)"
  GLDFLAG_DEP_IDL_L="$GLDFLAG_GLIB"
  GLDFLAG_IDL_L="-lIDL $GLDFLAG_DEP_IDL_L"
  GLDFLAG_IDL="\$(DEPTH)/idl/libIDL.la $GLDFLAG_DEP_IDL"

  LIBIDL_MAJOR_VERSION=0
  LIBIDL_MINOR_VERSION=8
  LIBIDL_MICRO_VERSION=0
  LIBIDL_VERSION=$LIBIDL_MAJOR_VERSION.$LIBIDL_MINOR_VERSION.$LIBIDL_MICRO_VERSION

  if test "x$ac_cv_header_wchar_h" = "xyes"; then
    HAVE_WCHAR_H=1
  else
    HAVE_WCHAR_H=0
  fi

  if test "x$ac_cv_header_wcstr_h" = "xyes"; then
    HAVE_WCSTR_H=1
  else
    HAVE_WCSTR_H=0
  fi

  IDLCFLAGS="-DCPP_NOSTDINC=\"\\\"$ac_cv_cpp_nostdinc\\\"\""
  IDLCFLAGS="$IDLCFLAGS -DCPP_PROGRAM=\"\\\"$IDLCPP_PROGRAM\\\"\""

  if test "x$ac_cv_cpp_pipe_stdin" = "xyes"; then
    IDLCFLAGS="$IDLCFLAGS -DHAVE_CPP_PIPE_STDIN"
  fi

  if test "x$ac_cv_header_stddef_h" = "xyes"; then
    IDLCFLAGS="$IDLCFLAGS -DHAVE_STDDEF_H"
  fi









else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_MM=no
echo "$as_me:$LINENO: checking for library MM" >&5
echo $ECHO_N "checking for library MM... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 49654 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_MM)
# if (GWX_COMPILE_MM)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_MM=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_MM 1
EOF
  GHAVE_MM="-DHAVE_LIBMM -DHAVE_MM"
  GWXCFG_DEP_MM=""
  GWXDIRS="$GWXDIRS mm"
            ac_config_files="$ac_config_files mm/Makefile"

            ac_config_files="$ac_config_files pc/mm.pc"

 PCFILES="$PCFILES mm.pc"

            ac_config_headers="$ac_config_headers mm/config.h"

  MM_VERSION="1.3.0"
  MM_VERSION_STR="$MM_VERSION (07-Mar-2003)"


  GINCLUDE_MM="-I\$(DEPTH)/mm -I\$(TOP)/mm"
  GLDFLAG_DEP_MM=
  GLDFLAG_DEP_MM_L=
  GLDFLAG_MM_L="-lmm"
  GLDFLAG_MM="\$(DEPTH)/mm/libmm.la"

  case $host in
   *-*-sunos* )

cat >>confdefs.h <<\_ACEOF
#define MM_OS_SUNOS 1
_ACEOF
 ;;
   BS2000-*-* )

cat >>confdefs.h <<\_ACEOF
#define MM_OS_BS2000 1
_ACEOF
    ;;
   *-*-beos*  )

cat >>confdefs.h <<\_ACEOF
#define MM_OS_BEOS 1
_ACEOF
      ;;
  esac


  echo "$as_me:$LINENO: checking for _SC_PAGESIZE in unistd.h" >&5
echo $ECHO_N "checking for _SC_PAGESIZE in unistd.h... $ECHO_C" >&6
if test "${ac_cv_define__SC_PAGESIZE+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 <unistd.h>
#ifdef _SC_PAGESIZE
YES_IS_DEFINED
#endif

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


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

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

  fi


  echo "$as_me:$LINENO: checking for B_PAGE_SIZE in kernel/OS.h" >&5
echo $ECHO_N "checking for B_PAGE_SIZE in kernel/OS.h... $ECHO_C" >&6
if test "${ac_cv_define_B_PAGE_SIZE+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 <kernel/OS.h>
#ifdef B_PAGE_SIZE
YES_IS_DEFINED
#endif

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


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

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

  fi

  case $host in
    *-*-sco3.2v5*) ;;
    *)
  echo "$as_me:$LINENO: checking for _POSIX_PATH_MAX in limits.h" >&5
echo $ECHO_N "checking for _POSIX_PATH_MAX in limits.h... $ECHO_C" >&6
if test "${ac_cv_define__POSIX_PATH_MAX+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 <limits.h>
#ifdef _POSIX_PATH_MAX
YES_IS_DEFINED
#endif

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


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

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

  fi


  echo "$as_me:$LINENO: checking for PATH_MAX in limits.h" >&5
echo $ECHO_N "checking for PATH_MAX in limits.h... $ECHO_C" >&6
if test "${ac_cv_define_PATH_MAX+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 <limits.h>
#ifdef PATH_MAX
YES_IS_DEFINED
#endif

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


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

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

  fi

       ;;
  esac

  echo "$as_me:$LINENO: checking for _POSIX_CHILD_MAX in limits.h" >&5
echo $ECHO_N "checking for _POSIX_CHILD_MAX in limits.h... $ECHO_C" >&6
if test "${ac_cv_define__POSIX_CHILD_MAX+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 <limits.h>
#ifdef _POSIX_CHILD_MAX
YES_IS_DEFINED
#endif

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


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

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

  fi


  echo "$as_me:$LINENO: checking for CHILD_MAX in limits.h" >&5
echo $ECHO_N "checking for CHILD_MAX in limits.h... $ECHO_C" >&6
if test "${ac_cv_define_CHILD_MAX+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 <limits.h>
#ifdef CHILD_MAX
YES_IS_DEFINED
#endif

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


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

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

  fi


  echo "$as_me:$LINENO: checking for MAXPATHLEN in sys/param.h" >&5
echo $ECHO_N "checking for MAXPATHLEN in sys/param.h... $ECHO_C" >&6
if test "${ac_cv_define_MAXPATHLEN+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/param.h>
#ifdef MAXPATHLEN
YES_IS_DEFINED
#endif

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


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

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

  fi


  echo "$as_me:$LINENO: checking for LOCK_EX in sys/file.h" >&5
echo $ECHO_N "checking for LOCK_EX in sys/file.h... $ECHO_C" >&6
if test "${ac_cv_define_LOCK_EX+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/file.h>
#ifdef LOCK_EX
YES_IS_DEFINED
#endif

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


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

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

  fi


  echo "$as_me:$LINENO: checking for F_SETLK in fcntl.h" >&5
echo $ECHO_N "checking for F_SETLK in fcntl.h... $ECHO_C" >&6
if test "${ac_cv_define_F_SETLK+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 <fcntl.h>
#ifdef F_SETLK
YES_IS_DEFINED
#endif

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


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

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

  fi


  echo "$as_me:$LINENO: checking for IPC_PRIVATE in sys/ipc.h" >&5
echo $ECHO_N "checking for IPC_PRIVATE in sys/ipc.h... $ECHO_C" >&6
if test "${ac_cv_define_IPC_PRIVATE+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/ipc.h>
#ifdef IPC_PRIVATE
YES_IS_DEFINED
#endif

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


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

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

  fi


  echo "$as_me:$LINENO: checking for SEM_UNDO in sys/sem.h" >&5
echo $ECHO_N "checking for SEM_UNDO in sys/sem.h... $ECHO_C" >&6
if test "${ac_cv_define_SEM_UNDO+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/sem.h>
#ifdef SEM_UNDO
YES_IS_DEFINED
#endif

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


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

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

  fi


  echo "$as_me:$LINENO: checking for MAP_ANON in sys/mman.h" >&5
echo $ECHO_N "checking for MAP_ANON in sys/mman.h... $ECHO_C" >&6
if test "${ac_cv_define_MAP_ANON+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/mman.h>
#ifdef MAP_ANON
YES_IS_DEFINED
#endif

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


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

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

  fi


ac_safe=`echo "/dev/zero" | sed 'y%./+-%__p_%'`
echo "$as_me:$LINENO: checking for /dev/zero" >&5
echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
if eval "test \"\${ac_cv_file_$ac_safe+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  if test -r /dev/zero; then
    eval "ac_cv_file_$ac_safe=yes"
  else
    eval "ac_cv_file_$ac_safe=no"
  fi

fi
if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  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: checking whether union semun is defined in sys/sem.h" >&5
echo $ECHO_N "checking whether union semun is defined in sys/sem.h... $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 <sys/types.h>
  #include <sys/ipc.h>
  #include <sys/sem.h>

int
main ()
{

  union semun arg;
  semctl(0, 0, 0, arg);

  ;
  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


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

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

  msg=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  echo "$as_me:$LINENO: result: $msg" >&5
echo "${ECHO_T}$msg" >&6

  mmok=no

ac_rc=yes
for ac_spec in header:kernel/OS.h define:B_PAGE_SIZE; do
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
    case $ac_type in
        header )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_header_$ac_item"
            ;;
        file )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_file_$ac_item"
            ;;
        func )   ac_var="ac_cv_func_$ac_item"   ;;
        define ) ac_var="ac_cv_define_$ac_item" ;;
        custom ) ac_var="$ac_item" ;;
    esac
    eval "ac_val=\$$ac_var"
    if test ".$ac_val" != .yes; then
        ac_rc=no
        break
    fi
done
if test ".$ac_rc" = .yes; then
    :
    mmok=yes


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

else
    :

fi

  if test "x$mmok" = "xno"; then

ac_rc=yes
for ac_spec in header:unistd.h func:sysconf define:_SC_PAGESIZE; do
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
    case $ac_type in
        header )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_header_$ac_item"
            ;;
        file )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_file_$ac_item"
            ;;
        func )   ac_var="ac_cv_func_$ac_item"   ;;
        define ) ac_var="ac_cv_define_$ac_item" ;;
        custom ) ac_var="$ac_item" ;;
    esac
    eval "ac_val=\$$ac_var"
    if test ".$ac_val" != .yes; then
        ac_rc=no
        break
    fi
done
if test ".$ac_rc" = .yes; then
    :
    mmok=yes


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

else
    :

fi

  fi
  if test "x$mmok" = "xno"; then

ac_rc=yes
for ac_spec in header:unistd.h func:getpagesize; do
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
    case $ac_type in
        header )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_header_$ac_item"
            ;;
        file )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_file_$ac_item"
            ;;
        func )   ac_var="ac_cv_func_$ac_item"   ;;
        define ) ac_var="ac_cv_define_$ac_item" ;;
        custom ) ac_var="$ac_item" ;;
    esac
    eval "ac_val=\$$ac_var"
    if test ".$ac_val" != .yes; then
        ac_rc=no
        break
    fi
done
if test ".$ac_rc" = .yes; then
    :
    mmok=yes


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

else
    :

fi

  fi

  if test "x$mmok" = "xno"; then
    { { echo "$as_me:$LINENO: error: could not determine system page size" >&5
echo "$as_me: error: could not determine system page size" >&2;}
   { (exit 1); exit 1; }; }
  fi

  chosen=
  case $host in
    *-*-linux* )
        #   Unfortunately, Linux has many problems, so we have to do
        #   more granular manual decisions here. The background is:
        #   MM_SHMT_IPCSHM:
        #       Supported under Linux 2.0 and upwards. Works out of the
        #       box on Linux 2.2, but requires an explicitly mounted shm
        #       filesystem under 2.3 only. The requirement for the shm
        #       filesystem should be gone with Linux 2.4.
        #   MM_SHMT_MMANON:
        #       Not allowed up to and included to Linux 2.2.
        #       Should be supported in Linux 2.3, but still hangs there.
        #       Will be supported from Linux 2.4 on the first time really.
        #   MM_SHMT_MMZERO:
        #       Not allowed up to and included to Linux 2.2.
        #       Should be supported in Linux 2.3, but still hangs there.
        #       Will be supported from Linux 2.4 on the first time really.
        #   MM_SHMT_MMFILE:
        #       Works on Linux versions.
        case $host in
            *-linux1* )

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

                chosen=MM_SHMT_MMFILE
                ;;
            *-*-linux2.0* | *-*-linux2.12* )

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

                chosen=MM_SHMT_IPCSHM
                ;;
            *-*-linux2.3* )
                if test ".`df 2>/dev/null | grep shm`" != .; then

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

                    chosen=MM_SHMT_IPCSHM
                else

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

                    chosen=MM_SHMT_MMFILE
                fi
                ;;
        esac
        ;;
  esac

  mmok=no
  if test -n "$chosen"; then
    mmok=yes
  fi

  if test "x$mmok" = "xno"; then

ac_rc=yes
for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h func:shmget func:shmat func:shmdt func:shmctl; do
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
    case $ac_type in
        header )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_header_$ac_item"
            ;;
        file )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_file_$ac_item"
            ;;
        func )   ac_var="ac_cv_func_$ac_item"   ;;
        define ) ac_var="ac_cv_define_$ac_item" ;;
        custom ) ac_var="$ac_item" ;;
    esac
    eval "ac_val=\$$ac_var"
    if test ".$ac_val" != .yes; then
        ac_rc=no
        break
    fi
done
if test ".$ac_rc" = .yes; then
    :
    mmok=yes
      chosen=MM_SHMT_IPCSHM


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

else
    :

fi

  fi

  if test "x$mmok" = "xno"; then

ac_rc=yes
for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
    case $ac_type in
        header )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_header_$ac_item"
            ;;
        file )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_file_$ac_item"
            ;;
        func )   ac_var="ac_cv_func_$ac_item"   ;;
        define ) ac_var="ac_cv_define_$ac_item" ;;
        custom ) ac_var="$ac_item" ;;
    esac
    eval "ac_val=\$$ac_var"
    if test ".$ac_val" != .yes; then
        ac_rc=no
        break
    fi
done
if test ".$ac_rc" = .yes; then
    :
    mmok=yes
      chosen=MM_SHMT_MMANON


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

else
    :

fi

  fi

  if test "x$mmok" = "xno"; then

ac_rc=yes
for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open func:shm_unlink; do
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
    case $ac_type in
        header )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_header_$ac_item"
            ;;
        file )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_file_$ac_item"
            ;;
        func )   ac_var="ac_cv_func_$ac_item"   ;;
        define ) ac_var="ac_cv_define_$ac_item" ;;
        custom ) ac_var="$ac_item" ;;
    esac
    eval "ac_val=\$$ac_var"
    if test ".$ac_val" != .yes; then
        ac_rc=no
        break
    fi
done
if test ".$ac_rc" = .yes; then
    :
    mmok=yes
      chosen=MM_SHMT_MMPOSX


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

else
    :

fi

  fi

  if test "x$mmok" = "xno"; then

ac_rc=yes
for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
    case $ac_type in
        header )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_header_$ac_item"
            ;;
        file )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_file_$ac_item"
            ;;
        func )   ac_var="ac_cv_func_$ac_item"   ;;
        define ) ac_var="ac_cv_define_$ac_item" ;;
        custom ) ac_var="$ac_item" ;;
    esac
    eval "ac_val=\$$ac_var"
    if test ".$ac_val" != .yes; then
        ac_rc=no
        break
    fi
done
if test ".$ac_rc" = .yes; then
    :
    mmok=yes
      chosen=MM_SHMT_MMZERO


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

else
    :

fi

  fi

  if test "x$mmok" = "xno"; then

ac_rc=yes
for ac_spec in header:sys/mman.h func:mmap func:munmap; do
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
    case $ac_type in
        header )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_header_$ac_item"
            ;;
        file )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_file_$ac_item"
            ;;
        func )   ac_var="ac_cv_func_$ac_item"   ;;
        define ) ac_var="ac_cv_define_$ac_item" ;;
        custom ) ac_var="$ac_item" ;;
    esac
    eval "ac_val=\$$ac_var"
    if test ".$ac_val" != .yes; then
        ac_rc=no
        break
    fi
done
if test ".$ac_rc" = .yes; then
    :
    mmok=yes
      chosen=MM_SHMT_MMFILE


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

else
    :

fi

  fi

  if test "x$mmok" = "xno"; then

ac_rc=yes
for ac_spec in header:kernel/OS.h func:create_area; do
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
    case $ac_type in
        header )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_header_$ac_item"
            ;;
        file )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_file_$ac_item"
            ;;
        func )   ac_var="ac_cv_func_$ac_item"   ;;
        define ) ac_var="ac_cv_define_$ac_item" ;;
        custom ) ac_var="$ac_item" ;;
    esac
    eval "ac_val=\$$ac_var"
    if test ".$ac_val" != .yes; then
        ac_rc=no
        break
    fi
done
if test ".$ac_rc" = .yes; then
    :
    mmok=yes
      chosen=MM_SHMT_BEOS


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

else
    :

fi

  fi

  if test "x$mmok" = "xno"; then
    { { echo "$as_me:$LINENO: error: could not determine shared memory implementation" >&5
echo "$as_me: error: could not determine shared memory implementation" >&2;}
   { (exit 1); exit 1; }; }
  fi

  case "$host" in
    *sco3.2v5*) ac_cv_maxsegsize=524288 ;;
  esac

echo "$as_me:$LINENO: checking for shared memory maximum segment size" >&5
echo $ECHO_N "checking for shared memory maximum segment size... $ECHO_C" >&6
if test "${ac_cv_maxsegsize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

OCFLAGS="$CFLAGS"
case "$chosen" in
    MM_SHMT_MM*    ) CFLAGS="-DTEST_MMAP   $CFLAGS" ;;
    MM_SHMT_IPCSHM ) CFLAGS="-DTEST_SHMGET $CFLAGS" ;;
esac
cross_compile=no
if test "$cross_compiling" = yes; then
  ac_cv_maxsegsize=0

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 <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/file.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef TEST_MMAP
#include <sys/mman.h>
#endif
#ifdef TEST_SHMGET
#ifdef MM_OS_SUNOS
#define KERNEL 1
#endif
#ifdef MM_OS_BS2000
#define _KMEMUSER
#endif
#include <sys/ipc.h>
#include <sys/shm.h>
#ifdef MM_OS_SUNOS
#undef KERNEL
#endif
#ifdef MM_OS_BS2000
#undef _KMEMUSER
#endif
#if !defined(SHM_R)
#define SHM_R 0400
#endif
#if !defined(SHM_W)
#define SHM_W 0200
#endif
#endif
#if !defined(MAP_FAILED)
#define MAP_FAILED ((void *)(-1))
#endif
#ifdef MM_OS_BEOS
#include <kernel/OS.h>
#endif

int testit(int size)
{
    int fd;
    void *segment;
#ifdef TEST_MMAP
    char file[] = "./ac_test.tmp";
    unlink(file);
    if ((fd = open(file, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) == -1)
        return 0;
    if (ftruncate(fd, size) == -1)
        return 0;
    if ((segment = (void *)mmap(NULL, size, PROT_READ|PROT_WRITE,
                                MAP_SHARED, fd, 0)) == (void *)MAP_FAILED) {
        close(fd);
        return 0;
    }
    munmap((caddr_t)segment, size);
    close(fd);
    unlink(file);
#endif
#ifdef TEST_SHMGET
    if ((fd = shmget(IPC_PRIVATE, size, SHM_R|SHM_W|IPC_CREAT)) == -1)
        return 0;
    if ((segment = (void *)shmat(fd, NULL, 0)) == ((void *)-1)) {
        shmctl(fd, IPC_RMID, NULL);
        return 0;
    }
    shmdt(segment);
    shmctl(fd, IPC_RMID, NULL);
#endif
#ifdef TEST_BEOS
    area_id id;
    id = create_area("mm_test", (void*)&segment, B_ANY_ADDRESS, size,
                     B_LAZY_LOCK, B_READ_AREA|B_WRITE_AREA);
    if (id < 0)
        return 0;
    delete_area(id);
#endif
    return 1;
}

#define ABS(n) ((n) >= 0 ? (n) : (-(n)))

int main(int argc, char *argv[])
{
    int t, m, b;
    int d;
    int rc;
    FILE *f;

    /*
     * Find maximum possible allocation size by performing a
     * binary search starting with a search space between 0 and
     * 64MB of memory.
     */
    t = 1024*1024*64 /* = 67108864 */;
    if (testit(t))
        m = t;
    else {
        m = 1024*1024*32;
        b = 0;
        for (;;) {
            /* fprintf(stderr, "t=%d, m=%d, b=%d\n", t, m, b); */
            rc = testit(m);
            if (rc) {
                d = ((t-m)/2);
                b = m;
            }
            else {
                d = -((m-b)/2);
                t = m;
            }
            if (ABS(d) < 1024*1) {
                if (!rc)
                    m = b;
                break;
            }
            if (m < 1024*8)
                break;
            m += d;
        }
        if (m < 1024*8)
            m = 0;
    }
    if ((f = fopen("conftestval", "w")) == NULL)
        exit(1);
    fprintf(f, "%d\n", m);
    fclose(f);
    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
  ac_cv_maxsegsize="`cat conftestval`"

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_maxsegsize=0

fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
CFLAGS="$OCFLAGS"

fi

msg="$ac_cv_maxsegsize"
if test $msg -eq 67108864; then
    msg="64MB (soft limit)"
elif test $msg -gt 1048576; then
    msg="`expr $msg / 1024`"
    msg="`expr $msg / 1024`"
    msg="${msg}MB"
elif test $msg -gt 1024; then
    msg="`expr $msg / 1024`"
    msg="${msg}KB"
else
    ac_cv_maxsegsize=0
    msg=unknown
fi
MM_SHM_MAXSEGSIZE=$ac_cv_maxsegsize
test ".$msg" = .unknown && { { echo "$as_me:$LINENO: error: Unable to determine maximum shared memory segment size" >&5
echo "$as_me: error: Unable to determine maximum shared memory segment size" >&2;}
   { (exit 1); exit 1; }; }
echo "$as_me:$LINENO: result: $msg" >&5
echo "${ECHO_T}$msg" >&6

cat >>confdefs.h <<_ACEOF
#define MM_SHM_MAXSEGSIZE $MM_SHM_MAXSEGSIZE
_ACEOF



  mmok=no

ac_rc=yes
for ac_spec in header:kernel/OS.h func:create_sem; do
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
    case $ac_type in
        header )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_header_$ac_item"
            ;;
        file )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_file_$ac_item"
            ;;
        func )   ac_var="ac_cv_func_$ac_item"   ;;
        define ) ac_var="ac_cv_define_$ac_item" ;;
        custom ) ac_var="$ac_item" ;;
    esac
    eval "ac_val=\$$ac_var"
    if test ".$ac_val" != .yes; then
        ac_rc=no
        break
    fi
done
if test ".$ac_rc" = .yes; then
    :
    mmok=yes


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

else
    :

fi


  if test "x$mmok" = "xno"; then

ac_rc=yes
for ac_spec in header:sys/ipc.h header:sys/sem.h header:sys/file.h func:semget func:semctl; do
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
    case $ac_type in
        header )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_header_$ac_item"
            ;;
        file )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_file_$ac_item"
            ;;
        func )   ac_var="ac_cv_func_$ac_item"   ;;
        define ) ac_var="ac_cv_define_$ac_item" ;;
        custom ) ac_var="$ac_item" ;;
    esac
    eval "ac_val=\$$ac_var"
    if test ".$ac_val" != .yes; then
        ac_rc=no
        break
    fi
done
if test ".$ac_rc" = .yes; then
    :
    mmok=yes


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

else
    :

fi

  fi

  if test "x$mmok" = "xno"; then

ac_rc=yes
for ac_spec in header:fcntl.h define:F_SETLK; do
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
    case $ac_type in
        header )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_header_$ac_item"
            ;;
        file )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_file_$ac_item"
            ;;
        func )   ac_var="ac_cv_func_$ac_item"   ;;
        define ) ac_var="ac_cv_define_$ac_item" ;;
        custom ) ac_var="$ac_item" ;;
    esac
    eval "ac_val=\$$ac_var"
    if test ".$ac_val" != .yes; then
        ac_rc=no
        break
    fi
done
if test ".$ac_rc" = .yes; then
    :
    mmok=yes


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

else
    :

fi

  fi

  if test "x$mmok" = "xno"; then

ac_rc=yes
for ac_spec in header:sys/file.h define:LOCK_EX; do
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
    case $ac_type in
        header )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_header_$ac_item"
            ;;
        file )
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
            ac_var="ac_cv_file_$ac_item"
            ;;
        func )   ac_var="ac_cv_func_$ac_item"   ;;
        define ) ac_var="ac_cv_define_$ac_item" ;;
        custom ) ac_var="$ac_item" ;;
    esac
    eval "ac_val=\$$ac_var"
    if test ".$ac_val" != .yes; then
        ac_rc=no
        break
    fi
done
if test ".$ac_rc" = .yes; then
    :
    mmok=yes


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

else
    :

fi

  fi

  if test "x$mmok" = "xno"; then
    { { echo "$as_me:$LINENO: error: could not determine mutex implementation" >&5
echo "$as_me: error: could not determine mutex implementation" >&2;}
   { (exit 1); exit 1; }; }
  fi

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_PCRE=no
echo "$as_me:$LINENO: checking for library PCRE" >&5
echo $ECHO_N "checking for library PCRE... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51137 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_PCRE)
# if (GWX_COMPILE_PCRE)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_PCRE=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_PCRE 1
EOF
  GHAVE_PCRE="-DHAVE_LIBPCRE -DHAVE_PCRE"
  GWXCFG_DEP_PCRE=""
  GWXDIRS="$GWXDIRS pcre"
                      ac_config_files="$ac_config_files pcre/Makefile pcre/man/Makefile"

            ac_config_files="$ac_config_files pcre/pcre.h:pcre/pcre.in"

            ac_config_files="$ac_config_files pcre/RunTest:pcre/RunTest.in"

            ac_config_files="$ac_config_files pc/pcre-4.3.pc"

 PCFILES="$PCFILES pcre-4.3.pc"

            ac_config_headers="$ac_config_headers pcre/config.h:pcre/config.in"

  GINCLUDE_PCRE="-I\$(DEPTH)/pcre -I\$(TOP)/pcre"
  GLDFLAG_PCRE_L="-lpcre"
  GLDFLAG_PCRE="\$(DEPTH)/pcre/libpcre.la"

  PCRE_MAJOR=4
  PCRE_MINOR=3
  PCRE_VERSION=$PCRE_MAJOR.$PCRE_MINOR
  PCRE_DATE=22-May-2003
  PCRE_UTF8=
  PCRE_NEWLINE="-DNEWLINE=10"
  PCRE_POSIX="#"


echo "$as_me:$LINENO: checking for option GWX_PCRE_POSIXWRAPPERS" >&5
echo $ECHO_N "checking for option GWX_PCRE_POSIXWRAPPERS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51203 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_PCRE_POSIXWRAPPERS)
# if (GWX_PCRE_POSIXWRAPPERS != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  PCRE_POSIX=
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_PCRE_UTF8" >&5
echo $ECHO_N "checking for option GWX_PCRE_UTF8... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51228 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_PCRE_UTF8)
# if (GWX_PCRE_UTF8 != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  PCRE_UTF8=-DSUPPORT_UTF8
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*










else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_GHTTP=no
echo "$as_me:$LINENO: checking for library GHTTP" >&5
echo $ECHO_N "checking for library GHTTP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51270 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_GHTTP)
# if (GWX_COMPILE_GHTTP)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_GHTTP=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_GHTTP 1
EOF
  GHAVE_GHTTP="-DHAVE_LIBGHTTP -DHAVE_GHTTP"
  GWXCFG_DEP_GHTTP=""
  GWXDIRS="$GWXDIRS ghttp"
            ac_config_files="$ac_config_files ghttp/Makefile"

            ac_config_files="$ac_config_files pc/ghttp.pc"

 PCFILES="$PCFILES ghttp.pc"

  GWXCFG_DEP_GHTTP="syssocklib"
  GINCLUDE_GHTTP="-I\$(DEPTH)/ghttp -I\$(TOP)/ghttp"
  GLDFLAG_DEP_GHTTP=
  GLDFLAG_DEP_GHTTP_L=
  GLDFLAG_GHTTP_L="-lghttp"
  GLDFLAG_GHTTP="\$(DEPTH)/ghttp/libghttp.la"
  GHTTP_MAJOR_VERSION=1
  GHTTP_MINOR_VERSION=0
  GHTTP_MICRO_VERSION=9
  GHTTP_VERSION=$GHTTP_MAJOR_VERSION.$GHTTP_MINOR_VERSION.$GHTTP_MICRO_VERSION





cat >>confdefs.h <<_ACEOF
#define GHTTP_MAJOR_VERSION $GHTTP_MAJOR_VERSION
_ACEOF


cat >>confdefs.h <<_ACEOF
#define GHTTP_MINOR_VERSION $GHTTP_MINOR_VERSION
_ACEOF


cat >>confdefs.h <<_ACEOF
#define GHTTP_MICRO_VERSION $GHTTP_MICRO_VERSION
_ACEOF


else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_LIBWWW=no
echo "$as_me:$LINENO: checking for library LIBWWW" >&5
echo $ECHO_N "checking for library LIBWWW... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51356 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_LIBWWW)
# if (GWX_COMPILE_LIBWWW)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_LIBWWW=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_LIBWWW 1
EOF
  GHAVE_LIBWWW="-DHAVE_LIBLIBWWW -DHAVE_LIBWWW"
  GWXCFG_DEP_LIBWWW=""
  GWXDIRS="$GWXDIRS www"
            ac_config_files="$ac_config_files www/Makefile"

            ac_config_headers="$ac_config_headers www/wwwconf.h"

            ac_config_files="$ac_config_files pc/libwww.pc"

 PCFILES="$PCFILES libwww.pc"

  GINCLUDE_LIBWWW="-I\$(DEPTH)/www -I\$(TOP)/www"
  GLDFLAG_DEP_LIBWWW=
  GLDFLAG_DEP_LIBWWW_L=
  GLDFLAG_LIBWWW_L="-lwww"
  GLDFLAG_LIBWWW="\$(DEPTH)/www/libwww.la"
  LIBWWW_VERSION="5.4.0"
  LIBWWW_PACKAGE=w3c-libwww
  LIBWWW_ICONDIR="$datadir/$LIBWWW_PACKAGE"



cat >>confdefs.h <<_ACEOF
#define W3C_PACKAGE "$LIBWWW_PACKAGE"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define W3C_VERSION "$LIBWWW_VERSION"
_ACEOF


  if test "x$with_reentrancy" = "xyes"; then

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

  fi


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


cat >>confdefs.h <<\_ACEOF
#define CACHE_FILE_PREFIX "/usr/wsrc"
_ACEOF


  # Extract the first word of "resolv.conf", so it can be a program name with args.
set dummy resolv.conf; 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_have_resolv_conf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $have_resolv_conf in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_have_resolv_conf="$have_resolv_conf" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /etc
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_have_resolv_conf="$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

  ;;
esac
fi
have_resolv_conf=$ac_cv_path_have_resolv_conf

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

  if test -n "$have_resolv_conf" ; then

cat >>confdefs.h <<_ACEOF
#define RESOLV_CONF "$have_resolv_conf"
_ACEOF

  fi

  LIBWWW_SRCS=
  LIBWWW_LIBS=



  if test "$gwx_using_ZLIB" = "yes"; then
    GWXCFG_DEP_LIBWWW="$GWXCFG_DEP_LIBWWW zlib"

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

    LIBWWW_SRCS="$LIBWWW_SRCS HTZip.c"
    LIBWWW_LIBS="$LIBWWW_LIBS libwwwzip.la"
    GLDFLAG_DEP_LIBWWW="$GLDFLAG_DEP_LIBWWW \$(GLDFLAG_ZLIB)"
    GLDFLAG_DEP_LIBWWW_L="$GLDFLAG_DEP_LIBWWW_L $GLDFLAG_ZLIB_L"
  fi

  if test "x$ac_cv_func_regexec" = "xyes"; then

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

  fi

  if test "$gwx_using_EXPAT" = "yes"; then
    GWXCFG_DEP_LIBWWW="$GWXCFG_DEP_LIBWWW expat"

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

    LIBWWW_SRCS="$LIBWWW_SRCS HTXML.c HTRDF.c"
    LIBWWW_LIBS="$LIBWWW_LIBS libwwwxml.la"
    GLDFLAG_DEP_LIBWWW="$GLDFLAG_DEP_LIBWWW \$(GLDFLAG_EXPAT)"
    GLDFLAG_DEP_LIBWWW_L="$GLDFLAG_DEP_LIBWWW_L $GLDFLAG_EXPAT_L"
  fi

  if test "$gwx_using_MD5" = "yes"; then
    GWXCFG_DEP_LIBWWW="$GWXCFG_DEP_LIBWWW md5"

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

    GLDFLAG_DEP_LIBWWW="$GLDFLAG_DEP_LIBWWW \$(GLDFLAG_MD5)"
    GLDFLAG_DEP_LIBWWW_L="$GLDFLAG_DEP_LIBWWW_L $GLDFLAG_MD5_L"
  fi

  if test "$gwx_using_OPENSSL" = "yes"; then
    GWXCFG_DEP_LIBWWW="$GWXCFG_DEP_LIBWWW openssl"
    LIBWWW_LIBS="$LIBWWW_LIBS libwwwssl.la"
    LIBWWW_SRCS="$LIBWWW_SRCS HTSSL.c HTSSLReader.c HTSSLWriter.c HTSSLhttps.c"
    GLDFLAG_DEP_LIBWWW="$GLDFLAG_DEP_LIBWWW -lssl -lcrypto"
    GLDFLAG_DEP_LIBWWW_L="$GLDFLAG_DEP_LIBWWW_L -lssl -lcrypto"
  fi


echo "$as_me:$LINENO: checking for option GWX_LIBWWW_SIGNALS" >&5
echo $ECHO_N "checking for option GWX_LIBWWW_SIGNALS... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51551 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_LIBWWW_SIGNALS)
# if (GWX_LIBWWW_SIGNALS != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_LIBWWW_NONAGLE" >&5
echo $ECHO_N "checking for option GWX_LIBWWW_NONAGLE... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51580 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_LIBWWW_NONAGLE)
# if (GWX_LIBWWW_NONAGLE != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_LIBWWW_AUTORULES" >&5
echo $ECHO_N "checking for option GWX_LIBWWW_AUTORULES... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51609 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_LIBWWW_AUTORULES)
# if (GWX_LIBWWW_AUTORULES != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_LIBWWW_NOPIPELINE" >&5
echo $ECHO_N "checking for option GWX_LIBWWW_NOPIPELINE... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51638 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_LIBWWW_NOPIPELINE)
# if (GWX_LIBWWW_NOPIPELINE != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_LIBWWW_HTTPMUX" >&5
echo $ECHO_N "checking for option GWX_LIBWWW_HTTPMUX... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51667 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_LIBWWW_HTTPMUX)
# if (GWX_LIBWWW_HTTPMUX != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

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

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


  GWXCFG_DEP_LIBWWW="$GWXCFG_DEP_LIBWWW syssocklib"
  GLDFLAG_DEP_LIBWWW="$GLDFLAG_DEP_LIBWWW $SYSSOCKLIBS"
  GLDFLAG_DEP_LIBWWW_L="$GLDFLAG_DEP_LIBWWW_L $SYSSOCKLIBS"

  GLDFLAG_LIBWWW="$GLDFLAG_LIBWWW $GLDFLAG_DEP_LIBWWW"
  GLDFLAG_LIBWWW_L="$GLDFLAG_LIBWWW_L $GLDFLAG_DEP_LIBWWW_L"

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_CURL=no
echo "$as_me:$LINENO: checking for library CURL" >&5
echo $ECHO_N "checking for library CURL... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51712 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_CURL)
# if (GWX_COMPILE_CURL)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_CURL=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_CURL 1
EOF
  GHAVE_CURL="-DHAVE_LIBCURL -DHAVE_CURL"
  GWXCFG_DEP_CURL=""
  GWXDIRS="$GWXDIRS curl"
                                ac_config_files="$ac_config_files curl/Makefile curl/lib/Makefile curl/src/Makefile"

            ac_config_files="$ac_config_files curl/include/Makefile"

                                ac_config_headers="$ac_config_headers curl/lib/config.h curl/lib/ca-bundle.h curl/src/config.h"

            ac_config_files="$ac_config_files pc/curl.pc"

 PCFILES="$PCFILES curl.pc"

  GINCLUDE_CURL="-I\$(DEPTH)/curl -I\$(TOP)/curl/include"
  GLDFLAG_CURL_L="-lcurl"
  GLDFLAG_CURL="\$(DEPTH)/curl/lib/libcurl.la"
  CURL_VERSION="7.10.5"



echo "$as_me:$LINENO: checking for option GWX_CURL_NOHTTP" >&5
echo $ECHO_N "checking for option GWX_CURL_NOHTTP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51770 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_CURL_NOHTTP)
# if (GWX_CURL_NOHTTP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



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



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




else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_CURL_NOFTP" >&5
echo $ECHO_N "checking for option GWX_CURL_NOFTP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51810 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_CURL_NOFTP)
# if (GWX_CURL_NOFTP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



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



else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_CURL_NOGOPHER" >&5
echo $ECHO_N "checking for option GWX_CURL_NOGOPHER... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51843 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_CURL_NOGOPHER)
# if (GWX_CURL_NOGOPHER != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



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



else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_CURL_NOFILE" >&5
echo $ECHO_N "checking for option GWX_CURL_NOFILE... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51876 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_CURL_NOFILE)
# if (GWX_CURL_NOFILE != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



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



else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_CURL_NOLDAP" >&5
echo $ECHO_N "checking for option GWX_CURL_NOLDAP... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51909 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_CURL_NOLDAP)
# if (GWX_CURL_NOLDAP != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



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



else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_CURL_NODICT" >&5
echo $ECHO_N "checking for option GWX_CURL_NODICT... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51942 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_CURL_NODICT)
# if (GWX_CURL_NODICT != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



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



else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_CURL_NOTELNET" >&5
echo $ECHO_N "checking for option GWX_CURL_NOTELNET... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 51975 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_CURL_NOTELNET)
# if (GWX_CURL_NOTELNET != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



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



else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


echo "$as_me:$LINENO: checking for option GWX_CURL_NONONBLOCKING" >&5
echo $ECHO_N "checking for option GWX_CURL_NONONBLOCKING... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52008 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_CURL_NONONBLOCKING)
# if (GWX_CURL_NONONBLOCKING != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



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


else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  rm -rf conftest*


  echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
echo $ECHO_N "checking non-blocking sockets style... $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.  */

/* headers for O_NONBLOCK test */
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>

int
main ()
{

/* try to compile O_NONBLOCK */

#if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
# if defined(__SVR4) || defined(__srv4__)
#  define PLATFORM_SOLARIS
# else
#  define PLATFORM_SUNOS4
# endif
#endif
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
# define PLATFORM_AIX_V3
#endif

#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3)
#error "O_NONBLOCK does not work on this platform"
#endif
  int socket;
  int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);

  ;
  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

nonblock="O_NONBLOCK"

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


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



  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.  */

/* headers for FIONBIO test */
#include <unistd.h>
#include <stropts.h>

int
main ()
{

/* FIONBIO source test */
 int flags = ioctl(socket, FIONBIO, &flags);

  ;
  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

nonblock="FIONBIO"

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


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



  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.  */

/* headers for ioctlsocket test (cygwin?) */
#include <windows.h>

int
main ()
{

/* ioctlsocket source code */
 int flags = ioctlsocket(socket, FIONBIO, &flags);

  ;
  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

nonblock="ioctlsocket"

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


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



  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.  */

/* headers for IoctlSocket test (Amiga?) */
#include <sys/ioctl.h>

int
main ()
{

/* IoctlSocket source code */
 int flags = IoctlSocket(socket, FIONBIO, (long)1);

  ;
  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

nonblock="IoctlSocket"

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


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


nonblock="nada"

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


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


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


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


fi
rm -f conftest.$ac_objext conftest.$ac_ext
  echo "$as_me:$LINENO: result: $nonblock" >&5
echo "${ECHO_T}$nonblock" >&6

  if test "$nonblock" = "nada"; then
    { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
  fi


fi
rm -rf conftest*


  if test "$gwx_using_ZLIB" = "yes"; then
    GWXCFG_DEP_CURL="$GWXCFG_DEP_CURL zlib"
    GLDFLAG_DEP_CURL="$GLDFLAG_DEP_CURL \$(GLDFLAG_ZLIB)"
    GLDFLAG_DEP_CURL_L="$GLDFLAG_DEP_CURL_L $GLDFLAG_ZLIB_L"
  fi

  if test "$gwx_using_OPENSSL" = "yes"; then
    GWXCFG_DEP_CURL="$GWXCFG_DEP_CURL openssl"
    GLDFLAG_DEP_CURL="$GLDFLAG_DEP_CURL -lssl -lcrypto"
    GLDFLAG_DEP_CURL_L="$GLDFLAG_DEP_CURL_L -lssl -lcrypto"
  fi

  GWXCFG_DEP_CURL="$GWXCFG_DEP_CURL syssocklib"
  GLDFLAG_DEP_CURL="$GLDFLAG_DEP_CURL $SYSSOCKLIBS"
  GLDFLAG_DEP_CURL_L="$GLDFLAG_DEP_CURL_L $SYSSOCKLIBS"

  GLDFLAG_CURL="$GLDFLAG_CURL $GLDFLAG_DEP_CURL"
  GLDFLAG_CURL_L="$GLDFLAG_CURL_L $GLDFLAG_DEP_CURL_L"

  CURL_CA_BUNDLE="$prefix/share/curl/curl-ca-bundle.crt"


else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_JAVASCRIPT=no
echo "$as_me:$LINENO: checking for library JAVASCRIPT" >&5
echo $ECHO_N "checking for library JAVASCRIPT... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52317 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_JAVASCRIPT)
# if (GWX_COMPILE_JAVASCRIPT)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_JAVASCRIPT=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_JAVASCRIPT 1
EOF
  GHAVE_JAVASCRIPT="-DHAVE_LIBJAVASCRIPT -DHAVE_JAVASCRIPT"
  GWXCFG_DEP_JAVASCRIPT=""
  GWXDIRS="$GWXDIRS js"
            ac_config_files="$ac_config_files js/Makefile"

            ac_config_files="$ac_config_files pc/javascript.pc"

 PCFILES="$PCFILES javascript.pc"


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

  GINCLUDE_JAVASCRIPT="-I\$(DEPTH)/js -I\$(TOP)/js"
  GLDFLAG_JAVASCRIPT_L="-ljs $GLDFLAG_DEP_JAVASCRIPT_L"
  GLDFLAG_JAVASCRIPT="\$(DEPTH)/js/libjs.la $GLDFLAG_DEP_JAVASCRIPT"
  JAVASCRIPT_VERSION="1.5rc4"


                  OS_ARCH=`uname -s | sed -e 's/ /_/g'`
  OS_CPUARCH=`uname -m`
  if test "$OS_CPUARCH" = "i86pc"; then
    OS_RELEASE=`uname -r`_OS_CPUARCH
  else
    if test "$OS_ARCH" = "AIX"; then
      OS_RELEASE=`uname -v`.`uname -r`
    else
      OS_RELEASE=`uname -r`
    fi
  fi
  if test "$OS_ARCH" = "IRIX64"; then
    OS_ARCH="IRIX"
  fi
  if test "$OS_ARCH" = "Linux"; then
    OS_CONFIG=Linux_All
  elif test "$OS_ARCH" = "dgux"; then
    OS_CONFIG=dgux
  elif test "$OS_ARCH" = "Darwin"; then
    OS_CONFIG=Darwin
  else
    OS_CONFIG="${OS_ARCH}${OS_RELEASE}"
  fi

  CPU_ARCH=$OS_CPUARCH
  case "$OS_CPUARCH" in
    *86*) CPU_ARCH=x86 ;;
  esac

  case "$OS_CONFIG" in
    AIX*)	JSCFLAGS="-DAIX -DAIXV3 -DSYSV" ;;
    Darwin*)	JSCFLAGS="-DSYSV -DSVR4 -D_BSD_SOURCE -DPOSIX_SOURCE" ;;
    HPUX*)	JSCFLAGS="-DHPUX" ;;
    IRIX*)	JSCFLAGS="-DSVR4 -DSW_THREADS -DIRIX" ;;
    Linux*)	JSCFLAGS="-DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE" ;;
    MacOS10*)	JSCFLAGS="-DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE" ;;
    OSF1*)	JSCFLAGS="-DSVR4 -DSYSV -D_POSIX4A_DRAFT10_SOURCE -DOSF1" ;;
    SunOS4*)	JSCFLAGS="-DSW_THREADS -DSUNOS4" ;;
    SunOS5*)	JSCFLAGS="-DSVR4 -DSYSV -D__svr4 -DSOLARIS" ;;
  esac

  JSCFLAGS="$JS_CFLAGS -DXP_UNIX -UDEBUG -DNDEBUG"
  if test "x$ac_cv_func_localtime_r" = "xyes"; then
    JSCFLAGS="$JSCFLAGS -DHAVE_LOCALTIME_R"
  fi

  if test "$gwx_using_READLINE" = "yes"; then
    JSCFLAGS="$JSCFLAGS -DEDITLINE"
    GWXCFG_DEP_JAVASCRIPT="$GWXCFG_DEP_JAVASCRIPT readline"
    GLDFLAG_DEP_JAVASCRIPT="$GLDFLAG_DEP_JAVASCRIPT \$(GLDFLAG_READLINE)"
    GLDFLAG_DEP_JAVASCRIPT_L="$GLDFLAG_DEP_JAVASCRIPT_L $GLDFLAG_READLINE_L"
  fi


echo "$as_me:$LINENO: checking for option GWX_JAVASCRIPT_PERL" >&5
echo $ECHO_N "checking for option GWX_JAVASCRIPT_PERL... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52429 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_JAVASCRIPT_PERL)
# if (GWX_JAVASCRIPT_PERL != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    JSCFLAGS="$JSCFLAGS -DPERLCONNECT -D_GNU_SOURCE"
    PERLCFLAGS=`$PERL -MExtUtils::Embed -e ccopts`
    PERLLDFLAGS=`$PERL -MExtUtils::Embed -e ldopts | sed -e 's/-rdynamic/-export-dynamic/'`
    JSCFLAGS="$JSCFLAGS $PERLCFLAGS"
    JSLDFLAGS=$PERLLDFLAGS
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*


  GWXCFG_DEP_JAVASCRIPT="$GWXCFG_DEP_JAVASCRIPT sysmathlib"
  GLDFLAG_DEP_JAVASCRIPT="$GLDFLAG_DEP_JAVASCRIPT $MATHLIB"
  GLDFLAG_DEP_JAVASCRIPT_L="$GLDFLAG_DEP_JAVASCRIPT_L $MATHLIB"




else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



gwx_using_SABLOT=no
echo "$as_me:$LINENO: checking for library SABLOT" >&5
echo $ECHO_N "checking for library SABLOT... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52475 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_COMPILE_SABLOT)
# if (GWX_COMPILE_SABLOT)
yes
# endif
#endif
EOF







if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  gwx_using_SABLOT=yes

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


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

  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  cat >> confdefs.h <<EOF
#define HAVE_SABLOT 1
EOF
  GHAVE_SABLOT="-DHAVE_LIBSABLOT -DHAVE_SABLOT"
  GWXCFG_DEP_SABLOT=""
  GWXDIRS="$GWXDIRS sablot"
            ac_config_files="$ac_config_files sablot/Makefile"

            ac_config_headers="$ac_config_headers sablot/config.h"

            ac_config_files="$ac_config_files pc/sablot.pc"

 PCFILES="$PCFILES sablot.pc"

  GINCLUDE_SABLOT="-I\$(DEPTH)/sablot -I\$(TOP)/sablot"
  GLDFLAG_SABLOT_L="-lsablot $GLDFLAG_DEP_SABLOT_L"
  GLDFLAG_SABLOT="\$(DEPTH)/sablot/libsablot.la $GLDFLAG_DEP_SABLOT"
  SABLOT_VERSION=0.98


  GWXCFG_DEP_SABLOT="$GWXCFG_DEP_SABLOT expat"
  GLDFLAG_DEP_SABLOT="$GLDFLAG_DEP_SABLOT \$(GLDFLAG_EXPAT)"
  GLDFLAG_DEP_SABLOT_L="$GLDFLAG_DEP_SABLOT_L $GLDFLAG_EXPAT_L"


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


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

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

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

  if test "x$ac_cv_proto_iconv_arg1" = "x"; then
    cat >>confdefs.h <<\_ACEOF
#define SABLOT_ICONV_CAST_OK 1
_ACEOF

  fi

  if test "$gwx_using_JAVASCRIPT" = "yes"; then
    GWXCFG_DEP_SABLOT="$GWXCFG_DEP_SABLOT javascript"
    GLDFLAG_DEP_SABLOT="$GLDFLAG_DEP_SABLOT \$(GLDFLAG_JAVASCRIPT)"
    GLDFLAG_DEP_SABLOT_L="$GLDFLAG_DEP_SABLOT_L $GLDFLAG_JAVASCRIPT_L"

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

  fi

else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*



echo "$as_me:$LINENO: checking for option GWX_USE_PKGCONFIG" >&5
echo $ECHO_N "checking for option GWX_USE_PKGCONFIG... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52578 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
#if defined(GWX_USE_PKGCONFIG)
# if (GWX_USE_PKGCONFIG != 0)
yes
# endif
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" > /dev/null 2>&1; then
  rm -rf conftest*
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

  GWXDIRS="$GWXDIRS pkgconfig pc"
            ac_config_files="$ac_config_files pkgconfig/Makefile"

            ac_config_files="$ac_config_files pc/Makefile"

            ac_config_headers="$ac_config_headers pkgconfig/config.h"


else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
 fi
rm -rf conftest*






          ac_config_files="$ac_config_files pc/sysmathlib.pc"

 PCFILES="$PCFILES sysmathlib.pc"

          ac_config_files="$ac_config_files pc/syssocklib.pc"

 PCFILES="$PCFILES syssocklib.pc"



echo "$as_me:$LINENO: checking for gettext shared library version" >&5
echo $ECHO_N "checking for gettext shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52625 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GETTEXT
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GETTEXT_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GETTEXT_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for zlib shared library version" >&5
echo $ECHO_N "checking for zlib shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52647 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_ZLIB
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  ZLIB_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  ZLIB_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for bzip2 shared library version" >&5
echo $ECHO_N "checking for bzip2 shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52669 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_BZIP2
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  BZIP2_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  BZIP2_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for jpeg shared library version" >&5
echo $ECHO_N "checking for jpeg shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52691 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_JPEG
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  JPEG_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  JPEG_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for jasper shared library version" >&5
echo $ECHO_N "checking for jasper shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52713 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_JASPER
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  JASPER_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  JASPER_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for tiff shared library version" >&5
echo $ECHO_N "checking for tiff shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52735 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_TIFF
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  TIFF_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  TIFF_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for png shared library version" >&5
echo $ECHO_N "checking for png shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52757 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_PNG
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  PNG_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  PNG_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for mng shared library version" >&5
echo $ECHO_N "checking for mng shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52779 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_MNG
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  MNG_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  MNG_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for jbig shared library version" >&5
echo $ECHO_N "checking for jbig shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52801 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_JBIG
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  JBIG_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  JBIG_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for freetype1 shared library version" >&5
echo $ECHO_N "checking for freetype1 shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52823 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_FREETYPE1
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  FREETYPE1_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  FREETYPE1_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for freetype2 shared library version" >&5
echo $ECHO_N "checking for freetype2 shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52845 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_FREETYPE2
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  FREETYPE2_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  FREETYPE2_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for fontconfig shared library version" >&5
echo $ECHO_N "checking for fontconfig shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52867 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_FONTCONFIG
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  FONTCONFIG_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  FONTCONFIG_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gd1 shared library version" >&5
echo $ECHO_N "checking for gd1 shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52889 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GD1
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GD1_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GD1_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gd2 shared library version" >&5
echo $ECHO_N "checking for gd2 shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52911 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GD2
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GD2_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GD2_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for giflib shared library version" >&5
echo $ECHO_N "checking for giflib shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52933 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GIFLIB
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GIFLIB_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GIFLIB_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for compface shared library version" >&5
echo $ECHO_N "checking for compface shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52955 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_COMPFACE
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  COMPFACE_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  COMPFACE_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for xpm shared library version" >&5
echo $ECHO_N "checking for xpm shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52977 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_XPM
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  XPM_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  XPM_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for mpeg library shared library version" >&5
echo $ECHO_N "checking for mpeg library shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 52999 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_MPEGLIB
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  MPEGLIB_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  MPEGLIB_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for netpbm shared library version" >&5
echo $ECHO_N "checking for netpbm shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53021 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_NETPBM
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  NETPBM_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  NETPBM_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk+/gtk shared library version" >&5
echo $ECHO_N "checking for gtk+/gtk shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53043 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GTK1
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GTK1_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GTK1_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk+/gdk shared library version" >&5
echo $ECHO_N "checking for gtk+/gdk shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53065 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GDK1
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GDK1_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GDK1_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk+/glib shared library version" >&5
echo $ECHO_N "checking for gtk+/glib shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53087 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GLIB1
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GLIB1_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GLIB1_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk+/glib/gmodule shared library version" >&5
echo $ECHO_N "checking for gtk+/glib/gmodule shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53109 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GMODULE1
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GMODULE1_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GMODULE1_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk+/glib/gthread shared library version" >&5
echo $ECHO_N "checking for gtk+/glib/gthread shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53131 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GTHREAD1
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GTHREAD1_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GTHREAD1_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk2+/gtk shared library version" >&5
echo $ECHO_N "checking for gtk2+/gtk shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53153 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GTK2
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GTK2_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GTK2_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk2+/gdk-pixbuf shared library version" >&5
echo $ECHO_N "checking for gtk2+/gdk-pixbuf shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53175 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GDK2PIXBUF
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GDK2PIXBUF_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GDK2PIXBUF_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk2+/gdk-linux-fb shared library version" >&5
echo $ECHO_N "checking for gtk2+/gdk-linux-fb shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53197 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GDK2LFB
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GDK2LFB_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GDK2LFB_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk2+/gdk-x11 shared library version" >&5
echo $ECHO_N "checking for gtk2+/gdk-x11 shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53219 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GDK2X11
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GDK2X11_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GDK2X11_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk2+/glib shared library version" >&5
echo $ECHO_N "checking for gtk2+/glib shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53241 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GLIB2
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GLIB2_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GLIB2_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk2+/glib/gmodule shared library version" >&5
echo $ECHO_N "checking for gtk2+/glib/gmodule shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53263 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GMODULE2
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GMODULE2_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GMODULE2_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk2+/glib/gthread shared library version" >&5
echo $ECHO_N "checking for gtk2+/glib/gthread shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53285 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GTHREAD2
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GTHREAD2_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GTHREAD2_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk2+/glib/gobject shared library version" >&5
echo $ECHO_N "checking for gtk2+/glib/gobject shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53307 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GOBJECT2
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GOBJECT2_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GOBJECT2_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk2+/pango shared library version" >&5
echo $ECHO_N "checking for gtk2+/pango shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53329 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_PANGO
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  PANGO_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  PANGO_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk2+/pangox shared library version" >&5
echo $ECHO_N "checking for gtk2+/pangox shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53351 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_PANGOX
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  PANGOX_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  PANGOX_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk2+/pangoxft shared library version" >&5
echo $ECHO_N "checking for gtk2+/pangoxft shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53373 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_PANGOXFT
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  PANGOXFT_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  PANGOXFT_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk2+/pangoft2 shared library version" >&5
echo $ECHO_N "checking for gtk2+/pangoft2 shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53395 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_PANGOFT2
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  PANGOFT2_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  PANGOFT2_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gtk2+/atk shared library version" >&5
echo $ECHO_N "checking for gtk2+/atk shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53417 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_ATK
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  ATK_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  ATK_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for imlib shared library version" >&5
echo $ECHO_N "checking for imlib shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53439 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_IMLIB
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  IMLIB_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  IMLIB_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gdk_imlib shared library version" >&5
echo $ECHO_N "checking for gdk_imlib shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53461 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GDKIMLIB
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GDKIMLIB_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GDKIMLIB_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for slang shared library version" >&5
echo $ECHO_N "checking for slang shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53483 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_SLANG
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  SLANG_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  SLANG_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for readline shared library version" >&5
echo $ECHO_N "checking for readline shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53505 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_READLINE
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  READLINE_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  READLINE_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for Xaw3D-R5 shared library version" >&5
echo $ECHO_N "checking for Xaw3D-R5 shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53527 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_XAW3DR5
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  XAW3DR5_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  XAW3DR5_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for Xaw3D-R6 shared library version" >&5
echo $ECHO_N "checking for Xaw3D-R6 shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53549 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_XAW3DR6
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  XAW3DR6_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  XAW3DR6_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gdbm shared library version" >&5
echo $ECHO_N "checking for gdbm shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53571 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GDBM
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GDBM_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GDBM_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for db shared library version" >&5
echo $ECHO_N "checking for db shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53593 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_DB
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  DB_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  DB_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for db_cxx shared library version" >&5
echo $ECHO_N "checking for db_cxx shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53615 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_DBCXX
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  DBCXX_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  DBCXX_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for expat shared library version" >&5
echo $ECHO_N "checking for expat shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53637 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_EXPAT
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  EXPAT_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  EXPAT_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for xml2 shared library version" >&5
echo $ECHO_N "checking for xml2 shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53659 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_XML2
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  XML2_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  XML2_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for xslt shared library version" >&5
echo $ECHO_N "checking for xslt shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53681 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_XSLT
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  XSLT_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  XSLT_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for exslt shared library version" >&5
echo $ECHO_N "checking for exslt shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53703 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_EXSLT
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  EXSLT_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  EXSLT_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for md5 shared library version" >&5
echo $ECHO_N "checking for md5 shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53725 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_MD5
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  MD5_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  MD5_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for rand shared library version" >&5
echo $ECHO_N "checking for rand shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53747 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_RAND
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  RAND_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  RAND_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for slp shared library version" >&5
echo $ECHO_N "checking for slp shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53769 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_OPENSLP
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  OPENSLP_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  OPENSLP_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for xmlsec shared library version" >&5
echo $ECHO_N "checking for xmlsec shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53791 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_XMLSEC
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  XMLSEC_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  XMLSEC_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for sasl shared library version" >&5
echo $ECHO_N "checking for sasl shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53813 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_SASL
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  SASL_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  SASL_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for lcms shared library version" >&5
echo $ECHO_N "checking for lcms shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53835 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_LCMS
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  LCMS_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  LCMS_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for gdome2 shared library version" >&5
echo $ECHO_N "checking for gdome2 shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53857 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GDOME2
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GDOME2_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GDOME2_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for idl shared library version" >&5
echo $ECHO_N "checking for idl shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53879 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_IDL
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  IDL_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  IDL_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for pcre shared library version" >&5
echo $ECHO_N "checking for pcre shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53901 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_PCRE
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  PCRE_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  PCRE_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for mm shared library version" >&5
echo $ECHO_N "checking for mm shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53923 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_MM
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  MM_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  MM_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for ghttp shared library version" >&5
echo $ECHO_N "checking for ghttp shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53945 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_GHTTP
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  GHTTP_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  GHTTP_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for www shared library version" >&5
echo $ECHO_N "checking for www shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53967 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_LIBWWW
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  LIBWWW_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  LIBWWW_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for curl shared library version" >&5
echo $ECHO_N "checking for curl shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 53989 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_CURL
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  CURL_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  CURL_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for javascript shared library version" >&5
echo $ECHO_N "checking for javascript shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 54011 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_JAVASCRIPT
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  JAVASCRIPT_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  JAVASCRIPT_SONAME="0.0.0"
fi

rm -rf conftest*


echo "$as_me:$LINENO: checking for sablotron shared library version" >&5
echo $ECHO_N "checking for sablotron shared library version... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 54033 "configure"
#include "confdefs.h"
#include "gwxcfg.h"
LIBVER=GWX_NAME_SABLOT
EOF
if (eval "$ac_cpp conftest.$ac_ext" > conftest.out) 2>&5; then
  tlibver=`sed -n -e '/LIBVER=/p' conftest.out | sed -e 's/LIBVER=//' | sed -e 's/" "//'`
  echo "$as_me:$LINENO: result: ${tlibver}" >&5
echo "${ECHO_T}${tlibver}" >&6
  SABLOT_SONAME="$tlibver"
else
  echo "$as_me:$LINENO: result: 0.0.0" >&5
echo "${ECHO_T}0.0.0" >&6
  SABLOT_SONAME="0.0.0"
fi

rm -rf conftest*


MLIBS="$LIBS $MATHLIB"


          ac_config_files="$ac_config_files pc/gwxlibs.pc"

 PCFILES="$PCFILES gwxlibs.pc"


          ac_config_files="$ac_config_files gwxcc"

          ac_config_files="$ac_config_files gwxc++"


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, don't put newlines in cache variables' values.
# 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.
{
  (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/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_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 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"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  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}'

# 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

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_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'
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+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

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


# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
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 -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; 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'`


# 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


  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
	     $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

  # 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

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

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

as_executable_p="test -f"

# 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"


# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH

exec 6>&1

# 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 gwxlibs $as_me 1.3.1, which was
generated by GNU Autoconf 2.57.  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
_ACEOF

# Files that config.status was made for.
if test -n "$ac_config_files"; then
  for cfgfile in $ac_config_files; do
    echo "config_files=\"\$config_files $cfgfile\"" >>$CONFIG_STATUS
  done
fi

if test -n "$ac_config_headers"; then
  for hdrfile in $ac_config_headers; do
    echo "config_headers=\"\$config_headers $hdrfile\"" >>$CONFIG_STATUS
  done
fi

if test -n "$ac_config_links"; then
  for lnkfile in $ac_config_links; do
    echo "config_links=\"\$config_links $lnkfile\"" >>$CONFIG_STATUS
  done
fi

if test -n "$ac_config_commands"; then
  for ccmd in $ac_config_commands; do
    echo "config_commands=\"\$config_commands $ccmd\"" >>$CONFIG_STATUS
  done
fi

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

Configuration commands:
$config_commands

Report bugs to <bug-autoconf@gnu.org>."
_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
gwxlibs config.status 1.3.1
configured by $0, generated by GNU Autoconf 2.57,
  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"
_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
    ;;
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_option=$1
     ac_need_defaults=false;;
  esac

  case $ac_option in
  # Handling of the options.
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --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 )
    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;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) { { 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;}
   { (exit 1); exit 1; }; } ;;

  *) ac_config_targets="$ac_config_targets $1" ;;

  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 $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
fi

_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF
#
# INIT-COMMANDS section.
#


      gwx_cv_db_cfg4="$gwx_cv_db_cfg4"

    gwx_cv_db_cfg1="$gwx_cv_db_cfg1"

    gwx_cv_db_cfg2="$gwx_cv_db_cfg2"

    gwx_cv_db_cfg3="$gwx_cv_db_cfg3"

case xyes in
x$ac_cv_header_float_h)
  glib_float_h=yes
  glib_mf=FLT_MIN glib_Mf=FLT_MAX
  glib_md=DBL_MIN glib_Md=DBL_MAX
  ;;
x$ac_cv_header_values_h)
  glib_values_h=yes
  glib_mf=MINFLOAT  glib_Mf=MAXFLOAT
  glib_md=MINDOUBLE glib_Md=MAXDOUBLE
  ;;
esac

case xyes in
x$ac_cv_header_limits_h)
  glib_limits_h=yes
  glib_ms=SHRT_MIN glib_Ms=SHRT_MAX
  glib_mi=INT_MIN  glib_Mi=INT_MAX
  glib_ml=LONG_MIN glib_Ml=LONG_MAX
  ;;
x$ac_cv_header_values_h)
  glib_values_h=yes
  glib_ms=MINSHORT glib_Ms=MAXSHORT
  glib_mi=MININT   glib_Mi=MAXINT
  glib_ml=MINLONG  glib_Ml=MAXLONG
  ;;
esac

if test x$ac_cv_header_sys_poll_h = xyes ; then
  glib_sys_poll_h=yes
fi

case 2 in
$ac_cv_sizeof_short)		gint16=short;;
$ac_cv_sizeof_int)		gint16=int;;
esac
case 4 in
$ac_cv_sizeof_short)		gint32=short;;
$ac_cv_sizeof_int)		gint32=int;;
$ac_cv_sizeof_long)		gint32=long;;
esac
case 8 in
$ac_cv_sizeof_int)
  gint64=int
  glib_extension=
  glib_warning_guard=
  gint64_constant='(val)'
  ;;
$ac_cv_sizeof_long)
  gint64=long
  glib_extension=
  glib_warning_guard=
  gint64_constant='(val##L)'
  ;;
$ac_cv_sizeof_long_long)
  gint64='long long'
  glib_extension='G_GNUC_EXTENSION '
  glib_warning_guard="
#if defined (__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8))
#  define G_GNUC_EXTENSION __extension__
#else
#  define G_GNUC_EXTENSION
#endif

"
  gint64_constant='(G_GNUC_EXTENSION (val##LL))'
  ;;
esac

gintbits=`expr $ac_cv_sizeof_int \* 8`
glongbits=`expr $ac_cv_sizeof_long \* 8`


case $ac_cv_sizeof_void_p in
$ac_cv_sizeof_int)  	glib_gpi_cast=''        glib_gpui_cast=''         ;;
$ac_cv_sizeof_long) 	glib_gpi_cast='(glong)' glib_gpui_cast='(gulong)' ;;
*) 			glib_unknown_void_p=yes ;;
esac


case xyes in
x$ac_cv_func_atexit)
  glib_atexit="
#ifdef NeXT /* @#%@! NeXTStep */
# define g_ATEXIT(proc)	(!atexit (proc))
#else
# define g_ATEXIT(proc)	(atexit (proc))
#endif"
  ;;
x$ac_cv_func_on_exit)
  glib_atexit="
#define g_ATEXIT(proc)	(on_exit ((void (*)(int, void*))(proc), NULL))"
  ;;
esac

case xyes in
x$ac_cv_func_memmove)
  glib_memmove='
#define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END'
  ;;
*)
  glib_memmove="
/* We make the assumption that if memmove isn't available, then
 * bcopy will do the job. This isn't safe everywhere. (bcopy can't
 * necessarily handle overlapping copies) */
#define g_memmove(d,s,n) G_STMT_START { bcopy ((s), (d), (n)); } G_STMT_END"
  ;;
esac

glib_defines="
#define GLIB_MAJOR_VERSION $GLIB1_MAJOR_VERSION
#define GLIB_MINOR_VERSION $GLIB1_MINOR_VERSION
#define GLIB_MICRO_VERSION $GLIB1_MICRO_VERSION
"

case xyes in
x$glib_cv_va_copy)	glib_vacopy='#define G_VA_COPY	va_copy' ;;
x$glib_cv___va_copy)	glib_vacopy='#define G_VA_COPY	__va_copy' ;;
*)			glib_vacopy=''
esac

if test x$glib_cv_va_val_copy = xno; then
  glib_vacopy="\$glib_vacopy
#define G_VA_COPY_AS_ARRAY 1"
fi

if test x$glib_cv_hasinline = xyes; then
    glib_inline='#define G_HAVE_INLINE 1'
fi
if test x$glib_cv_has__inline = xyes; then
    glib_inline="\$glib_inline
#define G_HAVE___INLINE 1"
fi
if test x$glib_cv_has__inline__ = xyes; then
    glib_inline="\$glib_inline
#define G_HAVE___INLINE__ 1"
fi

case xyes in
x$ac_cv_c_bigendian)
  g_byte_order=G_BIG_ENDIAN
  g_bs_native=BE
  g_bs_alien=LE
  ;;
*)
  g_byte_order=G_LITTLE_ENDIAN
  g_bs_native=LE
  g_bs_alien=BE
  ;;
esac

if test x$glib_wchar_h = xyes; then
  glib_wc='
#define G_HAVE_WCHAR_H 1'
fi
if test x$glib_wctype_h = xyes; then
  glib_wc="\$glib_wc
#define G_HAVE_WCTYPE_H 1"
fi
if test x$glib_working_wctype = xno; then
  glib_wc="\$glib_wc
#define G_HAVE_BROKEN_WCTYPE 1"
fi

case x$have_threads in
xnone)	g_enable_threads_def="#undef";;
*)	g_enable_threads_def="#define";;
esac

g_threads_impl_def=$g_threads_impl

g_mutex_has_default="$mutex_has_default"
g_mutex_sizeof="$glib_cv_sizeof_gmutex"
g_mutex_contents="$glib_cv_byte_contents_gmutex"



if test "x${ac_cv_working_alloca_h+set}" = xset ; then
  glib2_header_alloca_h="$ac_cv_working_alloca_h"
else
  glib2_header_alloca_h="$ac_cv_header_alloca_h"
fi

case xyes in
x$ac_cv_header_float_h)
  glib2_float_h=yes
  glib2_mf=FLT_MIN glib2_Mf=FLT_MAX
  glib2_md=DBL_MIN glib2_Md=DBL_MAX
  ;;
x$ac_cv_header_values_h)
  glib2_values_h=yes
  glib2_mf=MINFLOAT  glib2_Mf=MAXFLOAT
  glib2_md=MINDOUBLE glib2_Md=MAXDOUBLE
  ;;
esac

case xyes in
x$ac_cv_header_limits_h)
  glib2_limits_h=yes
  glib2_ms=SHRT_MIN glib2_Ms=SHRT_MAX glib2_Mus=USHRT_MAX
  glib2_mi=INT_MIN  glib2_Mi=INT_MAX  glib2_Mui=UINT_MAX
  glib2_ml=LONG_MIN glib2_Ml=LONG_MAX glib2_Mul=ULONG_MAX
  ;;
x$ac_cv_header_values_h)
  glib2_values_h=yes
  glib2_ms=MINSHORT glib2_Ms=MAXSHORT glib2_Mus="(((gushort)G_MAXSHORT)*2+1)"
  glib2_mi=MININT   glib2_Mi=MAXINT   glib2_Mui="(((guint)G_MAXINT)*2+1)"
  glib2_ml=MINLONG  glib2_Ml=MAXLONG  glib2_Mul="(((gulong)G_MAXLONG)*2+1)"
  ;;
esac

if test x$ac_cv_header_sys_poll_h = xyes ; then
  glib2_sys_poll_h=yes
fi

case 2 in
$ac_cv_sizeof_short)
  g2int16=short
  g2int16_format='"hi"'
  g2uint16_format='"hu"'
  ;;
$ac_cv_sizeof_int)
  g2int16=int
  g2int16_format='"i"'
  g2uint16_format='"u"'
  ;;
esac
case 4 in
$ac_cv_sizeof_short)
  g2int32=short
  g2int32_format='"hi"'
  g2uint32_format='"hu"'
  ;;
$ac_cv_sizeof_int)
  g2int32=int
  g2int32_format='"i"'
  g2uint32_format='"u"'
  ;;
$ac_cv_sizeof_long)
  g2int32=long
  g2int32_format='"li"'
  g2uint32_format='"lu"'
  ;;
esac
case 8 in
$ac_cv_sizeof_int)
  g2int64=int
  g2int64_format='"i"'
  g2uint64_format='"u"'
  glib2_extension=
  g2int64_constant='(val)'
  ;;
$ac_cv_sizeof_long)
  g2int64=long
  g2int64_format='"li"'
  g2uint64_format='"lu"'
  glib2_extension=
  g2int64_constant='(val##L)'
  ;;
$ac_cv_sizeof_long_long)
  g2int64='long long'
  if test -n "$glib_cv_long_long_format"; then
    g2int64_format='"'$glib_cv_long_long_format'i"'
    g2uint64_format='"'$glib_cv_long_long_format'u"'
  fi
  glib2_extension='G_GNUC_EXTENSION '
  g2int64_constant='(G_GNUC_EXTENSION (val##LL))'
  ;;
esac
glib2_size_t=$glib_cv_sizeof_size_t
glib2_size_type_define=$glib_size_type
glib2_void_p=$ac_cv_sizeof_long
glib2_long=$ac_cv_sizeof_void_p

g2intbits=`expr $ac_cv_sizeof_int \* 8`
g2longbits=`expr $ac_cv_sizeof_long \* 8`


case $ac_cv_sizeof_void_p in
$ac_cv_sizeof_int)  	glib2_gpi_cast=''        glib2_gpui_cast=''         ;;
$ac_cv_sizeof_long) 	glib2_gpi_cast='(glong)' glib2_gpui_cast='(gulong)' ;;
*) 			glib2_unknown_void_p=yes ;;
esac


case xyes in
x$ac_cv_func_atexit)
  glib2_atexit="
#ifdef NeXT /* @#%@! NeXTStep */
# define g_ATEXIT(proc)	(!atexit (proc))
#else
# define g_ATEXIT(proc)	(atexit (proc))
#endif"
  ;;
x$ac_cv_func_on_exit)
  glib2_atexit="
#define g_ATEXIT(proc)	(on_exit ((void (*)(int, void*))(proc), NULL))"
  ;;
esac

case xyes in
x$ac_cv_func_memmove)
  glib2_memmove='
#define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END'
  ;;
x$glib_cv_working_bcopy)
  glib2_memmove="
/* memmove isn't available, but bcopy can copy overlapping memory regions */
#define g_memmove(d,s,n) G_STMT_START { bcopy ((s), (d), (n)); } G_STMT_END"
  ;;
*)
  glib2_memmove="
/* memmove isn't found and bcopy can't copy overlapping memory regions,
 * so we have to roll our own copy routine. */
void g_memmove (void* dest, const void * src, unsigned long len);"
  ;;
esac

glib2_defines="
#define GLIB_MAJOR_VERSION $GLIB2_MAJOR_VERSION
#define GLIB_MINOR_VERSION $GLIB2_MINOR_VERSION
#define GLIB_MICRO_VERSION $GLIB2_MICRO_VERSION
"

case xyes in
x$glib_cv_va_copy)	glib2_vacopy='#define G_VA_COPY	va_copy' ;;
x$glib_cv___va_copy)	glib2_vacopy='#define G_VA_COPY	__va_copy' ;;
*)			glib2_vacopy=''
esac

if test x$glib_cv_va_val_copy = xno; then
  glib2_vacopy="\$glib_vacopy
#define G_VA_COPY_AS_ARRAY 1"
fi

if test x$glib_cv_hasinline = xyes; then
    glib2_inline='#define G_HAVE_INLINE 1'
fi
if test x$glib_cv_has__inline = xyes; then
    glib2_inline="\$glib2_inline
#define G_HAVE___INLINE 1"
fi
if test x$glib_cv_has__inline__ = xyes; then
    glib2_inline="\$glib2_inline
#define G_HAVE___INLINE__ 1"
fi

g2_have_gnuc_varargs=$g_have_gnuc_varargs
g2_have_iso_c_varargs=$g_have_iso_c_varargs
g2_have_iso_cxx_varargs=$g_have_iso_cxx_varargs

case xyes in
x$ac_cv_c_bigendian)
  g2_byte_order=G_BIG_ENDIAN
  g2_bs_native=BE
  g2_bs_alien=LE
  ;;
*)
  g2_byte_order=G_LITTLE_ENDIAN
  g2_bs_native=LE
  g2_bs_alien=BE
  ;;
esac

g2_stack_grows=$glib_cv_stack_grows

g2_have_eilseq=$have_eilseq

case x$have_threads in
xnone)	g2_enable_threads_def="#undef";;
*)	g2_enable_threads_def="#define";;
esac

g2_threads_impl_def=$g_threads_impl

g2_mutex_has_default="$mutex_has_default"
g2_mutex_sizeof="$glib_cv_sizeof_gmutex"
g2_system_thread_sizeof="$glib_cv_sizeof_system_thread"
g2_mutex_contents="$glib_cv_byte_contents_gmutex"

g2_module_suffix="$glib_gmodule_suffix"

case $host in
  *-*-beos*)
    glib2_os="#define G_OS_BEOS"
    ;;
  *-*-cygwin*)
    glib2_os="#define G_OS_UNIX
#define G_PLATFORM_WIN32
#define G_WITH_CYGWIN"
    ;;
  *-*-mingw*)
    glib2_os="#define G_OS_WIN32
#define G_PLATFORM_WIN32"
    ;;
  *)
    glib2_os="#define G_OS_UNIX"
    ;;
esac


if test "x$gdktarget" = "xx11" ; then
  gdk_windowing='
#define GDK_WINDOWING_X11'
elif test "x$gdktarget" = "xwin32" ; then
  gdk_windowing='
#define GDK_WINDOWING_WIN32'
elif test "x$gdktarget" = "xlinux-fb" ; then
  gdk_windowing='
#define GDK_WINDOWING_FB
#define GDK_NATIVE_WINDOW_POINTER'
fi

if test x$gdk_wchar_h = xyes; then
  gdk_wc='
#define GDK_HAVE_WCHAR_H 1'
fi
if test x$ac_cv_header_wctype_h = xyes; then
  gdk_wc="\$gdk_wc
#define GDK_HAVE_WCTYPE_H 1"
fi
if test x$glib_cv_wctype_ok = xno; then
  gdk_wc="\$gdk_wc
#define GDK_HAVE_BROKEN_WCTYPE 1"
fi


_ACEOF



cat >>$CONFIG_STATUS <<\_ACEOF
for ac_config_target in $ac_config_targets
do
  case "$ac_config_target" in
  # Handling of arguments.
  "pc/TEMPLATE" ) CONFIG_FILES="$CONFIG_FILES pc/TEMPLATE" ;;
  "pc/sysxextlibs.pc" ) CONFIG_FILES="$CONFIG_FILES pc/sysxextlibs.pc" ;;
  "pc/sysx11libs.pc" ) CONFIG_FILES="$CONFIG_FILES pc/sysx11libs.pc" ;;
  "pc/sysxtralibs.pc" ) CONFIG_FILES="$CONFIG_FILES pc/sysxtralibs.pc" ;;
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  "Makefile.top" ) CONFIG_FILES="$CONFIG_FILES Makefile.top" ;;
  "missing/Makefile" ) CONFIG_FILES="$CONFIG_FILES missing/Makefile" ;;
  "expat/Makefile" ) CONFIG_FILES="$CONFIG_FILES expat/Makefile" ;;
  "expat/expat.h" ) CONFIG_FILES="$CONFIG_FILES expat/expat.h" ;;
  "pc/expat.pc" ) CONFIG_FILES="$CONFIG_FILES pc/expat.pc" ;;
  "gettext/Makefile" ) CONFIG_FILES="$CONFIG_FILES gettext/Makefile" ;;
  "gettext/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gettext/lib/Makefile" ;;
  "gettext/intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES gettext/intl/Makefile" ;;
  "gettext/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gettext/src/Makefile" ;;
  "gettext/doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES gettext/doc/Makefile" ;;
  "gettext/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES gettext/man/Makefile" ;;
  "gettext/m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES gettext/m4/Makefile" ;;
  "gettext/po/Makefile" ) CONFIG_FILES="$CONFIG_FILES gettext/po/Makefile" ;;
  "gettext/src/user-email" ) CONFIG_FILES="$CONFIG_FILES gettext/src/user-email" ;;
  "gettext/src/autopoint" ) CONFIG_FILES="$CONFIG_FILES gettext/src/autopoint" ;;
  "gettext/src/gettextize" ) CONFIG_FILES="$CONFIG_FILES gettext/src/gettextize" ;;
  "zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
  "pc/zlib.pc" ) CONFIG_FILES="$CONFIG_FILES pc/zlib.pc" ;;
  "bzip2/Makefile" ) CONFIG_FILES="$CONFIG_FILES bzip2/Makefile" ;;
  "pc/bzip2.pc" ) CONFIG_FILES="$CONFIG_FILES pc/bzip2.pc" ;;
  "jpeg/Makefile" ) CONFIG_FILES="$CONFIG_FILES jpeg/Makefile" ;;
  "pc/jpeg.pc" ) CONFIG_FILES="$CONFIG_FILES pc/jpeg.pc" ;;
  "jasper/Makefile" ) CONFIG_FILES="$CONFIG_FILES jasper/Makefile" ;;
  "jasper/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES jasper/lib/Makefile" ;;
  "jasper/appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES jasper/appl/Makefile" ;;
  "jasper/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES jasper/include/Makefile" ;;
  "pc/jasper.pc" ) CONFIG_FILES="$CONFIG_FILES pc/jasper.pc" ;;
  "jbig/Makefile" ) CONFIG_FILES="$CONFIG_FILES jbig/Makefile" ;;
  "jbig/libjbig/Makefile" ) CONFIG_FILES="$CONFIG_FILES jbig/libjbig/Makefile" ;;
  "jbig/pbmtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES jbig/pbmtools/Makefile" ;;
  "pc/jbig.pc" ) CONFIG_FILES="$CONFIG_FILES pc/jbig.pc" ;;
  "tiff/Makefile" ) CONFIG_FILES="$CONFIG_FILES tiff/Makefile" ;;
  "tiff/libtiff/Makefile" ) CONFIG_FILES="$CONFIG_FILES tiff/libtiff/Makefile" ;;
  "tiff/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tiff/tools/Makefile" ;;
  "tiff/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES tiff/man/Makefile" ;;
  "tiff/libtiff/tiffconf.h.in" ) CONFIG_FILES="$CONFIG_FILES tiff/libtiff/tiffconf.h.in" ;;
  "pc/tiff.pc" ) CONFIG_FILES="$CONFIG_FILES pc/tiff.pc" ;;
  "png/Makefile" ) CONFIG_FILES="$CONFIG_FILES png/Makefile" ;;
  "pc/libpng.pc" ) CONFIG_FILES="$CONFIG_FILES pc/libpng.pc" ;;
  "lcms/Makefile" ) CONFIG_FILES="$CONFIG_FILES lcms/Makefile" ;;
  "pc/lcms.pc" ) CONFIG_FILES="$CONFIG_FILES pc/lcms.pc" ;;
  "mng/Makefile" ) CONFIG_FILES="$CONFIG_FILES mng/Makefile" ;;
  "pc/libmng.pc" ) CONFIG_FILES="$CONFIG_FILES pc/libmng.pc" ;;
  "xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES xpm/Makefile" ;;
  "pc/xpm.pc" ) CONFIG_FILES="$CONFIG_FILES pc/xpm.pc" ;;
  "netpbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES netpbm/Makefile" ;;
  "netpbm/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES netpbm/lib/Makefile" ;;
  "netpbm/cvt/Makefile" ) CONFIG_FILES="$CONFIG_FILES netpbm/cvt/Makefile" ;;
  "netpbm/cvt/hpcdtoppm/Makefile" ) CONFIG_FILES="$CONFIG_FILES netpbm/cvt/hpcdtoppm/Makefile" ;;
  "netpbm/cvt/ppmtompeg/Makefile" ) CONFIG_FILES="$CONFIG_FILES netpbm/cvt/ppmtompeg/Makefile" ;;
  "pc/netpbm.pc" ) CONFIG_FILES="$CONFIG_FILES pc/netpbm.pc" ;;
  "giflib/Makefile" ) CONFIG_FILES="$CONFIG_FILES giflib/Makefile" ;;
  "giflib/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES giflib/lib/Makefile" ;;
  "giflib/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES giflib/util/Makefile" ;;
  "pc/giflib.pc" ) CONFIG_FILES="$CONFIG_FILES pc/giflib.pc" ;;
  "compface/Makefile" ) CONFIG_FILES="$CONFIG_FILES compface/Makefile" ;;
  "pc/compface.pc" ) CONFIG_FILES="$CONFIG_FILES pc/compface.pc" ;;
  "mpeg_lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpeg_lib/Makefile" ;;
  "pc/mpeglib.pc" ) CONFIG_FILES="$CONFIG_FILES pc/mpeglib.pc" ;;
  "readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES readline/Makefile" ;;
  "readline/doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES readline/doc/Makefile" ;;
  "pc/readline.pc" ) CONFIG_FILES="$CONFIG_FILES pc/readline.pc" ;;
  "pc/history.pc" ) CONFIG_FILES="$CONFIG_FILES pc/history.pc" ;;
  "pc/systermlib.pc" ) CONFIG_FILES="$CONFIG_FILES pc/systermlib.pc" ;;
  "Xaw3D/Makefile" ) CONFIG_FILES="$CONFIG_FILES Xaw3D/Makefile" ;;
  "Xaw3D/$X11VERSION/Makefile" ) CONFIG_FILES="$CONFIG_FILES Xaw3D/$X11VERSION/Makefile" ;;
  "slang/Makefile" ) CONFIG_FILES="$CONFIG_FILES slang/Makefile" ;;
  "slang/slsh.rc" ) CONFIG_FILES="$CONFIG_FILES slang/slsh.rc" ;;
  "pc/slang.pc" ) CONFIG_FILES="$CONFIG_FILES pc/slang.pc" ;;
  "gdbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdbm/Makefile" ;;
  "pc/gdbm.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gdbm.pc" ;;
  "db/Makefile" ) CONFIG_FILES="$CONFIG_FILES db/Makefile" ;;
  "db/db_int.h" ) CONFIG_FILES="$CONFIG_FILES db/db_int.h:db/dbinc/db_int.in" ;;
  "db/db_cxx.h" ) CONFIG_FILES="$CONFIG_FILES db/db_cxx.h:db/dbinc/db_cxx.in" ;;
  "db/db_int_def.h" ) CONFIG_FILES="$CONFIG_FILES db/db_int_def.h:$gwx_cv_db_cfg4" ;;
  "db/db.h" ) CONFIG_FILES="$CONFIG_FILES db/db.h:$gwx_cv_db_cfg1" ;;
  "db/db_185.h" ) CONFIG_FILES="$CONFIG_FILES db/db_185.h:$gwx_cv_db_cfg2" ;;
  "db/db185_int.h" ) CONFIG_FILES="$CONFIG_FILES db/db185_int.h:$gwx_cv_db_cfg3" ;;
  "pc/db-4.1.pc" ) CONFIG_FILES="$CONFIG_FILES pc/db-4.1.pc" ;;
  "xml2/Makefile" ) CONFIG_FILES="$CONFIG_FILES xml2/Makefile" ;;
  "xml2/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES xml2/include/Makefile" ;;
  "xml2/include/libxml/xmlversion.h.in" ) CONFIG_FILES="$CONFIG_FILES xml2/include/libxml/xmlversion.h.in" ;;
  "pc/libxml-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/libxml-2.0.pc" ;;
  "xslt/Makefile" ) CONFIG_FILES="$CONFIG_FILES xslt/Makefile" ;;
  "xslt/libxslt/Makefile" ) CONFIG_FILES="$CONFIG_FILES xslt/libxslt/Makefile" ;;
  "xslt/libxslt/xsltconfig.h" ) CONFIG_FILES="$CONFIG_FILES xslt/libxslt/xsltconfig.h" ;;
  "xslt/libexslt/Makefile" ) CONFIG_FILES="$CONFIG_FILES xslt/libexslt/Makefile" ;;
  "xslt/libexslt/exsltconfig.h" ) CONFIG_FILES="$CONFIG_FILES xslt/libexslt/exsltconfig.h" ;;
  "xslt/xsltproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES xslt/xsltproc/Makefile" ;;
  "pc/libxslt.pc" ) CONFIG_FILES="$CONFIG_FILES pc/libxslt.pc" ;;
  "pc/libexslt.pc" ) CONFIG_FILES="$CONFIG_FILES pc/libexslt.pc" ;;
  "freetype1/Makefile" ) CONFIG_FILES="$CONFIG_FILES freetype1/Makefile" ;;
  "freetype1/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES freetype1/lib/Makefile" ;;
  "pc/ttf.pc" ) CONFIG_FILES="$CONFIG_FILES pc/ttf.pc" ;;
  "freetype2/Makefile" ) CONFIG_FILES="$CONFIG_FILES freetype2/Makefile" ;;
  "freetype2/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES freetype2/lib/Makefile" ;;
  "freetype2/include/freetype/config/ftoption.h" ) CONFIG_FILES="$CONFIG_FILES freetype2/include/freetype/config/ftoption.h" ;;
  "freetype2/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES freetype2/include/Makefile" ;;
  "pc/freetype2.pc" ) CONFIG_FILES="$CONFIG_FILES pc/freetype2.pc" ;;
  "gd1/Makefile" ) CONFIG_FILES="$CONFIG_FILES gd1/Makefile" ;;
  "pc/gd1.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gd1.pc" ;;
  "gd2/Makefile" ) CONFIG_FILES="$CONFIG_FILES gd2/Makefile" ;;
  "gd2/bdftogd" ) CONFIG_FILES="$CONFIG_FILES gd2/bdftogd" ;;
  "pc/gdlib.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gdlib.pc" ;;
  "fontconfig/Makefile" ) CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
  "fontconfig/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES fontconfig/src/Makefile" ;;
  "fontconfig/fc-cache/Makefile" ) CONFIG_FILES="$CONFIG_FILES fontconfig/fc-cache/Makefile" ;;
  "fontconfig/fc-list/Makefile" ) CONFIG_FILES="$CONFIG_FILES fontconfig/fc-list/Makefile" ;;
  "fontconfig/fontconfig/Makefile" ) CONFIG_FILES="$CONFIG_FILES fontconfig/fontconfig/Makefile" ;;
  "fontconfig/fonts.conf" ) CONFIG_FILES="$CONFIG_FILES fontconfig/fonts.conf" ;;
  "pc/fontconfig.pc" ) CONFIG_FILES="$CONFIG_FILES pc/fontconfig.pc" ;;
  "gtk+/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk+/Makefile" ;;
  "gtk+/glib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk+/glib/Makefile" ;;
  "gtk+/gdk/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk+/gdk/Makefile" ;;
  "gtk+/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk+/docs/Makefile" ;;
  "gtk+/gtk/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk+/gtk/Makefile" ;;
  "gtk+/gtk/po/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk+/gtk/po/Makefile" ;;
  "gtk+/gtk/gtkfeatures.h" ) CONFIG_FILES="$CONFIG_FILES gtk+/gtk/gtkfeatures.h" ;;
  "gtk+/glib/gmoduleconf.h" ) CONFIG_FILES="$CONFIG_FILES gtk+/glib/gmoduleconf.h" ;;
  "pc/glib-1.2.pc" ) CONFIG_FILES="$CONFIG_FILES pc/glib-1.2.pc" ;;
  "pc/gmodule-1.2.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gmodule-1.2.pc" ;;
  "pc/gthread-1.2.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gthread-1.2.pc" ;;
  "pc/gdk-1.2.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gdk-1.2.pc" ;;
  "pc/gtk+-1.2.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gtk+-1.2.pc" ;;
  "gtk2+/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk2+/Makefile" ;;
  "gtk2+/glib/config.h.in" ) CONFIG_FILES="$CONFIG_FILES gtk2+/glib/config.h.in" ;;
  "gtk2+/glib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk2+/glib/Makefile" ;;
  "gtk2+/glib/gmodule/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk2+/glib/gmodule/Makefile" ;;
  "gtk2+/glib/gobject/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk2+/glib/gobject/Makefile" ;;
  "gtk2+/glib/gthread/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk2+/glib/gthread/Makefile" ;;
  "gtk2+/glib/gmodule/gmoduleconf.h" ) CONFIG_FILES="$CONFIG_FILES gtk2+/glib/gmodule/gmoduleconf.h" ;;
  "gtk2+/glib/gobject/glib-mkenums" ) CONFIG_FILES="$CONFIG_FILES gtk2+/glib/gobject/glib-mkenums" ;;
  "gtk2+/glib/po/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk2+/glib/po/Makefile" ;;
  "pc/glib-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/glib-2.0.pc" ;;
  "pc/gmodule-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gmodule-2.0.pc" ;;
  "pc/gobject-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gobject-2.0.pc" ;;
  "pc/gthread-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gthread-2.0.pc" ;;
  "gtk2+/pango/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk2+/pango/Makefile" ;;
  "pc/pango-1.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/pango-1.0.pc" ;;
  "pc/pangox-1.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/pangox-1.0.pc" ;;
  "pc/sysxftlibs" ) CONFIG_FILES="$CONFIG_FILES pc/sysxftlibs" ;;
  "pc/pangoft2-1.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/pangoft2-1.0.pc" ;;
  "pc/pangoxft-1.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/pangoxft-1.0.pc" ;;
  "gtk2+/atk/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk2+/atk/Makefile" ;;
  "gtk2+/atk/po/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk2+/atk/po/Makefile" ;;
  "pc/atk-1.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/atk-1.0.pc" ;;
  "gtk2+/gdk/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk2+/gdk/Makefile" ;;
  "gtk2+/gdk-pixbuf/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk2+/gdk-pixbuf/Makefile" ;;
  "gtk2+/gdk-pixbuf/gdk-pixbuf-features.h" ) CONFIG_FILES="$CONFIG_FILES gtk2+/gdk-pixbuf/gdk-pixbuf-features.h" ;;
  "gtk2+/gtk/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk2+/gtk/Makefile" ;;
  "gtk2+/gtk/po/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk2+/gtk/po/Makefile" ;;
  "gtk2+/gtk/gtkversion.h" ) CONFIG_FILES="$CONFIG_FILES gtk2+/gtk/gtkversion.h" ;;
  "gtk2+/config.h.in" ) CONFIG_FILES="$CONFIG_FILES gtk2+/config.h.in" ;;
  "pc/gtk+-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gtk+-2.0.pc" ;;
  "pc/gdk-pixbuf-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gdk-pixbuf-2.0.pc" ;;
  "pc/gdk-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gdk-2.0.pc" ;;
  "pc/gdk-${gdktarget}-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gdk-${gdktarget}-2.0.pc:pc/gdk-2.0.pc.in" ;;
  "imlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES imlib/Makefile" ;;
  "imlib/Imlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES imlib/Imlib/Makefile" ;;
  "imlib/config/Makefile" ) CONFIG_FILES="$CONFIG_FILES imlib/config/Makefile" ;;
  "pc/imlib.pc" ) CONFIG_FILES="$CONFIG_FILES pc/imlib.pc" ;;
  "imlib/gdk_imlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES imlib/gdk_imlib/Makefile" ;;
  "imlib/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES imlib/utils/Makefile" ;;
  "pc/imlibgdk.pc" ) CONFIG_FILES="$CONFIG_FILES pc/imlibgdk.pc" ;;
  "gdome2/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdome2/Makefile" ;;
  "pc/gdome2.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gdome2.pc" ;;
  "gdome2/gdome-config.1" ) CONFIG_FILES="$CONFIG_FILES gdome2/gdome-config.1" ;;
  "md5/Makefile" ) CONFIG_FILES="$CONFIG_FILES md5/Makefile" ;;
  "pc/md5.pc" ) CONFIG_FILES="$CONFIG_FILES pc/md5.pc" ;;
  "rand/Makefile" ) CONFIG_FILES="$CONFIG_FILES rand/Makefile" ;;
  "pc/truerand.pc" ) CONFIG_FILES="$CONFIG_FILES pc/truerand.pc" ;;
  "pc/openssl.pc" ) CONFIG_FILES="$CONFIG_FILES pc/openssl.pc" ;;
  "slp/Makefile" ) CONFIG_FILES="$CONFIG_FILES slp/Makefile" ;;
  "pc/openslp.pc" ) CONFIG_FILES="$CONFIG_FILES pc/openslp.pc" ;;
  "xmlsec/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmlsec/Makefile" ;;
  "xmlsec/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmlsec/src/Makefile" ;;
  "xmlsec/openssl/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmlsec/openssl/Makefile" ;;
  "xmlsec/apps/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmlsec/apps/Makefile" ;;
  "xmlsec/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmlsec/include/Makefile" ;;
  "xmlsec/include/xmlsec/version.h" ) CONFIG_FILES="$CONFIG_FILES xmlsec/include/xmlsec/version.h" ;;
  "pc/xmlsec.pc" ) CONFIG_FILES="$CONFIG_FILES pc/xmlsec.pc" ;;
  "sasl/Makefile" ) CONFIG_FILES="$CONFIG_FILES sasl/Makefile" ;;
  "sasl/saslauthd/Makefile" ) CONFIG_FILES="$CONFIG_FILES sasl/saslauthd/Makefile" ;;
  "sasl/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES sasl/man/Makefile" ;;
  "pc/sasl2.pc" ) CONFIG_FILES="$CONFIG_FILES pc/sasl2.pc" ;;
  "idl/Makefile" ) CONFIG_FILES="$CONFIG_FILES idl/Makefile" ;;
  "idl/IDL.h" ) CONFIG_FILES="$CONFIG_FILES idl/IDL.h" ;;
  "idl/libIDL.m4" ) CONFIG_FILES="$CONFIG_FILES idl/libIDL.m4" ;;
  "pc/libIDL-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES pc/libIDL-2.0.pc" ;;
  "mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES mm/Makefile" ;;
  "pc/mm.pc" ) CONFIG_FILES="$CONFIG_FILES pc/mm.pc" ;;
  "pcre/Makefile" ) CONFIG_FILES="$CONFIG_FILES pcre/Makefile" ;;
  "pcre/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES pcre/man/Makefile" ;;
  "pcre/pcre.h" ) CONFIG_FILES="$CONFIG_FILES pcre/pcre.h:pcre/pcre.in" ;;
  "pcre/RunTest" ) CONFIG_FILES="$CONFIG_FILES pcre/RunTest:pcre/RunTest.in" ;;
  "pc/pcre-4.3.pc" ) CONFIG_FILES="$CONFIG_FILES pc/pcre-4.3.pc" ;;
  "ghttp/Makefile" ) CONFIG_FILES="$CONFIG_FILES ghttp/Makefile" ;;
  "pc/ghttp.pc" ) CONFIG_FILES="$CONFIG_FILES pc/ghttp.pc" ;;
  "www/Makefile" ) CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
  "pc/libwww.pc" ) CONFIG_FILES="$CONFIG_FILES pc/libwww.pc" ;;
  "curl/Makefile" ) CONFIG_FILES="$CONFIG_FILES curl/Makefile" ;;
  "curl/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES curl/lib/Makefile" ;;
  "curl/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES curl/src/Makefile" ;;
  "curl/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES curl/include/Makefile" ;;
  "pc/curl.pc" ) CONFIG_FILES="$CONFIG_FILES pc/curl.pc" ;;
  "js/Makefile" ) CONFIG_FILES="$CONFIG_FILES js/Makefile" ;;
  "pc/javascript.pc" ) CONFIG_FILES="$CONFIG_FILES pc/javascript.pc" ;;
  "sablot/Makefile" ) CONFIG_FILES="$CONFIG_FILES sablot/Makefile" ;;
  "pc/sablot.pc" ) CONFIG_FILES="$CONFIG_FILES pc/sablot.pc" ;;
  "pkgconfig/Makefile" ) CONFIG_FILES="$CONFIG_FILES pkgconfig/Makefile" ;;
  "pc/Makefile" ) CONFIG_FILES="$CONFIG_FILES pc/Makefile" ;;
  "pc/sysmathlib.pc" ) CONFIG_FILES="$CONFIG_FILES pc/sysmathlib.pc" ;;
  "pc/syssocklib.pc" ) CONFIG_FILES="$CONFIG_FILES pc/syssocklib.pc" ;;
  "pc/gwxlibs.pc" ) CONFIG_FILES="$CONFIG_FILES pc/gwxlibs.pc" ;;
  "gwxcc" ) CONFIG_FILES="$CONFIG_FILES gwxcc" ;;
  "gwxc++" ) CONFIG_FILES="$CONFIG_FILES gwxc++" ;;
  "gtk+/glib/glibconfig.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gtk+/glib/glibconfig.h" ;;
  "gtk2+/glib/glibconfig.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gtk2+/glib/glibconfig.h" ;;
  "gtk2+/gdk/gdkconfig.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gtk2+/gdk/gdkconfig.h" ;;
  "gwxsys.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gwxsys.h" ;;
  "missing/mconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS missing/mconfig.h" ;;
  "expat/expat_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS expat/expat_config.h" ;;
  "jpeg/jconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS jpeg/jconfig.h:jpeg/jconfig.cfg" ;;
  "jasper/include/jasper/jas_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS jasper/include/jasper/jas_config.h" ;;
  "tiff/libtiff/tiffconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS tiff/libtiff/tiffconf.h" ;;
  "mpeg_lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS mpeg_lib/config.h" ;;
  "readline/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS readline/config.h" ;;
  "slang/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS slang/config.h:slang/config.hin" ;;
  "gdbm/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gdbm/autoconf.h" ;;
  "db/db_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS db/db_config.h:db/config.hin" ;;
  "xml2/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xml2/config.h" ;;
  "xml2/include/libxml/xmlversion.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xml2/include/libxml/xmlversion.h" ;;
  "xslt/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xslt/config.h" ;;
  "freetype1/ft_conf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS freetype1/ft_conf.h" ;;
  "freetype2/include/freetype/config/ftconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS freetype2/include/freetype/config/ftconfig.h:freetype2/ftconfig.in" ;;
  "gd2/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gd2/config.h:gd2/config.hin" ;;
  "fontconfig/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fontconfig/config.h" ;;
  "gtk+/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gtk+/config.h" ;;
  "gtk+/glib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gtk+/glib/config.h" ;;
  "gtk2+/glib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gtk2+/glib/config.h" ;;
  "gtk2+/atk/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gtk2+/atk/config.h" ;;
  "gtk2+/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gtk2+/config.h" ;;
  "imlib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS imlib/config.h" ;;
  "gdome2/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gdome2/config.h" ;;
  "xmlsec/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xmlsec/config.h" ;;
  "sasl/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sasl/config.h" ;;
  "sasl/saslauthd/saslauthd.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sasl/saslauthd/saslauthd.h" ;;
  "mm/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS mm/config.h" ;;
  "pcre/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pcre/config.h:pcre/config.in" ;;
  "www/wwwconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS www/wwwconf.h" ;;
  "curl/lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS curl/lib/config.h" ;;
  "curl/lib/ca-bundle.h" ) CONFIG_HEADERS="$CONFIG_HEADERS curl/lib/ca-bundle.h" ;;
  "curl/src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS curl/src/config.h" ;;
  "sablot/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sablot/config.h" ;;
  "pkgconfig/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pkgconfig/config.h" ;;
  *) { { 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
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason to put it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
  trap 'exit_status=$?; rm -rf $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 -q "./confstatXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./confstat$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in ." >&2
   { (exit 1); exit 1; }
}

_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF

#
# 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
  # 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,@GWXVERSION@,$GWXVERSION,;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,@localeprefix@,$localeprefix,;t t
s,@localedir@,$localedir,;t t
s,@localebin@,$localebin,;t t
s,@localelib@,$localelib,;t t
s,@aclocaldir@,$aclocaldir,;t t
s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
s,@SYSVDEFS@,$SYSVDEFS,;t t
s,@CC@,$CC,;t t
s,@CFLAGS@,$CFLAGS,;t t
s,@LDFLAGS@,$LDFLAGS,;t t
s,@CPPFLAGS@,$CPPFLAGS,;t t
s,@ac_ct_CC@,$ac_ct_CC,;t t
s,@EXEEXT@,$EXEEXT,;t t
s,@OBJEXT@,$OBJEXT,;t t
s,@CXX@,$CXX,;t t
s,@CXXFLAGS@,$CXXFLAGS,;t t
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
s,@CPP@,$CPP,;t t
s,@YACC@,$YACC,;t t
s,@LEX@,$LEX,;t t
s,@LEXLIB@,$LEXLIB,;t t
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
s,@EGREP@,$EGREP,;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,@LIBTOOL@,$LIBTOOL,;t t
s,@LN_H@,$LN_H,;t t
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
s,@AWK@,$AWK,;t t
s,@SET_MAKE@,$SET_MAKE,;t t
s,@PERL@,$PERL,;t t
s,@SENDMAIL@,$SENDMAIL,;t t
s,@EDITOR@,$EDITOR,;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,@int8_decl@,$int8_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,@HAVE__BOOL@,$HAVE__BOOL,;t t
s,@STDBOOL_H@,$STDBOOL_H,;t t
s,@X11VERSION@,$X11VERSION,;t t
s,@X_CFLAGS@,$X_CFLAGS,;t t
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
s,@X_LIBS@,$X_LIBS,;t t
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
s,@x_includes@,$x_includes,;t t
s,@x_libraries@,$x_libraries,;t t
s,@GWX_XAW@,$GWX_XAW,;t t
s,@GWX_XM@,$GWX_XM,;t t
s,@MOTIF_CFLAGS@,$MOTIF_CFLAGS,;t t
s,@PCFILES@,$PCFILES,;t t
s,@X_LDFLAGS@,$X_LDFLAGS,;t t
s,@GWX_X_LIBS@,$GWX_X_LIBS,;t t
s,@GWX_XEXT_LIBS@,$GWX_XEXT_LIBS,;t t
s,@GDK_WLIBS@,$GDK_WLIBS,;t t
s,@USE_NLS@,$USE_NLS,;t t
s,@STRIP_DUMMY@,$STRIP_DUMMY,;t t
s,@STRIP_BEGIN@,$STRIP_BEGIN,;t t
s,@STRIP_END@,$STRIP_END,;t t
s,@GWXCFG_DEP_GLIB2@,$GWXCFG_DEP_GLIB2,;t t
s,@TRIO_LIBS@,$TRIO_LIBS,;t t
s,@GWX_TRIO@,$GWX_TRIO,;t t
s,@G_MODULE_SUPPORTED@,$G_MODULE_SUPPORTED,;t t
s,@G_MODULE_IMPL@,$G_MODULE_IMPL,;t t
s,@G_MODULE_LIBS@,$G_MODULE_LIBS,;t t
s,@G_MODULE_LIBS_EXTRA@,$G_MODULE_LIBS_EXTRA,;t t
s,@G_MODULE_PLUGIN_LIBS@,$G_MODULE_PLUGIN_LIBS,;t t
s,@G_MODULE_LDFLAGS@,$G_MODULE_LDFLAGS,;t t
s,@G_MODULE_HAVE_DLERROR@,$G_MODULE_HAVE_DLERROR,;t t
s,@G_MODULE_NEED_USCORE@,$G_MODULE_NEED_USCORE,;t t
s,@G_MODULE_BROKEN_RTLD_GLOBAL@,$G_MODULE_BROKEN_RTLD_GLOBAL,;t t
s,@DLLIBS@,$DLLIBS,;t t
s,@DLLDFLAGS@,$DLLDFLAGS,;t t
s,@SYSSOCKLIBS@,$SYSSOCKLIBS,;t t
s,@SOCKLIBS@,$SOCKLIBS,;t t
s,@MATHLIB@,$MATHLIB,;t t
s,@CRYPT_LIB@,$CRYPT_LIB,;t t
s,@RANDOM_FILE@,$RANDOM_FILE,;t t
s,@ALLOCA@,$ALLOCA,;t t
s,@MAXPATHLEN@,$MAXPATHLEN,;t t
s,@TT_FILE_COMPONENT@,$TT_FILE_COMPONENT,;t t
s,@TT2_FILE_COMPONENT@,$TT2_FILE_COMPONENT,;t t
s,@LIBICONV@,$LIBICONV,;t t
s,@MISSING_FUNCS@,$MISSING_FUNCS,;t t
s,@GLDFLAG_MISSING_L@,$GLDFLAG_MISSING_L,;t t
s,@GLDFLAG_MISSING@,$GLDFLAG_MISSING,;t t
s,@GINCLUDE_MISSING@,$GINCLUDE_MISSING,;t t
s,@GWXCFG_DEP_EXPAT@,$GWXCFG_DEP_EXPAT,;t t
s,@GHAVE_EXPAT@,$GHAVE_EXPAT,;t t
s,@GLDFLAG_EXPAT@,$GLDFLAG_EXPAT,;t t
s,@GLDFLAG_EXPAT_L@,$GLDFLAG_EXPAT_L,;t t
s,@GLDFLAG_DEP_EXPAT@,$GLDFLAG_DEP_EXPAT,;t t
s,@GLDFLAG_DEP_EXPAT_L@,$GLDFLAG_DEP_EXPAT_L,;t t
s,@GINCLUDE_EXPAT@,$GINCLUDE_EXPAT,;t t
s,@EXPAT_MAJOR_VERSION@,$EXPAT_MAJOR_VERSION,;t t
s,@EXPAT_MINOR_VERSION@,$EXPAT_MINOR_VERSION,;t t
s,@EXPAT_EDIT@,$EXPAT_EDIT,;t t
s,@EXPAT_FILESRC@,$EXPAT_FILESRC,;t t
s,@GWXCFG_DEP_GETTEXT@,$GWXCFG_DEP_GETTEXT,;t t
s,@GHAVE_GETTEXT@,$GHAVE_GETTEXT,;t t
s,@GLDFLAG_GETTEXT@,$GLDFLAG_GETTEXT,;t t
s,@GLDFLAG_GETTEXT_L@,$GLDFLAG_GETTEXT_L,;t t
s,@GLDFLAG_DEP_GETTEXT@,$GLDFLAG_DEP_GETTEXT,;t t
s,@GLDFLAG_DEP_GETTEXT_L@,$GLDFLAG_DEP_GETTEXT_L,;t t
s,@GINCLUDE_GETTEXT@,$GINCLUDE_GETTEXT,;t t
s,@GETTEXT_CFLAGS@,$GETTEXT_CFLAGS,;t t
s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
s,@GETTEXT_VERSION@,$GETTEXT_VERSION,;t t
s,@CATOBJEXT@,$CATOBJEXT,;t t
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
s,@DATADIRNAME@,$DATADIRNAME,;t t
s,@I18NLIBS@,$I18NLIBS,;t t
s,@MSGFMT@,$MSGFMT,;t t
s,@GMSGFMT@,$GMSGFMT,;t t
s,@MSGMERGE@,$MSGMERGE,;t t
s,@XGETTEXT@,$XGETTEXT,;t t
s,@GWXMSGFMT@,$GWXMSGFMT,;t t
s,@GWXGMSGFMT@,$GWXGMSGFMT,;t t
s,@GWXMSGMERGE@,$GWXMSGMERGE,;t t
s,@GWXXGETTEXT@,$GWXXGETTEXT,;t t
s,@GWXCFG_DEP_ZLIB@,$GWXCFG_DEP_ZLIB,;t t
s,@GHAVE_ZLIB@,$GHAVE_ZLIB,;t t
s,@GLDFLAG_ZLIB@,$GLDFLAG_ZLIB,;t t
s,@GLDFLAG_ZLIB_L@,$GLDFLAG_ZLIB_L,;t t
s,@GLDFLAG_DEP_ZLIB@,$GLDFLAG_DEP_ZLIB,;t t
s,@GLDFLAG_DEP_ZLIB_L@,$GLDFLAG_DEP_ZLIB_L,;t t
s,@GINCLUDE_ZLIB@,$GINCLUDE_ZLIB,;t t
s,@ZLIBCFLAGS@,$ZLIBCFLAGS,;t t
s,@ZLIBASMS@,$ZLIBASMS,;t t
s,@GWXCFG_DEP_BZIP2@,$GWXCFG_DEP_BZIP2,;t t
s,@GHAVE_BZIP2@,$GHAVE_BZIP2,;t t
s,@GLDFLAG_BZIP2@,$GLDFLAG_BZIP2,;t t
s,@GLDFLAG_BZIP2_L@,$GLDFLAG_BZIP2_L,;t t
s,@GLDFLAG_DEP_BZIP2@,$GLDFLAG_DEP_BZIP2,;t t
s,@GLDFLAG_DEP_BZIP2_L@,$GLDFLAG_DEP_BZIP2_L,;t t
s,@GINCLUDE_BZIP2@,$GINCLUDE_BZIP2,;t t
s,@GWXCFG_DEP_JPEG@,$GWXCFG_DEP_JPEG,;t t
s,@GHAVE_JPEG@,$GHAVE_JPEG,;t t
s,@GLDFLAG_JPEG@,$GLDFLAG_JPEG,;t t
s,@GLDFLAG_JPEG_L@,$GLDFLAG_JPEG_L,;t t
s,@GLDFLAG_DEP_JPEG@,$GLDFLAG_DEP_JPEG,;t t
s,@GLDFLAG_DEP_JPEG_L@,$GLDFLAG_DEP_JPEG_L,;t t
s,@GINCLUDE_JPEG@,$GINCLUDE_JPEG,;t t
s,@CJPEG_PROG@,$CJPEG_PROG,;t t
s,@DJPEG_PROG@,$DJPEG_PROG,;t t
s,@GWXCFG_DEP_JASPER@,$GWXCFG_DEP_JASPER,;t t
s,@GHAVE_JASPER@,$GHAVE_JASPER,;t t
s,@GLDFLAG_JASPER@,$GLDFLAG_JASPER,;t t
s,@GLDFLAG_JASPER_L@,$GLDFLAG_JASPER_L,;t t
s,@GLDFLAG_DEP_JASPER@,$GLDFLAG_DEP_JASPER,;t t
s,@GLDFLAG_DEP_JASPER_L@,$GLDFLAG_DEP_JASPER_L,;t t
s,@GINCLUDE_JASPER@,$GINCLUDE_JASPER,;t t
s,@GWXCFG_DEP_JBIG@,$GWXCFG_DEP_JBIG,;t t
s,@GHAVE_JBIG@,$GHAVE_JBIG,;t t
s,@GLDFLAG_JBIG@,$GLDFLAG_JBIG,;t t
s,@GLDFLAG_JBIG_L@,$GLDFLAG_JBIG_L,;t t
s,@GLDFLAG_DEP_JBIG@,$GLDFLAG_DEP_JBIG,;t t
s,@GLDFLAG_DEP_JBIG_L@,$GLDFLAG_DEP_JBIG_L,;t t
s,@GINCLUDE_JBIG@,$GINCLUDE_JBIG,;t t
s,@GWXCFG_DEP_TIFF@,$GWXCFG_DEP_TIFF,;t t
s,@GHAVE_TIFF@,$GHAVE_TIFF,;t t
s,@GLDFLAG_TIFF@,$GLDFLAG_TIFF,;t t
s,@GLDFLAG_TIFF_L@,$GLDFLAG_TIFF_L,;t t
s,@GLDFLAG_DEP_TIFF@,$GLDFLAG_DEP_TIFF,;t t
s,@GLDFLAG_DEP_TIFF_L@,$GLDFLAG_DEP_TIFF_L,;t t
s,@GINCLUDE_TIFF@,$GINCLUDE_TIFF,;t t
s,@HOSTFILLORDER@,$HOSTFILLORDER,;t t
s,@TIFFPNMPROGS@,$TIFFPNMPROGS,;t t
s,@TIFFPNMSRCS@,$TIFFPNMSRCS,;t t
s,@GWXCFG_DEP_PNG@,$GWXCFG_DEP_PNG,;t t
s,@GHAVE_PNG@,$GHAVE_PNG,;t t
s,@GLDFLAG_PNG@,$GLDFLAG_PNG,;t t
s,@GLDFLAG_PNG_L@,$GLDFLAG_PNG_L,;t t
s,@GLDFLAG_DEP_PNG@,$GLDFLAG_DEP_PNG,;t t
s,@GLDFLAG_DEP_PNG_L@,$GLDFLAG_DEP_PNG_L,;t t
s,@GINCLUDE_PNG@,$GINCLUDE_PNG,;t t
s,@GWXCFG_DEP_LCMS@,$GWXCFG_DEP_LCMS,;t t
s,@GHAVE_LCMS@,$GHAVE_LCMS,;t t
s,@GLDFLAG_LCMS@,$GLDFLAG_LCMS,;t t
s,@GLDFLAG_LCMS_L@,$GLDFLAG_LCMS_L,;t t
s,@GLDFLAG_DEP_LCMS@,$GLDFLAG_DEP_LCMS,;t t
s,@GLDFLAG_DEP_LCMS_L@,$GLDFLAG_DEP_LCMS_L,;t t
s,@GINCLUDE_LCMS@,$GINCLUDE_LCMS,;t t
s,@LCMS_EXTRA@,$LCMS_EXTRA,;t t
s,@GWXCFG_DEP_MNG@,$GWXCFG_DEP_MNG,;t t
s,@GHAVE_MNG@,$GHAVE_MNG,;t t
s,@GLDFLAG_MNG@,$GLDFLAG_MNG,;t t
s,@GLDFLAG_MNG_L@,$GLDFLAG_MNG_L,;t t
s,@GLDFLAG_DEP_MNG@,$GLDFLAG_DEP_MNG,;t t
s,@GLDFLAG_DEP_MNG_L@,$GLDFLAG_DEP_MNG_L,;t t
s,@GINCLUDE_MNG@,$GINCLUDE_MNG,;t t
s,@MNGDEFS@,$MNGDEFS,;t t
s,@GWXCFG_DEP_XPM@,$GWXCFG_DEP_XPM,;t t
s,@GHAVE_XPM@,$GHAVE_XPM,;t t
s,@GLDFLAG_XPM@,$GLDFLAG_XPM,;t t
s,@GLDFLAG_XPM_L@,$GLDFLAG_XPM_L,;t t
s,@GLDFLAG_DEP_XPM@,$GLDFLAG_DEP_XPM,;t t
s,@GLDFLAG_DEP_XPM_L@,$GLDFLAG_DEP_XPM_L,;t t
s,@GINCLUDE_XPM@,$GINCLUDE_XPM,;t t
s,@GWXCFG_DEP_NETPBM@,$GWXCFG_DEP_NETPBM,;t t
s,@GHAVE_NETPBM@,$GHAVE_NETPBM,;t t
s,@GLDFLAG_NETPBM@,$GLDFLAG_NETPBM,;t t
s,@GLDFLAG_NETPBM_L@,$GLDFLAG_NETPBM_L,;t t
s,@GLDFLAG_DEP_NETPBM@,$GLDFLAG_DEP_NETPBM,;t t
s,@GLDFLAG_DEP_NETPBM_L@,$GLDFLAG_DEP_NETPBM_L,;t t
s,@GINCLUDE_NETPBM@,$GINCLUDE_NETPBM,;t t
s,@GWXCFG_DEP_PBM@,$GWXCFG_DEP_PBM,;t t
s,@NETPBM_PATH@,$NETPBM_PATH,;t t
s,@NETPBM_VERSION@,$NETPBM_VERSION,;t t
s,@NETPBMTGT@,$NETPBMTGT,;t t
s,@NETPBMMERGED@,$NETPBMMERGED,;t t
s,@NETPBMJPEG@,$NETPBMJPEG,;t t
s,@NETPBMXSRC@,$NETPBMXSRC,;t t
s,@NETPBMINCS@,$NETPBMINCS,;t t
s,@NETPBMLIBS@,$NETPBMLIBS,;t t
s,@NETPBMXTRA@,$NETPBMXTRA,;t t
s,@GWXCFG_DEP_GIFLIB@,$GWXCFG_DEP_GIFLIB,;t t
s,@GHAVE_GIFLIB@,$GHAVE_GIFLIB,;t t
s,@GLDFLAG_GIFLIB@,$GLDFLAG_GIFLIB,;t t
s,@GLDFLAG_GIFLIB_L@,$GLDFLAG_GIFLIB_L,;t t
s,@GLDFLAG_DEP_GIFLIB@,$GLDFLAG_DEP_GIFLIB,;t t
s,@GLDFLAG_DEP_GIFLIB_L@,$GLDFLAG_DEP_GIFLIB_L,;t t
s,@GINCLUDE_GIFLIB@,$GINCLUDE_GIFLIB,;t t
s,@GIFLIB_DEVX11@,$GIFLIB_DEVX11,;t t
s,@GIFLIB_DEVSGI@,$GIFLIB_DEVSGI,;t t
s,@GWXCFG_DEP_COMPFACE@,$GWXCFG_DEP_COMPFACE,;t t
s,@GHAVE_COMPFACE@,$GHAVE_COMPFACE,;t t
s,@GLDFLAG_COMPFACE@,$GLDFLAG_COMPFACE,;t t
s,@GLDFLAG_COMPFACE_L@,$GLDFLAG_COMPFACE_L,;t t
s,@GLDFLAG_DEP_COMPFACE@,$GLDFLAG_DEP_COMPFACE,;t t
s,@GLDFLAG_DEP_COMPFACE_L@,$GLDFLAG_DEP_COMPFACE_L,;t t
s,@GINCLUDE_COMPFACE@,$GINCLUDE_COMPFACE,;t t
s,@GWXCFG_DEP_MPEGLIB@,$GWXCFG_DEP_MPEGLIB,;t t
s,@GHAVE_MPEGLIB@,$GHAVE_MPEGLIB,;t t
s,@GLDFLAG_MPEGLIB@,$GLDFLAG_MPEGLIB,;t t
s,@GLDFLAG_MPEGLIB_L@,$GLDFLAG_MPEGLIB_L,;t t
s,@GLDFLAG_DEP_MPEGLIB@,$GLDFLAG_DEP_MPEGLIB,;t t
s,@GLDFLAG_DEP_MPEGLIB_L@,$GLDFLAG_DEP_MPEGLIB_L,;t t
s,@GINCLUDE_MPEGLIB@,$GINCLUDE_MPEGLIB,;t t
s,@MPEGLIBDSRCS@,$MPEGLIBDSRCS,;t t
s,@GWXCFG_DEP_READLINE@,$GWXCFG_DEP_READLINE,;t t
s,@GHAVE_READLINE@,$GHAVE_READLINE,;t t
s,@GLDFLAG_READLINE@,$GLDFLAG_READLINE,;t t
s,@GLDFLAG_READLINE_L@,$GLDFLAG_READLINE_L,;t t
s,@GLDFLAG_DEP_READLINE@,$GLDFLAG_DEP_READLINE,;t t
s,@GLDFLAG_DEP_READLINE_L@,$GLDFLAG_DEP_READLINE_L,;t t
s,@GINCLUDE_READLINE@,$GINCLUDE_READLINE,;t t
s,@GINCLUDE_HISTORY@,$GINCLUDE_HISTORY,;t t
s,@GLDFLAG_HISTORY@,$GLDFLAG_HISTORY,;t t
s,@GLDFLAG_HISTORY_L@,$GLDFLAG_HISTORY_L,;t t
s,@GLDFLAG_DEP_HISTORY@,$GLDFLAG_DEP_HISTORY,;t t
s,@GLDFLAG_DEP_HISTORY_L@,$GLDFLAG_DEP_HISTORY_L,;t t
s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
s,@GWXCFG_DEP_XAW3D@,$GWXCFG_DEP_XAW3D,;t t
s,@GHAVE_XAW3D@,$GHAVE_XAW3D,;t t
s,@GLDFLAG_XAW3D@,$GLDFLAG_XAW3D,;t t
s,@GLDFLAG_XAW3D_L@,$GLDFLAG_XAW3D_L,;t t
s,@GLDFLAG_DEP_XAW3D@,$GLDFLAG_DEP_XAW3D,;t t
s,@GLDFLAG_DEP_XAW3D_L@,$GLDFLAG_DEP_XAW3D_L,;t t
s,@GINCLUDE_XAW3D@,$GINCLUDE_XAW3D,;t t
s,@GWXCFG_DEP_SLANG@,$GWXCFG_DEP_SLANG,;t t
s,@GHAVE_SLANG@,$GHAVE_SLANG,;t t
s,@GLDFLAG_SLANG@,$GLDFLAG_SLANG,;t t
s,@GLDFLAG_SLANG_L@,$GLDFLAG_SLANG_L,;t t
s,@GLDFLAG_DEP_SLANG@,$GLDFLAG_DEP_SLANG,;t t
s,@GLDFLAG_DEP_SLANG_L@,$GLDFLAG_DEP_SLANG_L,;t t
s,@GINCLUDE_SLANG@,$GINCLUDE_SLANG,;t t
s,@slang_major_version@,$slang_major_version,;t t
s,@slang_minor_version@,$slang_minor_version,;t t
s,@GWXCFG_DEP_GDBM@,$GWXCFG_DEP_GDBM,;t t
s,@GHAVE_GDBM@,$GHAVE_GDBM,;t t
s,@GLDFLAG_GDBM@,$GLDFLAG_GDBM,;t t
s,@GLDFLAG_GDBM_L@,$GLDFLAG_GDBM_L,;t t
s,@GLDFLAG_DEP_GDBM@,$GLDFLAG_DEP_GDBM,;t t
s,@GLDFLAG_DEP_GDBM_L@,$GLDFLAG_DEP_GDBM_L,;t t
s,@GINCLUDE_GDBM@,$GINCLUDE_GDBM,;t t
s,@GWXCFG_DEP_DB@,$GWXCFG_DEP_DB,;t t
s,@GHAVE_DB@,$GHAVE_DB,;t t
s,@GLDFLAG_DB@,$GLDFLAG_DB,;t t
s,@GLDFLAG_DB_L@,$GLDFLAG_DB_L,;t t
s,@GLDFLAG_DEP_DB@,$GLDFLAG_DEP_DB,;t t
s,@GLDFLAG_DEP_DB_L@,$GLDFLAG_DEP_DB_L,;t t
s,@GINCLUDE_DB@,$GINCLUDE_DB,;t t
s,@db_int_def@,$db_int_def,;t t
s,@cxx_have_stdheaders@,$cxx_have_stdheaders,;t t
s,@DBXTRASRC@,$DBXTRASRC,;t t
s,@DBXTRAHDR@,$DBXTRAHDR,;t t
s,@DBXTRAHPP@,$DBXTRAHPP,;t t
s,@DBXTRATGT@,$DBXTRATGT,;t t
s,@DBXTRAPRG@,$DBXTRAPRG,;t t
s,@DBXTRAPRGSRC@,$DBXTRAPRGSRC,;t t
s,@DBRPCLIB@,$DBRPCLIB,;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_RELEASE_DATE@,$DB_RELEASE_DATE,;t t
s,@DB_VERSION_STRING@,$DB_VERSION_STRING,;t t
s,@DB_VERSION_UNIQUE_NAME@,$DB_VERSION_UNIQUE_NAME,;t t
s,@DBLIBS@,$DBLIBS,;t t
s,@GLDFLAG_DBCXX@,$GLDFLAG_DBCXX,;t t
s,@GLDFLAG_DBCXX_L@,$GLDFLAG_DBCXX_L,;t t
s,@GLDFLAG_DEP_DBCXX@,$GLDFLAG_DEP_DBCXX,;t t
s,@GLDFLAG_DEP_DBCXX_L@,$GLDFLAG_DEP_DBCXX_L,;t t
s,@GWXCFG_DEP_XML2@,$GWXCFG_DEP_XML2,;t t
s,@GHAVE_XML2@,$GHAVE_XML2,;t t
s,@GLDFLAG_XML2@,$GLDFLAG_XML2,;t t
s,@GLDFLAG_XML2_L@,$GLDFLAG_XML2_L,;t t
s,@GLDFLAG_DEP_XML2@,$GLDFLAG_DEP_XML2,;t t
s,@GLDFLAG_DEP_XML2_L@,$GLDFLAG_DEP_XML2_L,;t t
s,@GINCLUDE_XML2@,$GINCLUDE_XML2,;t t
s,@LIBXML_VERSION@,$LIBXML_VERSION,;t t
s,@LIBXML_VERSION_NUMBER@,$LIBXML_VERSION_NUMBER,;t t
s,@XML2_CFLAGS@,$XML2_CFLAGS,;t t
s,@GWXCFG_DEP_XSLT@,$GWXCFG_DEP_XSLT,;t t
s,@GHAVE_XSLT@,$GHAVE_XSLT,;t t
s,@GLDFLAG_XSLT@,$GLDFLAG_XSLT,;t t
s,@GLDFLAG_XSLT_L@,$GLDFLAG_XSLT_L,;t t
s,@GLDFLAG_DEP_XSLT@,$GLDFLAG_DEP_XSLT,;t t
s,@GLDFLAG_DEP_XSLT_L@,$GLDFLAG_DEP_XSLT_L,;t t
s,@GINCLUDE_XSLT@,$GINCLUDE_XSLT,;t t
s,@GINCLUDE_EXSLT@,$GINCLUDE_EXSLT,;t t
s,@GLDFLAG_EXSLT@,$GLDFLAG_EXSLT,;t t
s,@GLDFLAG_EXSLT_L@,$GLDFLAG_EXSLT_L,;t t
s,@GLDFLAG_DEP_EXSLT@,$GLDFLAG_DEP_EXSLT,;t t
s,@GLDFLAG_DEP_EXSLT_L@,$GLDFLAG_DEP_EXSLT_L,;t t
s,@XSLTVERSION@,$XSLTVERSION,;t t
s,@EXSLTVERSION@,$EXSLTVERSION,;t t
s,@LIBXSLT_VERSION_NUMBER@,$LIBXSLT_VERSION_NUMBER,;t t
s,@LIBEXSLT_VERSION_NUMBER@,$LIBEXSLT_VERSION_NUMBER,;t t
s,@WITH_XSLT_DEBUG@,$WITH_XSLT_DEBUG,;t t
s,@WITH_DEBUGGER@,$WITH_DEBUGGER,;t t
s,@WITH_XSLT_MEM_DEBUG@,$WITH_XSLT_MEM_DEBUG,;t t
s,@GWXCFG_DEP_FREETYPE1@,$GWXCFG_DEP_FREETYPE1,;t t
s,@GHAVE_FREETYPE1@,$GHAVE_FREETYPE1,;t t
s,@GLDFLAG_FREETYPE1@,$GLDFLAG_FREETYPE1,;t t
s,@GLDFLAG_FREETYPE1_L@,$GLDFLAG_FREETYPE1_L,;t t
s,@GLDFLAG_DEP_FREETYPE1@,$GLDFLAG_DEP_FREETYPE1,;t t
s,@GLDFLAG_DEP_FREETYPE1_L@,$GLDFLAG_DEP_FREETYPE1_L,;t t
s,@GINCLUDE_FREETYPE1@,$GINCLUDE_FREETYPE1,;t t
s,@TT_EXTEND_SRC@,$TT_EXTEND_SRC,;t t
s,@TT_EXTEND_HDR@,$TT_EXTEND_HDR,;t t
s,@TTF_VERSION@,$TTF_VERSION,;t t
s,@GWXCFG_DEP_FREETYPE2@,$GWXCFG_DEP_FREETYPE2,;t t
s,@GHAVE_FREETYPE2@,$GHAVE_FREETYPE2,;t t
s,@GLDFLAG_FREETYPE2@,$GLDFLAG_FREETYPE2,;t t
s,@GLDFLAG_FREETYPE2_L@,$GLDFLAG_FREETYPE2_L,;t t
s,@GLDFLAG_DEP_FREETYPE2@,$GLDFLAG_DEP_FREETYPE2,;t t
s,@GLDFLAG_DEP_FREETYPE2_L@,$GLDFLAG_DEP_FREETYPE2_L,;t t
s,@GINCLUDE_FREETYPE2@,$GINCLUDE_FREETYPE2,;t t
s,@FREETYPE_VERSION@,$FREETYPE_VERSION,;t t
s,@FREETYPE_LTVERSION@,$FREETYPE_LTVERSION,;t t
s,@GWX_FT2_FORCE_INT64@,$GWX_FT2_FORCE_INT64,;t t
s,@GWX_FT2_GZIP@,$GWX_FT2_GZIP,;t t
s,@GWX_FT2_PS_NAMES@,$GWX_FT2_PS_NAMES,;t t
s,@GWX_FT2_ADOBE_NAMES@,$GWX_FT2_ADOBE_NAMES,;t t
s,@GWX_FT2_INCREMENTAL@,$GWX_FT2_INCREMENTAL,;t t
s,@GWX_FT2_DEBUG_ERROR@,$GWX_FT2_DEBUG_ERROR,;t t
s,@GWX_FT2_DEBUG_TRACE@,$GWX_FT2_DEBUG_TRACE,;t t
s,@GWX_FT2_DEBUG_MEM@,$GWX_FT2_DEBUG_MEM,;t t
s,@GWX_FT2_MODULE_ERRS@,$GWX_FT2_MODULE_ERRS,;t t
s,@GWX_FT2_EMB_BITMAPS@,$GWX_FT2_EMB_BITMAPS,;t t
s,@GWX_FT2_TTPSNAMES@,$GWX_FT2_TTPSNAMES,;t t
s,@GWX_FT2_TTSFNTNAMES@,$GWX_FT2_TTSFNTNAMES,;t t
s,@GWX_FT2_BYTECODE@,$GWX_FT2_BYTECODE,;t t
s,@GWX_FT2_NO_AFM@,$GWX_FT2_NO_AFM,;t t
s,@GWX_FT2_NO_MULTIMASTER@,$GWX_FT2_NO_MULTIMASTER,;t t
s,@GWXCFG_DEP_GD1@,$GWXCFG_DEP_GD1,;t t
s,@GHAVE_GD1@,$GHAVE_GD1,;t t
s,@GLDFLAG_GD1@,$GLDFLAG_GD1,;t t
s,@GLDFLAG_GD1_L@,$GLDFLAG_GD1_L,;t t
s,@GLDFLAG_DEP_GD1@,$GLDFLAG_DEP_GD1,;t t
s,@GLDFLAG_DEP_GD1_L@,$GLDFLAG_DEP_GD1_L,;t t
s,@GINCLUDE_GD1@,$GINCLUDE_GD1,;t t
s,@GD1VERSION@,$GD1VERSION,;t t
s,@GD1UNDEF@,$GD1UNDEF,;t t
s,@GD1INCLUDES@,$GD1INCLUDES,;t t
s,@GWXCFG_DEP_GD2@,$GWXCFG_DEP_GD2,;t t
s,@GHAVE_GD2@,$GHAVE_GD2,;t t
s,@GLDFLAG_GD2@,$GLDFLAG_GD2,;t t
s,@GLDFLAG_GD2_L@,$GLDFLAG_GD2_L,;t t
s,@GLDFLAG_DEP_GD2@,$GLDFLAG_DEP_GD2,;t t
s,@GLDFLAG_DEP_GD2_L@,$GLDFLAG_DEP_GD2_L,;t t
s,@GINCLUDE_GD2@,$GINCLUDE_GD2,;t t
s,@GD2VERSION@,$GD2VERSION,;t t
s,@GDLIB_MAJOR@,$GDLIB_MAJOR,;t t
s,@GDLIB_MINOR@,$GDLIB_MINOR,;t t
s,@GDLIB_REVISION@,$GDLIB_REVISION,;t t
s,@GD2UNDEF@,$GD2UNDEF,;t t
s,@GD2INCLUDES@,$GD2INCLUDES,;t t
s,@GWXCFG_DEP_FONTCONFIG@,$GWXCFG_DEP_FONTCONFIG,;t t
s,@GHAVE_FONTCONFIG@,$GHAVE_FONTCONFIG,;t t
s,@GLDFLAG_FONTCONFIG@,$GLDFLAG_FONTCONFIG,;t t
s,@GLDFLAG_FONTCONFIG_L@,$GLDFLAG_FONTCONFIG_L,;t t
s,@GLDFLAG_DEP_FONTCONFIG@,$GLDFLAG_DEP_FONTCONFIG,;t t
s,@GLDFLAG_DEP_FONTCONFIG_L@,$GLDFLAG_DEP_FONTCONFIG_L,;t t
s,@GINCLUDE_FONTCONFIG@,$GINCLUDE_FONTCONFIG,;t t
s,@FC_DEFAULT_FONTS@,$FC_DEFAULT_FONTS,;t t
s,@FONTCONFDIR@,$FONTCONFDIR,;t t
s,@FONTCONFIG_VERSION@,$FONTCONFIG_VERSION,;t t
s,@GWXCFG_DEP_GTKPLUS1@,$GWXCFG_DEP_GTKPLUS1,;t t
s,@GHAVE_GTKPLUS1@,$GHAVE_GTKPLUS1,;t t
s,@GLDFLAG_GTKPLUS1@,$GLDFLAG_GTKPLUS1,;t t
s,@GLDFLAG_GTKPLUS1_L@,$GLDFLAG_GTKPLUS1_L,;t t
s,@GLDFLAG_DEP_GTKPLUS1@,$GLDFLAG_DEP_GTKPLUS1,;t t
s,@GLDFLAG_DEP_GTKPLUS1_L@,$GLDFLAG_DEP_GTKPLUS1_L,;t t
s,@GINCLUDE_GTKPLUS1@,$GINCLUDE_GTKPLUS1,;t t
s,@GWXCFG_DEP_GTKPLUS2@,$GWXCFG_DEP_GTKPLUS2,;t t
s,@GHAVE_GTKPLUS2@,$GHAVE_GTKPLUS2,;t t
s,@GLDFLAG_GTKPLUS2@,$GLDFLAG_GTKPLUS2,;t t
s,@GLDFLAG_GTKPLUS2_L@,$GLDFLAG_GTKPLUS2_L,;t t
s,@GLDFLAG_DEP_GTKPLUS2@,$GLDFLAG_DEP_GTKPLUS2,;t t
s,@GLDFLAG_DEP_GTKPLUS2_L@,$GLDFLAG_DEP_GTKPLUS2_L,;t t
s,@GINCLUDE_GTKPLUS2@,$GINCLUDE_GTKPLUS2,;t t
s,@GTKISSMALL@,$GTKISSMALL,;t t
s,@GTHREAD_COMPILE_IMPL_DEFINES@,$GTHREAD_COMPILE_IMPL_DEFINES,;t t
s,@G_THREAD_CFLAGS@,$G_THREAD_CFLAGS,;t t
s,@G_THREAD_LIBS@,$G_THREAD_LIBS,;t t
s,@G_THREAD_LIBS_FOR_GTHREAD@,$G_THREAD_LIBS_FOR_GTHREAD,;t t
s,@G_THREAD_LIBS_EXTRA@,$G_THREAD_LIBS_EXTRA,;t t
s,@CFLAGS_XIM@,$CFLAGS_XIM,;t t
s,@GINCLUDE_GDK1@,$GINCLUDE_GDK1,;t t
s,@GINCLUDE_GLIB1@,$GINCLUDE_GLIB1,;t t
s,@GLDFLAG_GLIB1@,$GLDFLAG_GLIB1,;t t
s,@GLDFLAG_GLIB1_L@,$GLDFLAG_GLIB1_L,;t t
s,@GLDFLAG_DEP_GLIB1@,$GLDFLAG_DEP_GLIB1,;t t
s,@GLDFLAG_DEP_GLIB1_L@,$GLDFLAG_DEP_GLIB1_L,;t t
s,@GLDFLAG_GMODULE1@,$GLDFLAG_GMODULE1,;t t
s,@GLDFLAG_GMODULE1_L@,$GLDFLAG_GMODULE1_L,;t t
s,@GLDFLAG_DEP_GMODULE1@,$GLDFLAG_DEP_GMODULE1,;t t
s,@GLDFLAG_DEP_GMODULE1_L@,$GLDFLAG_DEP_GMODULE1_L,;t t
s,@GLDFLAG_GTHREAD1@,$GLDFLAG_GTHREAD1,;t t
s,@GLDFLAG_GTHREAD1_L@,$GLDFLAG_GTHREAD1_L,;t t
s,@GLDFLAG_DEP_GTHREAD1@,$GLDFLAG_DEP_GTHREAD1,;t t
s,@GLDFLAG_DEP_GTHREAD1_L@,$GLDFLAG_DEP_GTHREAD1_L,;t t
s,@GLDFLAG_GDK1@,$GLDFLAG_GDK1,;t t
s,@GLDFLAG_GDK1_L@,$GLDFLAG_GDK1_L,;t t
s,@GLDFLAG_DEP_GDK1@,$GLDFLAG_DEP_GDK1,;t t
s,@GLDFLAG_DEP_GDK1_L@,$GLDFLAG_DEP_GDK1_L,;t t
s,@GTK1_MAJOR_VERSION@,$GTK1_MAJOR_VERSION,;t t
s,@GTK1_MINOR_VERSION@,$GTK1_MINOR_VERSION,;t t
s,@GTK1_MICRO_VERSION@,$GTK1_MICRO_VERSION,;t t
s,@GTK1_INTERFACE_AGE@,$GTK1_INTERFACE_AGE,;t t
s,@GTK1_BINARY_AGE@,$GTK1_BINARY_AGE,;t t
s,@GTK1_VERSION@,$GTK1_VERSION,;t t
s,@GLIB1_MAJOR_VERSION@,$GLIB1_MAJOR_VERSION,;t t
s,@GLIB1_MINOR_VERSION@,$GLIB1_MINOR_VERSION,;t t
s,@GLIB1_MICRO_VERSION@,$GLIB1_MICRO_VERSION,;t t
s,@GLIB1_INTERFACE_AGE@,$GLIB1_INTERFACE_AGE,;t t
s,@GLIB1_BINARY_AGE@,$GLIB1_BINARY_AGE,;t t
s,@GLIB1_VERSION@,$GLIB1_VERSION,;t t
s,@IMLIB_GDK@,$IMLIB_GDK,;t t
s,@GTK1GETTEXT_PACKAGE@,$GTK1GETTEXT_PACKAGE,;t t
s,@GLIB2_MAJOR_VERSION@,$GLIB2_MAJOR_VERSION,;t t
s,@GLIB2_MINOR_VERSION@,$GLIB2_MINOR_VERSION,;t t
s,@GLIB2_MICRO_VERSION@,$GLIB2_MICRO_VERSION,;t t
s,@GLIB2_INTERFACE_AGE@,$GLIB2_INTERFACE_AGE,;t t
s,@GLIB2_BINARY_AGE@,$GLIB2_BINARY_AGE,;t t
s,@GLIB2_VERSION@,$GLIB2_VERSION,;t t
s,@GINCLUDE_GLIB2@,$GINCLUDE_GLIB2,;t t
s,@GINCLUDE_GMODULE2@,$GINCLUDE_GMODULE2,;t t
s,@GINCLUDE_GOBJECT2@,$GINCLUDE_GOBJECT2,;t t
s,@GINCLUDE_GTHREAD2@,$GINCLUDE_GTHREAD2,;t t
s,@GLDFLAG_GLIB2@,$GLDFLAG_GLIB2,;t t
s,@GLDFLAG_GLIB2_L@,$GLDFLAG_GLIB2_L,;t t
s,@GLDFLAG_DEP_GLIB2@,$GLDFLAG_DEP_GLIB2,;t t
s,@GLDFLAG_DEP_GLIB2_L@,$GLDFLAG_DEP_GLIB2_L,;t t
s,@GLDFLAG_GMODULE2@,$GLDFLAG_GMODULE2,;t t
s,@GLDFLAG_GMODULE2_L@,$GLDFLAG_GMODULE2_L,;t t
s,@GLDFLAG_DEP_GMODULE2@,$GLDFLAG_DEP_GMODULE2,;t t
s,@GLDFLAG_DEP_GMODULE2_L@,$GLDFLAG_DEP_GMODULE2_L,;t t
s,@GLDFLAG_GTHREAD2@,$GLDFLAG_GTHREAD2,;t t
s,@GLDFLAG_GTHREAD2_L@,$GLDFLAG_GTHREAD2_L,;t t
s,@GLDFLAG_DEP_GTHREAD2@,$GLDFLAG_DEP_GTHREAD2,;t t
s,@GLDFLAG_DEP_GTHREAD2_L@,$GLDFLAG_DEP_GTHREAD2_L,;t t
s,@GLDFLAG_GOBJECT2@,$GLDFLAG_GOBJECT2,;t t
s,@GLDFLAG_GOBJECT2_L@,$GLDFLAG_GOBJECT2_L,;t t
s,@GLDFLAG_DEP_GOBJECT2@,$GLDFLAG_DEP_GOBJECT2,;t t
s,@GLDFLAG_DEP_GOBJECT2_L@,$GLDFLAG_DEP_GOBJECT2_L,;t t
s,@ENABLE_GC_FRIENDLY@,$ENABLE_GC_FRIENDLY,;t t
s,@DISABLE_MEM_POOLS@,$DISABLE_MEM_POOLS,;t t
s,@GLIB2GETTEXT_PACKAGE@,$GLIB2GETTEXT_PACKAGE,;t t
s,@GLIB2_LOCALE_DIR@,$GLIB2_LOCALE_DIR,;t t
s,@ICONV_LIBS@,$ICONV_LIBS,;t t
s,@PANGO_MAJOR_VERSION@,$PANGO_MAJOR_VERSION,;t t
s,@PANGO_MINOR_VERSION@,$PANGO_MINOR_VERSION,;t t
s,@PANGO_MICRO_VERSION@,$PANGO_MICRO_VERSION,;t t
s,@PANGO_VERSION@,$PANGO_VERSION,;t t
s,@PANGO_BINARY_AGE@,$PANGO_BINARY_AGE,;t t
s,@PANGO_INTERFACE_AGE@,$PANGO_INTERFACE_AGE,;t t
s,@PANGO_API_VERSION@,$PANGO_API_VERSION,;t t
s,@PANGO_MODULE_VERSION@,$PANGO_MODULE_VERSION,;t t
s,@GWXCFG_DEP_XFT@,$GWXCFG_DEP_XFT,;t t
s,@XFT_LIBS@,$XFT_LIBS,;t t
s,@PANGOFT2@,$PANGOFT2,;t t
s,@PANGOXFT@,$PANGOXFT,;t t
s,@GWXCFG_DEP_PANGO@,$GWXCFG_DEP_PANGO,;t t
s,@GWXCFG_DEP_PANGOX@,$GWXCFG_DEP_PANGOX,;t t
s,@GWXCFG_DEP_PANGOXFT@,$GWXCFG_DEP_PANGOXFT,;t t
s,@GWXCFG_DEP_PANGOFT2@,$GWXCFG_DEP_PANGOFT2,;t t
s,@GLDFLAG_PANGO@,$GLDFLAG_PANGO,;t t
s,@GLDFLAG_PANGO_L@,$GLDFLAG_PANGO_L,;t t
s,@GLDFLAG_DEP_PANGO@,$GLDFLAG_DEP_PANGO,;t t
s,@GLDFLAG_DEP_PANGO_L@,$GLDFLAG_DEP_PANGO_L,;t t
s,@GLDFLAG_PANGOX11@,$GLDFLAG_PANGOX11,;t t
s,@GLDFLAG_PANGOX11_L@,$GLDFLAG_PANGOX11_L,;t t
s,@GLDFLAG_DEP_PANGOX11@,$GLDFLAG_DEP_PANGOX11,;t t
s,@GLDFLAG_DEP_PANGOX11_L@,$GLDFLAG_DEP_PANGOX11_L,;t t
s,@GLDFLAG_PANGOXFT@,$GLDFLAG_PANGOXFT,;t t
s,@GLDFLAG_PANGOXFT_L@,$GLDFLAG_PANGOXFT_L,;t t
s,@GLDFLAG_DEP_PANGOXFT@,$GLDFLAG_DEP_PANGOXFT,;t t
s,@GLDFLAG_DEP_PANGOXFT_L@,$GLDFLAG_DEP_PANGOXFT_L,;t t
s,@GLDFLAG_PANGOFT2@,$GLDFLAG_PANGOFT2,;t t
s,@GLDFLAG_PANGOFT2_L@,$GLDFLAG_PANGOFT2_L,;t t
s,@GLDFLAG_DEP_PANGOFT2@,$GLDFLAG_DEP_PANGOFT2,;t t
s,@GLDFLAG_DEP_PANGOFT2_L@,$GLDFLAG_DEP_PANGOFT2_L,;t t
s,@GINCLUDE_PANGO@,$GINCLUDE_PANGO,;t t
s,@ATK_MAJOR_VERSION@,$ATK_MAJOR_VERSION,;t t
s,@ATK_MINOR_VERSION@,$ATK_MINOR_VERSION,;t t
s,@ATK_MICRO_VERSION@,$ATK_MICRO_VERSION,;t t
s,@ATK_VERSION@,$ATK_VERSION,;t t
s,@ATK_API_VERSION@,$ATK_API_VERSION,;t t
s,@ATK_INTERFACE_AGE@,$ATK_INTERFACE_AGE,;t t
s,@ATK_BINARY_AGE@,$ATK_BINARY_AGE,;t t
s,@GWXCFG_DEP_ATK@,$GWXCFG_DEP_ATK,;t t
s,@GLDFLAG_ATK@,$GLDFLAG_ATK,;t t
s,@GLDFLAG_ATK_L@,$GLDFLAG_ATK_L,;t t
s,@GLDFLAG_DEP_ATK@,$GLDFLAG_DEP_ATK,;t t
s,@GLDFLAG_DEP_ATK_L@,$GLDFLAG_DEP_ATK_L,;t t
s,@GINCLUDE_ATK@,$GINCLUDE_ATK,;t t
s,@ATKGETTEXT_PACKAGE@,$ATKGETTEXT_PACKAGE,;t t
s,@GTK2_MAJOR_VERSION@,$GTK2_MAJOR_VERSION,;t t
s,@GTK2_MINOR_VERSION@,$GTK2_MINOR_VERSION,;t t
s,@GTK2_MICRO_VERSION@,$GTK2_MICRO_VERSION,;t t
s,@GTK2_INTERFACE_AGE@,$GTK2_INTERFACE_AGE,;t t
s,@GTK2_BINARY_AGE@,$GTK2_BINARY_AGE,;t t
s,@GTK2_API_VERSION@,$GTK2_API_VERSION,;t t
s,@GTK2_VERSION@,$GTK2_VERSION,;t t
s,@GTK2_BINARY_VERSION@,$GTK2_BINARY_VERSION,;t t
s,@GDK_PIXBUF_MAJOR@,$GDK_PIXBUF_MAJOR,;t t
s,@GDK_PIXBUF_MINOR@,$GDK_PIXBUF_MINOR,;t t
s,@GDK_PIXBUF_MICRO@,$GDK_PIXBUF_MICRO,;t t
s,@GDK_PIXBUF_VERSION@,$GDK_PIXBUF_VERSION,;t t
s,@GTK2GETTEXT_PACKAGE@,$GTK2GETTEXT_PACKAGE,;t t
s,@GTK2_LOCALE_DIR@,$GTK2_LOCALE_DIR,;t t
s,@GDKMMX@,$GDKMMX,;t t
s,@gdktarget@,$gdktarget,;t t
s,@MKGDKTARGET@,$MKGDKTARGET,;t t
s,@GDKFBMGR@,$GDKFBMGR,;t t
s,@GWXCFG_DEP_GDK2PIXBUF@,$GWXCFG_DEP_GDK2PIXBUF,;t t
s,@GWXCFG_DEP_GDK2@,$GWXCFG_DEP_GDK2,;t t
s,@GLDFLAG_GDK2PIXBUF@,$GLDFLAG_GDK2PIXBUF,;t t
s,@GLDFLAG_GDK2PIXBUF_L@,$GLDFLAG_GDK2PIXBUF_L,;t t
s,@GLDFLAG_DEP_GDK2PIXBUF@,$GLDFLAG_DEP_GDK2PIXBUF,;t t
s,@GLDFLAG_DEP_GDK2PIXBUF_L@,$GLDFLAG_DEP_GDK2PIXBUF_L,;t t
s,@GLDFLAG_GDK2X11@,$GLDFLAG_GDK2X11,;t t
s,@GLDFLAG_GDK2X11_L@,$GLDFLAG_GDK2X11_L,;t t
s,@GLDFLAG_DEP_GDK2X11@,$GLDFLAG_DEP_GDK2X11,;t t
s,@GLDFLAG_DEP_GDK2X11_L@,$GLDFLAG_DEP_GDK2X11_L,;t t
s,@GLDFLAG_GDK2LFB@,$GLDFLAG_GDK2LFB,;t t
s,@GLDFLAG_GDK2LFB_L@,$GLDFLAG_GDK2LFB_L,;t t
s,@GLDFLAG_DEP_GDK2LFB@,$GLDFLAG_DEP_GDK2LFB,;t t
s,@GLDFLAG_DEP_GDK2LFB_L@,$GLDFLAG_DEP_GDK2LFB_L,;t t
s,@GLDFLAG_GDK2@,$GLDFLAG_GDK2,;t t
s,@GLDFLAG_GDK2_L@,$GLDFLAG_GDK2_L,;t t
s,@GLDFLAG_DEP_GDK2@,$GLDFLAG_DEP_GDK2,;t t
s,@GLDFLAG_DEP_GDK2_L@,$GLDFLAG_DEP_GDK2_L,;t t
s,@GINCLUDE_GDK2@,$GINCLUDE_GDK2,;t t
s,@GINCLUDE_GDK2PIXBUF@,$GINCLUDE_GDK2PIXBUF,;t t
s,@xinput_progs@,$xinput_progs,;t t
s,@GDK2XISRCS@,$GDK2XISRCS,;t t
s,@GTK2XIMODULE@,$GTK2XIMODULE,;t t
s,@GLDFLAG_GTKPLUS@,$GLDFLAG_GTKPLUS,;t t
s,@GLDFLAG_GTKPLUS_L@,$GLDFLAG_GTKPLUS_L,;t t
s,@GLDFLAG_DEP_GTKPLUS@,$GLDFLAG_DEP_GTKPLUS,;t t
s,@GLDFLAG_DEP_GTKPLUS_L@,$GLDFLAG_DEP_GTKPLUS_L,;t t
s,@GINCLUDE_GTKPLUS@,$GINCLUDE_GTKPLUS,;t t
s,@GLDFLAG_GDK@,$GLDFLAG_GDK,;t t
s,@GLDFLAG_GDK_L@,$GLDFLAG_GDK_L,;t t
s,@GLDFLAG_DEP_GDK@,$GLDFLAG_DEP_GDK,;t t
s,@GLDFLAG_DEP_GDK_L@,$GLDFLAG_DEP_GDK_L,;t t
s,@GINCLUDE_GDK@,$GINCLUDE_GDK,;t t
s,@GLDFLAG_GLIB@,$GLDFLAG_GLIB,;t t
s,@GLDFLAG_GLIB_L@,$GLDFLAG_GLIB_L,;t t
s,@GLDFLAG_DEP_GLIB@,$GLDFLAG_DEP_GLIB,;t t
s,@GLDFLAG_DEP_GLIB_L@,$GLDFLAG_DEP_GLIB_L,;t t
s,@GINCLUDE_GLIB@,$GINCLUDE_GLIB,;t t
s,@GLDFLAG_GMODULE@,$GLDFLAG_GMODULE,;t t
s,@GLDFLAG_GMODULE_L@,$GLDFLAG_GMODULE_L,;t t
s,@GLDFLAG_DEP_GMODULE@,$GLDFLAG_DEP_GMODULE,;t t
s,@GLDFLAG_DEP_GMODULE_L@,$GLDFLAG_DEP_GMODULE_L,;t t
s,@GLDFLAG_GTHREAD@,$GLDFLAG_GTHREAD,;t t
s,@GLDFLAG_GTHREAD_L@,$GLDFLAG_GTHREAD_L,;t t
s,@GLDFLAG_DEP_GTHREAD@,$GLDFLAG_DEP_GTHREAD,;t t
s,@GLDFLAG_DEP_GTHREAD_L@,$GLDFLAG_DEP_GTHREAD_L,;t t
s,@GLDFLAG_GOBJECT@,$GLDFLAG_GOBJECT,;t t
s,@GLDFLAG_GOBJECT_L@,$GLDFLAG_GOBJECT_L,;t t
s,@GLDFLAG_DEP_GOBJECT@,$GLDFLAG_DEP_GOBJECT,;t t
s,@GLDFLAG_DEP_GOBJECT_L@,$GLDFLAG_DEP_GOBJECT_L,;t t
s,@GWXCFG_DEP_IMLIB@,$GWXCFG_DEP_IMLIB,;t t
s,@GHAVE_IMLIB@,$GHAVE_IMLIB,;t t
s,@GLDFLAG_IMLIB@,$GLDFLAG_IMLIB,;t t
s,@GLDFLAG_IMLIB_L@,$GLDFLAG_IMLIB_L,;t t
s,@GLDFLAG_DEP_IMLIB@,$GLDFLAG_DEP_IMLIB,;t t
s,@GLDFLAG_DEP_IMLIB_L@,$GLDFLAG_DEP_IMLIB_L,;t t
s,@GINCLUDE_IMLIB@,$GINCLUDE_IMLIB,;t t
s,@GINCLUDE_GDKIMLIB@,$GINCLUDE_GDKIMLIB,;t t
s,@GLDFLAG_GDKIMLIB@,$GLDFLAG_GDKIMLIB,;t t
s,@GLDFLAG_DEP_GDKIMLIB@,$GLDFLAG_DEP_GDKIMLIB,;t t
s,@GLDFLAG_GDKIMLIB_L@,$GLDFLAG_GDKIMLIB_L,;t t
s,@GLDFLAG_DEP_GDKIMLIB_L@,$GLDFLAG_DEP_GDKIMLIB_L,;t t
s,@GHAVE_GDKIMLIB@,$GHAVE_GDKIMLIB,;t t
s,@IMLIB_VERSION@,$IMLIB_VERSION,;t t
s,@CONVERT_PATH@,$CONVERT_PATH,;t t
s,@GWXCFG_DEP_GDOME2@,$GWXCFG_DEP_GDOME2,;t t
s,@GHAVE_GDOME2@,$GHAVE_GDOME2,;t t
s,@GLDFLAG_GDOME2@,$GLDFLAG_GDOME2,;t t
s,@GLDFLAG_GDOME2_L@,$GLDFLAG_GDOME2_L,;t t
s,@GLDFLAG_DEP_GDOME2@,$GLDFLAG_DEP_GDOME2,;t t
s,@GLDFLAG_DEP_GDOME2_L@,$GLDFLAG_DEP_GDOME2_L,;t t
s,@GINCLUDE_GDOME2@,$GINCLUDE_GDOME2,;t t
s,@GDOME2_CFLAGS@,$GDOME2_CFLAGS,;t t
s,@GDOME2GLIBINC@,$GDOME2GLIBINC,;t t
s,@GDOME2_VERSION@,$GDOME2_VERSION,;t t
s,@GWXCFG_DEP_MD5@,$GWXCFG_DEP_MD5,;t t
s,@GHAVE_MD5@,$GHAVE_MD5,;t t
s,@GLDFLAG_MD5@,$GLDFLAG_MD5,;t t
s,@GLDFLAG_MD5_L@,$GLDFLAG_MD5_L,;t t
s,@GLDFLAG_DEP_MD5@,$GLDFLAG_DEP_MD5,;t t
s,@GLDFLAG_DEP_MD5_L@,$GLDFLAG_DEP_MD5_L,;t t
s,@GINCLUDE_MD5@,$GINCLUDE_MD5,;t t
s,@GWXCFG_DEP_RAND@,$GWXCFG_DEP_RAND,;t t
s,@GHAVE_RAND@,$GHAVE_RAND,;t t
s,@GLDFLAG_RAND@,$GLDFLAG_RAND,;t t
s,@GLDFLAG_RAND_L@,$GLDFLAG_RAND_L,;t t
s,@GLDFLAG_DEP_RAND@,$GLDFLAG_DEP_RAND,;t t
s,@GLDFLAG_DEP_RAND_L@,$GLDFLAG_DEP_RAND_L,;t t
s,@GINCLUDE_RAND@,$GINCLUDE_RAND,;t t
s,@GWXCFG_DEP_OPENSSL@,$GWXCFG_DEP_OPENSSL,;t t
s,@GHAVE_OPENSSL@,$GHAVE_OPENSSL,;t t
s,@GLDFLAG_OPENSSL@,$GLDFLAG_OPENSSL,;t t
s,@GLDFLAG_OPENSSL_L@,$GLDFLAG_OPENSSL_L,;t t
s,@GLDFLAG_DEP_OPENSSL@,$GLDFLAG_DEP_OPENSSL,;t t
s,@GLDFLAG_DEP_OPENSSL_L@,$GLDFLAG_DEP_OPENSSL_L,;t t
s,@GINCLUDE_OPENSSL@,$GINCLUDE_OPENSSL,;t t
s,@SSL_LIBS@,$SSL_LIBS,;t t
s,@GWXCFG_DEP_OPENSLP@,$GWXCFG_DEP_OPENSLP,;t t
s,@GHAVE_OPENSLP@,$GHAVE_OPENSLP,;t t
s,@GLDFLAG_OPENSLP@,$GLDFLAG_OPENSLP,;t t
s,@GLDFLAG_OPENSLP_L@,$GLDFLAG_OPENSLP_L,;t t
s,@GLDFLAG_DEP_OPENSLP@,$GLDFLAG_DEP_OPENSLP,;t t
s,@GLDFLAG_DEP_OPENSLP_L@,$GLDFLAG_DEP_OPENSLP_L,;t t
s,@GINCLUDE_OPENSLP@,$GINCLUDE_OPENSLP,;t t
s,@SLPVERSION@,$SLPVERSION,;t t
s,@SLPV1SRCS@,$SLPV1SRCS,;t t
s,@SLPDV1SRCS@,$SLPDV1SRCS,;t t
s,@SLPDSRCS@,$SLPDSRCS,;t t
s,@SLPSECSRCS@,$SLPSECSRCS,;t t
s,@SLPDSECSRCS@,$SLPDSECSRCS,;t t
s,@SLPDEFS@,$SLPDEFS,;t t
s,@GWXCFG_DEP_XMLSEC@,$GWXCFG_DEP_XMLSEC,;t t
s,@GHAVE_XMLSEC@,$GHAVE_XMLSEC,;t t
s,@GLDFLAG_XMLSEC@,$GLDFLAG_XMLSEC,;t t
s,@GLDFLAG_XMLSEC_L@,$GLDFLAG_XMLSEC_L,;t t
s,@GLDFLAG_DEP_XMLSEC@,$GLDFLAG_DEP_XMLSEC,;t t
s,@GLDFLAG_DEP_XMLSEC_L@,$GLDFLAG_DEP_XMLSEC_L,;t t
s,@GINCLUDE_XMLSEC@,$GINCLUDE_XMLSEC,;t t
s,@XMLSEC_VERSION_MAJOR@,$XMLSEC_VERSION_MAJOR,;t t
s,@XMLSEC_VERSION_MINOR@,$XMLSEC_VERSION_MINOR,;t t
s,@XMLSEC_VERSION_SUBMINOR@,$XMLSEC_VERSION_SUBMINOR,;t t
s,@XMLSEC_VERSION@,$XMLSEC_VERSION,;t t
s,@XMLSEC_VERSION_INFO@,$XMLSEC_VERSION_INFO,;t t
s,@XMLSEC_MIN_XMLVER@,$XMLSEC_MIN_XMLVER,;t t
s,@XMLSEC_MIN_XSLTVER@,$XMLSEC_MIN_XSLTVER,;t t
s,@XMLSEC_DEFINES@,$XMLSEC_DEFINES,;t t
s,@XMLSEC_PACKAGE@,$XMLSEC_PACKAGE,;t t
s,@GWXCFG_DEP_SASL@,$GWXCFG_DEP_SASL,;t t
s,@GHAVE_SASL@,$GHAVE_SASL,;t t
s,@GLDFLAG_SASL@,$GLDFLAG_SASL,;t t
s,@GLDFLAG_SASL_L@,$GLDFLAG_SASL_L,;t t
s,@GLDFLAG_DEP_SASL@,$GLDFLAG_DEP_SASL,;t t
s,@GLDFLAG_DEP_SASL_L@,$GLDFLAG_DEP_SASL_L,;t t
s,@GINCLUDE_SASL@,$GINCLUDE_SASL,;t t
s,@SASL_VERSION@,$SASL_VERSION,;t t
s,@SASL_LDAPLIBS@,$SASL_LDAPLIBS,;t t
s,@SASLDB@,$SASLDB,;t t
s,@SASLDBLIB@,$SASLDBLIB,;t t
s,@SASLXSRCS@,$SASLXSRCS,;t t
s,@SASLAUTHD@,$SASLAUTHD,;t t
s,@GWXCFG_DEP_IDL@,$GWXCFG_DEP_IDL,;t t
s,@GHAVE_IDL@,$GHAVE_IDL,;t t
s,@GLDFLAG_IDL@,$GLDFLAG_IDL,;t t
s,@GLDFLAG_IDL_L@,$GLDFLAG_IDL_L,;t t
s,@GLDFLAG_DEP_IDL@,$GLDFLAG_DEP_IDL,;t t
s,@GLDFLAG_DEP_IDL_L@,$GLDFLAG_DEP_IDL_L,;t t
s,@GINCLUDE_IDL@,$GINCLUDE_IDL,;t t
s,@LIBIDL_MAJOR_VERSION@,$LIBIDL_MAJOR_VERSION,;t t
s,@LIBIDL_MINOR_VERSION@,$LIBIDL_MINOR_VERSION,;t t
s,@LIBIDL_MICRO_VERSION@,$LIBIDL_MICRO_VERSION,;t t
s,@LIBIDL_VERSION@,$LIBIDL_VERSION,;t t
s,@HAVE_WCSTR_H@,$HAVE_WCSTR_H,;t t
s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
s,@IDLCFLAGS@,$IDLCFLAGS,;t t
s,@GWXCFG_DEP_MM@,$GWXCFG_DEP_MM,;t t
s,@GHAVE_MM@,$GHAVE_MM,;t t
s,@GLDFLAG_MM@,$GLDFLAG_MM,;t t
s,@GLDFLAG_MM_L@,$GLDFLAG_MM_L,;t t
s,@GLDFLAG_DEP_MM@,$GLDFLAG_DEP_MM,;t t
s,@GLDFLAG_DEP_MM_L@,$GLDFLAG_DEP_MM_L,;t t
s,@GINCLUDE_MM@,$GINCLUDE_MM,;t t
s,@MM_VERSION_STRING@,$MM_VERSION_STRING,;t t
s,@MM_VERSION@,$MM_VERSION,;t t
s,@GWXCFG_DEP_PCRE@,$GWXCFG_DEP_PCRE,;t t
s,@GHAVE_PCRE@,$GHAVE_PCRE,;t t
s,@GLDFLAG_PCRE@,$GLDFLAG_PCRE,;t t
s,@GLDFLAG_PCRE_L@,$GLDFLAG_PCRE_L,;t t
s,@GLDFLAG_DEP_PCRE@,$GLDFLAG_DEP_PCRE,;t t
s,@GLDFLAG_DEP_PCRE_L@,$GLDFLAG_DEP_PCRE_L,;t t
s,@GINCLUDE_PCRE@,$GINCLUDE_PCRE,;t t
s,@PCRE_MAJOR@,$PCRE_MAJOR,;t t
s,@PCRE_MINOR@,$PCRE_MINOR,;t t
s,@PCRE_VERSION@,$PCRE_VERSION,;t t
s,@PCRE_DATE@,$PCRE_DATE,;t t
s,@PCRE_UTF8@,$PCRE_UTF8,;t t
s,@PCRE_NEWLINE@,$PCRE_NEWLINE,;t t
s,@PCRE_POSIX@,$PCRE_POSIX,;t t
s,@GWXCFG_DEP_GHTTP@,$GWXCFG_DEP_GHTTP,;t t
s,@GHAVE_GHTTP@,$GHAVE_GHTTP,;t t
s,@GLDFLAG_GHTTP@,$GLDFLAG_GHTTP,;t t
s,@GLDFLAG_GHTTP_L@,$GLDFLAG_GHTTP_L,;t t
s,@GLDFLAG_DEP_GHTTP@,$GLDFLAG_DEP_GHTTP,;t t
s,@GLDFLAG_DEP_GHTTP_L@,$GLDFLAG_DEP_GHTTP_L,;t t
s,@GINCLUDE_GHTTP@,$GINCLUDE_GHTTP,;t t
s,@GHTTP_MAJOR_VERSION@,$GHTTP_MAJOR_VERSION,;t t
s,@GHTTP_MINOR_VERSION@,$GHTTP_MINOR_VERSION,;t t
s,@GHTTP_MICRO_VERSION@,$GHTTP_MICRO_VERSION,;t t
s,@GHTTP_VERSION@,$GHTTP_VERSION,;t t
s,@GWXCFG_DEP_LIBWWW@,$GWXCFG_DEP_LIBWWW,;t t
s,@GHAVE_LIBWWW@,$GHAVE_LIBWWW,;t t
s,@GLDFLAG_LIBWWW@,$GLDFLAG_LIBWWW,;t t
s,@GLDFLAG_LIBWWW_L@,$GLDFLAG_LIBWWW_L,;t t
s,@GLDFLAG_DEP_LIBWWW@,$GLDFLAG_DEP_LIBWWW,;t t
s,@GLDFLAG_DEP_LIBWWW_L@,$GLDFLAG_DEP_LIBWWW_L,;t t
s,@GINCLUDE_LIBWWW@,$GINCLUDE_LIBWWW,;t t
s,@LIBWWW_VERSION@,$LIBWWW_VERSION,;t t
s,@LIBWWW_ICONDIR@,$LIBWWW_ICONDIR,;t t
s,@have_resolv_conf@,$have_resolv_conf,;t t
s,@LIBWWW_SRCS@,$LIBWWW_SRCS,;t t
s,@LIBWWW_LIBS@,$LIBWWW_LIBS,;t t
s,@GWXCFG_DEP_CURL@,$GWXCFG_DEP_CURL,;t t
s,@GHAVE_CURL@,$GHAVE_CURL,;t t
s,@GLDFLAG_CURL@,$GLDFLAG_CURL,;t t
s,@GLDFLAG_CURL_L@,$GLDFLAG_CURL_L,;t t
s,@GLDFLAG_DEP_CURL@,$GLDFLAG_DEP_CURL,;t t
s,@GLDFLAG_DEP_CURL_L@,$GLDFLAG_DEP_CURL_L,;t t
s,@GINCLUDE_CURL@,$GINCLUDE_CURL,;t t
s,@CURL_VERSION@,$CURL_VERSION,;t t
s,@CURL_DISABLE_HTTP@,$CURL_DISABLE_HTTP,;t t
s,@CURL_DISABLE_GOPHER@,$CURL_DISABLE_GOPHER,;t t
s,@CURL_DISABLE_FTP@,$CURL_DISABLE_FTP,;t t
s,@CURL_DISABLE_FILE@,$CURL_DISABLE_FILE,;t t
s,@CURL_DISABLE_LDAP@,$CURL_DISABLE_LDAP,;t t
s,@CURL_DISABLE_TELNET@,$CURL_DISABLE_TELNET,;t t
s,@CURL_CA_BUNDLE@,$CURL_CA_BUNDLE,;t t
s,@GWXCFG_DEP_JAVASCRIPT@,$GWXCFG_DEP_JAVASCRIPT,;t t
s,@GHAVE_JAVASCRIPT@,$GHAVE_JAVASCRIPT,;t t
s,@GLDFLAG_JAVASCRIPT@,$GLDFLAG_JAVASCRIPT,;t t
s,@GLDFLAG_JAVASCRIPT_L@,$GLDFLAG_JAVASCRIPT_L,;t t
s,@GLDFLAG_DEP_JAVASCRIPT@,$GLDFLAG_DEP_JAVASCRIPT,;t t
s,@GLDFLAG_DEP_JAVASCRIPT_L@,$GLDFLAG_DEP_JAVASCRIPT_L,;t t
s,@GINCLUDE_JAVASCRIPT@,$GINCLUDE_JAVASCRIPT,;t t
s,@JAVASCRIPT_VERSION@,$JAVASCRIPT_VERSION,;t t
s,@JSCFLAGS@,$JSCFLAGS,;t t
s,@JSLDFLAGS@,$JSLDFLAGS,;t t
s,@GWXCFG_DEP_SABLOT@,$GWXCFG_DEP_SABLOT,;t t
s,@GHAVE_SABLOT@,$GHAVE_SABLOT,;t t
s,@GLDFLAG_SABLOT@,$GLDFLAG_SABLOT,;t t
s,@GLDFLAG_SABLOT_L@,$GLDFLAG_SABLOT_L,;t t
s,@GLDFLAG_DEP_SABLOT@,$GLDFLAG_DEP_SABLOT,;t t
s,@GLDFLAG_DEP_SABLOT_L@,$GLDFLAG_DEP_SABLOT_L,;t t
s,@GINCLUDE_SABLOT@,$GINCLUDE_SABLOT,;t t
s,@SABLOT_VERSION@,$SABLOT_VERSION,;t t
s,@GWXDIRS@,$GWXDIRS,;t t
s,@GETTEXT_SONAME@,$GETTEXT_SONAME,;t t
s,@ZLIB_SONAME@,$ZLIB_SONAME,;t t
s,@BZIP2_SONAME@,$BZIP2_SONAME,;t t
s,@JPEG_SONAME@,$JPEG_SONAME,;t t
s,@JASPER_SONAME@,$JASPER_SONAME,;t t
s,@TIFF_SONAME@,$TIFF_SONAME,;t t
s,@PNG_SONAME@,$PNG_SONAME,;t t
s,@MNG_SONAME@,$MNG_SONAME,;t t
s,@JBIG_SONAME@,$JBIG_SONAME,;t t
s,@FREETYPE1_SONAME@,$FREETYPE1_SONAME,;t t
s,@FREETYPE2_SONAME@,$FREETYPE2_SONAME,;t t
s,@FONTCONFIG_SONAME@,$FONTCONFIG_SONAME,;t t
s,@GD1_SONAME@,$GD1_SONAME,;t t
s,@GD2_SONAME@,$GD2_SONAME,;t t
s,@GIFLIB_SONAME@,$GIFLIB_SONAME,;t t
s,@COMPFACE_SONAME@,$COMPFACE_SONAME,;t t
s,@XPM_SONAME@,$XPM_SONAME,;t t
s,@MPEGLIB_SONAME@,$MPEGLIB_SONAME,;t t
s,@NETPBM_SONAME@,$NETPBM_SONAME,;t t
s,@GTK1_SONAME@,$GTK1_SONAME,;t t
s,@GDK1_SONAME@,$GDK1_SONAME,;t t
s,@GLIB1_SONAME@,$GLIB1_SONAME,;t t
s,@GMODULE1_SONAME@,$GMODULE1_SONAME,;t t
s,@GTHREAD1_SONAME@,$GTHREAD1_SONAME,;t t
s,@GTK2_SONAME@,$GTK2_SONAME,;t t
s,@GDK2PIXBUF_SONAME@,$GDK2PIXBUF_SONAME,;t t
s,@GDK2LFB_SONAME@,$GDK2LFB_SONAME,;t t
s,@GDK2X11_SONAME@,$GDK2X11_SONAME,;t t
s,@GLIB2_SONAME@,$GLIB2_SONAME,;t t
s,@GMODULE2_SONAME@,$GMODULE2_SONAME,;t t
s,@GTHREAD2_SONAME@,$GTHREAD2_SONAME,;t t
s,@GOBJECT2_SONAME@,$GOBJECT2_SONAME,;t t
s,@PANGO_SONAME@,$PANGO_SONAME,;t t
s,@PANGOX_SONAME@,$PANGOX_SONAME,;t t
s,@PANGOXFT_SONAME@,$PANGOXFT_SONAME,;t t
s,@PANGOFT2_SONAME@,$PANGOFT2_SONAME,;t t
s,@ATK_SONAME@,$ATK_SONAME,;t t
s,@IMLIB_SONAME@,$IMLIB_SONAME,;t t
s,@GDKIMLIB_SONAME@,$GDKIMLIB_SONAME,;t t
s,@SLANG_SONAME@,$SLANG_SONAME,;t t
s,@READLINE_SONAME@,$READLINE_SONAME,;t t
s,@XAW3DR5_SONAME@,$XAW3DR5_SONAME,;t t
s,@XAW3DR6_SONAME@,$XAW3DR6_SONAME,;t t
s,@GDBM_SONAME@,$GDBM_SONAME,;t t
s,@DB_SONAME@,$DB_SONAME,;t t
s,@DBCXX_SONAME@,$DBCXX_SONAME,;t t
s,@EXPAT_SONAME@,$EXPAT_SONAME,;t t
s,@XML2_SONAME@,$XML2_SONAME,;t t
s,@XSLT_SONAME@,$XSLT_SONAME,;t t
s,@EXSLT_SONAME@,$EXSLT_SONAME,;t t
s,@MD5_SONAME@,$MD5_SONAME,;t t
s,@RAND_SONAME@,$RAND_SONAME,;t t
s,@OPENSLP_SONAME@,$OPENSLP_SONAME,;t t
s,@XMLSEC_SONAME@,$XMLSEC_SONAME,;t t
s,@SASL_SONAME@,$SASL_SONAME,;t t
s,@LCMS_SONAME@,$LCMS_SONAME,;t t
s,@GDOME2_SONAME@,$GDOME2_SONAME,;t t
s,@IDL_SONAME@,$IDL_SONAME,;t t
s,@PCRE_SONAME@,$PCRE_SONAME,;t t
s,@MM_SONAME@,$MM_SONAME,;t t
s,@GHTTP_SONAME@,$GHTTP_SONAME,;t t
s,@LIBWWW_SONAME@,$LIBWWW_SONAME,;t t
s,@CURL_SONAME@,$CURL_SONAME,;t t
s,@JAVASCRIPT_SONAME@,$JAVASCRIPT_SONAME,;t t
s,@SABLOT_SONAME@,$SABLOT_SONAME,;t t
s,@MLIBS@,$MLIBS,;t t
s,@LIBOBJS@,$LIBOBJS,;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
  fi
fi # test -n "$CONFIG_FILES"

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
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 ;;
  esac

  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  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; }; }; }

  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`


  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  esac

  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; }
_ACEOF
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,@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

  # Run the commands associated with the file.
  case $ac_file in
    pc/sysxextlibs.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/sysx11libs.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/sysxtralibs.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/expat.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    gettext/src/user-email )
    chmod +x gettext/src/user-email ;;
    gettext/src/autopoint )
    chmod +x gettext/src/autopoint ;;
    gettext/src/gettextize )
    chmod +x gettext/src/gettextize ;;
    pc/zlib.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/bzip2.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/jpeg.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/jasper.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/jbig.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/tiff.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/libpng.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/lcms.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/libmng.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/xpm.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/netpbm.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/giflib.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/compface.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/mpeglib.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/readline.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/history.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/systermlib.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/slang.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gdbm.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/db-4.1.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/libxml-2.0.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/libxslt.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/libexslt.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/ttf.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/freetype2.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gd1.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gdlib.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/fontconfig.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/glib-1.2.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gmodule-1.2.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gthread-1.2.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gdk-1.2.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gtk+-1.2.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    gtk2+/glib/gobject/glib-mkenums )
    chmod +x gtk2+/glib/gobject/glib-mkenums ;;
    pc/glib-2.0.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gmodule-2.0.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gobject-2.0.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gthread-2.0.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/pango-1.0.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/pangox-1.0.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/sysxftlibs )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/pangoft2-1.0.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/pangoxft-1.0.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/atk-1.0.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gtk+-2.0.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gdk-pixbuf-2.0.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gdk-2.0.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/imlib.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/imlibgdk.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gdome2.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/md5.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/truerand.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/openssl.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/openslp.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/xmlsec.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/sasl2.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/libIDL-2.0.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/mm.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pcre/RunTest )
    chmod +x pcre/RunTest ;;
    pc/pcre-4.3.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/ghttp.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/libwww.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/curl.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/javascript.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/sablot.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/Makefile )
    echo "CFGFILES=$GWXCFGFILES" > pc/Makefile.cfgs
     ;;
    pc/sysmathlib.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/syssocklib.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    pc/gwxlibs.pc )
  gwxcfg=`cat $ac_file | sed -n -e '/^GWXCFG=/p'` 2>/dev/null
  if test -n "$gwxcfg"; then
    cfgfile=`echo "$gwxcfg" | sed -e 's/^GWXCFG=//'` 2>/dev/null
    thispc=`basename $ac_file .pc`
    cat pc/TEMPLATE | sed -e "s/@THISCFG@/$cfgfile/g" -e "s/@THISPC@/$thispc/g" > pc/${cfgfile}-config && chmod +x pc/${cfgfile}-config
    GWXCFGFILES="$GWXCFGFILES ${cfgfile}-config"
  fi
   ;;
    gwxcc ) chmod +x gwxcc ;;
    gwxc++ ) chmod +x gwxc++ ;;
  esac
done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF

#
# CONFIG_HEADER section.
#

# 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'
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'
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;}

  # 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; }
  # 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

# This sed command replaces #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.
cat >>conftest.undefs <<\_ACEOF
s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
_ACEOF

# 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
  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 # 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

cat >>$CONFIG_STATUS <<\_ACEOF
  # 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
  if test x"$ac_file" != x-; then
    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
      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; }; }; }

      rm -f $ac_file
      mv $tmp/config.h $ac_file
    fi
  else
    cat $tmp/config.h
    rm -f $tmp/config.h
  fi
done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF

#
# CONFIG_COMMANDS section.
#
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_dest" : 'X\(//\)[^/]' \| \
         X"$ac_dest" : 'X\(//\)$' \| \
         X"$ac_dest" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_dest" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  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`


  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
echo "$as_me: executing $ac_dest commands" >&6;}
  case $ac_dest in
    gtk+/glib/glibconfig.h )
	echo "$as_me: creating gtk+/glib/glibconfig.h"
	outfile=glibconfig.h-tmp
	cat > $outfile <<\_______EOF
/* glibconfig.h
 *
 * This is a generated file.  Please modify `configure.in'
 */

#ifndef GLIBCONFIG_H
#define GLIBCONFIG_H

_______EOF

	if test x$glib_limits_h = xyes; then
	  echo '#include <limits.h>' >> $outfile
	fi
	if test x$glib_float_h = xyes; then
	  echo '#include <float.h>' >> $outfile
	fi
	if test x$glib_values_h = xyes; then
	  echo '#include <values.h>' >> $outfile
	fi
	if test x$g_mutex_header_file != x; then
	  echo '#include <'"$g_mutex_header_file"'>' >> $outfile
	fi
	if test x$glib_sys_poll_h = xyes; then
	  echo '#define GLIB_HAVE_SYS_POLL_H' >> $outfile
	fi

	cat >> $outfile <<_______EOF

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#define G_MINFLOAT	$glib_mf
#define G_MAXFLOAT	$glib_Mf
#define G_MINDOUBLE	$glib_md
#define G_MAXDOUBLE	$glib_Md
#define G_MINSHORT	$glib_ms
#define G_MAXSHORT	$glib_Ms
#define G_MININT	$glib_mi
#define G_MAXINT	$glib_Mi
#define G_MINLONG	$glib_ml
#define G_MAXLONG	$glib_Ml

_______EOF


	### this should always be true in a modern C/C++ compiler
	cat >>$outfile <<_______EOF
typedef signed char gint8;
typedef unsigned char guint8;
_______EOF


	if test -n "$gint16"; then
	  cat >>$outfile <<_______EOF
typedef signed $gint16 gint16;
typedef unsigned $gint16 guint16;
_______EOF
	fi


	if test -n "$gint32"; then
	  cat >>$outfile <<_______EOF
typedef signed $gint32 gint32;
typedef unsigned $gint32 guint32;
_______EOF
	fi


	if test -n "$gint64"; then
	  cat >>$outfile <<_______EOF
${glib_warning_guard}#define G_HAVE_GINT64 1

${glib_extension}typedef signed $gint64 gint64;
${glib_extension}typedef unsigned $gint64 guint64;

#define G_GINT64_CONSTANT(val)	$gint64_constant
_______EOF
	fi


	if test -z "$glib_unknown_void_p"; then
	  cat >>$outfile <<_______EOF

#define GPOINTER_TO_INT(p)	((gint)  ${glib_gpi_cast} (p))
#define GPOINTER_TO_UINT(p)	((guint) ${glib_gpui_cast} (p))

#define GINT_TO_POINTER(i)	((gpointer) ${glib_gpi_cast} (i))
#define GUINT_TO_POINTER(u)	((gpointer) ${glib_gpui_cast} (u))
_______EOF
	else
	  echo '#error SIZEOF_VOID_P unknown - This should never happen' >>$outfile
	fi



	cat >>$outfile <<_______EOF
$glib_atexit
$glib_memmove
$glib_defines

$glib_vacopy

#ifdef	__cplusplus
#define	G_HAVE_INLINE	1
#else	/* !__cplusplus */
$glib_inline
#endif	/* !__cplusplus */
_______EOF

	echo >>$outfile
	if test x$g_mutex_has_default = xyes; then
		cat >>$outfile <<_______EOF
$g_enable_threads_def G_THREADS_ENABLED
#define G_THREADS_IMPL_$g_threads_impl_def
typedef struct _GStaticMutex GStaticMutex;
struct _GStaticMutex
{
  struct _GMutex *runtime_mutex;
  union {
    char   pad$g_mutex_sizeof;
    double dummy_double;
    void  *dummy_pointer;
    long   dummy_long;
  } aligned_pad_u;
};
#define	G_STATIC_MUTEX_INIT	{ NULL, { { $g_mutex_contents} } }
#define	g_static_mutex_get_mutex(mutex) \
  (g_thread_use_default_impl ? ((GMutex*) &((mutex)->aligned_pad_u)) : \
   g_static_mutex_get_mutex_impl (&((mutex)->runtime_mutex)))
_______EOF
	else
		cat >>$outfile <<_______EOF
$g_enable_threads_def G_THREADS_ENABLED
#define G_THREADS_IMPL_$g_threads_impl_def
typedef struct _GMutex* GStaticMutex;
#define G_STATIC_MUTEX_INIT NULL
#define g_static_mutex_get_mutex(mutex) (g_static_mutex_get_mutex_impl (mutex))
_______EOF
	fi

	echo >>$outfile
	g_bit_sizes="16 32"
	if test -n "$gint64"; then
	  g_bit_sizes="$g_bit_sizes 64"
	fi
	for bits in $g_bit_sizes; do
	  cat >>$outfile <<_______EOF
#define GINT${bits}_TO_${g_bs_native}(val)	((gint${bits}) (val))
#define GUINT${bits}_TO_${g_bs_native}(val)	((guint${bits}) (val))
#define GINT${bits}_TO_${g_bs_alien}(val)	((gint${bits}) GUINT${bits}_SWAP_LE_BE (val))
#define GUINT${bits}_TO_${g_bs_alien}(val)	(GUINT${bits}_SWAP_LE_BE (val))
_______EOF
	done

	cat >>$outfile <<_______EOF
#define GLONG_TO_LE(val)	((glong) GINT${glongbits}_TO_LE (val))
#define GULONG_TO_LE(val)	((gulong) GUINT${glongbits}_TO_LE (val))
#define GLONG_TO_BE(val)	((glong) GINT${glongbits}_TO_BE (val))
#define GULONG_TO_BE(val)	((gulong) GUINT${glongbits}_TO_BE (val))
#define GINT_TO_LE(val)		((gint) GINT${gintbits}_TO_LE (val))
#define GUINT_TO_LE(val)	((guint) GUINT${gintbits}_TO_LE (val))
#define GINT_TO_BE(val)		((gint) GINT${gintbits}_TO_BE (val))
#define GUINT_TO_BE(val)	((guint) GUINT${gintbits}_TO_BE (val))
#define G_BYTE_ORDER $g_byte_order

_______EOF

	if test -r glibconfig-sysdefs.h; then
	  cat glibconfig-sysdefs.h >>$outfile
	fi


	cat >>$outfile <<_______EOF

$glib_wc


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* GLIBCONFIG_H */
_______EOF


	if cmp -s $outfile gtk+/glib/glibconfig.h; then
	  echo "$as_me: gtk+/glib/glibconfig.h is unchanged"
	  rm -f $outfile
	else
	  mv $outfile gtk+/glib/glibconfig.h
	fi
     ;;
    gtk2+/glib/glibconfig.h )
	echo "$as_me: creating gtk2+/glib/glibconfig.h"
	outfile=glibconfig.h-tmp
	cat > $outfile <<\_______EOF
/* glibconfig.h
 *
 * This is a generated file.  Please modify 'configure.in'
 */

#ifndef __G_LIBCONFIG_H__
#define __G_LIBCONFIG_H__

#include <glib/gmacros.h>

_______EOF

	if test x$glib2_limits_h = xyes; then
	  echo '#include <limits.h>' >> $outfile
	fi
	if test x$glib2_float_h = xyes; then
	  echo '#include <float.h>' >> $outfile
	fi
	if test x$glib2_values_h = xyes; then
	  echo '#include <values.h>' >> $outfile
	fi
	if test "$glib2_header_alloca_h" = "yes"; then
	  echo '#define GLIB_HAVE_ALLOCA_H' >> $outfile
	fi
	if test x$glib_sys_poll_h = xyes; then
	  echo '#define GLIB_HAVE_SYS_POLL_H' >> $outfile
	fi

	cat >> $outfile <<_______EOF

G_BEGIN_DECLS

#define G_MINFLOAT	$glib2_mf
#define G_MAXFLOAT	$glib2_Mf
#define G_MINDOUBLE	$glib2_md
#define G_MAXDOUBLE	$glib2_Md
#define G_MINSHORT	$glib2_ms
#define G_MAXSHORT	$glib2_Ms
#define G_MAXUSHORT	$glib2_Mus
#define G_MININT	$glib2_mi
#define G_MAXINT	$glib2_Mi
#define G_MAXUINT	$glib2_Mui
#define G_MINLONG	$glib2_ml
#define G_MAXLONG	$glib2_Ml
#define G_MAXULONG	$glib2_Mul

#define G_MININT64	((gint64)  0x8000000000000000)
#define G_MAXINT64	((gint64)  0x7fffffffffffffff)
#define G_MAXUINT64	((guint64) 0xffffffffffffffff)

_______EOF


	### this should always be true in a modern C/C++ compiler
	cat >>$outfile <<_______EOF
typedef signed char gint8;
typedef unsigned char guint8;
_______EOF


	if test -n "$g2int16"; then
	  cat >>$outfile <<_______EOF
typedef signed $g2int16 gint16;
typedef unsigned $g2int16 guint16;
#define G_GINT16_FORMAT $g2int16_format
#define G_GUINT16_FORMAT $g2uint16_format
_______EOF
	fi


	if test -n "$g2int32"; then
	  cat >>$outfile <<_______EOF
typedef signed $g2int32 gint32;
typedef unsigned $g2int32 guint32;
#define G_GINT32_FORMAT $g2int32_format
#define G_GUINT32_FORMAT $g2uint32_format
_______EOF
	fi

	cat >>$outfile <<_______EOF
#define G_HAVE_GINT64 1          /* deprecated, always true */

${glib2_extension}typedef signed $g2int64 gint64;
${glib2_extension}typedef unsigned $g2int64 guint64;

#define G_GINT64_CONSTANT(val)	$g2int64_constant
_______EOF

	if test x$g2int64_format != x ; then
	  cat >>$outfile <<_______EOF
#define G_GINT64_FORMAT $g2int64_format
#define G_GUINT64_FORMAT $g2uint64_format
_______EOF
        else
	  cat >>$outfile <<_______EOF
#undef G_GINT64_FORMAT
#undef G_GUINT64_FORMAT
_______EOF
        fi

        cat >>$outfile <<_______EOF

#define GLIB_SIZEOF_VOID_P $glib2_void_p
#define GLIB_SIZEOF_LONG   $glib2_long
#define GLIB_SIZEOF_SIZE_T $glib2_size_t

_______EOF

echo "typedef signed $glib2_size_type_define gssize;" >> $outfile
echo "typedef unsigned $glib2_size_type_define gsize;" >> $outfile

	if test -z "$glib2_unknown_void_p"; then
	  cat >>$outfile <<_______EOF

#define GPOINTER_TO_INT(p)	((gint)  ${glib2_gpi_cast} (p))
#define GPOINTER_TO_UINT(p)	((guint) ${glib2_gpui_cast} (p))

#define GINT_TO_POINTER(i)	((gpointer) ${glib2_gpi_cast} (i))
#define GUINT_TO_POINTER(u)	((gpointer) ${glib2_gpui_cast} (u))
_______EOF
	else
	  echo '#error SIZEOF_VOID_P unknown - This should never happen' >>$outfile
	fi



	cat >>$outfile <<_______EOF
$glib2_atexit
$glib2_memmove
$glib2_defines
$glib2_os

$glib2_vacopy

#ifdef	__cplusplus
#define	G_HAVE_INLINE	1
#else	/* !__cplusplus */
$glib2_inline
#endif	/* !__cplusplus */

_______EOF

	if test x$g2_have_iso_c_varargs = xyes ; then
		cat >>$outfile <<_______EOF
#ifndef __cplusplus
# define G_HAVE_ISO_VARARGS 1
#endif
_______EOF
	fi
	if test x$g2_have_iso_cxx_varargs = xyes ; then
		cat >>$outfile <<_______EOF
#ifdef __cplusplus
# define G_HAVE_ISO_VARARGS 1
#endif
_______EOF
	fi
	if test x$g2_have_gnuc_varargs = xyes ; then
		cat >>$outfile <<_______EOF

/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
 * is passed ISO vararg support is turned off, and there is no work
 * around to turn it on, so we unconditionally turn it off.
 */
#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
#  undef G_HAVE_ISO_VARARGS
#endif

#define G_HAVE_GNUC_VARARGS 1
_______EOF
	fi

	case x$g2_stack_grows in
	xyes) echo "#define G_HAVE_GROWING_STACK 1" >>$outfile ;;
	*)    echo "#define G_HAVE_GROWING_STACK 0" >>$outfile ;;
	esac


	echo >>$outfile
	if test x$g2_have_eilseq = xno; then
		cat >>$outfile <<_______EOF
#ifndef EILSEQ
/* On some systems, like SunOS and NetBSD, EILSEQ is not defined.
 * The correspondence between this and the corresponding definition
 * in libiconv is essential.
 */
#  define EILSEQ ENOENT
#endif
_______EOF

	fi

	echo >>$outfile
	if test x$g2_mutex_has_default = xyes; then
		cat >>$outfile <<_______EOF
$g2_enable_threads_def G_THREADS_ENABLED
#define G_THREADS_IMPL_$g2_threads_impl_def
typedef struct _GStaticMutex GStaticMutex;
struct _GStaticMutex
{
  struct _GMutex *runtime_mutex;
  union {
    char   pad$g2_mutex_sizeof;
    double dummy_double;
    void  *dummy_pointer;
    long   dummy_long;
  } static_mutex;
};
#define	G_STATIC_MUTEX_INIT	{ NULL, { { $g2_mutex_contents} } }
#define	g_static_mutex_get_mutex(mutex) \
  (g_thread_use_default_impl ? ((GMutex*) &((mutex)->static_mutex)) : \
   g_static_mutex_get_mutex_impl (&((mutex)->runtime_mutex)))
_______EOF
	else
		cat >>$outfile <<_______EOF
$g2_enable_threads_def G_THREADS_ENABLED
#define G_THREADS_IMPL_$g2_threads_impl_def
typedef struct _GMutex* GStaticMutex;
#define G_STATIC_MUTEX_INIT NULL
#define g_static_mutex_get_mutex(mutex) (g_static_mutex_get_mutex_impl (mutex))
_______EOF
	fi

	cat >>$outfile <<_______EOF
/* This represents a system thread as used by the implementation. An
 * alien implementaion, as loaded by g_thread_init can only count on
 * "sizeof (gpointer)" bytes to store their info. We however need more
 * for some of our native implementations. */
typedef union _GSystemThread GSystemThread;
union _GSystemThread
{
  char   data$g2_system_thread_sizeof;
  double dummy_double;
  void  *dummy_pointer;
  long   dummy_long;
};
_______EOF

	echo >>$outfile
	g_bit_sizes="16 32 64"
	for bits in $g_bit_sizes; do
	  cat >>$outfile <<_______EOF
#define GINT${bits}_TO_${g2_bs_native}(val)	((gint${bits}) (val))
#define GUINT${bits}_TO_${g2_bs_native}(val)	((guint${bits}) (val))
#define GINT${bits}_TO_${g2_bs_alien}(val)	((gint${bits}) GUINT${bits}_SWAP_LE_BE (val))
#define GUINT${bits}_TO_${g2_bs_alien}(val)	(GUINT${bits}_SWAP_LE_BE (val))
_______EOF
	done

	cat >>$outfile <<_______EOF
#define GLONG_TO_LE(val)	((glong) GINT${g2longbits}_TO_LE (val))
#define GULONG_TO_LE(val)	((gulong) GUINT${g2longbits}_TO_LE (val))
#define GLONG_TO_BE(val)	((glong) GINT${g2longbits}_TO_BE (val))
#define GULONG_TO_BE(val)	((gulong) GUINT${g2longbits}_TO_BE (val))
#define GINT_TO_LE(val)		((gint) GINT${g2intbits}_TO_LE (val))
#define GUINT_TO_LE(val)	((guint) GUINT${g2intbits}_TO_LE (val))
#define GINT_TO_BE(val)		((gint) GINT${g2intbits}_TO_BE (val))
#define GUINT_TO_BE(val)	((guint) GUINT${g2intbits}_TO_BE (val))
#define G_BYTE_ORDER $g2_byte_order

_______EOF

	if test -r glibconfig-sysdefs.h; then
	  cat glibconfig-sysdefs.h >>$outfile
	fi

	cat >>$outfile <<_______EOF

#define G_MODULE_SUFFIX "$g2_module_suffix"

G_END_DECLS

#endif /* GLIBCONFIG_H */
_______EOF


	if cmp -s $outfile gtk2+/glib/glibconfig.h; then
	  echo "$as_me: gtk2+/glib/glibconfig.h is unchanged"
	  rm -f $outfile
	else
	  mv $outfile gtk2+/glib/glibconfig.h
	fi
     ;;
    gtk2+/gdk/gdkconfig.h )
	echo "$as_me: creating gtk2+/gdk/gdkconfig.h"
	outfile=gdkconfig.h-tmp
	cat > $outfile <<\_______EOF
/* gdkconfig.h
 *
 * This is a generated file.  Please modify `configure.in'
 */

#ifndef GDKCONFIG_H
#define GDKCONFIG_H

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

_______EOF

	cat >>$outfile <<_______EOF
$gdk_windowing
$gdk_wc
_______EOF

	cat >>$outfile <<_______EOF

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* GDKCONFIG_H */
_______EOF


	if cmp -s $outfile gtk2+/gdk/gdkconfig.h; then
	  echo "$as_me: gtk2+/gdk/gdkconfig.h is unchanged"
	  rm -f $outfile
	else
	  mv $outfile gtk2+/gdk/gdkconfig.h
	fi
 ;;
  esac
done
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF

{ (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


