#! /bin/sh
# From configure.in Id: configure.in.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for Aubit4gl $AUBIT_VERSION.$AUBIT_BUILD.
#
# Report bugs to <aubit4gl-discuss@lists.sourceforge.net>.
#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


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

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

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

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
  setopt NO_GLOB_SUBST
else
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :

else
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1

  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    PATH=/empty FPATH=/empty; export PATH FPATH
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  if (eval "$as_required") 2>/dev/null; then :
  as_have_required=yes
else
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :

else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  as_found=:
  case $as_dir in #(
	 /*)
	   for as_base in sh bash ksh sh5; do
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir/$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi; }
IFS=$as_save_IFS


      if test "x$CONFIG_SHELL" != x; then :
  # We cannot yet assume a decent shell, so we have to provide a
	# neutralization value for shells without unset; and this also
	# works around shells that cannot unset nonexistent variables.
	# Preserve -v and -x to the replacement shell.
	BASH_ENV=/dev/null
	ENV=/dev/null
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
	export CONFIG_SHELL
	case $- in # ((((
	  *v*x* | *x*v* ) as_opts=-vx ;;
	  *v* ) as_opts=-v ;;
	  *x* ) as_opts=-x ;;
	  * ) as_opts= ;;
	esac
	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
fi

    if test x$as_have_required = xno; then :
  $as_echo "$0: This script requires a shell more modern than all"
  $as_echo "$0: the shells that I found on your system."
  if test x${ZSH_VERSION+set} = xset ; then
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  else
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
$0: aubit4gl-discuss@lists.sourceforge.net about your
$0: system, including any error possibly output before this
$0: message. Then install a modern shell, or manually run
$0: the script under such a shell if you do have one."
  fi
  exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS

## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset

# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error

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

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

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

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

# 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


  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

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

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

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

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

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

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

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

lt_ltdl_dir='libltdl'

SHELL=${CONFIG_SHELL-/bin/sh}


test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1

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

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='Aubit4gl'
PACKAGE_TARNAME='aubit4gl'
PACKAGE_VERSION='$AUBIT_VERSION.$AUBIT_BUILD'
PACKAGE_STRING='Aubit4gl $AUBIT_VERSION.$AUBIT_BUILD'
PACKAGE_BUGREPORT='aubit4gl-discuss@lists.sourceforge.net'
PACKAGE_URL=''

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

ac_subst_vars='LTLIBOBJS
LTPIC
LIBM
CYGCHECK
LIBGREET_DLL_IMPORT
LIBHELLO_DLL_IMPORT
LIBOBJS
HAVE_LIBCURL
LIBCURL
LIBCURL_CPPFLAGS
_libcurl_config
RDYNAMIC_FLAG
HAVE_WINSLEEP
BUILD_EXEEXT
BUILD_LIBS
BUILD_LDFLAGS
BUILD_CPPFLAGS
BUILD_CFLAGS
BUILD_CC
EXTRALIBS
JAVAINCLUDE
XCURSES_CONFIG
GTK_QUERY
IODBC_CONFIG
SQLITE_LIBVERSION
OLD_SQLITE
SQLITE
POSTMASTER
TMPIFMX_ESQLC
MSVC_LINK
MSVC_COMP
APACHE2CTL
I4GL_CCOMPILER
I4GL_PRUNTIME
PLEXUS_COMP
QUERIX_COMP
FJS_PRUNTIME
FJS_PCOMPILER
MAKECINT
PDFLIB_CONFIG
LIBWWW_CONFIG
IKSPERF
PROG_SENDMAIL
LCLINTEXE2
LDD
SH
SWIG
HAS_LONG_LONG_DTYPE
DOTTOOL
DOXYSEARCH
CVS_CLIENT
LEXLIB
LEX_OUTPUT_ROOT
PKG_CONFIG
GMAKE
MAKE
CYGPATH
ISFORMFILE_10
ISFORMFILE_9
ISFORMFILE_8
ISFORMFILE_7
ISFORMFILE_6
ISFORMFILE_5
ISFORMFILE_4
ISFORMFILE_3
ISFORMFILE_2
ISFORMFILE_1
FORMFILE_10
FORMFILE_9
FORMFILE_8
FORMFILE_7
FORMFILE_6
FORMFILE_5
FORMFILE_4
FORMFILE_3
FORMFILE_2
FORMFILE_1
ISHELPFILE_10
ISHELPFILE_9
ISHELPFILE_8
ISHELPFILE_7
ISHELPFILE_6
ISHELPFILE_5
ISHELPFILE_4
ISHELPFILE_3
ISHELPFILE_2
ISHELPFILE_1
HELPFILE_10
HELPFILE_9
HELPFILE_8
HELPFILE_7
HELPFILE_6
HELPFILE_5
HELPFILE_4
HELPFILE_3
HELPFILE_2
HELPFILE_1
ISAMAKEFILE_20
ISAMAKEFILE_19
ISAMAKEFILE_18
ISAMAKEFILE_17
ISAMAKEFILE_16
ISAMAKEFILE_15
ISAMAKEFILE_14
ISAMAKEFILE_13
ISAMAKEFILE_12
ISAMAKEFILE_11
ISAMAKEFILE_10
ISAMAKEFILE_9
ISAMAKEFILE_8
ISAMAKEFILE_7
ISAMAKEFILE_6
ISAMAKEFILE_5
ISAMAKEFILE_4
ISAMAKEFILE_3
ISAMAKEFILE_2
ISAMAKEFILE_1
ISIMPORTFILE_20
ISIMPORTFILE_19
ISIMPORTFILE_18
ISIMPORTFILE_17
ISIMPORTFILE_16
ISIMPORTFILE_15
ISIMPORTFILE_14
ISIMPORTFILE_13
ISIMPORTFILE_12
ISIMPORTFILE_11
ISIMPORTFILE_10
ISIMPORTFILE_9
ISIMPORTFILE_8
ISIMPORTFILE_7
ISIMPORTFILE_6
ISIMPORTFILE_5
ISIMPORTFILE_4
ISIMPORTFILE_3
ISIMPORTFILE_2
ISIMPORTFILE_1
IMPORTFILE_20
IMPORTFILE_19
IMPORTFILE_18
IMPORTFILE_17
IMPORTFILE_16
IMPORTFILE_15
IMPORTFILE_14
IMPORTFILE_13
IMPORTFILE_12
IMPORTFILE_11
IMPORTFILE_10
IMPORTFILE_9
IMPORTFILE_8
IMPORTFILE_7
IMPORTFILE_6
IMPORTFILE_5
IMPORTFILE_4
IMPORTFILE_3
IMPORTFILE_2
IMPORTFILE_1
ISFGLPCSETFILE_20
ISFGLPCSETFILE_19
ISFGLPCSETFILE_18
ISFGLPCSETFILE_17
ISFGLPCSETFILE_16
ISFGLPCSETFILE_15
ISFGLPCSETFILE_14
ISFGLPCSETFILE_13
ISFGLPCSETFILE_12
ISFGLPCSETFILE_11
ISFGLPCSETFILE_10
ISFGLPCSETFILE_9
ISFGLPCSETFILE_8
ISFGLPCSETFILE_7
ISFGLPCSETFILE_6
ISFGLPCSETFILE_5
ISFGLPCSETFILE_4
ISFGLPCSETFILE_3
ISFGLPCSETFILE_2
ISFGLPCSETFILE_1
FGLPCSETFILE_20
FGLPCSETFILE_19
FGLPCSETFILE_18
FGLPCSETFILE_17
FGLPCSETFILE_16
FGLPCSETFILE_15
FGLPCSETFILE_14
FGLPCSETFILE_13
FGLPCSETFILE_12
FGLPCSETFILE_11
FGLPCSETFILE_10
FGLPCSETFILE_9
FGLPCSETFILE_8
FGLPCSETFILE_7
FGLPCSETFILE_6
FGLPCSETFILE_5
FGLPCSETFILE_4
FGLPCSETFILE_3
FGLPCSETFILE_2
FGLPCSETFILE_1
ISCONVFILE_20
ISCONVFILE_19
ISCONVFILE_18
ISCONVFILE_17
ISCONVFILE_16
ISCONVFILE_15
ISCONVFILE_14
ISCONVFILE_13
ISCONVFILE_12
ISCONVFILE_11
ISCONVFILE_10
ISCONVFILE_9
ISCONVFILE_8
ISCONVFILE_7
ISCONVFILE_6
ISCONVFILE_5
ISCONVFILE_4
ISCONVFILE_3
ISCONVFILE_2
ISCONVFILE_1
CONVFILE_20
CONVFILE_19
CONVFILE_18
CONVFILE_17
CONVFILE_16
CONVFILE_15
CONVFILE_14
CONVFILE_13
CONVFILE_12
CONVFILE_11
CONVFILE_10
CONVFILE_9
CONVFILE_8
CONVFILE_7
CONVFILE_6
CONVFILE_5
CONVFILE_4
CONVFILE_3
CONVFILE_2
CONVFILE_1
ISCONFFILE_20
ISCONFFILE_19
ISCONFFILE_18
ISCONFFILE_17
ISCONFFILE_16
ISCONFFILE_15
ISCONFFILE_14
ISCONFFILE_13
ISCONFFILE_12
ISCONFFILE_11
ISCONFFILE_10
ISCONFFILE_9
ISCONFFILE_8
ISCONFFILE_7
ISCONFFILE_6
ISCONFFILE_5
ISCONFFILE_4
ISCONFFILE_3
ISCONFFILE_2
ISCONFFILE_1
CONFFILE_20
CONFFILE_19
CONFFILE_18
CONFFILE_17
CONFFILE_16
CONFFILE_15
CONFFILE_14
CONFFILE_13
CONFFILE_12
CONFFILE_11
CONFFILE_10
CONFFILE_9
CONFFILE_8
CONFFILE_7
CONFFILE_6
CONFFILE_5
CONFFILE_4
CONFFILE_3
CONFFILE_2
CONFFILE_1
ISDOCFILE_20
ISDOCFILE_19
ISDOCFILE_18
ISDOCFILE_17
ISDOCFILE_16
ISDOCFILE_15
ISDOCFILE_14
ISDOCFILE_13
ISDOCFILE_12
ISDOCFILE_11
ISDOCFILE_10
ISDOCFILE_9
ISDOCFILE_8
ISDOCFILE_7
ISDOCFILE_6
ISDOCFILE_5
ISDOCFILE_4
ISDOCFILE_3
ISDOCFILE_2
ISDOCFILE_1
DOCFILE_20
DOCFILE_19
DOCFILE_18
DOCFILE_17
DOCFILE_16
DOCFILE_15
DOCFILE_14
DOCFILE_13
DOCFILE_12
DOCFILE_11
DOCFILE_10
DOCFILE_9
DOCFILE_8
DOCFILE_7
DOCFILE_6
DOCFILE_5
DOCFILE_4
DOCFILE_3
DOCFILE_2
DOCFILE_1
ISMAKEFILE_20
ISMAKEFILE_19
ISMAKEFILE_18
ISMAKEFILE_17
ISMAKEFILE_16
ISMAKEFILE_15
ISMAKEFILE_14
ISMAKEFILE_13
ISMAKEFILE_12
ISMAKEFILE_11
ISMAKEFILE_10
ISMAKEFILE_9
ISMAKEFILE_8
ISMAKEFILE_7
ISMAKEFILE_6
ISMAKEFILE_5
ISMAKEFILE_4
ISMAKEFILE_3
ISMAKEFILE_2
ISMAKEFILE_1
MAKEFILE_20
MAKEFILE_19
MAKEFILE_18
MAKEFILE_17
MAKEFILE_16
MAKEFILE_15
MAKEFILE_14
MAKEFILE_13
MAKEFILE_12
MAKEFILE_11
MAKEFILE_10
MAKEFILE_9
MAKEFILE_8
MAKEFILE_7
MAKEFILE_6
MAKEFILE_5
MAKEFILE_4
MAKEFILE_3
MAKEFILE_2
MAKEFILE_1
ISEXAMPFILE_60
ISEXAMPFILE_59
ISEXAMPFILE_58
ISEXAMPFILE_57
ISEXAMPFILE_56
ISEXAMPFILE_55
ISEXAMPFILE_54
ISEXAMPFILE_53
ISEXAMPFILE_52
ISEXAMPFILE_51
ISEXAMPFILE_50
ISEXAMPFILE_49
ISEXAMPFILE_48
ISEXAMPFILE_47
ISEXAMPFILE_46
ISEXAMPFILE_45
ISEXAMPFILE_44
ISEXAMPFILE_43
ISEXAMPFILE_42
ISEXAMPFILE_41
ISEXAMPFILE_40
ISEXAMPFILE_39
ISEXAMPFILE_38
ISEXAMPFILE_37
ISEXAMPFILE_36
ISEXAMPFILE_35
ISEXAMPFILE_34
ISEXAMPFILE_33
ISEXAMPFILE_32
ISEXAMPFILE_31
ISEXAMPFILE_30
ISEXAMPFILE_29
ISEXAMPFILE_28
ISEXAMPFILE_27
ISEXAMPFILE_26
ISEXAMPFILE_25
ISEXAMPFILE_24
ISEXAMPFILE_23
ISEXAMPFILE_22
ISEXAMPFILE_21
ISEXAMPFILE_20
ISEXAMPFILE_19
ISEXAMPFILE_18
ISEXAMPFILE_17
ISEXAMPFILE_16
ISEXAMPFILE_15
ISEXAMPFILE_14
ISEXAMPFILE_13
ISEXAMPFILE_12
ISEXAMPFILE_11
ISEXAMPFILE_10
ISEXAMPFILE_9
ISEXAMPFILE_8
ISEXAMPFILE_7
ISEXAMPFILE_6
ISEXAMPFILE_5
ISEXAMPFILE_4
ISEXAMPFILE_3
ISEXAMPFILE_2
ISEXAMPFILE_1
EXAMPFILE_60
EXAMPFILE_59
EXAMPFILE_58
EXAMPFILE_57
EXAMPFILE_56
EXAMPFILE_55
EXAMPFILE_54
EXAMPFILE_53
EXAMPFILE_52
EXAMPFILE_51
EXAMPFILE_50
EXAMPFILE_49
EXAMPFILE_48
EXAMPFILE_47
EXAMPFILE_46
EXAMPFILE_45
EXAMPFILE_44
EXAMPFILE_43
EXAMPFILE_42
EXAMPFILE_41
EXAMPFILE_40
EXAMPFILE_39
EXAMPFILE_38
EXAMPFILE_37
EXAMPFILE_36
EXAMPFILE_35
EXAMPFILE_34
EXAMPFILE_33
EXAMPFILE_32
EXAMPFILE_31
EXAMPFILE_30
EXAMPFILE_29
EXAMPFILE_28
EXAMPFILE_27
EXAMPFILE_26
EXAMPFILE_25
EXAMPFILE_24
EXAMPFILE_23
EXAMPFILE_22
EXAMPFILE_21
EXAMPFILE_20
EXAMPFILE_19
EXAMPFILE_18
EXAMPFILE_17
EXAMPFILE_16
EXAMPFILE_15
EXAMPFILE_14
EXAMPFILE_13
EXAMPFILE_12
EXAMPFILE_11
EXAMPFILE_10
EXAMPFILE_9
EXAMPFILE_8
EXAMPFILE_7
EXAMPFILE_6
EXAMPFILE_5
EXAMPFILE_4
EXAMPFILE_3
EXAMPFILE_2
EXAMPFILE_1
ISINCFILE_20
ISINCFILE_19
ISINCFILE_18
ISINCFILE_17
ISINCFILE_16
ISINCFILE_15
ISINCFILE_14
ISINCFILE_13
ISINCFILE_12
ISINCFILE_11
ISINCFILE_10
ISINCFILE_9
ISINCFILE_8
ISINCFILE_7
ISINCFILE_6
ISINCFILE_5
ISINCFILE_4
ISINCFILE_3
ISINCFILE_2
ISINCFILE_1
INCFILE_50
INCFILE_49
INCFILE_48
INCFILE_47
INCFILE_46
INCFILE_45
INCFILE_44
INCFILE_43
INCFILE_42
INCFILE_41
INCFILE_40
INCFILE_39
INCFILE_38
INCFILE_37
INCFILE_36
INCFILE_35
INCFILE_34
INCFILE_33
INCFILE_32
INCFILE_31
INCFILE_30
INCFILE_29
INCFILE_28
INCFILE_27
INCFILE_26
INCFILE_25
INCFILE_24
INCFILE_23
INCFILE_22
INCFILE_21
INCFILE_20
INCFILE_19
INCFILE_18
INCFILE_17
INCFILE_16
INCFILE_15
INCFILE_14
INCFILE_13
INCFILE_12
INCFILE_11
INCFILE_10
INCFILE_9
INCFILE_8
INCFILE_7
INCFILE_6
INCFILE_5
INCFILE_4
INCFILE_3
INCFILE_2
INCFILE_1
ISSHFILE_20
ISSHFILE_19
ISSHFILE_18
ISSHFILE_17
ISSHFILE_16
ISSHFILE_15
ISSHFILE_14
ISSHFILE_13
ISSHFILE_12
ISSHFILE_11
ISSHFILE_10
ISSHFILE_9
ISSHFILE_8
ISSHFILE_7
ISSHFILE_6
ISSHFILE_5
ISSHFILE_4
ISSHFILE_3
ISSHFILE_2
ISSHFILE_1
SHFILE_20
SHFILE_19
SHFILE_18
SHFILE_17
SHFILE_16
SHFILE_15
SHFILE_14
SHFILE_13
SHFILE_12
SHFILE_11
SHFILE_10
SHFILE_9
SHFILE_8
SHFILE_7
SHFILE_6
SHFILE_5
SHFILE_4
SHFILE_3
SHFILE_2
SHFILE_1
ISEXEFILE_50
ISEXEFILE_49
ISEXEFILE_48
ISEXEFILE_47
ISEXEFILE_46
ISEXEFILE_45
ISEXEFILE_44
ISEXEFILE_43
ISEXEFILE_42
ISEXEFILE_41
ISEXEFILE_40
ISEXEFILE_39
ISEXEFILE_38
ISEXEFILE_37
ISEXEFILE_36
ISEXEFILE_35
ISEXEFILE_34
ISEXEFILE_33
ISEXEFILE_32
ISEXEFILE_31
ISEXEFILE_30
ISEXEFILE_29
ISEXEFILE_28
ISEXEFILE_27
ISEXEFILE_26
ISEXEFILE_25
ISEXEFILE_24
ISEXEFILE_23
ISEXEFILE_22
ISEXEFILE_21
ISEXEFILE_20
ISEXEFILE_19
ISEXEFILE_18
ISEXEFILE_17
ISEXEFILE_16
ISEXEFILE_15
ISEXEFILE_14
ISEXEFILE_13
ISEXEFILE_12
ISEXEFILE_11
ISEXEFILE_10
ISEXEFILE_9
ISEXEFILE_8
ISEXEFILE_7
ISEXEFILE_6
ISEXEFILE_5
ISEXEFILE_4
ISEXEFILE_3
ISEXEFILE_2
ISEXEFILE_1
EXEFILE_50
EXEFILE_49
EXEFILE_48
EXEFILE_47
EXEFILE_46
EXEFILE_45
EXEFILE_44
EXEFILE_43
EXEFILE_42
EXEFILE_41
EXEFILE_40
EXEFILE_39
EXEFILE_38
EXEFILE_37
EXEFILE_36
EXEFILE_35
EXEFILE_34
EXEFILE_33
EXEFILE_32
EXEFILE_31
EXEFILE_30
EXEFILE_29
EXEFILE_28
EXEFILE_27
EXEFILE_26
EXEFILE_25
EXEFILE_24
EXEFILE_23
EXEFILE_22
EXEFILE_21
EXEFILE_20
EXEFILE_19
EXEFILE_18
EXEFILE_17
EXEFILE_16
EXEFILE_15
EXEFILE_14
EXEFILE_13
EXEFILE_12
EXEFILE_11
EXEFILE_10
EXEFILE_9
EXEFILE_8
EXEFILE_7
EXEFILE_6
EXEFILE_5
EXEFILE_4
EXEFILE_3
EXEFILE_2
EXEFILE_1
ISLIBFILE_50
ISLIBFILE_49
ISLIBFILE_48
ISLIBFILE_47
ISLIBFILE_46
ISLIBFILE_45
ISLIBFILE_44
ISLIBFILE_43
ISLIBFILE_42
ISLIBFILE_41
ISLIBFILE_40
ISLIBFILE_39
ISLIBFILE_38
ISLIBFILE_37
ISLIBFILE_36
ISLIBFILE_35
ISLIBFILE_34
ISLIBFILE_33
ISLIBFILE_32
ISLIBFILE_31
ISLIBFILE_30
ISLIBFILE_29
ISLIBFILE_28
ISLIBFILE_27
ISLIBFILE_26
ISLIBFILE_25
ISLIBFILE_24
ISLIBFILE_23
ISLIBFILE_22
ISLIBFILE_21
ISLIBFILE_20
ISLIBFILE_19
ISLIBFILE_18
ISLIBFILE_17
ISLIBFILE_16
ISLIBFILE_15
ISLIBFILE_14
ISLIBFILE_13
ISLIBFILE_12
ISLIBFILE_11
ISLIBFILE_10
ISLIBFILE_9
ISLIBFILE_8
ISLIBFILE_7
ISLIBFILE_6
ISLIBFILE_5
ISLIBFILE_4
ISLIBFILE_3
ISLIBFILE_2
ISLIBFILE_1
LIBFILE_50
LIBFILE_49
LIBFILE_48
LIBFILE_47
LIBFILE_46
LIBFILE_45
LIBFILE_44
LIBFILE_43
LIBFILE_42
LIBFILE_41
LIBFILE_40
LIBFILE_39
LIBFILE_38
LIBFILE_37
LIBFILE_36
LIBFILE_35
LIBFILE_34
LIBFILE_33
LIBFILE_32
LIBFILE_31
LIBFILE_30
LIBFILE_29
LIBFILE_28
LIBFILE_27
LIBFILE_26
LIBFILE_25
LIBFILE_24
LIBFILE_23
LIBFILE_22
LIBFILE_21
LIBFILE_20
LIBFILE_19
LIBFILE_18
LIBFILE_17
LIBFILE_16
LIBFILE_15
LIBFILE_14
LIBFILE_13
LIBFILE_12
LIBFILE_11
LIBFILE_10
LIBFILE_9
LIBFILE_8
LIBFILE_7
LIBFILE_6
LIBFILE_5
LIBFILE_4
LIBFILE_3
LIBFILE_2
LIBFILE_1
IS_THIRDPARTY_50
IS_THIRDPARTY_49
IS_THIRDPARTY_48
IS_THIRDPARTY_47
IS_THIRDPARTY_46
IS_THIRDPARTY_45
IS_THIRDPARTY_44
IS_THIRDPARTY_43
IS_THIRDPARTY_42
IS_THIRDPARTY_41
IS_THIRDPARTY_40
IS_THIRDPARTY_39
IS_THIRDPARTY_38
IS_THIRDPARTY_37
IS_THIRDPARTY_36
IS_THIRDPARTY_35
IS_THIRDPARTY_34
IS_THIRDPARTY_33
IS_THIRDPARTY_32
IS_THIRDPARTY_31
IS_THIRDPARTY_30
IS_THIRDPARTY_29
IS_THIRDPARTY_28
IS_THIRDPARTY_27
IS_THIRDPARTY_26
IS_THIRDPARTY_25
IS_THIRDPARTY_24
IS_THIRDPARTY_23
IS_THIRDPARTY_22
IS_THIRDPARTY_21
IS_THIRDPARTY_20
IS_THIRDPARTY_19
IS_THIRDPARTY_18
IS_THIRDPARTY_17
IS_THIRDPARTY_16
IS_THIRDPARTY_15
IS_THIRDPARTY_14
IS_THIRDPARTY_13
IS_THIRDPARTY_12
IS_THIRDPARTY_11
IS_THIRDPARTY_10
IS_THIRDPARTY_9
IS_THIRDPARTY_8
IS_THIRDPARTY_7
IS_THIRDPARTY_6
IS_THIRDPARTY_5
IS_THIRDPARTY_4
IS_THIRDPARTY_3
IS_THIRDPARTY_2
IS_THIRDPARTY_1
ISFILE_50
ISFILE_49
ISFILE_48
ISFILE_47
ISFILE_46
ISFILE_45
ISFILE_44
ISFILE_43
ISFILE_42
ISFILE_41
ISFILE_40
ISFILE_39
ISFILE_38
ISFILE_37
ISFILE_36
ISFILE_35
ISFILE_34
ISFILE_33
ISFILE_32
ISFILE_31
ISFILE_30
ISFILE_29
ISFILE_28
ISFILE_27
ISFILE_26
ISFILE_25
ISFILE_24
ISFILE_23
ISFILE_22
ISFILE_21
ISFILE_20
ISFILE_19
ISFILE_18
ISFILE_17
ISFILE_16
ISFILE_15
ISFILE_14
ISFILE_13
ISFILE_12
ISFILE_11
ISFILE_10
ISFILE_9
ISFILE_8
ISFILE_7
ISFILE_6
ISFILE_5
ISFILE_4
ISFILE_3
ISFILE_2
ISFILE_1
RPMFILE_50
RPMFILE_49
RPMFILE_48
RPMFILE_47
RPMFILE_46
RPMFILE_45
RPMFILE_44
RPMFILE_43
RPMFILE_42
RPMFILE_41
RPMFILE_40
RPMFILE_39
RPMFILE_38
RPMFILE_37
RPMFILE_36
RPMFILE_35
RPMFILE_34
RPMFILE_33
RPMFILE_32
RPMFILE_31
RPMFILE_30
RPMFILE_29
RPMFILE_28
RPMFILE_27
RPMFILE_26
RPMFILE_25
RPMFILE_24
RPMFILE_23
RPMFILE_22
RPMFILE_21
RPMFILE_20
RPMFILE_19
RPMFILE_18
RPMFILE_17
RPMFILE_16
RPMFILE_15
RPMFILE_14
RPMFILE_13
RPMFILE_12
RPMFILE_11
RPMFILE_10
RPMFILE_9
RPMFILE_8
RPMFILE_7
RPMFILE_6
RPMFILE_5
RPMFILE_4
RPMFILE_3
RPMFILE_2
RPMFILE_1
EXTRAFILE_10
EXTRAFILE_9
EXTRAFILE_8
EXTRAFILE_7
EXTRAFILE_6
EXTRAFILE_5
EXTRAFILE_4
EXTRAFILE_3
EXTRAFILE_2
EXTRAFILE_1
INCL_MAKE
ETC_FILES
ROOT_FILES
ALL_INC
AMAKE_INCL_FILES
IMPORT_FILES
FGLPC_SETTINGS_FILES
CONVSQL_FILES
ALL_MAKEFILE
RUNTIME_EXE
ALL_EXAMP_GUI
ALL_EXAMP
ALL_DOC
ALL_PLUGINS
ALL_LIBS
PLUGIN_YES_LINKABLE
PLUGIN_YES
COMP_LIBS
LIB_EXPORTLIB
COMP_EXE
RUNTIME_RESOURCE
ALL_SH
AMAKE_BIN_EXE
AMAKE_SH
COMP_FORM_EXT
HELP_DESTINATION
FORMS_DESTINATION
VALGRIND
INCLINES
AIX_OBJECT_MODE
YYDEBUG
DEBUG_BISON
HAVE_STDCPP
HAVE_PDFLIB8
HAVE_LIBQRENCODE
XCURSES_LIBS
XCURSES_CFLAGS
PD_CURSES_CYGDRIVE
PD_CURSES_DRIVE
PD_CURSES_LIB_NAME
PD_CURSES_INC_PATH
PD_CURSES_LIB_PATH
HAS_PDCURSES_STATIC_OBJS
HAVE_PDCURSES
CURSES_LIB_NAME
HAVE_WIDE_NCURSES
HAVE_CURSES
CURSES_INC_PATH
CURSES_LIB_PATH
MAKEINSTALLER
APGPP
APGCC
BINRELOC
ISTOOL_ROOTDIR
INNO_VERSION
INNO_ROOTDIR
IS_SOURCE
enable_minimal
I4GL_PCOMPILER
HAVE_SXMLLIB
HAVE_MQLIB
MINGW_ROOTDIR
MSYS_ROOTDIR
PCRE_LIB_PATH
PCRE_INC_PATH
AUBIT_COPYRIGHT_MSG
AUBIT_LICENSE
Q_ESQLC
SQLITE_ODBC_LIBDIR
SQLITE_ODBC_LIBNAME_STATIC
SQLITE_ODBC_LIBNAME_SHARED
SQLITE_ODBC_VER
SQLITE_ODBC
SQLITE_ROOT
SQLITE_LIBNAME
SQLITE_LDPATH2
SQLITE_LDPATH
CINTSYSDIR
CINT
EFENCE
CYGWIN_PATH
WINDIR
SYSDRIVE
WINDOWS_DRIVE
STRIP_EXECUTABLES
REDHAT_NAME
REDHAT_VER
WGET
HAS_CHECK
CYGWIN_PATH_WIN
GCC_HOME_CYGPATH
GCC_HOME_WINPATH
GCC_MINGW
GCC_VERSION_MINOR
GCC_VERSION_MAJOR
CONFIGURE_COMMAND
ARCHEXT
GETOPT_LONG
SO_EXT_LINKABLE
SO_EXT
EXPECT
LCLINTEXE
LEX
PCODE_ENABLED
BISON_EXE
BISON
LDFLAGS_SHARED
APIC
WARN_LD_LIBRARY_REASON
ADD_LD_LIBRARY_PATH
LDCONFIG
PERLBUILD
PERL
INSTALL_MISSING_OPTIONAL
ZLIB_LIB_PATH
ZLIB_INC_PATH
USE_LIBDL
HAVE_LIBDL
HAVE_ZLIB
SMTP_LIB_PATH
SMTP_INC_PATH
POP_LIB_PATH
POP_INC_PATH
A4GL_SQLTYPE_EC_VALID_INGRES
INGRES_ESQLC
HAVE_INGRES_ESQLC
INGRES_INST_PATH
DBGFLAG
MPZ_IFLAGS
MPZ_LFLAGS
EXDTYPE_DETECTED
EXDTYPE
EXDATA_MPZ
IKSEMEL_I_FLAGS
IKSEMEL_L_FLAGS
JABBERBUILD
ORBIT_CONFIG
CAPI_CFLAGS
CAPI_LDFLAGS
ORBIT_VERSION
ORBIT_NAME
ORBIT_IDL
HAS_ORBIT_TYPE
RPM_A4GL_DEFAULT_PREFIX
RPMBUILDROOT
AUTOSPEC
RPM
WWW_DOCUMENT_ROOT
WWW_HOST_NAME
APACHE_CONF
HTTPD
APACHECTL
CGI_DIR
DOXY_BIN_ABSPATH
DOT_PATH
HAVE_DOT
DOXYGEN
PDFLIB_L_FLAGS
PDFLIB_I_FLAGS
PDFBUILD
USE_PDF
XMLRPC_LIBS
XMLRPC_IFLAGS
XMLRPC_LFLAGS
XMLRPC_C_CONFIG
XML_RPC
HAVE_RPCLIB
USE_RPCGEN
RPCLIB_NAME
RPCLIB_LFLAGS
RPCLIB_INCLUDE
RPCGEN
HAS_GLADE_2
GTK_VERSION
GLIB_CFLAGS
GLIB_NAME
GDK_NAME
GTK_NAME
GTKLIBS
GTK_INC_PATH
GTK_LIB_PATH
GTKBUILD
IODBC_LIBS
IODBC_LFLAGS
IODBC_INCLUDE
HAVE_IODBC
UNIXODBC_LIBS
UNIXODBC_LFLAGS
UNIXODBC_INCLUDE
HAVE_UNIXODBC
A4GL_SQLTYPE_EC_VALID_POSTGRES
PG_ESQLC_HASV3
HAVE_PGSQL_LIB
POSTGRESDIR
ECPG_HAVE_ECPGGET_CONNECTION
ECPG_HAVE_ECPG_GET_CONNECTION
ECPG_HAVE_ECPGGET_PGCONN
ECPG_IFLAGS
ECPG_LFLAGS
ECPG_LIBDIR
ECPG_INCDIR
PG_ESQLC
PGSQL_LIBDIR
PGSQL_INCDIR
PGSQL_LIBS
PGSQL_LFLAGS
PGSQL_INCLUDE
LIBPQ_FE_H_IFLAGS
PGODBC_LIBNAME
PGODBC_LFLAGS
PGODBC_INCLUDE
HAVE_PGODBC
SAPDB_ODBC_ADDLIBS
SAPODBC_LFLAGS
SAPODBC_INCLUDE
HAVE_SAPODBC
A4GL_SQLTYPE_EC_VALID_SAPDB
SAPDB_LIBDIR
SAPDB_INCDIR
SAPDB_INCLUDE
SAPDB_LFLAGS
SAPDBROOT
SAPDB_ESQLC
SQL_MYSQL
SQL_MYSQL_EMB
MYSQL_IFLAGS
MYSQL_LFLAGS
HAVE_IFXODBC
A4GL_SQLTYPE_EC_VALID_INFORMIX
INFORMIXC
INFORMIXDIR_UNQUOTED
INFORMIXDIR
IFX_C_MAKE
IFX_INCLUDE
IFX_LFLAGS
IFX_LIBS
IFX_ESQL_FLAGS
IFMX_ESQLC
ODBC_LIB_NAME
SQLPWD
SQLUID
A4GL_DBPATH
A4GL_PACKER_DETECTED
A4GL_PACKER
A4GL_MSGTYPE_DETECTED
A4GL_MSGTYPE
A4GL_FORMTYPE_DETECTED
A4GL_FORMTYPE
A4GL_LEXDIALECT_DETECTED
A4GL_LEXDIALECT
A4GL_LEXTYPE_DETECTED
A4GL_LEXTYPE
A4GL_UI_DETECTED
A4GL_UI
A4GL_RPCTYPE_DETECTED
A4GL_RPCTYPE
A4GL_PDFTYPE_DETECTED
A4GL_PDFTYPE
STD_CFLAGS
A4GL_SQLTYPE_COMPILE_ONLY_DETECTED
A4GL_SQLTYPE_DETECTED
A4GL_SQLTYPE
AUBITETC
GREP_WORD
MACHTYPE
SHORTNAME
FULLNAME
AUBIT_PUBLISHER
AUBIT_WEBSITE
AUBIT_BUILD
AUBIT_VERSION
COMPILE_DATE
aubitdir_src
aubitdir
LIBTOOL_DEPS
OTOOL64
OTOOL
LIPO
NMEDIT
DSYMUTIL
AWK
RANLIB
STRIP
AR
LN_S
NM
ac_ct_DUMPBIN
DUMPBIN
LD
FGREP
SED
LIBTOOL
OBJDUMP
DLLTOOL
AS
INCLTDL
LTDLINCL
LTDLDEPS
LIBLTDL
target_os
target_vendor
target_cpu
target
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
EGREP
GREP
CPP
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
AUBITCONF
SET_MAKE
MAKEINFO
AUTOHEADER
AUTOMAKE
AUTOCONF
ACLOCAL
VERSION
PACKAGE
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_static
enable_shared
with_pic
enable_fast_install
with_gnu_ld
enable_libtool_lock
with_sqluid
with_sqlpwd
with_all
enable_prefix_check
enable_
enable_optimised
enable_aix_64bit
enable_broken_make
with_bison
with_efence
with_orbit
with_ingres
with_iksemel
with_mysql
with_mpz
with_xmlrpc
with_sxml
with_mq
with_pcre
with_pop
with_smtp
with_zlib
with_pdf
with_qrencoder
with_pdflib
with_cint
with_fourj
with_hydra
with_plexus
with_i4gl
with_httpd
with_sapdb
with_esqlc
with_informix
with_informixc
with_pgsqleng
with_pgsql
with_ecpg
with_pgcompat
with_sqlite
with_sqliteodbc
with_ifxodbc
with_sapodbc
with_iodbc
with_unixodbc
with_esoob
with_custom_odbc
with_pgodbc
with_gtk_ac
with_gtk
with_glade
with_rpc
with_perl
with_curses
with_pdcurses
with_java
with_build_cc
with_build_cflags
with_build_cppflags
with_build_ldflags
with_build_libs
with_curl
with_libcurl
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP'


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

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

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

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

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

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

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

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

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

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

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

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

  -disable-* | --disable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

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

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

  -enable-* | --enable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  -with-* | --with-*)
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=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 ;;

  -*) as_fn_error $? "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information"
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
    esac
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      $as_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'`
  as_fn_error $? "missing argument to $ac_option"
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
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
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used" >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

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

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


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  as_fn_error $? "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error $? "pwd does not report name of working directory"


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

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

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

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

Defaults for the options are specified in brackets.

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

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

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

For better control, use the options below.

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

  cat <<\_ACEOF

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

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

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of Aubit4gl $AUBIT_VERSION.$AUBIT_BUILD:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --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)
  --disable-prefix-check  Disable checking of user specified --prefix=x

Debugging options:

  --enable-optimised    enable optimisations
 AIX 64 bit mode - default is 32bit for AIX
  --disable-broken-make  Broken make checking=x
  --disable-libtool-lock  avoid locking (might break parallel builds)

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sqluid=username  Specify defauld A4GL_SQLUID database user ID (ODBC)
  --with-sqlpwd=password  Specify default A4GL_SQLPWD database password (ODBC)
  --with-all=yes/no       Try to autodetect all available features. Defaults to
                          'yes'. Same as specifying --with-(sapdb pgsql sqlite
                          ecpg pdf gtk iksemel informix sqliteodbc sapodbc
                          pgodbc iodbc unixodbc curses ...etc...)=yes.
  --with-aubitconf=yes/no Enable/disable use of external parameter script
                          named 'aubitconf'
  --with-bin              Force configuring as binary distribution
  --with-src              Force configuring as source code
  --with-dot=DIR          dot tool is part of Graphviz, a graph visualization
                          toolkit from AT&T and Lucent Bell Labs. One of DoxyGen
                          visualisation options.
  --with-www-name=name    Name of the web server URL to use
  --with-glib=DIR         Specify explicit path to GLIB library.
  --with-pg-all           Shorthand to point all PostgreSQL components to same location
                          (--with-ecpg= --with-pgsqleng= --with-pgsql= --with-pgodbc=)
  --enable-yy-debug       for debbuging in function yyparse()
  --enable-yacc-debug     Yacc Debugging
  --enable-aix-64bit      Enable aix 64 bit mode - default 32 bit
  --enable-printc-debug   If INCLINES variable is set then the source target C
                          file is generated with #line (for debugging purposes).
  --enable-ac-debug       Enable AutoConf debugginf of 'configure' script.
  --with-bison=DIR        Use Bison as YACC to recompile Aubit parsers. DIR is
                          the base directory of Bison executable, defaults
                          to /usr/bin.
  --with-efence=DIR       Use Electric Fence library for debugging. DIR is the
                          base directory of efence library, defaults
                          to /usr/local/lib.
  --with-orbit=DIR      Include ORBit CORBA support.  DIR is the ORBit
                          install directory, defaults to /usr.
  --with-ingres=DIR      Include Ingres ESQL/C compiler support.  DIR is the Ingres
                          install directory, defaults to /opt/Ingres/IngresII.
  --with-iksemel=DIR      Include Jabber/iksemel support.  DIR is the iksemel
                          install directory, defaults to /usr/local.
  --with-mysql=DIR          Include MySQL client library support.  DIR is MySQL base
                          install directory, defaults to /usr/local.
  --with-mpz=DIR          Include MPZ large integer support.  DIR is MPZ base
                          install directory, defaults to /usr/local.
  --with-xmlrpc=DIR       Include XML-RPC support.  DIR is the XML-RPC base
                          install directory, defaults to /usr/local.
  --with-sxml=DIR          Include SXML support.  DIR is the SXML base
                          install directory, defaults to /usr/local.
  --with-mq=DIR          Include IBM MQ support.  DIR is the MQ base
                          install directory, defaults to /usr/mqm.
  --with-pcre=DIR          Include PCRE support.  DIR is the PCRE base
                          install directory, defaults to /usr/local.
  --with-pop=DIR          Include POP support.  DIR is the POP base
                          install directory, defaults to /usr/local.
  --with-smtp=DIR          Include SMTP support.  DIR is the SMTP base
                          install directory, defaults to /usr/local.
  --with-zlib=DIR      Include ZLIB support.  DIR is the ZLIB base
                          install directory, defaults to /usr/local.
  --with-pdf=DIR          Include PDF support.  DIR is the PDFlib
                          install directory, defaults to /usr/local.
--with-qrencoder
--with-pdflib
  --with-cint=DIR         Include CINT support.  DIR is the Cint base
                          install directory, defaults to /usr/local.
  --with-fourj=DIR        Include 4Js compiler support.  DIR is the 4Js base
                          install directory, defaults to xx.
  --with-hydra=DIR        Include Querix Hydra compiler support.  DIR is the
                          Querix base install directory, defaults to xx.
  --with-plexus=DIR       Include Plexus compiler support.  DIR is the Plexus
                          base install directory, defaults to xx.
  --with-i4gl=DIR         Include Informix compiler support.  DIR is Informix
                          base install directory, defaults to xx.
  --with-httpd=DIR        Include web server support.  DIR is the xx base
                          install directory, defaults to xx.
  --with-sapdb=DIR        Include SAP DB/MySQL MaxDB ESQL/C support.  DIR is the Sap DB base
                          install directory, defaults to ${SAPDBROOT:/opt/sdb}.
  --with-esqlc=DIR        Include Querix ESQL/C support.  DIR is the Querix
                          base install directory, defaults to
                          ${QUERIXDIR:-nothing}.
  --with-informix=DIR     Include Informix ESQL/C support.  DIR is the Informix
                          base install directory, defaults to
                          ${INFORMIXDIR:-nothing}.
  --with-informixc=c-compiler  Specify default INFORMIXC
  --with-pgsqleng=DIR        Check PostgresSQL engine.  DIR is the PostgresSQL
                          base install directory, defaults to /usr/local.
  --with-pgsql=DIR        Include PostgresSQL support.  DIR is the PostgresSQL
                          base install directory, defaults to /usr.
  --with-ecpg=DIR         Include PostgresSQL ESQL/C pre-compiler support.
                          DIR is the PostgresSQL ecpg base install directory,
                          defaults to /usr.
  --with-pgcompat        Check PostgresSQL compatibility with Aubit
  --with-sqlite=DIR       Include SQLite support.  DIR is the SQLite
                          base install directory, defaults to /usr.
  --with-sqliteodbc=DIR   Include SQLite ODBC support.  DIR is the SQLite odbc
                          base install directory, defaults to /usr/local/lib.
  --with-ifxodbc=DIR      Include Informix ODBC support.  DIR is the Informix
                          base install directory, defaults to $INFOMIXDIR.
  --with-sapodbc=DIR      Include SAP DB ODBC driver support.  DIR is the base
                          install directory, defaults to /opt/sapdb.
  --with-iodbc=DIR        Include iODBC/Openlink support.  DIR is the iODBC base
                          install directory, defaults to /usr/local or /opt/iodbc.
  --with-unixodbc=DIR     Include unixODBC support.  DIR is the unixODBC base
                          install directory, defaults to /usr/local.
  --with-esoob=DIR        Include Easysoft OOB support. DIR is the OOB base
                          install directory, defaults to
                          /usr/local/easysoft/oob/client.
  --with-custom-odbc=DIR
                          Include a user defined ODBC support.
                          The DIR is ODBC install base directory,
                          which defaults to /usr/local.
                          Make sure to define CUSTOM_ODBC_LIBS and
                          have some odbc.h in your include dirs.
                          E.g., you should define following for
                          Sybase SQL Anywhere 5.5.00 on QNX, prior to
                          run configure script:
                              CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\"
                              LDFLAGS=-lunix
                              CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\".
  --with-pgodbc=DIR       Include PostgreSQL ODBC driver support.  DIR is the
                          base install directory, defaults to /usr.
  --with-gtk-ac=DIR          Include GTK+ GUI support using native AC macros.  DIR is the GTK+ base
                          install directory, defaults to /usr/local.
  --with-gtk=DIR          Include GTK+ GUI support.  DIR is the GTK+ base
                          install directory, defaults to /usr/local.
  --with-glade=DIR      Include Glade support.  DIR is the Glade
                          install directory, defaults to /usr/local.
  --with-rpc=DIR          Include RPC support.  DIR is the RPC base
                          install directory, defaults to /usr/local.
  --with-perl=yes/no     Enable (default) or disable Perl langauge support
  --with-curses=DIR       Include curses support. DIR is the curses base
                          install directory, defaults to /lib.
                          This will probe for Ncurses, then for curses.
  --with-pdcurses=DIR     Include PDcurses support. DIR is the PDcurses base
                          install directory, defaults to
                          /usr/local/pdcurses.
  --with-java=path        full path of Java Developers Kit, or no
  --with-build-cc=XXX     the build C compiler ($BUILD_CC)
  --with-build-cflags=XXX the build C compiler-flags
  --with-build-cppflags=XXX the build C preprocessor-flags
  --with-build-ldflags=XXX the build linker-flags
  --with-build-libs=XXX   the build libraries
--with-curl
  --with-libcurl=DIR      look for the curl library in DIR

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>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  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.

Report bugs to <aubit4gl-discuss@lists.sourceforge.net>.
_ACEOF
ac_status=$?
fi

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

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

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

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

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
Aubit4gl configure $AUBIT_VERSION.$AUBIT_BUILD
generated by GNU Autoconf 2.68

Copyright (C) 2010 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_compile

# ac_fn_c_try_run LINENO
# ----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_run

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_compile

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_link

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* 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_$2 || defined __stub___$2
choke me
#endif

int
main ()
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_func

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type

# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
# the include files in INCLUDES and setting the cache variable VAR
# accordingly.
ac_fn_c_check_header_mongrel ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if eval \${$3+:} false; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
$as_echo_n "checking $2 usability... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_header_compiler=yes
else
  ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
$as_echo_n "checking $2 presence... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$2>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ac_header_preproc=yes
else
  ac_header_preproc=no
fi
rm -f conftest.err conftest.i conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  yes:no: )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
  no:yes:* )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
( $as_echo "## ----------------------------------------------------- ##
## Report this to aubit4gl-discuss@lists.sourceforge.net ##
## ----------------------------------------------------- ##"
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=\$ac_header_compiler"
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_mongrel

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid; break
else
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=-1 ac_mid=-1
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=$ac_mid; break
else
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid
else
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in #((
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
'') ac_retval=1 ;;
esac
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
static long int longval () { return $2; }
static unsigned long int ulongval () { return $2; }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (($2) < 0)
    {
      long int i = longval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
else
  ac_retval=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
rm -f conftest.val

  fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_compute_int
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Aubit4gl $as_me $AUBIT_VERSION.$AUBIT_BUILD, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ $0 $@

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

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

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

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

_ASUNAME

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

} >&5

cat >&5 <<_ACEOF


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

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    2)
      as_fn_append 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
      as_fn_append ac_configure_args " '$ac_arg'"
      ;;
    esac
  done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}

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

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

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

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

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

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

$as_echo "/* confdefs.h */" > 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

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


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  # We do not want a PATH search for config.site.
  case $CONFIG_SITE in #((
    -*)  ac_site_file1=./$CONFIG_SITE;;
    */*) ac_site_file1=$CONFIG_SITE;;
    *)   ac_site_file1=./$CONFIG_SITE;;
  esac
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file" \
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; }
  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.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
$as_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
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`$as_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.
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##

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



#Need to be here too, to be used in AC_INIT call:
#>>>>>>>>>>>>>>>>FIXME - DOES NOT WORK HERE - works only after AC_INIT!!!!<<<<<<<<<<<<<<<<<<<<<<<<

if test -f "tools/project/version" ; then

	TMPaaa=`grep -c '=' tools/project/version`
	if test "$TMPaaa" -gt 0 ; then
		as_fn_error $? "tools/project/version CVS merge conflict. Stop." "$LINENO" 5
	fi
	TMPaaa=`grep -c '=' tools/project/build`
	if test "$TMPaaa" -gt 0 ; then
		as_fn_error $? "tools/project/build CVS merge conflict. Stop." "$LINENO" 5
	fi

	AUBIT_VERSION=`cat tools/project/version`
	AUBIT_BUILD=`cat tools/project/build`

	#Cant test version since its a decimal not integer
	#if test "$AUBIT_VERSION" -lt 0 -o "$AUBIT_VERSION" = ""; then
	if test "$AUBIT_VERSION" = "" ; then
		as_fn_error $? "tools/project/version file is empty. Stop." "$LINENO" 5
	fi
	if test "$AUBIT_BUILD" = "" ; then
		as_fn_error $? "tools/project/build file is empty. Stop." "$LINENO" 5
	fi

	if test "$AUBIT_BUILD" -lt 0 ; then
		as_fn_error $? "tools/project/build file is invalid. Stop." "$LINENO" 5
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Aubit version" >&5
$as_echo_n "checking Aubit version... " >&6; }
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -$AUBIT_VERSION.$AUBIT_BUILD-" >&5
$as_echo "-$AUBIT_VERSION.$AUBIT_BUILD-" >&6; }

else
	echo "Configuring binary installation"
fi


############################################################
# WARNING - any code you add to this file (including 'echo')
#will work ONLY at this point (after AC_INIT)
############################################################

##########################################################################
##                                                                      ##
##  Check whether config.cache belongs to this machine                  ##
##                                                                      ##
##########################################################################
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking cached information" >&5
$as_echo_n "checking cached information... " >&6; }
hostcheck="$host"
if ${ac_cv_hostcheck+:} false; then :
  $as_echo_n "(cached) " >&6
else
   ac_cv_hostcheck="$hostcheck"
fi

if test "$ac_cv_hostcheck" != "$hostcheck"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: changed" >&5
$as_echo "changed" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Running on a different architecture." >&5
$as_echo "$as_me: WARNING: Running on a different architecture." >&2;}
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cant use cached values." >&5
$as_echo "$as_me: WARNING: Cant use cached values." >&2;}
  as_fn_error $? "Please remove the invalid config.cache file, then try again." "$LINENO" 5
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
fi


##########################################################################
##                                                                      ##
##  Save configuration for later reuse                                  ##
##                                                                      ##
##########################################################################
echo creating config.nice
rm -f config.nice
cat >config.nice<<CONFIG_NICE_EOF
#! /bin/sh
#
# Created by configure for $PACKAGE_STRING
#

CONFIG_NICE_EOF
echo ${SHELL} "\"$0\" \\" >> config.nice
for arg in $ac_configure_args
do
    echo "$arg \\" >> config.nice
done
echo '"$@"' >> config.nice
chmod +x config.nice


##########################################################################
#needed to initialize AutoMake functionallity, that will create Makefile.in
#files from Makefile.am:
#AM_INIT_AUTOMAKE
am__api_version="1.4"
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
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
fi

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


# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if ${ac_cv_path_install+:} false; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in #((
  ./ | .// | /[cC]/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

  done
IFS=$as_save_IFS

rm -rf conftest.one conftest.two conftest.dir

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

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
$as_echo_n "checking whether build environment is sane... " >&6; }
# Just in case
sleep 1
echo timestamp > conftestfile
# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t $srcdir/configure conftestfile`
   fi
   if test "$*" != "X $srcdir/configure conftestfile" \
      && test "$*" != "X conftestfile $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
alias in your environment" "$LINENO" 5
   fi

   test "$2" = conftestfile
   )
then
   # Ok.
   :
else
   as_fn_error $? "newly created file is older than distributed files!
Check your system clock" "$LINENO" 5
fi
rm -f conftest*
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
test "$program_prefix" != NONE &&
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
# Double any \ or $.
# By default was `s,x,x', remove it if useless.
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@echo '@@@%%%=$(MAKE)=@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi


PACKAGE=Aubit4gl

VERSION=$AUBIT_VERSION.$AUBIT_BUILD

if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
fi

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


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



missing_dir=`cd $ac_aux_dir && pwd`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working aclocal-${am__api_version}" >&5
$as_echo_n "checking for working aclocal-${am__api_version}... " >&6; }
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
   ACLOCAL=aclocal-${am__api_version}
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
else
   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
$as_echo "missing" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working autoconf" >&5
$as_echo_n "checking for working autoconf... " >&6; }
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
   AUTOCONF=autoconf
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
else
   AUTOCONF="$missing_dir/missing autoconf"
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
$as_echo "missing" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working automake-${am__api_version}" >&5
$as_echo_n "checking for working automake-${am__api_version}... " >&6; }
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
   AUTOMAKE=automake-${am__api_version}
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
else
   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
$as_echo "missing" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working autoheader" >&5
$as_echo_n "checking for working autoheader... " >&6; }
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
   AUTOHEADER=autoheader
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
else
   AUTOHEADER="$missing_dir/missing autoheader"
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
$as_echo "missing" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working makeinfo" >&5
$as_echo_n "checking for working makeinfo... " >&6; }
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
   MAKEINFO=makeinfo
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
else
   MAKEINFO="$missing_dir/missing makeinfo"
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
$as_echo "missing" >&6; }
fi



aubitdir=`pwd`
#define emphasis (bold) characters for terminal display
if test -f "$aubitdir/bin/shtool"; then
	a4gl_shtool="$aubitdir/bin/shtool"
else
	if test -f "$aubitdir/tools/project/shtool"; then
		a4gl_shtool="$aubitdir/tools/project/shtool"
	fi
fi
if test "$a4gl_shtool" != ""; then
	T_MD=`$a4gl_shtool echo -n -e %B`
	T_ME=`$a4gl_shtool echo -n -e %b`
fi

#An example of using --enable-xxx :
#AC_ARG_ENABLE(debug, [  --enable-debug          turn on debugging],
#if test "$enableval" = "yes" ; then
#    WITH_DEBUG=yes
#fi)
#AC_ARG_ENABLE(rebuilds, [  --disable-rebuilds      disable all source autogeneration rules],,enable_rebuilds=yes)

#Store parameters this script was invoked with
CONFIGURE_COMMAND="$ac_configure_args"

#location of additional Autoconf files
ac_aux_dir=
for ac_dir in etc/config "$srcdir"/etc/config; 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
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in etc/config \"$srcdir\"/etc/config" "$LINENO" 5
fi

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



STD_CFLAGS=$CFLAGS



#Purpose of 'aubitconf' script is to hold all the command line switches
#to 'configure' on your system, and is local to your system. If found in
#path, it will be invoked instead of just plain 'configure'
#aubitconf script will typically have only one line, for example:
#./configure --with-aubitconf --with-informix --with-jabber -with-iodbc=/blah/huh/iodbc $@ ...etc
if test "$AUBITCONF_FLAG" != "running"; then

	## ==================================================================
	##            check what the byte ordering is: prepare test file
	## ==================================================================
        #This must be done on first pass only, since after we invoke
        #aubitconf, "echo -e" will not work ...
##		rm -f ./order.c ./order ./order.exe ./order.o ./order.tmp
##
##		echo "" > order.c
##		echo "main() {" >> order.c
##		echo "short a;" >> order.c
##		echo "char *ptr;" >> order.c
##		echo "a=1;" >> order.c
##		echo "ptr=(char *)&a;" >> order.c
##
###		if test "$COMSPEC" = ""; then
##            #echo "-------------------NOT On Windows"
##			echo 'printf("%d%d",ptr\1330\135,ptr\1331\135);' > order.tmp
##		    xx=`cat order.tmp`
##			echo -e "$xx" >> order.c
###        else
###            #echo "-------------------On Windows"
###			#echo 'printf("%d%d",ptr[0],ptr[1]);' > order.tmp
###			#This craps out on CygWin
###			echo -e 'printf("%d%d",ptr\1330\135,ptr\1331\135);' >> order.c
###        fi
##
##		echo "}" >> order.c
##		echo "" >> order.c
##
##        #Above code is obsolete; see AC_C_BIGENDIAN later in the code
##
##

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



  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Looking for configure parameters file:${T_ME}" >&5
$as_echo "${T_MD}Looking for configure parameters file:${T_ME}" >&6; }


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

  test -z "$ac_cv_path_AUBITCONF" && ac_cv_path_AUBITCONF="no"
  ;;
esac
fi
AUBITCONF=$ac_cv_path_AUBITCONF
if test -n "$AUBITCONF"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUBITCONF" >&5
$as_echo "$AUBITCONF" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


if test "$AUBITCONF" != "no"; then

#use this instead :
#if test "$with_all" = ""; then              with_all=yes        ;fi
#AC_ARG_WITH(all,
#[  --with-all[=yes/no]       Try to autodetect all available features. Defaults to
#                          'yes'. Same as specifying --with-(sapdb pgsql sqlite
#[
# ...code...
#],[
#	AC_MSG_RESULT(Autodetect (--with-all) not specified.)
#])

		if test "$with_aubitconf" != "no" ; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Redirecting to 'aubitconf':${T_ME}" >&5
$as_echo "${T_MD}Redirecting to 'aubitconf':${T_ME}" >&6; }

			if test "$CONFIGURE_COMMAND" != ""; then
cat<<X
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
| You provided command line options to 'configure'. They will be     |
| added to parameters specified in 'aubitconf' only if 'aubitconf'   |
| provides this functionality. Please verify your 'aubitconf' script |
+--------------------------------------------------------------------+
X

			echo "CONFIGURE_COMMAND=$CONFIGURE_COMMAND"


			fi
#| ingored, and ones provided in 'aubitconf' used instead. Use        |
#| --with-aubitconf=no to disable this behaviour.                     |


			#so we don't enter the loop:
			export AUBITCONF_FLAG=running

            #Got to strip single quote arroung it added apprently by autoconf itself...
			if test "$STRIP_PARAM_Q" != "0"; then
				#Defaut behaviour - when unspecified, 1 or other number
				TMP_PARAMS=`echo $CONFIGURE_COMMAND |  tr -d "'"`
				export DID_STRIP_PARAM_Q=1
			else
				#Only when explicitly 0
				#We dont want this when invoking configure with parameters that
				#need spaces in them , like CFLAGS='-O2 -g'
				TMP_PARAMS="$CONFIGURE_COMMAND"
				export DID_STRIP_PARAM_Q=0
			fi

			aubitconf $TMP_PARAMS
			err_code=$?
			#prevent errors when exiting first instance, that did not get the chance
	        #to create this files, but expects them:
			touch conftest.log
			touch confdefs.h
			#echo "About to exit first invocation of configure ($err_code)..."
			exit $err_code
	        echo "Oooops! You should not see this!"
        else
            echo "'aubitconf' found, but disabled"
        fi
fi #if test "$AUBITCONF" != "no"; then

else #if test "$AUBITCONF_FLAG" != "running"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Invoked from 'aubitconf'-use 'make settings' to see flags:${T_ME}" >&5
$as_echo "${T_MD}Invoked from 'aubitconf'-use 'make settings' to see flags:${T_ME}" >&6; }

fi

#This script will be used for configuring binary distributions
#when --with-bin switch is on command line
if test "$with_bin" = "yes" ; then
	AUBIT_SOURCE=0
else
	#when --with-src was on command line
	if test "$with_src" = "yes" ; then
		AUBIT_SOURCE=1
	else
		#no switch, detect if we are in source code tree
		if test -f "tools/project/version"; then
			AUBIT_SOURCE=1
	    else
			AUBIT_SOURCE=0
	    fi
    fi
fi

if test "$AUBIT_SOURCE" = "1" ; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring Aubit compiler source code:${T_ME}" >&5
$as_echo "${T_MD}Configuring Aubit compiler source code:${T_ME}" >&6; }

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring Aubit compiler binary distribution:${T_ME}" >&5
$as_echo "${T_MD}Configuring Aubit compiler binary distribution:${T_ME}" >&6; }

fi

#FIXME: what is this?
#This directive is expanded in initialisation part, and putting it in
#"if" have no effect:
#AC_CONFIG_SRCDIR([compilers/4glc/4glc.c])
#so we need to specify file which is in both source code and
#binary distributions:


if test "$AUBIT_SOURCE" = "1" ; then
	#Location of global header to receive "#define ABCD y" replacements:
	#AC_CONFIG_HEADER([incl/a4gl_incl_config.h])
	#When file name contains path and therefore / , we get strange errors
    #from automake if path is specified as ([path/file.ext]). Autoconf
    #seems to work fine with this.

ac_config_headers="$ac_config_headers incl/a4gl_incl_config.h"

ac_config_commands="$ac_config_commands default-1"

	aubitdir_src="$aubitdir"
else
	aubitdir_src=""
fi

#AC_TRY_RUN (program, [action-if-true [, action-if-false [, action-if-cross-compiling]]])
#program is the text of a C program, on which shell variable and backquote substitutions
#are performed. If it compiles and links successfully and returns an exit status of 0 when executed,
#run shell commands action-if-true. Otherwise run shell commands action-if-false; the exit status of
#the program is available in the shell variable `$?'. This macro uses CFLAGS or CXXFLAGS, CPPFLAGS, LDFLAGS, and LIBS when compiling.

#If the C compiler being used does not produce executables that run on the system where configure is
#being run, then the test program is not run. If the optional shell commands action-if-cross-compiling
#	are given, they are run instead. Otherwise, configure prints an error message and exits.

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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


  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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 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
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


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

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


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

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

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM 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.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

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

else
  ac_file=''
fi
if test -z "$ac_file"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "C compiler cannot create executables
See \`config.log' for more details" "$LINENO" 5; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext

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

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
  { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
  if { ac_try='./conftest$ac_cv_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details" "$LINENO" 5; }
    fi
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if ${ac_cv_objext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

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

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of object files: cannot compile
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if ${ac_cv_c_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

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

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

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

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

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

int
main ()
{

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

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

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

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i 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
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

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

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
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


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

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


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

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if ${ac_cv_header_stdc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

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

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>

int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;

int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; 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
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)

$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h

     ;; #(
   *)
     as_fn_error $? "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac

#   If words are stored with the most significant byte first (like Motorola and SPARC,
#but not Intel and VAX, CPUs), define WORDS_BIGENDIAN.

# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
$as_echo_n "checking build system type... " >&6; }
if ${ac_cv_build+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5

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


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
$as_echo_n "checking host system type... " >&6; }
if ${ac_cv_host+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
fi

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



case $host_os in
  *cygwin* ) CYGWIN=yes;;
	 * ) CYGWIN=no;;
esac

#  Checks for the Cygwin environment. If present, sets shell variable CYGWIN to `yes'.
#If not present, sets CYGWIN to the empty string.


#configure.in:151: warning: AC_ARG_PROGRAM was called before AC_ CANONICAL_ TARGET
#but if I uncomment it, it complains that it was invoked multiple times!
#AC_ CANONICAL_ TARGET
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
$as_echo_n "checking target system type... " >&6; }
if ${ac_cv_target+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$target_alias" = x; then
  ac_cv_target=$ac_cv_host
else
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
$as_echo "$ac_cv_target" >&6; }
case $ac_cv_target in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
esac
target=$ac_cv_target
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_target
shift
target_cpu=$1
target_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
target_os=$*
IFS=$ac_save_IFS
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac


# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
test -n "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-


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










#Note: The libltdl library included with all libtool versions will only work on
#Darwin when dlcompat is installed.



#		echo "****************************************"
#		echo "is this before command line lenght?   1"
#		echo "****************************************"

#AC_LIBLTDL_INSTALLABLE





case $enable_ltdl_convenience in
  no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
  "") enable_ltdl_convenience=yes
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
esac
LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
LTDLDEPS=$LIBLTDL
LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"





# For backwards non-gettext consistent compatibility...
INCLTDL="$LTDLINCL"


enable_win32_dll=yes

case $host in
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
set dummy ${ac_tool_prefix}as; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AS+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AS"; then
  ac_cv_prog_AS="$AS" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AS="${ac_tool_prefix}as"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AS=$ac_cv_prog_AS
if test -n "$AS"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
$as_echo "$AS" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_AS"; then
  ac_ct_AS=$AS
  # Extract the first word of "as", so it can be a program name with args.
set dummy as; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AS+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AS"; then
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AS="as"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AS=$ac_cv_prog_ac_ct_AS
if test -n "$ac_ct_AS"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
$as_echo "$ac_ct_AS" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_AS" = x; then
    AS="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AS=$ac_ct_AS
  fi
else
  AS="$ac_cv_prog_AS"
fi

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

fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DLLTOOL=$ac_ct_DLLTOOL
  fi
else
  DLLTOOL="$ac_cv_prog_DLLTOOL"
fi

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

fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi

  ;;
esac

test -z "$AS" && AS=as





test -z "$DLLTOOL" && DLLTOOL=dlltool





test -z "$OBJDUMP" && OBJDUMP=objdump








enable_dlopen=yes




case $host in
	#hppa2.0w-hp-hpux11.00
	*-hp-hpux*)
		#> 1) in ./configure I get a core dump when trying to figure command line length.
		#>    I do a "export lt_cv_sys_max_cmd_len=200" before configure and that
		#>    seems to clear it up.
		export lt_cv_sys_max_cmd_len=200
		;;
esac


#if test "$AUBIT_SOURCE" = "1" ; then

#Skipping this block causes :
#configure: WARNING: pdflib.h: accepted by the compiler, rejected by the preprocessor!
#
#configure:18595: checking pdflib.h usability
#configure:18607: gcc -c -g -O2     conftest.c >&5
#configure:18613: $? = 0
#configure:18617: test -z
#                         || test ! -s conftest.err
#configure:18620: $? = 0
#configure:18623: test -s conftest.o
#configure:18626: $? = 0
#configure:18636: result: yes
#configure:18640: checking pdflib.h presence
#configure:18650:    conftest.c
#./configure: line 18651: conftest.c: command not found

#Should be like this:

#configure:16507: checking sxml.h usability
#configure:16519: gcc -c -g -O2 -I/usr/local/include  conftest.c >&5
#configure:16525: $? = 0
#configure:16529: test -z
#                         || test ! -s conftest.err
#configure:16532: $? = 0
#configure:16535: test -s conftest.o
#configure:16538: $? = 0
#configure:16548: result: yes
#configure:16552: checking sxml.h presence
#configure:16562: gcc -E -I/usr/local/include  conftest.c
#configure:16568: $? = 0
#configure:16588: result: yes

	#this would try to make etc/config/ltmain.sh (do we care?)
	case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac



macro_version='2.2.10'
macro_revision='1.3175'













ltmain="$ac_aux_dir/ltmain.sh"

# Backslashify metacharacters that are still active within
# double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'

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

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

# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'

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

ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
$as_echo_n "checking how to print strings... " >&6; }
# Test print first, because it will be a builtin if present.
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='printf %s\n'
else
  # Use this function as a fallback that always works.
  func_fallback_echo ()
  {
    eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
  }
  ECHO='func_fallback_echo'
fi

# func_echo_all arg...
# Invoke $ECHO with all args, space-separated.
func_echo_all ()
{
    $ECHO ""
}

case "$ECHO" in
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
$as_echo "printf" >&6; } ;;
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
$as_echo "print -r" >&6; } ;;
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
$as_echo "cat" >&6; } ;;
esac














{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"











{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if ${ac_cv_path_FGREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_FGREP=$FGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"


test -z "$GREP" && GREP=grep



















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

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

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









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if ${lt_cv_path_NM+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$DUMPBIN"; then :
    # Let the user override the test.
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in dumpbin "link -dump"
  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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$DUMPBIN" && break
  done
fi
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in dumpbin "link -dump"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_DUMPBIN" && break
done

  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DUMPBIN=$ac_ct_DUMPBIN
  fi
fi

    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    *COFF*)
      DUMPBIN="$DUMPBIN -symbols"
      ;;
    *)
      DUMPBIN=:
      ;;
    esac
  fi

  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if ${lt_cv_nm_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }

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

# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if ${lt_cv_sys_max_cmd_len+:} false; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"

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

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

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

  mint*)
    # On MiNT this can take a long time and run out of memory.
    lt_cv_sys_max_cmd_len=8192;
    ;;

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

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

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

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

fi

if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len






: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }


if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
else
  lt_unset=false
fi





# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
esac









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









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

fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi

test -z "$OBJDUMP" && OBJDUMP=objdump






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

case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

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

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

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    # Keep this pattern in sync with the one in func_win32_libid.
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;

cegcc*)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

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

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

haiku*)
  lt_cv_deplibs_check_method=pass_all
  ;;

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

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

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

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;

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

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

*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
  ;;

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

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

rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

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

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

tpf*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac

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












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

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


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

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

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
else
  AR="$ac_cv_prog_AR"
fi

test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru











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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

test -z "$STRIP" && STRIP=:






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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

test -z "$RANLIB" && RANLIB=:






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

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

case $host_os in
  darwin*)
    lock_old_archive_extraction=yes ;;
  *)
    lock_old_archive_extraction=no ;;
esac





















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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


  test -n "$AWK" && break
done



















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

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

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


# Check for command to grab the raw symbol name followed by C symbol from nm.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  $as_echo_n "(cached) " >&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]*\)'

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32* | cegcc*)
  symcode='[ABCDGISTW]'
  ;;
hpux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

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

# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"

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

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

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

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

  # Write the raw and C identifiers.
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
    # Also find C++ and __fastcall symbols from MSVC++,
    # which start with @ or ?.
    lt_cv_sys_global_symbol_pipe="$AWK '"\
"     {last_section=section; section=\$ 3};"\
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
"     \$ 0!~/External *\|/{next};"\
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
"     {if(hide[section]) next};"\
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
"     ' prfx=^$ac_symprfx"
  else
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  fi

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

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

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

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

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

	  cat <<_LT_EOF >> conftest.$ac_ext

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

/* This works around a problem in FreeBSD linker */
#ifdef FREEBSD_WORKAROUND
static const void *lt_preloaded_setup() {
  return lt__PROGRAM__LTX_preloaded_symbols;
}
#endif

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

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

fi

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






















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

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

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

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

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if ${lt_cv_cc_needs_belf+:} false; then :
  $as_echo_n "(cached) " >&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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_cc_needs_belf=yes
else
  lt_cv_cc_needs_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

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

need_locks="$enable_libtool_lock"


  case $host_os in
    rhapsody* | darwin*)
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DSYMUTIL"; then
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DSYMUTIL=$ac_cv_prog_DSYMUTIL
if test -n "$DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
$as_echo "$DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DSYMUTIL"; then
  ac_ct_DSYMUTIL=$DSYMUTIL
  # Extract the first word of "dsymutil", so it can be a program name with args.
set dummy dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DSYMUTIL"; then
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
if test -n "$ac_ct_DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
$as_echo "$ac_ct_DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DSYMUTIL" = x; then
    DSYMUTIL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DSYMUTIL=$ac_ct_DSYMUTIL
  fi
else
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
fi

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

fi
fi
NMEDIT=$ac_cv_prog_NMEDIT
if test -n "$NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
$as_echo "$NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_NMEDIT"; then
  ac_ct_NMEDIT=$NMEDIT
  # Extract the first word of "nmedit", so it can be a program name with args.
set dummy nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NMEDIT"; then
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
if test -n "$ac_ct_NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
$as_echo "$ac_ct_NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_NMEDIT" = x; then
    NMEDIT=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    NMEDIT=$ac_ct_NMEDIT
  fi
else
  NMEDIT="$ac_cv_prog_NMEDIT"
fi

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

fi
fi
LIPO=$ac_cv_prog_LIPO
if test -n "$LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
$as_echo "$LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_LIPO"; then
  ac_ct_LIPO=$LIPO
  # Extract the first word of "lipo", so it can be a program name with args.
set dummy lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_LIPO"; then
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LIPO="lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
if test -n "$ac_ct_LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
$as_echo "$ac_ct_LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_LIPO" = x; then
    LIPO=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    LIPO=$ac_ct_LIPO
  fi
else
  LIPO="$ac_cv_prog_LIPO"
fi

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

fi
fi
OTOOL=$ac_cv_prog_OTOOL
if test -n "$OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
$as_echo "$OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL"; then
  ac_ct_OTOOL=$OTOOL
  # Extract the first word of "otool", so it can be a program name with args.
set dummy otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL"; then
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL="otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
if test -n "$ac_ct_OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
$as_echo "$ac_ct_OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL" = x; then
    OTOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL=$ac_ct_OTOOL
  fi
else
  OTOOL="$ac_cv_prog_OTOOL"
fi

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

fi
fi
OTOOL64=$ac_cv_prog_OTOOL64
if test -n "$OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
$as_echo "$OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL64"; then
  ac_ct_OTOOL64=$OTOOL64
  # Extract the first word of "otool64", so it can be a program name with args.
set dummy otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL64"; then
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL64="otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
if test -n "$ac_ct_OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
$as_echo "$ac_ct_OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL64" = x; then
    OTOOL64=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL64=$ac_ct_OTOOL64
  fi
else
  OTOOL64="$ac_cv_prog_OTOOL64"
fi



























    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
$as_echo_n "checking for -single_module linker flag... " >&6; }
if ${lt_cv_apple_cc_single_mod+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_apple_cc_single_mod=no
      if test -z "${LT_MULTI_MODULE}"; then
	# By default we will add the -single_module flag. You can override
	# by either setting the environment variable LT_MULTI_MODULE
	# non-empty at configure time, or by adding -multi_module to the
	# link flags.
	rm -rf libconftest.dylib*
	echo "int foo(void){return 1;}" > conftest.c
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&5
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
        _lt_result=$?
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
	  lt_cv_apple_cc_single_mod=yes
	else
	  cat conftest.err >&5
	fi
	rm -rf libconftest.dylib*
	rm -f conftest.*
      fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
if ${lt_cv_ld_exported_symbols_list+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_ld_exported_symbols_list=yes
else
  lt_cv_ld_exported_symbols_list=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
$as_echo_n "checking for -force_load linker flag... " >&6; }
if ${lt_cv_ld_force_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_force_load=no
      cat > conftest.c << _LT_EOF
int forced_loaded() { return 2;}
_LT_EOF
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
      echo "$AR cru libconftest.a conftest.o" >&5
      $AR cru libconftest.a conftest.o 2>&5
      echo "$RANLIB libconftest.a" >&5
      $RANLIB libconftest.a 2>&5
      cat > conftest.c << _LT_EOF
int main() { return 0;}
_LT_EOF
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
      _lt_result=$?
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
	lt_cv_ld_force_load=yes
      else
	cat conftest.err >&5
      fi
        rm -f conftest.err libconftest.a conftest conftest.c
        rm -rf conftest.dSYM

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
$as_echo "$lt_cv_ld_force_load" >&6; }
    case $host_os in
    rhapsody* | darwin1.[012])
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    darwin1.*)
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    darwin*) # darwin 5.x on
      # if running on 10.5 or later, the deployment target defaults
      # to the OS version, if on x86, and 10.4, the deployment
      # target defaults to 10.4. Don't you love it?
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
	10.*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
      esac
    ;;
  esac
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
      _lt_dar_single_mod='$single_module'
    fi
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
    else
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    fi
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
      _lt_dsymutil='~$DSYMUTIL $lib || :'
    else
      _lt_dsymutil=
    fi
    ;;
  esac

for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
"
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF

fi

done





# Set options





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











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


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







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











# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'


























test -z "$LN_S" && LN_S="ln -s"














if test -n "${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi

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





cat >>confdefs.h <<_ACEOF
#define LT_OBJDIR "$lt_cv_objdir/"
_ACEOF




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

# Global variables:
ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a

with_gnu_ld="$lt_cv_prog_gnu_ld"

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

# Set sane defaults for various variables
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
test -z "$LD" && LD=ld
test -z "$ac_objext" && ac_objext=o

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


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

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

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





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

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

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


  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

# Use C for the default configuration in the libtool script

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


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

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

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

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







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

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

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

# Save the default compiler, since it gets overwritten when the other
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
compiler_DEFAULT=$CC

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

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


if test -n "$compiler"; then

lt_prog_compiler_no_builtin_flag=

if test "$GCC" = yes; then
  case $cc_basename in
  nvcc*)
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  *)
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  esac

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

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }

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

fi






  lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }

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

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

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

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

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # 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).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

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

    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static=
      ;;

    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
      ;;

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

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

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

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

    *)
      lt_prog_compiler_pic='-fPIC'
      ;;
    esac

    case $cc_basename in
    nvcc*) # Cuda Compiler Driver 2.2
      lt_prog_compiler_wl='-Xlinker '
      lt_prog_compiler_pic='-Xcompiler -fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      else
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;

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

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

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

    linux* | k*bsd*-gnu | kopensolaris*-gnu)
      case $cc_basename in
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='--shared'
	lt_prog_compiler_static='--static'
	;;
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static='-non_shared'
        ;;
      xl* | bgxl* | bgf* | mpixl*)
	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-qpic'
	lt_prog_compiler_static='-qstaticlink'
	;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ F* | *Sun*Fortran*)
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl=''
	  ;;
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Wl,'
	  ;;
	esac
	;;
      esac
      ;;

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

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

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

    rdos*)
      lt_prog_compiler_static='-non_shared'
      ;;

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

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

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

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

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

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

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

    *)
      lt_prog_compiler_can_build_shared=no
      ;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
$as_echo "$lt_prog_compiler_pic" >&6; }






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

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }

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

fi






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

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }

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







  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

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

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

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

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&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
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_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






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  runpath_var=
  allow_undefined_flag=
  always_export_symbols=no
  archive_cmds=
  archive_expsym_cmds=
  compiler_needs_object=no
  enable_shared_with_static_runtimes=no
  export_dynamic_flag_spec=
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic=no
  hardcode_direct=no
  hardcode_direct_absolute=no
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  inherit_rpath=no
  link_all_deplibs=unknown
  module_cmds=
  module_expsym_cmds=
  old_archive_from_new_cmds=
  old_archive_from_expsyms_cmds=
  thread_safe_flag_spec=
  whole_archive_flag_spec=
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  # 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.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=

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

  ld_shlibs=yes

  # On some targets, GNU ld is compatible enough with the native linker
  # that we're better off using the native interface for both.
  lt_use_gnu_ld_interface=no
  if test "$with_gnu_ld" = yes; then
    case $host_os in
      aix*)
	# The AIX port of GNU ld has always aspired to compatibility
	# with the native linker.  However, as the warning in the GNU ld
	# block says, versions before 2.19.5* couldn't really create working
	# shared libraries, regardless of the interface used.
	case `$LD -v 2>&1` in
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
	  *)
	    lt_use_gnu_ld_interface=yes
	    ;;
	esac
	;;
      *)
	lt_use_gnu_ld_interface=yes
	;;
    esac
  fi

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

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

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix[3-9]*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.19, 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 install binutils
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
*** You will then need to restart the configuration process.

_LT_EOF
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            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
        ;;
      esac
      ;;

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

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

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

    haiku*)
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      link_all_deplibs=yes
      ;;

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

    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
      fi
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      then
	tmp_addflag=
	tmp_sharedflag='-shared'
	case $cc_basename,$host_cpu in
        pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95* | pgfortran*)
					# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec=
	  tmp_sharedflag='--shared' ;;
	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
	nvcc*)	# Cuda Compiler Driver 2.2
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  ;;
	esac
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	esac
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

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

	case $cc_basename in
	xlf* | bgf* | bgxlf* | mpixlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec=
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
	  if test "x$supports_anon_versioning" = xyes; then
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	      echo "local: *; };" >> $output_objdir/$libname.ver~
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
      else
        ld_shlibs=no
      fi
      ;;

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

    solaris*)
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<_LT_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.

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

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

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

_LT_EOF
	;;
	*)
	  # For security reasons, it is highly recommended that you always
	  # use absolute paths for naming shared libraries, and exclude the
	  # DT_RUNPATH tag from executables and libraries.  But doing so
	  # requires that you compile everything twice, which is a pain.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
	    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
      ;;

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

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

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

    aix[4-9]*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	# Also, AIX nm treats weak defined symbols like other global
	# defined symbols, whereas GNU nm marks them as "W".
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

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

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

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

      archive_cmds=''
      hardcode_direct=yes
      hardcode_direct_absolute=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      file_list_spec='${wl}-f,'

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

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

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

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

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

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

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            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
        ;;
      esac
      ;;

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

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

    darwin* | rhapsody*)


  archive_cmds_need_lc=no
  hardcode_direct=no
  hardcode_automatic=yes
  hardcode_shlibpath_var=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec=''
  fi
  link_all_deplibs=yes
  allow_undefined_flag="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"

  else
  ld_shlibs=no
  fi

      ;;

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

    freebsd1*)
      ld_shlibs=no
      ;;

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

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

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

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

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

    hpux10*)
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld='+b $libdir'
	hardcode_libdir_separator=:
	hardcode_direct=yes
	hardcode_direct_absolute=yes
	export_dynamic_flag_spec='${wl}-E'
	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L=yes
      fi
      ;;

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

	  # Older versions of the 11.00 compiler do not understand -b yet
	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
$as_echo_n "checking if $CC understands -b... " >&6; }
if ${lt_cv_prog_compiler__b+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler__b=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS -b"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler__b=yes
       fi
     else
       lt_cv_prog_compiler__b=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
$as_echo "$lt_cv_prog_compiler__b" >&6; }

if test x"$lt_cv_prog_compiler__b" = xyes; then
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
else
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
fi

	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

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

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

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
        save_LDFLAGS="$LDFLAGS"
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo(void) {}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
        LDFLAGS="$save_LDFLAGS"
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      inherit_rpath=yes
      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
      ;;

    *nto* | *qnx*)
      ;;

    openbsd*)
      if test -f /usr/libexec/ld.so; then
	hardcode_direct=yes
	hardcode_shlibpath_var=no
	hardcode_direct_absolute=yes
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	  export_dynamic_flag_spec='${wl}-E'
	else
	  case $host_os in
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	     hardcode_libdir_flag_spec='-R$libdir'
	     ;;
	   *)
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	     ;;
	  esac
	fi
      else
	ld_shlibs=no
      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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      archive_cmds_need_lc='no'
      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" && func_echo_all "${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='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'

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

    solaris*)
      no_undefined_flag=' -z defs'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
      else
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  wlarc=''
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
	# The compiler driver will combine and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
	# Supported since Solaris 2.6 (maybe 2.5.1?)
	if test "$GCC" = yes; then
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	else
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
	fi
	;;
      esac
      link_all_deplibs=yes
      ;;

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

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

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

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

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

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

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

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

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

    *)
      ld_shlibs=no
      ;;
    esac

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec='${wl}-Blargedynsym'
	;;
      esac
    fi
  fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
$as_echo "$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

with_gnu_ld=$with_gnu_ld















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

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

	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl
	  pic_flag=$lt_prog_compiler_pic
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag
	  allow_undefined_flag=
	  if { { eval echo "\"\$as_me\":${as_lineno-$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=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	  then
	    lt_cv_archive_cmds_need_lc=no
	  else
	    lt_cv_archive_cmds_need_lc=yes
	  fi
	  allow_undefined_flag=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
      ;;
    esac
  fi
  ;;
esac





























































































































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

if test "$GCC" = yes; then
  case $host_os in
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
    *) lt_awk_arg="/^libraries:/" ;;
  esac
  case $host_os in
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
    *) lt_sed_strip_eq="s,=/,/,g" ;;
  esac
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  case $lt_search_path_spec in
  *\;*)
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
    ;;
  *)
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
    ;;
  esac
  # Ok, now we have the path, separated by spaces, we can step through it
  # and add multilib dir if necessary.
  lt_tmp_lt_search_path_spec=
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  for lt_sys_path in $lt_search_path_spec; do
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
    else
      test -d "$lt_sys_path" && \
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
    fi
  done
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
BEGIN {RS=" "; FS="/|\n";} {
  lt_foo="";
  lt_count=0;
  for (lt_i = NF; lt_i > 0; lt_i--) {
    if ($lt_i != "" && $lt_i != ".") {
      if ($lt_i == "..") {
        lt_count++;
      } else {
        if (lt_count == 0) {
          lt_foo="/" $lt_i lt_foo;
        } else {
          lt_count--;
        }
      }
    }
  }
  if (lt_foo != "") { lt_freq[lt_foo]++; }
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
}'`
  # AWK program above erroneously prepends '/' to C:/dos/paths
  # for these hosts.
  case $host_os in
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  esac
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

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

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

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

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

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    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=`func_echo_all "$lib" | $SED '\''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'
    ;;
  esac
  ;;

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

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

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

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

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'

      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

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

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

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

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  # Handle Gentoo/FreeBSD as it was Linux
  case $host_vendor in
    gentoo)
      version_type=linux ;;
    *)
      version_type=freebsd-$objformat ;;
  esac

  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
    linux)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
      soname_spec='${libname}${release}${shared_ext}$major'
      need_lib_prefix=no
      need_version=no
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

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

haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;

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

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

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

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

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no

  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




























































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; 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






  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if ${ac_cv_lib_dld_shl_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if ${ac_cv_lib_svld_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if ${ac_cv_lib_dld_dld_link+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&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 <<_LT_EOF
#line $LINENO "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

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
void fnord () __attribute__((visibility("default")));
#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;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&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 <<_LT_EOF
#line $LINENO "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

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
void fnord () __attribute__((visibility("default")));
#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;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$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

















striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&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"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&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
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




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

CC="$lt_save_CC"













        ac_config_commands="$ac_config_commands libtool"




# Only expand once:




#fi

## ==================================================================
##                Define what will get substituted
## ==================================================================

#Identification












#aubitrc:




































#SQL


#Informix ESQL/C











#Informix ODBC


#MySQL





#SAP DB ESQL/C








#SAP DB ODBC





#PG ODBC






#PG ESQL
















#AC_SUBST(HAVE_PG_INFORMIX_ESQL_DECIMAL_H)
#AC_SUBST(HAVE_POSTGRESQL_INFORMIX_ESQL_DECIMAL_H)
#AC_SUBST(HAVE_PGSQL_INFORMIX_ESQL_DECIMAL_H)



#UnixODBC





#Iodbc





#GTK+











#Sun RPC/XDR







#XML RPC







#PDF





#DoxyGen





#http server







#RPM





#ORBit CORBA:








#Jabber/Iksemel lib




#exdatatype







#other





























#AC_SUBST(YACC)






















































#Inno Setup:

#AC_SUBST(IS_SOURCE_GTK)




#Autopackage:






#curses:




















#debug






#Install/deinstall files lists







































EXTRAFILE_SIZE=10

#files to be packaged into RPM, that are built optionaly because of external
#dependencied. Also used for install/deinstall, and to tell make which files to
#build:


















































RPMFILE_SIZE=50

#files to be packaged into Windows installer (InnoSetup), that are built optionaly because of external
#dependencies. Cannot use RPMFILE_xx for this since they are needed for lib makefile and install/deinstall


















































ISFILE_SIZE=50




















































IS_THIRDPARTY_SIZE=50

#List of libraries that we allways make. Here so we don't have to maintain it
#separately for RPM config file, install/deinstall and lib Makefile:


















































LIBFILE_SIZE=50

#List of libraries that we allways make. For Windows installer.


















































ISLIBFILE_SIZE=50

#Executables (RPM)


















































EXEFILE_SIZE=50

#executables (Windows)


















































ISEXEFILE_SIZE=50

#Shell scripts:




















SHFILE_SIZE=20





















ISSHFILE_SIZE=20

#Include files:


















































INCFILE_SIZE=50






















ISINCFILE_SIZE=20

#Examples:




























































EXAMPFILE_SIZE=60





























































ISEXAMPFILE_SIZE=60

#Makefiles:




















MAKEFILE_SIZE=20





















ISMAKEFILE_SIZE=20

#Documentation files:




















DOCFILE_SIZE=20





















ISDOCFILE_SIZE=20

#Configuration files:




















CONFFILE_SIZE=20





















ISCONFFILE_SIZE=20

#SQL conversion files




















CONVFILE_SIZE=20





















ISCONVFILE_SIZE=20

#4GLPC compile settings files
#TODO - add to RPM and ISS setup files




















FGLPCSETFILE_SIZE=20





















ISFGLPCSETFILE_SIZE=20


#Import files




















IMPORTFILE_SIZE=20





















ISIMPORTFILE_SIZE=20

#Amake files:
#(RPM FILES GO WITH INC FILES)




















ISAMAKEFILE_SIZE=20

#Help files










HELPFILE_SIZE=10











ISHELPFILE_SIZE=10

#Form files










FORMFILE_SIZE=10











ISFORMFILE_SIZE=10

## ==================================================================
##                             Defaults
## ==================================================================


#need to do this again, since the earlyer one was before initialisation,
#and will not get in substitution otherwise:

if test "$AUBIT_SOURCE" = "1" ; then
	TMPrrr=`grep -c '=' tools/project/version`
	if test "$TMPrrr" -gt 0 ; then
		as_fn_error $? "tools/project/version CVS merge conflict. Stop." "$LINENO" 5
	fi
	TMPrrr=`grep -c '=' tools/project/build`
	if test "$TMPrrr" -gt 0 ; then
		as_fn_error $? "tools/project/build CVS merge conflict. Stop." "$LINENO" 5
	fi

	AUBIT_VERSION=`cat tools/project/version`
	AUBIT_BUILD=`cat tools/project/build`

	#Cant test version since its a decimal not integer
	#if test "$AUBIT_VERSION" -lt 0 -o "$AUBIT_VERSION" = ""; then
	if test "$AUBIT_VERSION" = "" ; then
		as_fn_error $? "tools/project/version file is empty. Stop." "$LINENO" 5
	fi
	if test "$AUBIT_BUILD" = "" ; then
		as_fn_error $? "tools/project/build file is empty. Stop." "$LINENO" 5
	fi

	if test "$AUBIT_BUILD" -lt 0 ; then
		as_fn_error $? "tools/project/build file is invalid. Stop." "$LINENO" 5
	fi

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Aubit version" >&5
$as_echo_n "checking Aubit version... " >&6; }
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -$AUBIT_VERSION.$AUBIT_BUILD-" >&5
$as_echo "-$AUBIT_VERSION.$AUBIT_BUILD-" >&6; }


	if test "$COMSPEC" = ""; then
		COLLECT_THIRD_PARTY=0
	else
		COLLECT_THIRD_PARTY=1
	fi
fi

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

  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="no"
  ;;
esac
fi
GREP=$ac_cv_path_GREP
if test -n "$GREP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
$as_echo "$GREP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


GREP_WORD="$ac_cv_path_GREP -w"
export GREP_WORD

echo "Hello" | $ac_cv_path_GREP -w "Hello" > /dev/null
if test $? = 0
then
	GREP_WORD="$ac_cv_path_GREP -w"
	export GREP_WORD
else
	GREP_WORD=$ac_cv_path_GREP
	export GREP_WORD
fi
#sleep 50

#When set to 1, all options that test for it will be disabled
#regardless of wheater there prerequisistites are found or not. This is usually
#done because option is broken and cant compile at the moment
DO_DISABLE=1

FULLNAME="Aubit 4GL compiler"
SHORTNAME="aubit4gl"
AUBIT_WEBSITE=aubit4gl.sf.net
AUBIT_PUBLISHER="Aubit project development team"
AUBIT_LICENSE="GNU GPL/LGPL"
AUBIT_COPYRIGHT_MSG="Copyright (C) 1998 - 2006 Aubit development team"
COMPILE_DATE=`date +%d-%m-%Y`
test_rpclib="1"
GTKBUILD=no
HAVE_IODBC=no
HAVE_UNIXODBC=no
HAVE_IFXODBC=no
HAVE_PG_ESQL_DECIMAL_H=no
HAVE_PGODBC=no
PG_ESQLC_HASV3=0
APIC="-fPIC"
ODBC_LIB_NAME=noodbc
USE_PDF=no
PDFBUILD=no
HAVE_POPLIB=no
HAVE_SMTPLIB=no
HAVE_SMTPLIB_PART_END=0
PERLBUILD=no
JABBERBUILD=no
AUBIT_DEBUG=1
HAVE_RPCLIB=0
EXDATA_MPZ=no
IFMX_ESQLC=no
Q_ESQLC=no
XML_RPC=no
CINT=no
LCLINTEXE=no
STRIP_EXECUTABLES=no
cygwin=0
A4GL_PATH_SEP=":"
SLASH=\\


INFORMIXC=$CC
HAVE_CURSES=0
HAVE_PDCURSES=0

COMP_FORM_EXT=".afr.dat"

#if test "$COMSPEC" = ""; then
	A4GL_EXE_EXT=".4ae"
#else
#	A4GL_EXE_EXT=".exe"
#fi

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

  test -z "$ac_cv_path_CYGPATH" && ac_cv_path_CYGPATH="no"
  ;;
esac
fi
CYGPATH=$ac_cv_path_CYGPATH
if test -n "$CYGPATH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
$as_echo "$CYGPATH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



if test "$CYGPATH" != "no"; then
	#HOMEDRIVE is CygWin created environment variable, points to Windows
	#installation disk (or is it location of $HOME directories?)
	#WINDOWS_DRIVE=$HOMEDRIVE
	WINDOWS_DRIVE=`$CYGPATH -W / | sed -e 's/\// /g' | awk '{print $2}'`

	#cygpath has this options
	#System information:
	#  -A, --allusers        use `All Users' instead of current user for -D, -P
	#  -D, --desktop         output `Desktop' directory and exit
	#  -H, --homeroot        output `Profiles' directory (home root) and exit
	#  -P, --smprograms      output Start Menu `Programs' directory and exit
	#  -S, --sysdir          output system directory and exit
	#  -W, --windir          output `Windows' directory and exit

	#Path where CygWin is intalled, in Windows format (tipically 'C:\cygwin'):
	CYGWIN_PATH_WIN=`$CYGPATH -w /`
	#Path where CygWin is installed, without the drive letter (tipically '/cygwin')
	CYGWIN_PATH=`$CYGPATH -m / | sed -e 's/:/ /g' | awk '{print $2}'`
	#Windows drive letter of the drive on which CygWin is installed (without column)
	CYGWIN_DRIVE=`$CYGPATH -m / | sed -e 's/:/ /g' | awk '{print $1}'`
fi

USE_RPCGEN=0
#SYSTEMDRIVE is Windows created environment variable pointing to drive containing Windows OS
SYSDRIVE=$SYSTEMDRIVE






#   Defines substitute variable OBJEXT based on the output of the compiler,
#after .c files have been excluded. Typically set to `.o' if Unix, `.obj' if Win32.

ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
if test "x$ac_cv_type_u_int" = xyes; then :

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


fi

if test "$ac_cv_type_u_int" = "yes"
then
	$as_echo "#define HAVE_U_INT 1" >>confdefs.h

fi

case $host_os in
  *mingw32* ) MINGW32=yes;;
	  * ) MINGW32=no;;
esac

#  Checks for the MingW32 compiler environment. If present, sets shell variable
#MINGW32 to `yes'. If not present, sets MINGW32 to the empty string.
#WARNING-this gives NO when using MiGW GCC with CygWin tools


case $host_os in
  *cygwin* ) CYGWIN=yes;;
	 * ) CYGWIN=no;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Autoconf MinGW/CygWin state based on AC macros" >&5
$as_echo_n "checking Autoconf MinGW/CygWin state based on AC macros... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MINGW32=$MINGW32 CYGWIN=$CYGWIN" >&5
$as_echo "MINGW32=$MINGW32 CYGWIN=$CYGWIN" >&6; }

SO_EXT=.so
SO_EXT_LINKABLE=$SO_EXT
#ARCHEXT=tar.gz
ARCHEXT=tgz
XMLRPC_C_CONFIG=no

#defaults for aubitrc:
A4GL_SQLTYPE=nosql
A4GL_SQLTYPE_DETECTED=nosql
A4GL_SQLTYPE_COMPILE_ONLY_DETECTED=nosql
A4GL_SQLTYPE_EC_VALID_ALL="nosql"

A4GL_PDFTYPE=NOPDF
A4GL_PDFTYPE_DETECTED=NOPDF
A4GL_RPCTYPE=NORPC
A4GL_RPCTYPE_DETECTED=NORPC
A4GL_UI=CONSOLE
A4GL_UI_DETECTED=CONSOLE
#We can have P-code without C compiler when installing binary packages
A4GL_LEXTYPE=
A4GL_LEXTYPE_DETECTED=
A4GL_LEXDIALECT=""
A4GL_LEXDIALECT_DETECTED=""
A4GL_FORMTYPE=NOFORM
A4GL_FORMTYPE_DETECTED=NOFORM
A4GL_MSGTYPE=NATIVE
A4GL_MSGTYPE_DETECTED=NATIVE
#case "$target_os" in
case $host in
	*linux*)
        #rpclib is part of clib on Linux
		APIC="-fPIC"
		test_rpclib="0"

		if test -f /etc/redhat-release ; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RedHat version" >&5
$as_echo_n "checking RedHat version... " >&6; }
			REDHAT_NAME=`cat /etc/redhat-release`
			REDHAT_VER=`echo $REDHAT_NAME | awk '{print $5}'`
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REDHAT_NAME ($REDHAT_VER)" >&5
$as_echo "$REDHAT_NAME ($REDHAT_VER)" >&6; }
		fi
		if test "$arch" = x86_64 ; then
				APIC="-fPIC"
		fi

		;;

	*-*-mingw*)
			GCC_MINGW=yes
			#Autoconf will set TARGET and target_os to CygWin when we use
			#CygWin tools with MinGW GCC
			#TARGET=i686-pc-cygwin
			target_os="mingw"
			A4GL_PATH_SEP=";"

        ;;

    #  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
	*-*-cygwin | *-*-cygwin* | *-*-pw32*)
		ODBC=odbc32;
    	ODBCMANAGER=$ODBC;
		cygwin=1
        SO_EXT=.dll
        SO_EXT_LINKABLE=$SO_EXT
		ARCHEXT=zip

        #check if we are using MinGW GCC with CygWin:
		#WARNING: THIS TEST OCCURS ONE MORE TIME, LATER IN THIS FILE!
		TMP_TMP=`gcc -dumpmachine | sed 's/
//g'`
		if test "$TMP_TMP" != ""; then
			if test "$TMP_TMP" = "mingw32" ; then
				GCC_MINGW=yes
				#Autoconf will set TARGET and target_os to CygWin when we use
				#CygWin tools with MinGW GCC
				#TARGET=i686-pc-cygwin
				target_os="mingw"
				A4GL_PATH_SEP=";"
			fi
		fi

		;;

	#*-sun-solaris2.7 (Jonathan) and 2.8 (Andrej on SF CF)
	*-sun-solaris*)
		#INFORMIXC=cc
		APIC="-fPIC"
		;;

	#powerpc-apple-darwin5.5 (Andrej on SF CF)
	*-apple-darwin*)
		#for dlopen() libs (plug-ins):
		SO_EXT=.bundle
        #for libaubit4gl and other linkable libs:
		SO_EXT_LINKABLE=.dylib
		;;

	#hppa2.0w-hp-hpux11.00
	*-hp-hpux*)
        #on HP-UX only native C compiler is supported for compiling Informix
        # ESQL/C generated C code?
		INFORMIXC=c89
        SO_EXT=.sl
        SO_EXT_LINKABLE=$SO_EXT
		SO_LDFLAGS="-b"
        LDFLAGS_SHARED="-b"
		;;

	*-ibm-aix*)
		APIC=
		LDFLAGS_SHARED="-s"
        	SO_EXT=.a
        	SO_EXT_LINKABLE=$SO_EXT
        ;;

	*)
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are using untested platform" >&5
$as_echo "$as_me: WARNING: You are using untested platform" >&2;}
		echo "    Please report success or failure to compile Aubit on this"
		echo "    platform to the mailing list. Thank you."
        ;;
esac


if test "$LTPIC" != ""
then
	APIC="$LTPIC"
	LDFLAGS_SHARED="$LTPIC $shared_flag"
else
	LDFLAGS_SHARED="$APIC -shared"
fi

#ALL_LINGUAS="de fr es ko nl no pl pt sl sv"
ALL_LINGUAS="en"
#AM_GNU_GETTEXT




# Check whether --with-sqluid was given.
if test "${with_sqluid+set}" = set; then :
  withval=$with_sqluid; SQLUID="$withval"
fi



# Check whether --with-sqlpwd was given.
if test "${with_sqlpwd+set}" = set; then :
  withval=$with_sqlpwd; SQLPWD="$withval"
fi


if test "$with_all" = ""; then              with_all=yes        ;fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to autodetect" >&5
$as_echo_n "checking what to autodetect... " >&6; }

# Check whether --with-all was given.
if test "${with_all+set}" = set; then :
  withval=$with_all;
if test "$withval" != "no"; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: everything..." >&5
$as_echo "everything..." >&6; }
	#force this checks even if not specified on command line:

	############ various ###########
	if test "$with_pdf" = ""; then              with_pdf=yes        ;fi
	if test "$with_perl" = ""; then          	with_perl=yes      	;fi
	if test "$with_iksemel" = ""; then          with_iksemel=yes    ;fi
	if test "$with_xmlrpc" = ""; then           with_xmlrpc=yes     ;fi
	if test "$with_orbit" = ""; then           	with_orbit=yes     	;fi
	if test "$GCC_MINGW" != "yes"; then
		if test "$with_rpc" = ""; then        	FORCE_RPC=1         ;fi
	fi
	if test "$with_pcode" = ""; then           	with_pcode=yes     	;fi

	#--with-pg-all is a shorthand to point all PostgreSQL components to same location
	if test "$with_pg_all" != ""; then
		with_ecpg="$with_pg_all"
		with_pgsqleng="$with_pg_all"
		with_pgsql="$with_pg_all"
		with_pgodbc="$with_pg_all"
		#--with-pgcompat=yes
	fi


	############ database ##########
	if test "$with_sapdb" = ""; then			with_sapdb=yes 		;fi
	if test "$with_mysql" = ""; then			with_mysql=yes 		;fi
	if test "$with_pgsql" = ""; then            with_pgsql=yes 		;fi
	if test "$with_pgsqleng" = ""; then         with_pgsqleng=yes   ;fi
	if test "$with_sqlite" = ""; then           with_sqlite=yes     ;fi
	if test "$with_ecpg" = ""; then             with_ecpg=yes       ;fi
	if test "$with_pgcompat" = ""; then         with_pgcompat=yes   ;fi
	if test "$with_ingres" = ""; then         	with_ingres=yes   	;fi
	if test "$with_informix" = ""; then         with_informix=yes
                                               	force_informix=yes  ;fi
	if test "$cygwin" != "1" ; then
       #No point in making directly linked ODBC plug-ins on Windows - use odbc32
       if test "$with_sqliteodbc" = ""; then   with_sqliteodbc=yes ;fi
       if test "$with_sapodbc" = ""; then      with_sapodbc=yes    ;fi
       if test "$with_pgodbc" = ""; then       with_pgodbc=yes     ;fi
       if test "$with_ifxodbc" = ""; then      with_ifxodbc=yes    ;fi
       if test "$with_iodbc" = ""; then        with_iodbc=yes      ;fi
       if test "$with_unixodbc" = ""; then     with_unixodbc=yes   ;fi
	fi

    ############# User Interface ####
	if test "$with_gtk" = ""; then              with_gtk=yes        ;fi
	#if user did not explicitly asked for Pdcurses, and if not on MinGW (which don't have curses):
#FIXME: we don't have $GCC_MINGW here!!!
	#if test "$with_curses" = "" && test "$with_pdcurses" = "" && test "$GCC_MINGW" != "yes"; then
	if test "$with_curses" = "" -a "$GCC_MINGW" != "yes"; then
		with_curses=yes
	fi

	#can't do that - we don't actually test for it, we just accept
	#whatever user specifies
	#if test "$with_pdcurses" = "" -a "$GCC_MINGW" = "yes"; then
	#	with_pdcurses=yes
	#fi
	if test "$with_glade" = ""; then          	with_glade=yes 		;fi
	if test "$with_cint" = ""; then          	with_cint=yes 		;fi
	if test "$with_mpz" = ""; then				with_mpz=yes 		;fi
	if test "$with_pop" = ""; then          	with_pop=yes 		;fi
	if test "$with_smtp" = ""; then          	with_smtp=yes 		;fi
	if test "$with_zlib" = ""; then          	with_zlib=yes 		;fi
	if test "$with_pcre" = ""; then          	with_pcre=yes 		;fi
	if test "$with_sxml" = ""; then          	with_sxml=yes 		;fi
	if test "$with_esqlc" = ""; then            with_esqlc=yes 		;fi

	if test "$with_fourj" = ""; then            with_fourj=yes 		;fi
	if test "$with_hydra" = ""; then            with_hydra=yes 		;fi
	if test "$with_i4gl" = ""; then         	with_i4gl=yes 		;fi
	if test "$with_httpd" = ""; then            with_httpd=yes 		;fi
	if test "$with_java" = ""; then     		with_java=yes   	;fi
	#Do not link in efence by default - At least on SuSE it generated
	#anoying copyright message every time an executable liked with it
	#is envoked
	if test "$with_efence" = ""; then     		with_efence=no   	;fi
	if test "$with_bison" = ""; then     		with_bison=yes   	;fi

else
	if test "$with_java" = ""; then     		with_java=no   		;fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Autodetect (--with-all) disabled." >&5
$as_echo "Autodetect (--with-all) disabled." >&6; }
fi


else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Autodetect (--with-all) not specified." >&5
$as_echo "Autodetect (--with-all) not specified." >&6; }

fi



## ==================================================================
##            Decide on install location for compiler files
## ==================================================================


	if test "$prefix" = "NONE"; then
        #Defaults:
		CUSTOM_PREFIX=0
		if test "$cygwin" = "1" ; then
			#/opt is not created by default on CygWin installations
			prefix=/usr/local/$SHORTNAME
		else
			prefix=/opt/$SHORTNAME
	    fi
	else
        #User specified:
		CUSTOM_PREFIX=1
		if test -d "$prefix"; then
			#We expect user to specify a full installation path;
            #nothing will be added to it, so if he specifies "/usr" Aubit
            #executables will go straoght into /usr/bin - is this OK?

			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Directory specified as prefix:" >&5
$as_echo "$as_me: WARNING: ** Directory specified as prefix:" >&2;}
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** $prefix" >&5
$as_echo "$as_me: WARNING: ** $prefix" >&2;}
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** already exists." >&5
$as_echo "$as_me: WARNING: ** already exists." >&2;}
			#Can't do this - if you run configure on already installed Aubit...?
            #We will have to trust user to know what he's doing to some degree here... :-( right...
			#AC_MSG_WARN( ** already exists. Adding suffix (/$SHORTNAME))
            #prefix=$prefix/$SHORTNAME
		fi
	fi

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking install root 'prefix=$prefix'" >&5
$as_echo_n "checking install root 'prefix=$prefix'... " >&6; }

	#must create it now, otherwise -w test will fail
	if ! test -d "$prefix"; then
		mkdir "$prefix" > /dev/null 2>&1
		PREFIX_CREATED=1
	fi

	if test -w "$prefix"; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Yes ($prefix)" >&5
$as_echo "Yes ($prefix)" >&6; }
		if test "$PREFIX_CREATED" = "1"; then
			rmdir "$prefix"
		fi
    else

		# Check whether --enable-prefix-check was given.
if test "${enable_prefix_check+set}" = set; then :
  enableval=$enable_prefix_check; echo "1there"; disable_prefix_check=yes
else
  echo "2here"; disable_prefix_check=no

fi


		if test "$disable_prefix_check" = "yes"; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not writable" >&5
$as_echo "Not writable" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will have to run install as user that can write there!" >&5
$as_echo "$as_me: WARNING: You will have to run install as user that can write there!" >&2;}
		else
			if test "$CUSTOM_PREFIX" = "1"; then
				#Some scripts (like aubitbuild) will fail if we just decide to switch
				#install location from what they specified using --prefix flag, so
				#we better stop here:
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: User specified prefix ($prefix) is invalid. Try using HOME (--prefix=$HOME)" >&5
$as_echo "$as_me: WARNING: User specified prefix ($prefix) is invalid. Try using HOME (--prefix=$HOME)" >&2;}
				as_fn_error $? "or --disable-prefix-check if you intend to run install as different user. Stop." "$LINENO" 5
			else
				if test -w "$HOME"; then
					prefix=$HOME/$SHORTNAME
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No (using $prefix instead)" >&5
$as_echo "No (using $prefix instead)" >&6; }
				else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine install path. HOME=$HOME" >&5
$as_echo "$as_me: WARNING: Cannot determine install path. HOME=$HOME" >&2;}
					as_fn_error $? "Please specify it using --prefix=x flag manually" "$LINENO" 5
				fi
			fi
		fi
    fi

	if test "$prefix" = "$aubitdir"; then
		if test "$AUBIT_SOURCE" = "1" ; then
			echo "ERROR: cannot install Aubit to the same location where you are running 'configure' from"
			exit 3
		fi
	fi

#INST_BASE=$prefix/$SHORTNAME
INST_BASE=$prefix
#AC_MSG_RESULT(INST_BASE set to $INST_BASE)

#Should we specify absolute or relative paths in RPM spec file
RPM_ABSOLUTE=1
FORMS_DESTINATION=etc
HELP_DESTINATION=etc
PLUGIN_DIR="plugins-${AUBIT_VERSION}_${AUBIT_BUILD}"

#Warning: "CopyMode: normal" has been superseded by "Flags: promptifolder" in this
#version of Inno Setup. Behaving as if "Flags: promptifolder" were specified.
#COPYMODE_NORMAL="CopyMode: normal"
COPYMODE_NORMAL="Flags: promptifolder"

if test "$RPM_ABSOLUTE" = "1"; then
	#RPM_A4GL_DEFAULT_PREFIX="$INST_BASE"
	RPM_A4GL_DEFAULT_PREFIX="/opt/aubit4gl-rpm"

	RPM_LIB_PREFIX="$RPM_A4GL_DEFAULT_PREFIX/lib"
	RPM_PLUGIN_PREFIX="$RPM_A4GL_DEFAULT_PREFIX/$PLUGIN_DIR"
	RPM_EXE_PREFIX="$RPM_A4GL_DEFAULT_PREFIX/bin"
	RPM_SH_PREFIX="$RPM_A4GL_DEFAULT_PREFIX/bin"
	RPM_INC_PREFIX="$RPM_A4GL_DEFAULT_PREFIX/incl"
	RPM_EXAMP_PREFIX="$RPM_A4GL_DEFAULT_PREFIX/tools/test"
	RPM_DOC_PREFIX="$RPM_A4GL_DEFAULT_PREFIX/docs"
	RPM_CONF_PREFIX="$RPM_A4GL_DEFAULT_PREFIX/etc"
	RPM_FGLPCSET_PREFIX="$RPM_A4GL_DEFAULT_PREFIX/tools/4glpc/settings"
	RPM_IMPORT_PREFIX="$RPM_A4GL_DEFAULT_PREFIX/etc/import"
	RPM_HELP_PREFIX="$RPM_A4GL_DEFAULT_PREFIX/$HELP_DESTINATION"
	RPM_FORMS_PREFIX="$RPM_A4GL_DEFAULT_PREFIX/$FORMS_DESTINATION"
	RPM_CONV_PREFIX="$RPM_A4GL_DEFAULT_PREFIX/etc/convertsql"
else
	#Note that RPM demands that files listed in spec file begin with /, otherwise:
	# File must begin with "/": etc/help_sqlite.hlp

	RPM_A4GL_DEFAULT_PREFIX="$INST_BASE"

	RPM_LIB_PREFIX="/lib"
	RPM_PLUGIN_PREFIX="/$PLUGIN_DIR"
	RPM_EXE_PREFIX="/bin"
	RPM_SH_PREFIX="/bin"
	RPM_INC_PREFIX="/incl"
	RPM_EXAMP_PREFIX="/tools/test"
	RPM_DOC_PREFIX="/docs"
	RPM_CONF_PREFIX="/etc"
	RPM_FGLPCSET_PREFIX="/tools/4glpc/settings"
	RPM_IMPORT_PREFIX="/etc/import"
	RPM_HELP_PREFIX="/$HELP_DESTINATION"
	RPM_FORMS_PREFIX="/$FORMS_DESTINATION"
	RPM_CONV_PREFIX="/etc/convertsql"
fi

	#Not used for RPM files:
	LIB_PREFIX=$INST_BASE/lib
	PLUGIN_PREFIX=$INST_BASE/$PLUGIN_DIR
	A4GL_DBPATH=$aubitdir/tools:$INST_BASE/tools

## ==================================================================
##      Decide on install location for aubitrc configuration file
## ==================================================================


#resource.c reads config file(s) in this order:
# 1:/etc/opt/aubit4gl/aubitrc   - @AUBITETC@/aubitrc as determined here - global config
# 2:/opt/aubit4gl/etc/aubitrc   - $AUBITDIR/etc/aubitrc actually, if AUBITDIR is set at this point
# /home/mbm/.aubit4gl/aubitrc   - mbm??? (in .aubit4gl uunder sers home dir)
# /home/mbm/aubitrc				- mbm??? (OBSOLETE?)
# ./.aubitrc			        - (current dirctory)
# ... and then $XXXX? variable if set


    #do NOT use installation directory - Aubit programs will find it there
    #only if they know AUBITDIR, and unless there is a aubitrc in fixed global
    #location available to provide it (or user created environment variable
    #$AUBITDIR) this will not be known. USE USER'S HOME DIRECTORY INSTEAD,
	#because thisc will allways be known
	dirs="/etc/opt/$SHORTNAME $HOME/.aubit4gl"
    AUBITETC=

    for i in $dirs ; do
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking install location for global aubitrc - $i" >&5
$as_echo_n "checking install location for global aubitrc - $i... " >&6; }
		ETC_DIR_CREATED=0
		if ! test -d "$i"; then
			mkdir -p "$i" > /dev/null 2>&1
			ETC_DIR_CREATED=1
		fi

		if test -w "$i"; then
			AUBITETC=$i
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			if test "$ETC_DIR_CREATED" = "1"; then
				rmdir "$i"
			fi
			break
        else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		fi
    done

    if test "$AUBITETC" = ""; then
		as_fn_error $? "Failed to find location for aubitrc configuration file" "$LINENO" 5
    fi

    if test "$AUBITETC" != "/etc/opt/$SHORTNAME"; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Installing aubitrc for current user only" >&5
$as_echo "$as_me: WARNING: Installing aubitrc for current user only" >&2;}
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No system global settings will be created" >&5
$as_echo "$as_me: WARNING: No system global settings will be created" >&2;}
        #For sittuations like this we could get Autoconf values directly into
        #resource.c, but this would mess things up badly if user uses binary
        #files created this way to create installer and install them on another
        #machine - resource.c settings are extremely conservative to allow
        #compiler to work on practiacally any system.
    fi

if test "$COMSPEC" != ""; then
	#InnoSetup Install location - must install first:
	#Source code location (#MUST use backslash for InnoSetup):
	PWD=`pwd`
	IS_SOURCE=`$CYGPATH -w $PWD`
fi

## ==================================================================
##       Define permanent list of libraries to build/install
## ==================================================================

#List of libraries that we allways make. Here so we don't have to maintain it
#separately for RPM config file, install/deinstall and lib Makefile:

#List of libraries needed by compiler(s):
COMP_LIBS="LEX_EC LEX_C LEX_CS"

#if test "$enable_minimal" != "yes"; then
#	COMP_LIBS="$COMP_LIBS"
#fi

#Libraries that need 4glc (and in some cases fcompile) to build, and are
#buit in all cases:
NEED_4GLC_ALL_libs="HELP_std A4GL_string channel A4GL_file A4GL_HTML A4GL_pick A4GL_roman errhook_sample barcode"

if test "$AUBIT_SOURCE" = "1" ; then
	#A4GL_memcache needs (plus many others) which do not exists in MinGW
	#See http://jehiah.com/projects/memcached-win32/ is interested in Windows port
	for ac_header in  err.h sysexits.h sys/socket.h sys/uio.h netdb.h netinet/in.h netinet/tcp.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	if test "$ac_cv_header_err_h" = "yes" \
		-a "$ac_cv_header_sysexits_h" = "yes" \
		-a "$ac_cv_header_sys_socket_h" = "yes" \
		-a "$ac_cv_header_sys_uio_h" = "yes" \
		-a "$ac_cv_header_netdb_h" = "yes" \
		-a "$ac_cv_header_netinet_in_h" = "yes" \
		-a "$ac_cv_header_netinet_tcp_h" = "yes" ; \
	then
		NEED_4GLPC_ALL_libs="$NEED_4GLPC_ALL_libs A4GL_memcache"
	else
		echo "A4GL_memcache disabled - missing headers"
		PLATFORM_UNAVAILABLE_OPTIONS="$PLATFORM_UNAVAILABLE_OPTIONS A4GL_memcache"
	fi
fi

if test "$enable_minimal" != "yes"; then

	#Disabled; libA4GL_HTML is part of 'extra' target, its in alpha state
	#so there is no need to make it unless user wants to work on it
	#FIXME: A4GL_HTML should be linkable (LIB_EXPORTLIB), but we are using 4glc
	#to create dll, and we don't get .a file...
	if test "$DO_DISABLE" = "1"; then
		ALL_DISABLED="$ALL_DISABLED A4GL_HTML"
		DISABLED_MANUAL_CMD="$DISABLED_MANUAL_CMD 'make libhtml'"
	else
		NEED_4GLC_ALL_libs="$NEED_4GLC_ALL_libs A4GL_HTML"
	fi

	#Define targets for liblogical
	LIBLOGICAL_EXE_GTK2_DEPEND="layout_engine report_viewer"
	LIBLOGICAL_BUILD="LOGREPPROC_TXT LOGREPPROC_CSV LOGREPPROC_HTML"
	LIBLOGICAL_GTK2_DEPEND="LOGREP_CSV LOGREP_TXT LOGREP_HTML"
	LIBLOGICAL_PDF_DEPEND="LOGREPPROC_PDF"
	LIBLOGICAL_PDF_GTK2_DEPEND="LOGREP_PDF"
fi


ALL_LIBS="$NEED_4GLC_ALL_libs $NEED_4GLPC_ALL_libs"

ALL_PLUGINS="EXREPORT_NOPDF RPC_NORPC FORM_NOFORM SQL_nosql MSG_NATIVE UI_CONSOLE UI_XML \
		PACKER_PACKED PACKER_FORMXML PACKER_PERL PACKER_XML FORM_GENERIC DATA_report LEX_WRITE \
		DATA_module DATA_struct_form PACKER_MEMPACKED SQL_FILESCHEMA \
		SQLPARSE_NONE SQLPARSE_INFORMIX DATA_module_definition \
		$LIBLOGICAL_BUILD"
#UI_HLGENERIC

#libaubit4gl should be first, to avoid dependency chase
#DO NOT PACKAGE libaubit4gl - package versiond lib and create link whn installing
#LIB_EXPORTLIB=aubit4gl
LIB_EXPORTLIB=aubit4gl-${AUBIT_VERSION}_${AUBIT_BUILD}


    COUNTER=0
	for FILE in $LIB_EXPORTLIB ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "LIBFILE_$COUNTER='$RPM_LIB_PREFIX/lib$FILE$SO_EXT_LINKABLE'"
		eval "ISLIBFILE_$COUNTER='Source: $IS_SOURCE\lib\lib$FILE$SO_EXT_LINKABLE; DestDir: {app}\bin; Components: runtime'"
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		#Windows exports library:
		eval "ISLIBFILE_$COUNTER='Source: $IS_SOURCE\lib\lib$LIB_EXPORTLIB$SO_EXT_LINKABLE.a; DestDir: {app}\lib; Components: runtime'"
    done

	#List of libraries/plug-ins needed by compiler(s), like LEX_EC LEX_C etc.
	for FILE in $COMP_LIBS ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "LIBFILE_$COUNTER='$RPM_PLUGIN_PREFIX/lib$FILE$SO_EXT'"
		eval "ISLIBFILE_$COUNTER='Source: $IS_SOURCE\\$PLUGIN_DIR\lib$FILE$SO_EXT; DestDir: {app}\\$PLUGIN_DIR; Components: compiler'"
	done

	for FILE in $ALL_LIBS ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "LIBFILE_$COUNTER='$RPM_PLUGIN_PREFIX/lib$FILE$SO_EXT'"
		eval "ISLIBFILE_$COUNTER='Source: $IS_SOURCE\\$PLUGIN_DIR\lib$FILE$SO_EXT; DestDir: {app}\\$PLUGIN_DIR; Components: runtime'"
	done

	for FILE in $ALL_PLUGINS ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "LIBFILE_$COUNTER='$RPM_PLUGIN_PREFIX/lib$FILE$SO_EXT'"
		eval "ISLIBFILE_$COUNTER='Source: $IS_SOURCE\\$PLUGIN_DIR\lib$FILE$SO_EXT; DestDir: {app}\\$PLUGIN_DIR; Components: runtime'"
	done

	if test "$COUNTER" -gt "$LIBFILE_SIZE"; then
		as_fn_error $? "Capacity of LIBFILE_ variables exceeded - max=$LIBFILE_SIZE count=$COUNTER" "$LINENO" 5
	fi

## ==================================================================
##       Define permanent list of executables to build/install
## ==================================================================

#List of executables that we allways make. Here so we don't have to maintain it
#separately for RPM config file, install/deinstall and lib Makefile:

#Executables needed by Amake
AMAKE_BIN_EXE="aubit-config"

#Resource files needed by some of the executables
RUNTIME_RESOURCE=""

#Note: "asql" is just a link to asql_p/_i/_g

#Executables that are needed even in run-time distibutions:
RUNTIME_EXE="afinderr configurator $AMAKE_BIN_EXE"

#Standard compiler executables:
COMP_EXE="4glc fcompile amkmessage convertsql 4glpc sql_parse adbschema \
	asql_g$A4GL_EXE_EXT a4gl$A4GL_EXE_EXT"

if test "$enable_minimal" != "yes"; then
#Note: some of them will still be built, but not installed or packaged
	COMP_EXE="$COMP_EXE aace generate_aace aace_4gl aace_perl \
		mcompile mdecompile process_report quick_check_logrep adecompile ide1$A4GL_EXE_EXT \
		fdecompile unmkmessage default_frm quickguide$A4GL_EXE_EXT fglproto"
	RUNTIME_EXE="$RUNTIME_EXE fshow loadmap"
else
	echo "*** NOTE: --enable-minimal specified; some targets disabled"
fi

#xgen - not needed for binary installs
#needs missing source code
#	BIN_EXE		+=fdecompile-j${EXEEXT}
#user's manual choice:
#	BIN_EXE		+=odbctest-unixODBC${EXE}
#	BIN_EXE		+=odbctest-iodbc3${EXE}
#	BIN_EXE		+=odbctest-iodbc2${EXE}

#NOTE: COMP_EXE, RUNTIME_EXE and RUNTIME_RESOURCE are processed near the
#end of this script, to allow for conditional files

## ==================================================================
##       Define permanent list of shell scripts to build/install
## ==================================================================

AMAKE_SH="amake genmake prepmake"
ALL_SH="aubit ecpg_wrap $AMAKE_SH runner_fgl_wrapper adbaccess aperform aace_runner a4gl"
#compilers/pcode/runner_fgl_wrapper is copied to bin by pcode makefile

#obsolete: ecpg_wrap esql_wrap
#ALL_SH="4glpc $AMAKE_SH"
#abug.sh

#;FIXME: create executables of this two, so we can use Amake without Bash:
#Source: @IS_SOURCE@\bin\amake; DestDir: {app}\bin; Components: Shell
#Source: @IS_SOURCE@\bin\aubit; DestDir: {app}\bin; Components: Shell

    COUNTER=0
	for FILE in $ALL_SH ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "SHFILE_$COUNTER='$RPM_SH_PREFIX/$FILE'"
		eval "ISSHFILE_$COUNTER='Source: $IS_SOURCE\bin\\$FILE; DestDir: {app}\bin; Components: Shell'"
	done
	COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
	if test "$RPM_ABSOLUTE" = "1"; then
		eval "SHFILE_$COUNTER='$RPM_A4GL_DEFAULT_PREFIX/configure'"
	else
		eval "SHFILE_$COUNTER='/configure'"
	fi
	COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
	eval "SHFILE_$COUNTER='$RPM_SH_PREFIX/4GL_metrics.cgi'"
	COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
	eval "SHFILE_$COUNTER='$RPM_SH_PREFIX/shtool'"

## ==================================================================
##       Define permanent list of Includes to build/install
## ==================================================================

AMAKE_INCL_FILES="header.mki footer.mki footer2.mki footer-c.mki a4gl.mk \
		q4gl.mk d4gl.mk i4gl.mk"

#TODO: check that all of this is really needed in binary installations:
ALL_INC="a4gl_incl_4glhdr.h a4gl_incl_4gldef.h a4gl_4gl_callable.h a4gl_builtin_funcs.h a4gl_rep_structure.h a4gl_screenio.h \
        a4gl_exdata.h a4gl_API_exreport.h a4gl_API_form.h a4gl_API_help.h \
		a4gl_API_menu.h a4gl_API_rpc.h a4gl_API_sql.h a4gl_API_ui.h a4gl_expr.h \
		a4gl_API_sqlparse.h a4gl_API_esql.h a4gl_incl_infx.h \
		a4gl_incl_config.h \
		a4gl_esql.h a4gl_esql_infx.h a4gl_esql_postgres.h \
		a4gl_esql_ingres.h \
		a4gl_memhandling.h \
		a4gl_esql_infoflex.h"


    COUNTER=0
	for FILE in $ALL_INC ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "INCFILE_$COUNTER='$RPM_INC_PREFIX/$FILE'"
		eval "ISINCFILE_$COUNTER='Source: $IS_SOURCE\incl\\$FILE; DestDir: {app}\incl; Components: compiler'"
	done

    COUNTER2=0
	for FILE in $AMAKE_INCL_FILES ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		COUNTER2=`(expr $COUNTER2 + 1) 2>/dev/null`
		eval "INCFILE_$COUNTER='$RPM_INC_PREFIX/$FILE'"
		eval "ISAMAKEFILE_$COUNTER2='Source: $IS_SOURCE\incl\\$FILE; DestDir: {app}\incl; Components: Make'"
	done

## ==================================================================
##       Define permanent list of examples to build/install
## ==================================================================

ALL_EXAMP="testmenu.menu file.4gl form.per hello.4gl hello_db.4gl \
		hello2.4gl helpfile.msg pdf_report.4gl test_build.4gl test_select.4gl \
		testmenu.4gl assoc2.4gl testmpz.4gl"

if test "$COMSPEC" != ""; then
	ALL_EXAMP="$ALL_EXAMP make.bat"
fi

ALL_EXAMP_GUI="gui.per calc.per form-gui.per gui.4gl calc.4gl hello-gui.4gl \
		multi.per radio.per widget.per"

    COUNTER=0
	for FILE in $ALL_EXAMP ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "EXAMPFILE_$COUNTER='$RPM_EXAMP_PREFIX/$FILE'"
		eval "ISEXAMPFILE_$COUNTER='Source: $IS_SOURCE\tools\test\\$FILE; DestDir: {app}\tools\test; Components: FGLexamples'"
	done

	for FILE in $ALL_EXAMP_GUI ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "EXAMPFILE_$COUNTER='$RPM_EXAMP_PREFIX/gui/$FILE'"
		eval "ISEXAMPFILE_$COUNTER='Source: $IS_SOURCE\tools\test\gui\\$FILE; DestDir: {app}\tools\test\gui; Components: FGLexamples'"
	done

#Now add Makefile to be used for installation only:
ALL_EXAMP="$ALL_EXAMP Makefile"
ALL_EXAMP_GUI="$ALL_EXAMP_GUI Makefile"

## ==================================================================
##       Define permanent list of Make files to build/install
## ==================================================================

INCL_MAKE="Makefile-common Makefile-install.mki Makefile-common.in"

ALL_MAKEFILE="tools/test/Makefile tools/test/gui/Makefile Makefile"
IS_ALL_MAKEFILE=`echo "$ALL_MAKEFILE" | sed -e 's/\//\\\\/g'`

#;Source: @IS_SOURCE@\Makefile; DestDir: {app}; Components: Make
#Source: @IS_SOURCE@\tools\test\gui\Makefile; DestDir: {app}\tools\test\gui; Components: Make
#Source: @IS_SOURCE@\tools\test\Makefile; DestDir: {app}\tools\test; Components: Make
#Source: @IS_SOURCE@\incl\Makefile-common; DestDir: {app}\incl; Components: Make
#Source: @IS_SOURCE@\incl\Makefile-install.mki; DestDir: {app}\incl; Components: Make

    COUNTER=0
	for FILE in $ALL_MAKEFILE ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		if test "$RPM_ABSOLUTE" = "1"; then
			eval "MAKEFILE_$COUNTER='$RPM_A4GL_DEFAULT_PREFIX/$FILE'"
		else
			eval "MAKEFILE_$COUNTER='/$FILE'"
		fi
	done

    COUNTER=0
	for FILE in $IS_ALL_MAKEFILE ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		FILEDIR=`dirname $FILE`
		eval "ISMAKEFILE_$COUNTER='Source: $IS_SOURCE\\$FILE; DestDir: {app}\\$FILEDIR; Components: Make'"
	done

	for FILE in $INCL_MAKE ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		if test "$RPM_ABSOLUTE" = "1"; then
			eval "MAKEFILE_$COUNTER='$RPM_A4GL_DEFAULT_PREFIX/incl/$FILE'"
		else
			eval "MAKEFILE_$COUNTER='/incl/$FILE'"
		fi
		eval "ISMAKEFILE_$COUNTER='Source: $IS_SOURCE\incl\\$FILE; DestDir: {app}\incl; Components: Make'"
	done

## ==================================================================
##       Define permanent list of help files to build/install
## ==================================================================

ALL_HELP="helpfile.hlp help_aubit.hlp helpsql_POSTGRES.hlp helpsql_POSTGRES8.hlp helpsql_SQLITE.hlp 4glpc.hlp"
FORM_FILES="change$COMP_FORM_EXT options$COMP_FORM_EXT values$COMP_FORM_EXT "

#Destination for files we use in build process, installation and when
#we make installers (relative to Aubit root)
#DBPATH should allways be set to that place (as it is in 'aubit' script)
#TODO: set it in aubitrc too

	COUNTER=0
	for FILE in $ALL_HELP ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "HELPFILE_$COUNTER='$RPM_HELP_PREFIX/$FILE'"
		eval "ISHELPFILE_$COUNTER='Source: $IS_SOURCE\\$HELP_DESTINATION\\$FILE; DestDir: {app}\\$HELP_DESTINATION; Components: runtime'"
	done
	COUNTER=0
	for FILE in $FORM_FILES ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "FORMFILE_$COUNTER='$RPM_FORMS_PREFIX/$FILE'"
		eval "ISFORMFILE_$COUNTER='Source: $IS_SOURCE\\$FORMS_DESTINATION\\$FILE; DestDir: {app}\\$FORMS_DESTINATION; Components: runtime'"
	done

	#NOTE: FORM_FILES and ALL_HELP are added to ETC_FILES later

## ==================================================================
##       Define permanent list of documentation files to build/install
## ==================================================================

ALL_DOC="COPYING CREDITS LICENSE aubit4gl.ico aubit4gl.png"

if test "$COMSPEC" != ""; then
	ALL_DOC="$ALL_DOC README-Windows.txt"
fi

ROOT_FILES_DOC="README.txt"

    COUNTER=0
	for FILE in $ALL_DOC ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "DOCFILE_$COUNTER='%doc $RPM_DOC_PREFIX/$FILE'"
		eval "ISDOCFILE_$COUNTER='Source: $IS_SOURCE\docs\\$FILE; DestDir: {app}\docs; Components: runtime'"
	done
	COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
	if test "$RPM_ABSOLUTE" = "1"; then
		eval "DOCFILE_$COUNTER='%doc $RPM_A4GL_DEFAULT_PREFIX/$ROOT_FILES_DOC'"
	else
		eval "DOCFILE_$COUNTER='%doc /$ROOT_FILES_DOC'"
	fi
	eval "ISDOCFILE_$COUNTER='Source: $IS_SOURCE\\$ROOT_FILES_DOC; DestDir: {app}; Components: help'"
	COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
	eval "ISDOCFILE_$COUNTER='Source: $IS_SOURCE\tools\cygwin\readme-runtime.html; DestDir: {app}; Components: help'"

## ==================================================================
##       Define permanent list of conversion files to install
## ==================================================================

TMP_CONVSQL_FILES="`ls etc/convertsql/*.cnv` README.txt"
	for FILE in $TMP_CONVSQL_FILES ; do
		CONVSQL_FILES="$CONVSQL_FILES `basename $FILE`"
	done

    COUNTER=0
	for FILE in $CONVSQL_FILES ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "CONVFILE_$COUNTER='$RPM_CONV_PREFIX/$FILE'"
		eval "ISCONVFILE_$COUNTER='Source: $IS_SOURCE\etc\convertsql\\$FILE; DestDir: {app}\etc\convertsql; Components: runtime'"
	done

#TODO: move 4glpc settings under etc

TMP_FGLPC_SETTINGS_FILES="`ls tools/4glpc/settings/ | grep -v CVS | grep -v '~'`"
TMP_FGLPC_SETTINGS_FILES="`echo $TMP_FGLPC_SETTINGS_FILES`"

	for FILE in $TMP_FGLPC_SETTINGS_FILES ; do
		FGLPC_SETTINGS_FILES="$FGLPC_SETTINGS_FILES `basename $FILE`"
	done

    COUNTER=0
	for FILE in $FGLPC_SETTINGS_FILES ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "FGLPCSETFILE_$COUNTER='$RPM_FGLPCSET_PREFIX/$FILE'"
		eval "ISFGLPCSEFILE_$COUNTER='Source: $IS_SOURCE\tools\4glpc\settings\\$FILE; DestDir: {app}\tools\4glpc\settings; Components: compiler'"
	done

## ==================================================================
##       Define permanent list of Windows import files to install
## ==================================================================

#Import files (libA4GL_glade.dll.a for example) are needed to do linking
#on windows. They are not neded for dlopen-ed libs, just for -l link flags
#But this files are NOT Windows linking import files, this files are
#Import packages allow the coder to use shared libraries without linking
#and without requiring the full library::function(...) syntax.

#Note that in import files 'a4gl_' is in lower case. There is no extension
IMPORT_FILES="a4gl_file  a4gl_glade  a4gl_html  a4gl_pcre  a4gl_string  \
	default channel README"

#Fixme: what is 'default' file for - it is empty?
#README is file that describes how to use this import files

    COUNTER=0
	for FILE in $IMPORT_FILES ; do
		if test "$FILE" != ""; then
			COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
			eval "IMPORTFILE_$COUNTER='$RPM_IMPORT_PREFIX/$FILE'"
			eval "ISIMPORTFILE_$COUNTER='Source: $IS_SOURCE\etc\import\\$FILE; DestDir: {app}\etc\import; Components: runtime'"
		fi
	done

## ==================================================================
##       Define permanent list of configuration files to build/install
## ==================================================================

	ROOT_FILES_CONF="install.sh"
	#allready listed as shell script: $RPM_SH_PREFIX/configure
	#Warning: ROOT_FILES variable is used by make install target
	ROOT_FILES="$ROOT_FILES_DOC $ROOT_FILES_CONF"
	ETC_FILES="gtkrc_2 odbc.ini.example Aubit4GL.jpg"
	ETC_FILES_CONF="etc/aubitrc-bin.in"
	ETC_CONFIG_FILES_CONF="etc/config/config.guess etc/config/config.sub \
		etc/config/install-sh etc/config/missing etc/config/mkinstalldirs \
		etc/config/bootstrap etc/config/ltmain.sh"

	ALL_CONF="$ETC_CONFIG_FILES_CONF $ETC_FILES_CONF $ROOT_FILES_CONF"

    COUNTER=0
	for FILE in $ETC_FILES ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		#There is not much to gain by marking this RPM files as %config
		#other then rpm warninng message about saving the backup, since
		#we are handling (creating/installing) only real config file (aubitrc)
		#ourselves in post-install part
		#eval "CONFFILE_$COUNTER='%config $RPM_CONF_PREFIX/$FILE'"
		eval "CONFFILE_$COUNTER='$RPM_CONF_PREFIX/$FILE'"
		eval "ISCONFFILE_$COUNTER='Source: $IS_SOURCE\etc\\$FILE; DestDir: {app}\etc; Components: runtime'"
	done
	for FILE in $ALL_CONF ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		if test "$RPM_ABSOLUTE" = "1"; then
			eval "CONFFILE_$COUNTER='$RPM_A4GL_DEFAULT_PREFIX/$FILE'"
		else
			eval "CONFFILE_$COUNTER='/$FILE'"
		fi
		#This files are meaningless on Windows
	done

#This 2 are used in Makefile-common in BIN_ALLWAYSCLEAN and TOBIN variables
EXTRAFILE_1=$aubitdir/tools/cygwin/run.exe
EXTRAFILE_2=$aubitdir/tools/metrics_4gl/4GL_metrics.cgi

#Add form and help files to ETC_FILES, so they get in make install/deinstall
ETC_FILES="$ETC_FILES $FORM_FILES $ALL_HELP"

## ==================================================================
##                              Debugging
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring Debugging options${T_ME}" >&5
$as_echo "${T_MD}Configuring Debugging options${T_ME}" >&6; }


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





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Autoconf debugging" >&5
$as_echo_n "checking Autoconf debugging... " >&6; }
if test "$enable_ac_debug" = "yes" ; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Aubit programs optimisation" >&5
$as_echo_n "checking Aubit programs optimisation... " >&6; }

# Check whether --enable-optimised was given.
if test "${enable_optimised+set}" = set; then :
  enableval=$enable_optimised; enable_optimised=yes
fi

if test "$enable_optimised" = "yes" ; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
      AUBIT_DEBUG=0
      A4GL_CFLAGS="$CFLAGS -O2 -DNODEBUG -DOPTIMIZED"
      DBGFLAG=
      STD_CFLAGS=" -O2  -DNODEBUG -DOPTIMIZED"
else
    #FIXME: DEBUG=ALL in environment? aubitrc?
    A4GL_CFLAGS="$CFLAGS -g -Wall -DDEBUG"
    DBGFLAG=-DDEBUG
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: No. Debuggig is enabled - set DEBUG=ALL to get debug.out trace." >&5
$as_echo "No. Debuggig is enabled - set DEBUG=ALL to get debug.out trace." >&6; }
    STD_CFLAGS="$STD_CFLAGS -g"
fi

if test "$AUBIT_SOURCE" = "1" ; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Executables stripping" >&5
$as_echo_n "checking Executables stripping... " >&6; }
	if test "$enable_strip" != "no" ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
$as_echo "enabled" >&6; }
		# Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $STRIP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP="no"
  ;;
esac
fi
STRIP=$ac_cv_path_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


		if test "$STRIP" != "no"; then
			STRIP_EXECUTABLES=yes
		fi
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

# Check whether --enable-aix-64bit was given.
if test "${enable_aix_64bit+set}" = set; then :
  enableval=$enable_aix_64bit;
fi


	AIX_OBJECT_MODE=
	case $host in
		*aix*)
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking AIX mode" >&5
$as_echo_n "checking AIX mode... " >&6; }
                        if test "$enable_aix_64bit" = "yes" ; then
                                AIX_OBJECT_MODE=64
                                OBJECT_MODE=64
                                export OBJECT_MODE
                                CFLAGS=-maix64
                                export CFLAGS
                        else
                                AIX_OBJECT_MODE=32
                                OBJECT_MODE=32
                                export OBJECT_MODE
                        fi

		;;
	esac

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking YY Debugging" >&5
$as_echo_n "checking YY Debugging... " >&6; }
	if test "$enable_yy_debug" = "yes" ; then
		#for debbuging in function yyparse() export YYDEBUG=1 to environment:
		YYDEBUG="-DYYDEBUG=1 -DYYERROR_VERBOSE -DYYPRINT=aubit_yyprint"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
$as_echo "enabled" >&6; }
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Yacc Debugging" >&5
$as_echo_n "checking Yacc Debugging... " >&6; }
	if test "$enable_yacc_debug" = "yes" ; then
		DEBUG_BISON="--debug"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled." >&5
$as_echo "enabled." >&6; }
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi
fi

#in libLEX_xxx printc():
# * If the INCLINES variable is set then the source target C
# * file is generated with #line (for debugging purposes).
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking printc() Debugging" >&5
$as_echo_n "checking printc() Debugging... " >&6; }
if test "$enable_printc_debug" = "yes" ; then
	INCLINES=yes
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled." >&5
$as_echo "enabled." >&6; }
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled." >&5
$as_echo "disabled." >&6; }
fi


## ==================================================================
##                              Platform
## ==================================================================


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
$as_echo_n "checking MACHDEP... " >&6; }
if test -z "$MACHDEP"
then
    if test -f /usr/lib/NextStep/software_version; then
        set X `hostinfo | grep 'NeXT Mach.*:' | \
		sed -e 's/://' -e 's/\./_/'` && \
		ac_sys_system=next && ac_sys_release=$4
        MACHDEP="$ac_sys_system$ac_sys_release$ac_sys_cpu"
    else
        ac_sys_system=`uname -s`
        if test "$ac_sys_system" = "AIX" ; then
                ac_sys_release=`uname -v`
        else
                ac_sys_release=`uname -r`
        fi
        ac_md_system=`echo $ac_sys_system |
		tr -d '/ ' | tr '[A-Z]' '[a-z]'`
        ac_md_release=`echo $ac_sys_release |
		tr -d '/ ' | sed 's/\..*//'`
        MACHDEP="$ac_md_system$ac_md_release"
    fi
    case MACHDEP in
    '') MACHDEP=unknown;;
    esac
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
$as_echo "$MACHDEP" >&6; }



#this things are automatically set by configure:
#build
#build_cpu
#build_vendor
#build_os
#host
#host_cpu
#host_vendor
#host_os
#target
#target_cpu
#target_vendor
#target_os


#Usage: uname [OPTION]...
#  -a, --all        print all information
#  -m, --machine    print the machine (hardware) type
#  -n, --nodename   print the machine's network node hostname
#  -r, --release    print the operating system release
#  -s, --sysname    print the operating system name
#  -p, --processor  print the host processor type
#  -v               print the operating system version

#This will return just 2.4
#KERNEL=`kernelversion`
#this will return 2.4.7-10
KERNEL_VER=`uname -r`

#FIXME: how do I get glibc version?
GLIBC_VER=2.2.4

#grep /usr/bin/glibcbug for:

#VERSION="2.2.4"
#RELEASE="stable"
#ADDONS="c_stubs glibc-compat linuxthreads"
#HOST="i386-redhat-linux-gnu"
#CC='gcc'
#CCVERSION='2.96 20000731 (Red Hat Linux 7.1 2.96-98)'
#CFLAGS="-march=i386 -D__USE_STRING_INLINES -fstrict-aliasing -freorder-blocks -DNDEBUG=1 -g -O3"
#SYSINCLUDES=""
#VERSIONING="yes"
#BUILD_STATIC="yes"
#BUILD_SHARED="yes"
#BUILD_PIC_DEFAULT="no"
#BUILD_PROFILE="yes"
#BUILD_OMITFP="no"
#BUILD_BOUNDED="no"
#BUILD_STATIC_NSS="no"
#STDIO="libio"

## ==================================================================
##                  Check make
## ==================================================================

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

  test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="no"
  ;;
esac
fi
MAKE=$ac_cv_path_MAKE
if test -n "$MAKE"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
$as_echo "$MAKE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi




ign_broken_make=yes

# Check whether --enable-broken-make was given.
if test "${enable_broken_make+set}" = set; then :
  enableval=$enable_broken_make; ign_broken_make=$enableval

fi


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

  test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
  ;;
esac
fi
GMAKE=$ac_cv_path_GMAKE
if test -n "$GMAKE"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
$as_echo "$GMAKE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



if test "$GMAKE" != "no" ; then
    #In case that we have "native" make, but gmake also on the system,
    #we should use gmake
	MAKE="$GMAKE"
fi

if test "$MAKE" = "no" ; then
	if test "$AUBIT_SOURCE" = "1" ; then
		as_fn_error $? "Cannot compile Aubit from source code without 'make' - please install it. Stop." "$LINENO" 5
    else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It will be much easier if you would install 'make'" >&5
$as_echo "$as_me: WARNING: It will be much easier if you would install 'make'" >&2;}
    fi
else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking make version" >&5
$as_echo_n "checking make version... " >&6; }
	#this creates full set dump on Solaris
	set `$MAKE --version | head -n 1 | sed -e 's/^GNU Make version //' -e 's/^GNU Make //' -e 's/, by Richard Stallman and Roland McGrath.//' -e 's/\./ /g'`
	if test "$1" != "" -a "$2" != ""; then
		if test "$1" = "3" -a "$2" -lt "50"; then
	        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will need GNU make version 3.50 or later (found $1.$2.$3)." >&5
$as_echo "$as_me: WARNING: You will need GNU make version 3.50 or later (found $1.$2.$3)." >&2;}
        else
			if test "$1" = "2" ; then
				if test "$AUBIT_SOURCE" = "1"; then
		        	as_fn_error $? "You will need GNU make version 3.50 or later (found $1.$2.$3)." "$LINENO" 5
				fi
            else
				#GNU Make 3.81 broken completely - expands variables wrong, evaluate dependencies in wrong order
				#and on Windows (CygWin make) dont support C: drive notation any more (patch removed)
				if test "$1" = "3" -a "$2" -gt "80"; then
					if test "$AUBIT_SOURCE" = "1"; then
						if test "$ign_broken_make" = "no"
						then
							{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU Make 3.81 is possibly broken. Google for more info. If you are sure your 3.81 version of gmake will work - retry with --enable-broken-make" >&5
$as_echo "$as_me: WARNING: GNU Make 3.81 is possibly broken. Google for more info. If you are sure your 3.81 version of gmake will work - retry with --enable-broken-make" >&2;}
							as_fn_error $? "Please revert back to 3.80 or earlier" "$LINENO" 5
						else
							{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU Make 3.81 and possibly up broken completely. Google for more info - but you've chosen to ignore it..." >&5
$as_echo "$as_me: WARNING: GNU Make 3.81 and possibly up broken completely. Google for more info - but you've chosen to ignore it..." >&2;}
						fi
					fi
				else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2.$3 (ok)" >&5
$as_echo "$1.$2.$3 (ok)" >&6; }
				fi
            fi
        fi
	else
        #Could not read version number
		if test "$AUBIT_SOURCE" = "1"; then
			as_fn_error $? "Aubit needs GNU 'make' - please install it. Stop." "$LINENO" 5
		fi
	fi
fi

## ==================================================================
##     Checks for stuff needed only for compiling from source code
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking standard programs:${T_ME}" >&5
$as_echo "${T_MD}Checking standard programs:${T_ME}" >&6; }


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

  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


	if test "$PKG_CONFIG" != "no"; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config version" >&5
$as_echo_n "checking pkg-config version... " >&6; }
		PKG_CONFIG_VERSION=`$PKG_CONFIG --version`
		if $PKG_CONFIG --atleast-pkgconfig-version 0.14 ; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: OK:$PKG_CONFIG_VERSION" >&5
$as_echo "OK:$PKG_CONFIG_VERSION" >&6; }
		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pkg-config ($PKG_CONFIG_VERSION) too old; version 0.14 or later required." >&5
$as_echo "$as_me: WARNING: *** pkg-config ($PKG_CONFIG_VERSION) too old; version 0.14 or later required." >&2;}
		fi
	fi

if test "$COMSPEC" != ""; then
#Collect info from Windows registry:
	if test "$enable_ac_debug" = "yes" ; then
		echo "--------- reg: GTK"
	fi
	GTK_DEV_REG_PATH="/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/Gtk+ Development Environment for Windows"
	regtool.exe check  "$GTK_DEV_REG_PATH" > /dev/null 2>&1
	RET=$?
	if test "$RET" = "0"; then
		GTK_DEV_VER=`regtool get "$GTK_DEV_REG_PATH/DisplayVersion"`
		#Also has keys: Cygwin and MSYS
	fi
	if test "$enable_ac_debug" = "yes" ; then
		echo "--------- reg: pg"
	fi
	PG_REG_ROOT="/machine/SOFTWARE/PostgreSQL/Installations"
	regtool.exe check  "$PG_REG_ROOT" > /dev/null 2>&1
	RET=$?
	if test "$RET" = "0"; then
		PG_REG_INST_NAME=`regtool list "$PG_REG_ROOT" | head -n 1`
		#Note: sed/dirname are to remove trailing backslash from registry,
		#otherwise cygpath chokes (backslash escapes closing quote)
		PG_REG_BASEDIR=`regtool.exe get "$PG_REG_ROOT/$PG_REG_INST_NAME/Base Directory" | sed -e 's/\\\\/\//g'`
		PG_REG_BASEDIR=`dirname "$PG_REG_BASEDIR/ddd"`
		PG_REG_BASEDIR=`$CYGPATH -ws "$PG_REG_BASEDIR"`
		PG_REG_BASEDIR_CYGPATH=`$CYGPATH -u "$PG_REG_BASEDIR"`
	fi
	if test "$enable_ac_debug" = "yes" ; then
		echo "--------- reg: msys"
	fi
	UNINST_REG_PATH="/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall"
	MSYS_REG_NAME=`regtool list "$UNINST_REG_PATH" | grep "MSYS" | head -n 1`
	if test "$MSYS_REG_NAME" != ""; then
		MSYS_REG_PATH="$UNINST_REG_PATH/$MSYS_REG_NAME"
		regtool.exe check  "$MSYS_REG_PATH" > /dev/null 2>&1
		RET=$?
		if test "$RET" = "0"; then
			MSYS_ROOTDIR=`regtool get "$MSYS_REG_PATH/Inno Setup: App Path"`
			MSYS_ROOTDIR=`cygpath -m "$MSYS_ROOTDIR"`
			MSYS_VERSION=`regtool get "$MSYS_REG_PATH/DisplayVersion"`
		fi
	fi
	if test "$enable_ac_debug" = "yes" ; then
		echo "--------- reg: mingw"
	fi
	MINGW_REG_NAME=`regtool list "$UNINST_REG_PATH" | grep "MinGW" | head -n 1`
	if test "$MINGW_REG_NAME" != ""; then
		MINGW_REG_PATH="$UNINST_REG_PATH/$MINGW_REG_NAME"
		regtool.exe check  "$MINGW_REG_PATH" > /dev/null 2>&1
		RET=$?
		if test "$RET" = "0"; then
			#MINGW_ROOTDIR=`regtool get "$MINGW_REG_PATH/Inno Setup: App Path"`
			MINGW_ROOTDIR=`regtool get "$MINGW_REG_PATH/InstallLocation"`
			MINGW_ROOTDIR=`cygpath -m "$MINGW_ROOTDIR"`
			MINGW_VERSION=`regtool get "$MINGW_REG_PATH/DisplayVersion"`
		fi
	fi
	if test "$enable_ac_debug" = "yes" ; then
		echo "--------- reg: ifx"
	fi
	#IFX_REG_PATH="/HKEY_CURRENT_USER/Software/Informix"
	IFX_REG_PATH="/HKEY_LOCAL_MACHINE/SOFTWARE/Informix"
	regtool.exe check  "$IFX_REG_PATH/Environment" > /dev/null 2>&1
	RET=$?
	if test "$RET" = "0"; then
		REG_INFORMIXDIR=`regtool get "$IFX_REG_PATH/Environment/INFORMIXDIR" | sed -e 's/\\\\/\//g'`

		#Note: sed/dirname are to remove trailing backslash from registry,
		#otherwise cygpath chokes (backslash escapes closing quote)
		REG_INFORMIXDIR=`dirname "$REG_INFORMIXDIR/ddd"`
		REG_INFORMIXDIR=`$CYGPATH -ms "$REG_INFORMIXDIR"`
		REG_INFORMIXDIR_CYGPATH=`$CYGPATH -u "$REG_INFORMIXDIR"`

		IFX_INSTDIR_REGPATH="$IFX_REG_PATH/Setup/InstalledDirectories"
		#echo "IFX_INSTDIR_REGPATH=$IFX_INSTDIR_REGPATH"
		regtool.exe check  "$IFX_INSTDIR_REGPATH" > /dev/null 2>&1
		RET=$?
		if test "$RET" = "0"; then
			#FIXME: cant read it because resulting string looks like:
			#regtool get '/HKEY_LOCAL_MACHINE/SOFTWARE/Informix/Setup/InstalledDirectories/E:\PROGRA~1\W2000\Informix\CSDK'
			#so regtool thiks its all a path, not a key
			#echo "regtool get '$IFX_INSTDIR_REGPATH/$REG_INFORMIXDIR'"
			DATE_INFORMIXDIR_INSTALLED=`regtool get "$IFX_INSTDIR_REGPATH/$REG_INFORMIXDIR" 2>/dev/null`
		fi
	else
		if test "$enable_ac_debug" = "yes" ; then
			echo "no $IFX_REG_PATH/Environment in reegistry"
		fi
	fi

	if test "$INFORMIXDIR" = "" -a "$REG_INFORMIXDIR" != "" ; then
		export INFORMIXDIR="$REG_INFORMIXDIR"
		if test "$enable_ac_debug" = "yes" ; then
			echo "NOTE: INFORMIXDIR set based on registry, to:"
			echo "$INFORMIXDIR"
		fi
	fi
	if test "$enable_ac_debug" = "yes" ; then
		echo "------ reg: ISsetup"
	fi

	INNO_REG_NAME=`regtool list "$UNINST_REG_PATH" | grep "Inno" | head -n 1`
	if test "$INNO_REG_NAME" != ""; then
		INNO_REG_PATH="$UNINST_REG_PATH/$INNO_REG_NAME"
		regtool.exe check  "$INNO_REG_PATH" > /dev/null 2>&1
		RET=$?
		if test "$RET" = "0"; then
			INNO_ROOTDIR=`regtool get "$INNO_REG_PATH/Inno Setup: App Path"`
			INNO_VERSION=`regtool get "$INNO_REG_PATH/DisplayVersion"`
		fi
	fi
	if test "$enable_ac_debug" = "yes" ; then
		echo "------ reg: ISTool"
	fi
	TMP_LIST="`regtool list "$UNINST_REG_PATH" | grep {`"
	for a in $TMP_LIST; do
		echo "a=$a"
		TMP_LIST2=`regtool list "$UNINST_REG_PATH/$a" | grep -i DisplayName`
		if test "$TMP_LIST2" != ""; then
			echo "Have DisplayName in $a"
			TMP_NAME=`regtool get "$UNINST_REG_PATH/$a/DisplayName" | grep -i ISTool`
			if test "$TMP_NAME" != ""; then
				ISTOOL_ROOTDIR=`regtool get "$UNINST_REG_PATH/$a/InstallLocation"`
				break
			fi
		fi
	done

		if test "$enable_ac_debug" = "yes" ; then
			echo "GTK_DEV_VER=$GTK_DEV_VER"
			echo "MSYS_ROOTDIR=$MSYS_ROOTDIR"
			echo "MSYS_VERSION=$MSYS_VERSION"
			echo "MINGW_ROOTDIR=$MINGW_ROOTDIR"
			echo "MINGW_VERSION=$MINGW_VERSION"
			echo "INNO_ROOTDIR=$INNO_ROOTDIR"
			echo "INNO_VERSION=$INNO_VERSION"
			echo "ISTOOL_ROOTDIR=$ISTOOL_ROOTDIR"
			#echo "PG_REG_INST_NAME=$PG_REG_INST_NAME"
			echo "PG_REG_BASEDIR=$PG_REG_BASEDIR"
			echo "PG_REG_BASEDIR_CYGPATH=$PG_REG_BASEDIR_CYGPATH"
			echo "REG_INFORMIXDIR=$REG_INFORMIXDIR"
			echo "DATE_INFORMIXDIR_INSTALLED=$DATE_INFORMIXDIR_INSTALLED"
		fi

fi

if test "$AUBIT_SOURCE" = "1" ; then

## ==================================================================
##  				   Checks for Bison/yacc
## ==================================================================

	#force this check even if not specified on command line:
	if test "$with_bison" = ""; then
		with_bison=yes
	fi


# Check whether --with-bison was given.
if test "${with_bison+set}" = set; then :
  withval=$with_bison;

	if test "$withval" != "no"; then
		#AC_PROG_YACC
		#if test "$YACC" != "bison -y"; then
		#	#AC_PROG_YACC macro sets $YACC to "yacc" even when its not present!
		#	YACC=no
		#    BISON=no
		#	WARN_YACC=1
		#else

		if test "$withval" != "yes"; then
			#user specified path to bison
			BISON_PATH=$withval
		else
			BISON_PATH="$PATH"
		fi

		# Extract the first word of "bison", so it can be a program name with args.
set dummy bison; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_BISON+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $BISON in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $BISON_PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
  ;;
esac
fi
BISON=$ac_cv_path_BISON
if test -n "$BISON"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
$as_echo "$BISON" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



		if test "$BISON" != "no"; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Bison version" >&5
$as_echo_n "checking Bison version... " >&6; }
			TMP_TMP=`$BISON --version|head -n 1|sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/\./ /g' -e 's/a-z//g'`
			#On some versions of CygWin, did not strip letters -
			#don't know why...so I had to use tr instead
			TMP_TMP=`echo "$TMP_TMP" | tr -d '[A-Z]' | tr -d '[a-z]'`
			set `echo $TMP_TMP`
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2" >&5
$as_echo "$1.$2" >&6; }

			#On some versions of CygWin, did not strip letters -
			#don't know why...
			if test "$1" = "1" -a "$2" -lt "875"; then
		        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** You will need Bison >= 1.875 if youd" >&5
$as_echo "$as_me: WARNING: ** You will need Bison >= 1.875 if youd" >&2;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** want to regenerate the Aubit parsers" >&5
$as_echo "$as_me: WARNING: ** want to regenerate the Aubit parsers" >&2;}
				#Will use preconfigured y.tab.c from /tools/no_yacc
				#YACC=no
				BISON=no
				WARN_YACC=1
			else
				#-y is Equivalent to -o y.tab.c; the parser output file is
				#called y.tab.c, and the other  outputs  are  called
				#y.output  and  y.tab.h.  The purpose of this switch
				#is to imitate yacc's output file name  conventions.

				#From W. Haslbeck [spam.langweilt@gmx.de]
				#there is a awk programm involved in the build-process of the
				#a4gl-compiler (mk_states_c), that is feed by rules/generated/y.output.
				#y.output is generated by yacc (or bison).
				#If the LANG on the build system is set to eg. de_DE@euro as on my
				#system, bison generates lines like "Zustand 1234" instead of
				#"state 1234", so the awk-programm can't find the expected regexes.
				#So a quick fix is setting LANG to C (or unset LANG, which is the
				#same) "by hand" before ./configure. A better fix is to change
				#the Makefile (replace "bison" with "LANG=C bison" or something)

				#Store just the executable name for cases where we need it
				#without default flags:
				BISON_EXE="$BISON"
				#BISON="LANG=C LC_ALL=C; nice -n -20 $BISON -y"
				BISON="LANG=C LC_ALL=C $BISON -y"
			fi
		else
			BISON=no
			WARN_YACC=1
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find bison in $BISON_PATH" >&5
$as_echo "$as_me: WARNING: cannot find bison in $BISON_PATH" >&2;}
		fi
	else
		BISON=no
		WARN_YACC=1
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Bison parser disbled" >&5
$as_echo "Bison parser disbled" >&6; }
	fi


else

	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-bison not specified" >&5
$as_echo "--with-bison not specified" >&6; }

fi



## ==================================================================
##  				   Checks for Lex/flex
## ==================================================================

	#This is probably a bug in autoconf, but if we don't test for Lex BEFORE
	#we test for C, all sort of wireds things will happen, so we have to test
	#it even in binary distro, where we don't need it:
		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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_LEX+:} false; then :
  $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LEX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


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

if test "x$LEX" != "x:"; then
  cat >conftest.l <<_ACEOF
%%
a { ECHO; }
b { REJECT; }
c { yymore (); }
d { yyless (1); }
e { yyless (input () != 0); }
f { unput (yytext[0]); }
. { BEGIN INITIAL; }
%%
#ifdef YYTEXT_POINTER
extern char *yytext;
#endif
int
main (void)
{
  return ! yylex () + ! yywrap ();
}
_ACEOF
{ { ac_try="$LEX conftest.l"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$LEX conftest.l") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
$as_echo_n "checking lex output file root... " >&6; }
if ${ac_cv_prog_lex_root+:} false; then :
  $as_echo_n "(cached) " >&6
else

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
  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
$as_echo "$ac_cv_prog_lex_root" >&6; }
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root

if test -z "${LEXLIB+set}"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
$as_echo_n "checking lex library... " >&6; }
if ${ac_cv_lib_lex+:} false; then :
  $as_echo_n "(cached) " >&6
else

    ac_save_LIBS=$LIBS
    ac_cv_lib_lex='none needed'
    for ac_lib in '' -lfl -ll; do
      LIBS="$ac_lib $ac_save_LIBS"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`cat $LEX_OUTPUT_ROOT.c`
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_lex=$ac_lib
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
      test "$ac_cv_lib_lex" != 'none needed' && break
    done
    LIBS=$ac_save_LIBS

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
$as_echo "$ac_cv_lib_lex" >&6; }
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
$as_echo_n "checking whether yytext is a pointer... " >&6; }
if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
  $as_echo_n "(cached) " >&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
ac_save_LIBS=$LIBS
LIBS="$LEXLIB $ac_save_LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  #define YYTEXT_POINTER 1
`cat $LEX_OUTPUT_ROOT.c`
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_prog_lex_yytext_pointer=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_save_LIBS

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

$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h

fi
rm -f conftest.l $LEX_OUTPUT_ROOT.c

fi
missing_dir=`cd $ac_aux_dir && pwd`
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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_LEX+:} false; then :
  $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LEX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


  test -n "$LEX" && break
done
test -n "$LEX" || LEX=""$missing_dir/missing flex""



	if test "$LEX" = ":" -o "$LEX" = "" ; then
				LEX="no"
		if test "$AUBIT_SOURCE" = "1" ; then
			WARN_LEX=1
		fi
	else
		if test "$LEX" = "flex"; then
			#flex 2.5.31 has a new incompatible API.  I had to downgrade back to 2.5.4a. - but 2.5.33 is ok...
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Flex version" >&5
$as_echo_n "checking Flex version... " >&6; }
			TMP_TMP=`$LEX --version | head -n 1 | sed -e 's/^flex version //' -e 's/\./ /g' -e 's/a-z//g'`
			TMP_TMP=`echo "$TMP_TMP" | tr -d '[A-Z]' | tr -d '[a-z]'`
			set `echo $TMP_TMP`
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2.$3" >&5
$as_echo "$1.$2.$3" >&6; }

			if test "$1" = "2" -a "$2" -gt "4"; then
				#Version is >= 2.5
				if test "$3" -eq "31"; then
					#pcode wouldn't compile with a lex v. 2.5.31 (complained about yytext_ptr not existing)
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flex 2.5.31 and up incompatible with Aubit P-code" >&5
$as_echo "$as_me: WARNING: Flex 2.5.31 and up incompatible with Aubit P-code" >&2;}
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: P-code compilation disabled" >&5
$as_echo "$as_me: WARNING: P-code compilation disabled" >&2;}
					with_pcode="no"
					#AC_MSG_ERROR(Please downgrade to Flex 2.5.4a or earlier. Stop.)
				fi
				#if test "$3" -gt "4"; then
					#AC_MSG_WARN(Flex introduced incompatible API in post 2.5.4a versions)
					#AC_MSG_ERROR(Please downgrade to Flex 2.5.4a or earlier. Stop.)
				#fi
			fi


		fi
	fi
	if test "$enable_stop_lex" = "yes" ; then
		exit
	fi

## ==================================================================
##                  Checks Efence
## ==================================================================


	#AC_MSG_CHECKING(Electric Fence debugging)

# Check whether --with-efence was given.
if test "${with_efence+set}" = set; then :
  withval=$with_efence;
	if test "$withval" != "no"; then

		#if test "$withval" != "yes"; then
        #    #user specified path to efence
		#	BISON_PATH=$withval
        #else
		#	BISON_PATH="$PATH"
		#fi

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
$as_echo_n "checking for main in -lefence... " >&6; }
if ${ac_cv_lib_efence_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lefence  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_efence_main=yes
else
  ac_cv_lib_efence_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
$as_echo "$ac_cv_lib_efence_main" >&6; }
if test "x$ac_cv_lib_efence_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBEFENCE 1
_ACEOF

  LIBS="-lefence $LIBS"

fi

		if test "$ac_cv_lib_efence_main" = "yes" ; then
			EFENCE=yes
			#AC_MSG_RESULT(yes)
		else
			EFENCE=no
			#AC_MSG_RESULT(efence library not found)
		fi

    else
		EFENCE=no
		#AC_MSG_RESULT(disbled)
    fi


else

		EFENCE=no
		#AC_MSG_RESULT(--with-efence not specified)

fi



#Valgrind has same purpose as efence (detecting memory alocation errors)
#But instead of being a library that needs to be linked with every program
#you wish to debug, it is an executable, and may be easier to use then efence
	# Extract the first word of "valgrind", so it can be a program name with args.
set dummy valgrind; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_VALGRIND+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $VALGRIND in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_VALGRIND" && ac_cv_path_VALGRIND="no"
  ;;
esac
fi
VALGRIND=$ac_cv_path_VALGRIND
if test -n "$VALGRIND"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
$as_echo "$VALGRIND" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi




## ==================================================================
##  				   Checks for DoxyGen
## ==================================================================

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

  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
  ;;
esac
fi
DOXYGEN=$ac_cv_path_DOXYGEN
if test -n "$DOXYGEN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
$as_echo "$DOXYGEN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_CVS_CLIENT" && ac_cv_path_CVS_CLIENT="no"
  ;;
esac
fi
CVS_CLIENT=$ac_cv_path_CVS_CLIENT
if test -n "$CVS_CLIENT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CVS_CLIENT" >&5
$as_echo "$CVS_CLIENT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_DOXYSEARCH" && ac_cv_path_DOXYSEARCH="no"
  ;;
esac
fi
DOXYSEARCH=$ac_cv_path_DOXYSEARCH
if test -n "$DOXYSEARCH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYSEARCH" >&5
$as_echo "$DOXYSEARCH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


	if test "$DOXYSEARCH" != "no" ; then
		DOXY_BIN_ABSPATH=`dirname $DOXYSEARCH`
    fi

	if test "$with_dot" != "no"; then
		old_PATH="$PATH"
		if test "$with_dot" != "yes"; then
			#User specified path to dot tool
	        PATH="$with_dot:$PATH"
	    else
			if test "$COMSPEC" != ""; then
				REGKEY=/machine/SOFTWARE/ATT/Graphviz
				regtool.exe check  "$REGKEY" > /dev/null 2>&1
				RET=$?
				if test "$RET" = "0"; then
					if test "$enable_ac_debug" = "yes" ; then
						echo "REGKEY=$REGKEY found"
					fi
					DOT_PATH=`regtool list -v "$REGKEY"  | awk '{print $3}' | sed -e 's/"//g'`
				else
					if test "$enable_ac_debug" = "yes" ; then
						echo "REGKEY=$REGKEY NOT found"
					fi
				fi
				if test "$DOT_PATH" != ""; then
					DOT_PATH_CYGWIN=`$CYGPATH -u $DOT_PATH`
					PATH="$DOT_PATH_CYGWIN/bin:$PATH"
					if test "$enable_ac_debug" = "yes" ; then
						echo "$DOT_PATH_CYGWIN/bin added to PATH"
					fi
				fi
			fi
		fi

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

  test -z "$ac_cv_path_DOTTOOL" && ac_cv_path_DOTTOOL="no"
  ;;
esac
fi
DOTTOOL=$ac_cv_path_DOTTOOL
if test -n "$DOTTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOTTOOL" >&5
$as_echo "$DOTTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



		if test "$DOTTOOL" != "no"; then
			HAVE_DOT=YES
			DOT_PATH=`dirname "$DOTTOOL"`
		else
			HAVE_DOT=NO
		fi

		if test "$with_dot" != "yes"; then
			PATH="$old_PATH"
	    fi
	else
		HAVE_DOT=NO
	fi

fi ####<<<<<<<<<<<<<<<<< END OF if test "$AUBIT_SOURCE" = "1" ; then

## ==================================================================
##  				   Checks for GCC
## ==================================================================

#AC_ISC_POSIX
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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


  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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 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
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


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

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


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if ${ac_cv_c_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

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

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

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

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

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

int
main ()
{

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

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

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

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

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


#apgcc is AutoPackage wrapper script for GCC
if test "$CC" = "gcc" -o "$CC" = "apgcc"; then
	HAVE_C_COMP=1
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC version" >&5
$as_echo_n "checking GCC version... " >&6; }
	#WARNING: THIS TEST OCURS ONE MORE TIME, EARLIER IN THIS FILE
	TMP_DMACHINE=`gcc -dumpmachine | sed 's/
//g'`
	TMP_TMP=`gcc --version | head -n 1 | sed -e 's/^gcc//' -e 's/(GCC)//' -e 's/ (prerelease)//' -e 's/(//' -e 's/)//' -e 's/\.exe//' -e 's/\./ /g'`
	if test "$TMP_TMP" != ""; then
		set `echo $TMP_TMP`
		if test "$1" != ""; then
			#if test "$1" = "3" -a "$2" -lt "50"; then
		    #    AC_MSG_WARN(You will need GNU make version 3.50 or later (found $1.$2.$3).)
	        #else
			    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2.$3" >&5
$as_echo "$1.$2.$3" >&6; }
	            GCC_VERSION_MAJOR=$1
				GCC_VERSION_MINOR=$2
				if test "$TMP_DMACHINE" = "mingw32" ; then
					GCC_MINGW=yes
					#should not really need drive letter?
                    #also, if adding drive letter with : , it then we add AUBITDIR to PATH, : will be
                    #interperted as separator (when using CygWin tools), and make PATH invalid
					aubitdir="$CYGWIN_DRIVE:$CYGWIN_PATH$aubitdir"
                    #BUT-then CygWin things there is a directory called /cygwin in HIS root!
                    #but how to get a directory name CygWin was installed in, if different then default?
					#aubitdir="$CYGWIN_PATH$aubitdir"
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using MinGW GCC." >&5
$as_echo "$as_me: WARNING: Using MinGW GCC." >&2;}
					old_CFLAGS="$CFLAGS"
					old_CPPFLAGS="$CPPFLAGS"
					old_LDFLAGS="$LDFLAGS"

					TMP_IFLAGS="-I$WINDOWS_DRIVE$CYGWIN_PATH/usr/include"
                    CFLAGS=" $CFLAGS $TMP_IFLAGS"
					CPPFLAGS="$CPPFLAGS $TMP_IFLAGS"

					#Clear cached value:
					#unset ac_cv_header_dlfcn_h
					#AC_CHECK_HEADERS([dlfcn.h])
	                #exit
					#In file included from $WINDOWS_DRIVE/MinGW/include/inttypes.h:6,
					#                 from configure:9489:
					#$WINDOWS_DRIVE/MinGW/include/stdint.h:27: conflicting types for `int8_t'
					#$WINDOWS_DRIVE$CYGWIN_PATH/usr/include/sys/types.h:128: previous declaration of `int8_t'

					#Determine GCC install path:
					x=`type gcc | awk '{print $3}'`;
					a=`dirname $x`; b=`dirname $a`;
					GCC_HOME_WINPATH=`$CYGPATH -w "$b"`
					GCC_HOME_CYGPATH=`$CYGPATH -u "$b"`

					CFLAGS="$old_CFLAGS"
					CPPFLAGS="$old_CPPFLAGS"
					LDFLAGS="$old_LDFLAGS"
                    TMP_IFLAGS=
                fi
	        #fi
		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot read GCC version." >&5
$as_echo "$as_me: WARNING: Cannot read GCC version." >&2;}
	    fi
    else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot read GCC version." >&5
$as_echo "$as_me: WARNING: Cannot read GCC version." >&2;}
    fi
else
	if test "$AUBIT_SOURCE" = "0"; then
		#We can use just pcode with binary packages
		HAVE_C_COMP=0
	else
		if test "$enable_alternate_cc" != "yes"; then
		#To compile Aubit from source code, we ceed C
		as_fn_error $? "Aubit needs GNU 'C' compiler - please install it. Stop." "$LINENO" 5
		fi
	fi
fi

HAS_INT8_DTYPE=0

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

int
main ()
{
 long long x;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  HAS_LONG_LONG_DTYPE=1
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


## ==================================================================
##  				   Checks for Standard programs
## ==================================================================


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

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@echo '@@@%%%=$(MAKE)=@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi


if test "$AUBIT_SOURCE" = "1" ; then
	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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


  test -n "$AWK" && break
done

	#FIXME: stop if no gawk (if configuring source code tree) - awk will fail
	if test "$AWK" = "awk"; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Aubit compiler need gawk" >&5
$as_echo "$as_me: WARNING: Aubit compiler need gawk" >&2;}
	fi
fi

#expect is needed by aubitbuild autoxxx scripts
# Extract the first word of "expect", so it can be a program name with args.
set dummy expect; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_EXPECT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $EXPECT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_EXPECT" && ac_cv_path_EXPECT="no"
  ;;
esac
fi
EXPECT=$ac_cv_path_EXPECT
if test -n "$EXPECT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
$as_echo "$EXPECT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PERL+:} false; then :
  $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  ;;
esac
fi
PERL=$ac_cv_path_PERL
if test -n "$PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
$as_echo "$PERL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="no"
  ;;
esac
fi
SWIG=$ac_cv_path_SWIG
if test -n "$SWIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
$as_echo "$SWIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="no"
  ;;
esac
fi
WGET=$ac_cv_path_WGET
if test -n "$WGET"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
$as_echo "$WGET" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



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

  test -z "$ac_cv_path_SH" && ac_cv_path_SH="no"
  ;;
esac
fi
SH=$ac_cv_path_SH
if test -n "$SH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
$as_echo "$SH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


if test "$SH" = "no"; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Aubit compiler needs bash - sh/ksh will probably fail." >&5
$as_echo "$as_me: WARNING: Aubit compiler needs bash - sh/ksh will probably fail." >&2;}
	# Extract the first word of "ksh", so it can be a program name with args.
set dummy ksh; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_SH+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $SH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SH="$SH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_SH" && ac_cv_path_SH="no"
  ;;
esac
fi
SH=$ac_cv_path_SH
if test -n "$SH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
$as_echo "$SH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_SH" && ac_cv_path_SH="/bin/sh"
  ;;
esac
fi
SH=$ac_cv_path_SH
if test -n "$SH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
$as_echo "$SH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    fi
	if test "$SH" = "no"; then
		as_fn_error $? "Failed to set SH. Stop." "$LINENO" 5
    fi
else

#Here is the issue:
#$ sh --version
#GNU bash, version 3.2.5(7)-release (i686-pc-cygwin)
#Copyright (C) 2005 Free Software Foundation, Inc.
#
#$ echo "aaa`bin/aubit-config TARGET_OS`xxx"
#xxxmingw

#andrej@istation-vm-xp /usr/local/aubit4gl/tools/test
#$ bash --version
#GNU bash, version 3.1.17(6)-release (i686-pc-cygwin)
#Copyright (C) 2005 Free Software Foundation, Inc.
#
#$ echo "aaa`bin/aubit-config TARGET_OS`xxx"
#aaamingwxxx

	BASH_VER=`bash --version | head -1 | awk '{print $4}'`
	DASH_VER=`bash --version | head -1 | awk '{print $4}'`
	SH_VER=`sh --version | head -1 | awk '{print $4}'`

	if test "$BASH_VER" != "$SH_VER" -a "$DASH_VER" != "$SH_VER"; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your 'sh' executable is NOT the same as 'bash'. This may cause problems" >&5
$as_echo "$as_me: WARNING: Your 'sh' executable is NOT the same as 'bash'. This may cause problems" >&2;}
	fi

	if test "$BASH_VER" = "3.2.5(7)-release"; then
		as_fn_error $? "Bash version known to be broken ($BASH_VER). Stop." "$LINENO" 5
	fi
	if test "$SH_VER" = "3.2.5(7)-release"; then
		as_fn_error $? "Bash ('sh') version known to be broken ($BASH_VER). Stop." "$LINENO" 5
	fi

fi

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

  test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="no"
  ;;
esac
fi
LDD=$ac_cv_path_LDD
if test -n "$LDD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
$as_echo "$LDD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



#Note: CygWin has splint
# Extract the first word of "lclint", so it can be a program name with args.
set dummy lclint; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_LCLINTEXE+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $LCLINTEXE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LCLINTEXE="$LCLINTEXE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_LCLINTEXE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_LCLINTEXE" && ac_cv_path_LCLINTEXE="no"
  ;;
esac
fi
LCLINTEXE=$ac_cv_path_LCLINTEXE
if test -n "$LCLINTEXE"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCLINTEXE" >&5
$as_echo "$LCLINTEXE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


	if test "$LCLINTEXE" = "no"; then
		# Extract the first word of "splint", so it can be a program name with args.
set dummy splint; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_LCLINTEXE2+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $LCLINTEXE2 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LCLINTEXE2="$LCLINTEXE2" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_LCLINTEXE2="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_LCLINTEXE2" && ac_cv_path_LCLINTEXE2="no"
  ;;
esac
fi
LCLINTEXE2=$ac_cv_path_LCLINTEXE2
if test -n "$LCLINTEXE2"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCLINTEXE2" >&5
$as_echo "$LCLINTEXE2" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


		if test "$LCLINTEXE2" != "no"; then
			LCLINTEXE="$LCLINTEXE2"
		fi
    fi

#On recent SuSE ldconfig is under /sbin, which is not in path by default, so:
# Extract the first word of "ldconfig", so it can be a program name with args.
set dummy ldconfig; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_LDCONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $LDCONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH /sbin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="no"
  ;;
esac
fi
LDCONFIG=$ac_cv_path_LDCONFIG
if test -n "$LDCONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
$as_echo "$LDCONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



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

  test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="no"
  ;;
esac
fi
AUTOCONF=$ac_cv_path_AUTOCONF
if test -n "$AUTOCONF"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
$as_echo "$AUTOCONF" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_ACLOCAL" && ac_cv_path_ACLOCAL="no"
  ;;
esac
fi
ACLOCAL=$ac_cv_path_ACLOCAL
if test -n "$ACLOCAL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
$as_echo "$ACLOCAL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



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

  test -z "$ac_cv_path_RPM" && ac_cv_path_RPM="no"
  ;;
esac
fi
RPM=$ac_cv_path_RPM
if test -n "$RPM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
$as_echo "$RPM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_AUTOSPEC" && ac_cv_path_AUTOSPEC="no"
  ;;
esac
fi
AUTOSPEC=$ac_cv_path_AUTOSPEC
if test -n "$AUTOSPEC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOSPEC" >&5
$as_echo "$AUTOSPEC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



# Extract the first word of "sendmail", so it can be a program name with args.
set dummy sendmail; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PROG_SENDMAIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PROG_SENDMAIL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PROG_SENDMAIL="$PROG_SENDMAIL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH /usr/bin /usr/sbin /usr/etc /etc /usr/ucblib
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PROG_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_PROG_SENDMAIL" && ac_cv_path_PROG_SENDMAIL="/usr/lib/sendmail"
  ;;
esac
fi
PROG_SENDMAIL=$ac_cv_path_PROG_SENDMAIL
if test -n "$PROG_SENDMAIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SENDMAIL" >&5
$as_echo "$PROG_SENDMAIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


if test -n "$PROG_SENDMAIL"; then
  $as_echo "#define HAVE_SENDMAIL 1" >>confdefs.h

fi


## ==================================================================
##                  Check for AutoPackage
## ==================================================================

if test "$AUBIT_SOURCE" = "1" ; then
	#BinReloc - utility for easy relocation of binary packages
	# Extract the first word of "binreloc", so it can be a program name with args.
set dummy binreloc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_BINRELOC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $BINRELOC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_BINRELOC="$BINRELOC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_BINRELOC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_BINRELOC" && ac_cv_path_BINRELOC="no"
  ;;
esac
fi
BINRELOC=$ac_cv_path_BINRELOC
if test -n "$BINRELOC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BINRELOC" >&5
$as_echo "$BINRELOC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



	#aPBUILD SCRIPTS - filter out not needed dependencies (CC=apgcc; CXX=apg++)
	# Extract the first word of "apgcc", so it can be a program name with args.
set dummy apgcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_APGCC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $APGCC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_APGCC="$APGCC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_APGCC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_APGCC" && ac_cv_path_APGCC="no"
  ;;
esac
fi
APGCC=$ac_cv_path_APGCC
if test -n "$APGCC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APGCC" >&5
$as_echo "$APGCC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_APGPP" && ac_cv_path_APGPP="no"
  ;;
esac
fi
APGPP=$ac_cv_path_APGPP
if test -n "$APGPP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APGPP" >&5
$as_echo "$APGPP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



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

  test -z "$ac_cv_path_MAKEINSTALLER" && ac_cv_path_MAKEINSTALLER="no"
  ;;
esac
fi
MAKEINSTALLER=$ac_cv_path_MAKEINSTALLER
if test -n "$MAKEINSTALLER"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINSTALLER" >&5
$as_echo "$MAKEINSTALLER" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



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

  test -z "$ac_cv_path_OBJDUMP" && ac_cv_path_OBJDUMP="no"
  ;;
esac
fi
OBJDUMP=$ac_cv_path_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi

## ==================================================================
##                  Check for ORBit CORBA support
## ==================================================================



  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for ORBit CORBA support:${T_ME}" >&5
$as_echo "${T_MD}Checking for ORBit CORBA support:${T_ME}" >&6; }



# Check whether --with-orbit was given.
if test "${with_orbit+set}" = set; then :
  withval=$with_orbit;
	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
			if test "$COMSPEC" != "" -a "$MSYS_ROOTDIR" != ""; then
				withval="$MSYS_ROOTDIR/local"
			else
	    		withval=/usr
			fi
		else
			#user specified custom withval
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON ORBit"
			WARN_LD_LIBRARY_PATH=1
            ADD_LD_LIBRARY_PATH="$withval/lib$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
		fi

		HAS_ORBIT_TYPE=0
		# Extract the first word of "orbit-idl-2", so it can be a program name with args.
set dummy orbit-idl-2; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ORBIT_IDL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ORBIT_IDL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
  ;;
esac
fi
ORBIT_IDL=$ac_cv_path_ORBIT_IDL
if test -n "$ORBIT_IDL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORBIT_IDL" >&5
$as_echo "$ORBIT_IDL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ORBit 2" >&5
$as_echo_n "checking ORBit 2... " >&6; }
		if test "$PKG_CONFIG" != "no"; then
			ORBIT_NAME="ORBit-2.0"
			if $PKG_CONFIG --exists $ORBIT_NAME ; then
				if test "$ORBIT_IDL" != "no"; then
					HAS_ORBIT_TYPE=2
					ORBIT_VERSION=`$PKG_CONFIG --modversion $ORBIT_NAME`
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORBIT_NAME present ($ORBIT_VERSION)" >&5
$as_echo "$ORBIT_NAME present ($ORBIT_VERSION)" >&6; }
					CAPI_LDFLAGS="`$PKG_CONFIG $ORBIT_NAME ORBit-CosNaming-2.0 --libs`"
					CAPI_CFLAGS="`$PKG_CONFIG $ORBIT_NAME ORBit-CosNaming-2.0 --cflags`"
				else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - missing orbit-idl-2" >&5
$as_echo "no - missing orbit-idl-2" >&6; }
				fi
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - missing pkg-config $ORBIT_NAME package" >&5
$as_echo "no - missing pkg-config $ORBIT_NAME package" >&6; }
			fi
		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - missing pkg-config" >&5
$as_echo "no - missing pkg-config" >&6; }
		fi

		if test "$HAS_ORBIT_TYPE" = "0"; then
			# Extract the first word of "orbit-config", so it can be a program name with args.
set dummy orbit-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ORBIT_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ORBIT_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
  ;;
esac
fi
ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
if test -n "$ORBIT_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORBIT_CONFIG" >&5
$as_echo "$ORBIT_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ORBit 1" >&5
$as_echo_n "checking ORBit 1... " >&6; }
			if test "$ORBIT_CONFIG" != "no"; then
				if test "$ORBIT_IDL" != "no"; then
					HAS_ORBIT_TYPE=1
					ORBIT_VERSION=`$ORBIT_CONFIG --version`
					# Extract the first word of "orbit-idl", so it can be a program name with args.
set dummy orbit-idl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ORBIT_IDL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ORBIT_IDL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
  ;;
esac
fi
ORBIT_IDL=$ac_cv_path_ORBIT_IDL
if test -n "$ORBIT_IDL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORBIT_IDL" >&5
$as_echo "$ORBIT_IDL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: present ($ORBIT_VERSION)" >&5
$as_echo "present ($ORBIT_VERSION)" >&6; }
					#there is apparently no diff between client and server targets:
					CAPI_LDFLAGS="`$ORBIT_CONFIG --libs client`"
					CAPI_CFLAGS="`$ORBIT_CONFIG --cflags client`"
				else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - missing orbit-idl-2" >&5
$as_echo "no - missing orbit-idl-2" >&6; }
				fi
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - missing orbit-config" >&5
$as_echo "no - missing orbit-config" >&6; }
			fi
		fi
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-orbit not specified" >&5
$as_echo "--with-orbit not specified" >&6; }

fi


if test "$enable_stop_orbit" = "yes" ; then
	exit
fi

## ==================================================================
##                  Check for Ingres ESQL/C compiler support
## ==================================================================

#TODO - check for Ingres ODBC driver
#/opt/Ingres/IngresII/ingres/lib/libiiodbcdriver.1.so



  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Ingres ESQL/C compiler support:${T_ME}" >&5
$as_echo "${T_MD}Checking for Ingres ESQL/C compiler support:${T_ME}" >&6; }



# Check whether --with-ingres was given.
if test "${with_ingres+set}" = set; then :
  withval=$with_ingres;

	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
			if test "$COMSPEC" != "" -a "$MSYS_ROOTDIR" != ""; then
				withval="$MSYS_ROOTDIR/local"
			else
				if test "$II_SYSTEM" != ""; then
					withval="$II_SYSTEM"
				else
	    			withval=/opt/Ingres/IngresII
				fi
			fi
		else
			#user specified custom withval
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON Ingres"
			WARN_LD_LIBRARY_PATH=1
            ADD_LD_LIBRARY_PATH="$withval/lib$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
		fi

		old_CFLAGS="$CFLAGS"
		old_LIBS="$LIBS"
		old_CPPFLAGS="$CPPFLAGS"
		old_LDFLAGS="$LDFLAGS"
		old_PATH="$PATH"

		#PATH=$withval/ingres/bin
		if test -f $withval/.ingIIbash; then

			#Set PATH, LD_LIBRARY_PATH, II_SYSTEM, etc:
			. $withval/.ingIIbash
			# Extract the first word of "esqlc", so it can be a program name with args.
set dummy esqlc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_INGRES_ESQLC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $INGRES_ESQLC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_INGRES_ESQLC="$INGRES_ESQLC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_INGRES_ESQLC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_INGRES_ESQLC" && ac_cv_path_INGRES_ESQLC="no"
  ;;
esac
fi
INGRES_ESQLC=$ac_cv_path_INGRES_ESQLC
if test -n "$INGRES_ESQLC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INGRES_ESQLC" >&5
$as_echo "$INGRES_ESQLC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



			if test "$INGRES_ESQLC" != "no"; then

				#check version:
				#has no verion flag - at least check if it is INGRES so
				#we dont pivk upo some other esql in PATH
				INGRES_ESQLC_VERSION="`$INGRES_ESQLC -- | grep INGRES`"
				#echo "$INGRES_ESQLC_VERSION"

				if test "$INGRES_ESQLC_VERSION" != ""; then
					#Check for libs:
					#-L"$II_SYSTEM"/ingres/lib  `cat "$II_SYSTEM"/ingres/files/abflnk.opt`

					#INGRES_INST_PATH="$II_SYSTEM"
					#echo "II_SYSTEM=$II_SYSTEM"
					INGRES_INST_PATH="$withval"
					#echo "INGRES_INST_PATH=$INGRES_INST_PATH"
					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use Ingres ESQL/C compiler" >&5
$as_echo_n "checking if we can use Ingres ESQL/C compiler... " >&6; }
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
					HAVE_INGRES_ESQLC=yes
				else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use Ingres ESQL/C compiler" >&5
$as_echo_n "checking if we can use Ingres ESQL/C compiler... " >&6; }
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - esqlc found did not return INGRES string" >&5
$as_echo "no - esqlc found did not return INGRES string" >&6; }
					HAVE_INGRES_ESQLC=no
				fi
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use Ingres ESQL/C compiler" >&5
$as_echo_n "checking if we can use Ingres ESQL/C compiler... " >&6; }
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - missing Ingres esql executable" >&5
$as_echo "no - missing Ingres esql executable" >&6; }
				HAVE_INGRES_ESQLC=no
			fi
		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use Ingres ESQL/C compiler" >&5
$as_echo_n "checking if we can use Ingres ESQL/C compiler... " >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - missing $withval/.ingIIbash script" >&5
$as_echo "no - missing $withval/.ingIIbash script" >&6; }
			HAVE_INGRES_ESQLC=no
		fi

		CFLAGS="$old_CFLAGS"
		LIBS="$old_LIBS"
		CPPFLAGS="$old_CPPFLAGS"
		LDFLAGS="$old_LDFLAGS"
		PATH="$old_PATH"

	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-ingres not specified" >&5
$as_echo "--with-ingres not specified" >&6; }

fi


if test "$enable_stop_ingres" = "yes" ; then
	exit
fi

## ==================================================================
##                  Check for Jabber IM support
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Jabber support:${T_ME}" >&5
$as_echo "${T_MD}Checking for Jabber support:${T_ME}" >&6; }



# Check whether --with-iksemel was given.
if test "${with_iksemel+set}" = set; then :
  withval=$with_iksemel;

	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
			if test "$COMSPEC" != "" -a "$MSYS_ROOTDIR" != ""; then
				withval="$MSYS_ROOTDIR/local"
			else
	    		withval=/usr/local
			fi
		else
			#user specified custom withval
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON Jabber"
			WARN_LD_LIBRARY_PATH=1
            ADD_LD_LIBRARY_PATH="$withval/lib$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
		fi

		old_CFLAGS="$CFLAGS"
		old_LIBS="$LIBS"
		old_CPPFLAGS="$CPPFLAGS"
		old_LDFLAGS="$LDFLAGS"

		if test "$COMSPEC" != ""; then
			withval="`$CYGPATH -m $withval`"
		fi

		TEST_IKSEMEL_I_FLAGS="-I$withval/include"
		TEST_IKSEMEL_L_FLAGS="-L$withval/lib"

		LDFLAGS="$TEST_IKSEMEL_L_FLAGS $LDFLAGS"
		CFLAGS="$TEST_IKSEMEL_I_FLAGS $CFLAGS"
		CPPFLAGS="$TEST_IKSEMEL_I_FLAGS $CPPFLAGS"

		if test "$enable_ac_debug" = "yes" ; then
			echo "withval=$withval"
			echo "CFLAGS=$CFLAGS"
			echo "LDFLAGS=$LDFLAGS"
			echo "CPPFLAGS=$CPPFLAGS"
			echo "TEST_IKSEMEL_I_FLAGS=$TEST_IKSEMEL_I_FLAGS"
			echo "TEST_IKSEMEL_L_FLAGS=$TEST_IKSEMEL_L_FLAGS"
		fi

		#  AC_CHECK_LIB(pq, PQcmdTuples,AC_DEFINE(HAVE_PQCMDTUPLES,1,[ ]))
		# FIXME: Replace `main' with a function in `-liksemel':
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liksemel" >&5
$as_echo_n "checking for main in -liksemel... " >&6; }
if ${ac_cv_lib_iksemel_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-liksemel  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_iksemel_main=yes
else
  ac_cv_lib_iksemel_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iksemel_main" >&5
$as_echo "$ac_cv_lib_iksemel_main" >&6; }
if test "x$ac_cv_lib_iksemel_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBIKSEMEL 1
_ACEOF

  LIBS="-liksemel $LIBS"

fi


		if test "$ac_cv_lib_iksemel_main" = "yes"; then
			if test "$AUBIT_SOURCE" = "1" ; then
				for ac_header in  iksemel.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

				if test "$ac_cv_header_iksemel_h" = "yes"  ; then
					if test "$PKG_CONFIG" != "no"; then
						#/usr/local/lib/pkgconfig/iksemel.pc
						export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
						if $PKG_CONFIG --exists iksemel ; then
							HAVE_IKSEMEL_TYPE=1
							IKSEMEL_VERSION=`$PKG_CONFIG --modversion iksemel`
						fi
					fi
					if test "$IKSEMEL_VERSION" = ""; then
						# Extract the first word of "iksperf", so it can be a program name with args.
set dummy iksperf; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_IKSPERF+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $IKSPERF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_IKSPERF="$IKSPERF" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_IKSPERF="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_IKSPERF" && ac_cv_path_IKSPERF="no"
  ;;
esac
fi
IKSPERF=$ac_cv_path_IKSPERF
if test -n "$IKSPERF"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IKSPERF" >&5
$as_echo "$IKSPERF" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


						if test "$IKSPERF" != "no"; then
							IKSEMEL_VERSION=`iksperf --version | awk '{print $3}'`
							if test "$IKSEMEL_VERSION" != ""; then
								HAVE_IKSEMEL_TYPE=1
							fi
						fi
					fi
				fi

				if test "$HAVE_IKSEMEL_TYPE" = "1"; then
					JABBERBUILD=yes

$as_echo "#define HAVE_IKSEMEL 1" >>confdefs.h

					IKSEMEL_L_FLAGS="$TEST_IKSEMEL_L_FLAGS"
					IKSEMEL_I_FLAGS="$TEST_IKSEMEL_I_FLAGS"

					if test "$COLLECT_THIRD_PARTY" = "1"; then
						if test "$COMSPEC" != ""; then
							x=`$CYGPATH -u $withval`
						fi
						if test "$COMSPEC" != ""; then
							#Note that on Windows the dll will misteriously be liniked with
							#file libiksemel-3.dll and NOT libiksemel.dll as you would expect
							THIRD_PARTY_FILES="$THIRD_PARTY_FILES \
								JABBER#$x/bin/libiksemel-3.dll"
						fi
					fi
				else
					JABBERBUILD=no
				fi
			else
				JABBERBUILD=yes

$as_echo "#define HAVE_IKSEMEL 1" >>confdefs.h

				IKSEMEL_L_FLAGS="$TEST_IKSEMEL_L_FLAGS"
				IKSEMEL_I_FLAGS="$TEST_IKSEMEL_I_FLAGS"
			fi
			if test "$enable_ac_debug" = "yes" ; then
				echo "IKSEMEL_I_FLAGS=$IKSEMEL_I_FLAGS"
				echo "IKSEMEL_L_FLAGS=$IKSEMEL_L_FLAGS"
			fi


		    #AC_MSG_RESULT(yes)
		else

$as_echo "#define HAVE_IKSEMEL 0" >>confdefs.h

		    #AC_MSG_RESULT(no)
		fi

		CFLAGS="$old_CFLAGS"
		LIBS="$old_LIBS"
		CPPFLAGS="$old_CPPFLAGS"
		LDFLAGS="$old_LDFLAGS"

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use IksEmEl" >&5
$as_echo_n "checking if we can use IksEmEl... " >&6; }
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JABBERBUILD" >&5
$as_echo "$JABBERBUILD" >&6; }

	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-iksemel not specified" >&5
$as_echo "--with-iksemel not specified" >&6; }

fi


if test "$enable_stop_iksemel" = "yes" ; then
	exit
fi

## ==================================================================
##            Check for MySQL client library
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for MySQL client library support:${T_ME}" >&5
$as_echo "${T_MD}Checking for MySQL client library support:${T_ME}" >&6; }



# Check whether --with-mysql was given.
if test "${with_mysql+set}" = set; then :
  withval=$with_mysql;
	if test "$withval" != "no"; then

		if test "$withval" = "yes"; then
			detectedMysqlLib=`mysql_config --libs`
			withval=`expr "$detectedMysqlLib" : '.*-L\(.*/mysql\) -l.*'`
		    	CUSTOM_WITHVAL=0
		else
			#user specified custom withval
		    	CUSTOM_WITHVAL=1
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON MySQL"
			WARN_LD_LIBRARY_PATH=1
			ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
	    	fi

		old_CFLAGS="$CFLAGS"
		old_LIBS="$LIBS"
		old_CPPFLAGS="$CPPFLAGS"
		old_LDFLAGS="$LDFLAGS"

		if test "$COMSPEC" != ""; then
			withval="`$CYGPATH -m $withval`"
		fi

		MYSQL_LFLAGS="-L$withval/lib -L$withval/mysql -L/usr/lib/mysql -L/usr/lib"
		MYSQL_IFLAGS="-I$withval/include -I/usr/include/mysql"

		CFLAGS="$MYSQL_IFLAGS $CFLAGS"
		LDFLAGS="$MYSQL_LFLAGS $LDFLAGS"
		CPPFLAGS="$MYSQL_IFLAGS $CPPFLAGS"

		if test "$enable_ac_debug" = "yes" ; then
			echo "withval=$withval"
			echo "CFLAGS=$CFLAGS"
			echo "LDFLAGS=$LDFLAGS"
			echo "CPPFLAGS=$CPPFLAGS"
		fi

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_stmt_close in -lmysqlclient" >&5
$as_echo_n "checking for mysql_stmt_close in -lmysqlclient... " >&6; }
if ${ac_cv_lib_mysqlclient_mysql_stmt_close+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmysqlclient  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mysql_stmt_close ();
int
main ()
{
return mysql_stmt_close ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mysqlclient_mysql_stmt_close=yes
else
  ac_cv_lib_mysqlclient_mysql_stmt_close=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_stmt_close" >&5
$as_echo "$ac_cv_lib_mysqlclient_mysql_stmt_close" >&6; }
if test "x$ac_cv_lib_mysqlclient_mysql_stmt_close" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBMYSQLCLIENT 1
_ACEOF

  LIBS="-lmysqlclient $LIBS"

fi

		#LT_AC_CHECK_SHLIB([mysqlclient], [mysql_stmt_close],[isShared=1],[isShared=0])

		#AC CUMULATES ALL LIBS IT FINDS IN A WAY, SO WE NEED TO RESET THIS
		#as it may coinflict with msqld
		#LIBS="$old_LIBS"
		LIBS=`mysql_config --libmysqld-libs`
		#Installed as MySQL RPM to /usr/lib/mysql/libmysqld.a
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_stmt_close in -lmysqld" >&5
$as_echo_n "checking for mysql_stmt_close in -lmysqld... " >&6; }
if ${ac_cv_lib_mysqld_mysql_stmt_close+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmysqld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mysql_stmt_close ();
int
main ()
{
return mysql_stmt_close ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mysqld_mysql_stmt_close=yes
else
  ac_cv_lib_mysqld_mysql_stmt_close=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqld_mysql_stmt_close" >&5
$as_echo "$ac_cv_lib_mysqld_mysql_stmt_close" >&6; }
if test "x$ac_cv_lib_mysqld_mysql_stmt_close" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBMYSQLD 1
_ACEOF

  LIBS="-lmysqld $LIBS"

fi


		if test "$ac_cv_lib_mysqlclient_mysql_stmt_close" = "yes" -o "$ac_cv_lib_mysqld_mysql_stmt_close" = "yes"; then
			if test "$AUBIT_SOURCE" = "1" ; then
				for ac_header in  mysql.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


				if test "$ac_cv_header_mysql_h" = "yes"  ; then
					if test "$ac_cv_lib_mysqlclient_mysql_stmt_close" = "yes"; then
						SQL_MYSQL=yes
					else
						SQL_MYSQL=no
					fi
					if test "$ac_cv_lib_mysqld_mysql_stmt_close" = "yes"; then
						SQL_MYSQL_EMB=yes
					else
						SQL_MYSQL_EMB=no
					fi

					if test "$COLLECT_THIRD_PARTY" = "1"; then
						if test "$COMSPEC" != ""; then
							x=`$CYGPATH -u $withval`
						fi
						#Only static lib created by compiling from source on Windows
						#THIRD_PARTY_FILES="$THIRD_PARTY_FILES \
						#MPZ#$x/bin/libgmp.dll"
					fi
		        else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing header file" >&5
$as_echo "Missing header file" >&6; }
					SQL_MYSQL=no
					SQL_MYSQL_EMB=no
		        fi
		    else
				if test "$ac_cv_lib_mysqlclient_mysql_stmt_close" = "yes"; then
					SQL_MYSQL=yes
				else
					SQL_MYSQL=no
				fi
				if test "$ac_cv_lib_mysqld_mysql_stmt_close" = "yes"; then
					SQL_MYSQL_EMB=yes
				else
					SQL_MYSQL_EMB=no
				fi
		    fi
		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing MySQL client library file" >&5
$as_echo "Missing MySQL client library file" >&6; }
			SQL_MYSQL=no
			SQL_MYSQL_EMB=no
		fi


		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MySQL client support" >&5
$as_echo_n "checking MySQL client support... " >&6; }
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQL_MYSQL" >&5
$as_echo "$SQL_MYSQL" >&6; }

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MySQL embedded support" >&5
$as_echo_n "checking MySQL embedded support... " >&6; }
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQL_MYSQL_EMB" >&5
$as_echo "$SQL_MYSQL_EMB" >&6; }

		CFLAGS="$old_CFLAGS"
		LIBS="$old_LIBS"
		CPPFLAGS="$old_CPPFLAGS"
		LDFLAGS="$old_LDFLAGS"
    else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
    fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-mysql not specified" >&5
$as_echo "--with-mysql not specified" >&6; }

fi


if test "$enable_stop_mysql" = "yes" ; then
	exit
fi


## ==================================================================
##            Check for mpz library (large integers) for exdatatype
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for mpz library support:${T_ME}" >&5
$as_echo "${T_MD}Checking for mpz library support:${T_ME}" >&6; }



# Check whether --with-mpz was given.
if test "${with_mpz+set}" = set; then :
  withval=$with_mpz;
	if test "$withval" != "no"; then

		if test "$withval" = "yes"; then
			if test "$COMSPEC" != "" -a "$MSYS_ROOTDIR" != ""; then
				withval="$MSYS_ROOTDIR/local"
			else
	    		withval=/usr/local
			fi
		else
			#user specified custom withval
		    CUSTOM_WITHVAL=1
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON MPZ"
			WARN_LD_LIBRARY_PATH=1
			ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
	    fi

		old_CFLAGS="$CFLAGS"
		old_LIBS="$LIBS"
		old_CPPFLAGS="$CPPFLAGS"
		old_LDFLAGS="$LDFLAGS"

		if test "$COMSPEC" != ""; then
			withval="`$CYGPATH -m $withval`"
		fi

		MPZ_LFLAGS="-L$withval/lib"
		MPZ_IFLAGS="-I$withval/include"

		CFLAGS="$MPZ_IFLAGS $CFLAGS"
		LDFLAGS="$MPZ_LFLAGS $LDFLAGS"
		CPPFLAGS="$MPZ_IFLAGS $CPPFLAGS"

		if test "$enable_ac_debug" = "yes" ; then
			echo "withval=$withval"
			echo "CFLAGS=$CFLAGS"
			echo "LDFLAGS=$LDFLAGS"
			echo "CPPFLAGS=$CPPFLAGS"
		fi

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5
$as_echo_n "checking for main in -lgmp... " >&6; }
if ${ac_cv_lib_gmp_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgmp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gmp_main=yes
else
  ac_cv_lib_gmp_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5
$as_echo "$ac_cv_lib_gmp_main" >&6; }
if test "x$ac_cv_lib_gmp_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGMP 1
_ACEOF

  LIBS="-lgmp $LIBS"

fi


		if test $ac_cv_lib_gmp_main = yes; then
			if test "$AUBIT_SOURCE" = "1" ; then
				for ac_header in  gmp.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


				if test "$ac_cv_header_gmp_h" = "yes"  ; then
					EXDATA_MPZ=yes
					#Note - plugin name is libEXDTYPE_mpz.so
		            EXDTYPE=mpz
                    EXDTYPE_DETECTED="$EXDTYPE_DETECTED $EXDTYPE"

					if test "$COLLECT_THIRD_PARTY" = "1"; then
						if test "$COMSPEC" != ""; then
							x=`$CYGPATH -u $withval`
						fi
						#Only static lib created by compiling from source on Windows
						#THIRD_PARTY_FILES="$THIRD_PARTY_FILES \
						#MPZ#$x/bin/libgmp.dll"
					fi
		        else
					EXDATA_MPZ=no
		        fi
		    else
				EXDATA_MPZ=yes
				#Note - plugin name is libEXDTYPE_mpz.so
				EXDTYPE=mpz
                EXDTYPE_DETECTED="$EXDTYPE_DETECTED $EXDTYPE"
		    fi
		else
			EXDATA_MPZ=no
		fi

		CFLAGS="$old_CFLAGS"
		LIBS="$old_LIBS"
		CPPFLAGS="$old_CPPFLAGS"
		LDFLAGS="$old_LDFLAGS"
    else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
    fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-mpz not specified" >&5
$as_echo "--with-mpz not specified" >&6; }

fi


if test "$enable_stop_mpz" = "yes" ; then
	exit
fi

## ==================================================================
##                  Check for XML RPC support
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for XML-RPC support:${T_ME}" >&5
$as_echo "${T_MD}Checking for XML-RPC support:${T_ME}" >&6; }



# Check whether --with-xmlrpc was given.
if test "${with_xmlrpc+set}" = set; then :
  withval=$with_xmlrpc;

	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
			if test "$COMSPEC" != "" -a "$MSYS_ROOTDIR" != ""; then
				withval="$MSYS_ROOTDIR/local"
			else
				#Source code installs under /usr/local
	    		withval=/usr/local
				#Suse RPM installs under /lib by default
				#withval=/usr
				#WARNING: Suse RPMs seem to be broken and have no xmlrpc_client_init
				#function or xmlrpc_client.h
			fi
		else
			#user specified custom withval
		    CUSTOM_WITHVAL=1
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON XML-RPC"
			WARN_LD_LIBRARY_PATH=1
			ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
	    fi

		old_CFLAGS="$CFLAGS"
		old_LIBS="$LIBS"
		old_CPPFLAGS="$CPPFLAGS"
		old_LDFLAGS="$LDFLAGS"

	    #xmlrpc-c-config executable is NOT in current RPM! (maybe in dev RPM?)
		# Extract the first word of "xmlrpc-c-config", so it can be a program name with args.
set dummy xmlrpc-c-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_XMLRPC_C_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $XMLRPC_C_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_XMLRPC_C_CONFIG="$XMLRPC_C_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_XMLRPC_C_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_XMLRPC_C_CONFIG" && ac_cv_path_XMLRPC_C_CONFIG="no"
  ;;
esac
fi
XMLRPC_C_CONFIG=$ac_cv_path_XMLRPC_C_CONFIG
if test -n "$XMLRPC_C_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLRPC_C_CONFIG" >&5
$as_echo "$XMLRPC_C_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_LIBWWW_CONFIG" && ac_cv_path_LIBWWW_CONFIG="no"
  ;;
esac
fi
LIBWWW_CONFIG=$ac_cv_path_LIBWWW_CONFIG
if test -n "$LIBWWW_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBWWW_CONFIG" >&5
$as_echo "$LIBWWW_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



		if test "$COMSPEC" != ""; then
			withval="`$CYGPATH -m $withval`"
		fi

		if test "$XMLRPC_C_CONFIG" != "no"; then
			#XMLRPC_LFLAGS="-L$withval/lib -L/usr/local/lib -L/usr/lib"
			XMLRPC_LFLAGS="-L`$XMLRPC_C_CONFIG libwww-client --prefix`/lib"
			XMLRPC_IFLAGS=`$XMLRPC_C_CONFIG libwww-client --cflags`
			LIBWWW_LIBS="`$LIBWWW_CONFIG --libs`"
			XMLRPC_LIBS="`$XMLRPC_C_CONFIG libwww-client --libs` $LIBWWW_LIBS"

			#XMLRPC_LIBS="$XMLRPC_LIBS -lwwwhttp -lwwwapp -lwwwcore"



#gcc -o conftest -I/usr/local/include -g -O2 -I/usr/local/include  -L/usr/local/lib
#-L/usr/local/lib -lxmlrpc_client -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse
#-lxmlrpc_xmltok  -lwwwhttp conftest.c -lxmlrpc

#find / -name "*.so" -exec grep -H HTCookie_deleteCallbacks {} \;
#Binary file /tmp/w3c-libwww-5.4.0/Library/src/.libs/libwwwhttp.so matches
#Binary file /tmp/xmlrpc-c-1.05/src/.libs/libxmlrpc_client.so matches
#Binary file /usr/local/lib/libwwwhttp.so matches
#Binary file /usr/local/lib/libxmlrpc_client.so matches

			#TODO: add -lwwwxml at the end on Windows!
		else

			#This will test for both w3c-libwww and xmlrpc-c, since all this depends on each other
			XMLRPC_LFLAGS="-L$withval/lib -L/usr/local/lib -L/usr/lib"
			XMLRPC_IFLAGS="-I$withval/include"

			#OLD:
			#XMLRPC_LIBS =-L/usr/local/lib \
			#-lxmlrpc_client -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp \
			#-lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher \
			#-lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux \
			#-lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lxmlrpc -lxmlrpc_xmlparse \
			#-lxmlrpc_xmltok
			#This libs are not needed any more, at least not on Windows:
			#OLD_XMLRPC_LIBS="-ldl -lwwwzip"

			#WARNING !!!!!!!!!!!!!!! On Windows, -lwwwxml MUST be at the end !!!!
			#WARNING! Order is IMPORTANT on Windows!!!!
			XMLRPC_LIBS=" \
			-lxmlrpc_client -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml \
			-lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile \
			-lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils \
			-lmd5 -lws2_32 -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lwwwxml"

		fi

		#CFLAGS="$XMLRPC_IFLAGS $XMLRPC_LFLAGS $CFLAGS $XMLRPC_LIBS"
		CFLAGS="$XMLRPC_IFLAGS $CFLAGS"
		LDFLAGS="$XMLRPC_LFLAGS $LDFLAGS $XMLRPC_LIBS"
		CPPFLAGS="$XMLRPC_IFLAGS $CPPFLAGS"

		if test "$enable_ac_debug" = "yes" ; then
			echo "withval=$withval"
			echo "CFLAGS=$CFLAGS"
			echo "LDFLAGS=$LDFLAGS"
			echo "CPPFLAGS=$CPPFLAGS"
			echo "XMLRPC_LFLAGS=$XMLRPC_LFLAGS"
			echo "XMLRPC_IFLAGS=$XMLRPC_IFLAGS"
			echo "XMLRPC_LIBS=$XMLRPC_LIBS"
		fi
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxmlrpc" >&5
$as_echo_n "checking for main in -lxmlrpc... " >&6; }
if ${ac_cv_lib_xmlrpc_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lxmlrpc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_xmlrpc_main=yes
else
  ac_cv_lib_xmlrpc_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xmlrpc_main" >&5
$as_echo "$ac_cv_lib_xmlrpc_main" >&6; }
if test "x$ac_cv_lib_xmlrpc_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBXMLRPC 1
_ACEOF

  LIBS="-lxmlrpc $LIBS"

fi

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlrpc_client_init in -lxmlrpc" >&5
$as_echo_n "checking for xmlrpc_client_init in -lxmlrpc... " >&6; }
if ${ac_cv_lib_xmlrpc_xmlrpc_client_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lxmlrpc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char xmlrpc_client_init ();
int
main ()
{
return xmlrpc_client_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_xmlrpc_xmlrpc_client_init=yes
else
  ac_cv_lib_xmlrpc_xmlrpc_client_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xmlrpc_xmlrpc_client_init" >&5
$as_echo "$ac_cv_lib_xmlrpc_xmlrpc_client_init" >&6; }
if test "x$ac_cv_lib_xmlrpc_xmlrpc_client_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBXMLRPC 1
_ACEOF

  LIBS="-lxmlrpc $LIBS"

fi


#configure:13536: gcc -o conftest.exe -Id:/msys/1.0/local/include -g -O2
#-Id:/msys/1.0/local/include  -Ld:/msys/1.0/local/lib -L/usr/local/lib -L/usr/lib
#        -lxmlrpc_client -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml
#        -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile
#                -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils
#-lmd5 -lws2_32 -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lwwwxml conftest.c
#-lxmlrpc  -lxmlrpc  >&5
#d:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc0ybaaa.o(.text+0x15): In function `main':
#F:/cygwin/usr/src/aubit/aubit4glsrc/conftest.c:34: undefined reference to `xmlrpc_client_init'

#Order is wrong: this works:
#gcc -shared -Wl,--out-implib=TMP.dll.a -Wl,--export-all-symbols -o ../../libRPC_XMLRPC.dll
#xmlrpc_client.o xmlrpc_server.o -Ld:/msys/1.0/local/lib -L/usr/local/lib
#-L/usr/lib -lxmlrpc_client -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml
#                -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp
#-lwwwfile                -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans
#-lwwwcore -lwwwutils                -lmd5 -lws2_32 -lxmlrpc -lxmlrpc_xmlparse
#-lxmlrpc_xmltok -lwwwxml -L../.. -laubit4gl


		if test $ac_cv_lib_xmlrpc_main = yes; then
			if test "$AUBIT_SOURCE" = "1" ; then
				for ac_header in xmlrpc.h xmlrpc_client.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#if HAVE_XMLRPC_H
				# include <xmlrpc.h>
				#endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


				if test "$ac_cv_header_xmlrpc_h" = "yes" \
					-a "$ac_cv_header_xmlrpc_client_h" = "yes" ; then
					XML_RPC=yes
		        else
					XML_RPC=no
		        fi
		    else
				XML_RPC=yes
		    fi
		else
			XML_RPC=no
		fi

		CFLAGS="$old_CFLAGS"
		LIBS="$old_LIBS"
		CPPFLAGS="$old_CPPFLAGS"
		LDFLAGS="$old_LDFLAGS"

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XML-RPC support" >&5
$as_echo_n "checking XML-RPC support... " >&6; }
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_RPC" >&5
$as_echo "$XML_RPC" >&6; }

		#----- Third-party file list collection ------------------
		if test "$XML_RPC" = "yes" -a "$COLLECT_THIRD_PARTY" = "1"; then
			#List of files we will not need to install:
			IGNORE_FILES="-lws2_32" #-lws2_32 is MinGW lib
			#Turn -L flags into paths to test
			ALL_PATHS=
			for lpath in $XMLRPC_LFLAGS; do
				CHK_PATH=`echo $lpath | sed -e 's/^-L//'`
				if test "$COMSPEC" != ""; then
					CHK_PATH="`$CYGPATH -m $CHK_PATH`"
				fi
				if test -d "$CHK_PATH"; then
					ALL_PATHS="$ALL_PATHS $CHK_PATH"
				else
					if test "$enable_ac_debug" = "yes" ; then
						echo "$lpath ($CHK_PATH) does not exist."
					fi
				fi
			done
			#Turn -l flags into files to test
			ALL_FILES=
			for one_lib in $XMLRPC_LIBS; do
				IGNORE_IT=0
				for ignore_file in $IGNORE_FILES; do
					if test "$ignore_file" = "$one_lib"; then
						IGNORE_IT=1
						break
					fi
				done
				if test "$IGNORE_IT" = "1"; then
					continue
				fi
				ALL_FILES="$ALL_FILES lib`echo $one_lib | sed -e 's/^-l//'`"
			done
			#Check if we can find this files, add them to list

			#.la is just Windows link catalog
			#If we have .a but no .dll, it would mean that we had to link
			#statically. It is pointless to install static libraries anyway

			if test "$ALL_PATHS" != "" -a "$ALL_FILES" != ""; then
				for one_file in $ALL_FILES; do
					GOTIT=0
					for one_path in $ALL_PATHS; do
						if test -f "$one_path/$one_file$SO_EXT"; then
							THIRD_PARTY_FILES="$THIRD_PARTY_FILES \
								XMLRCP#$one_path/$one_file$SO_EXT"
							GOTIT=1
							break
						else
							#check for static object, so we don't war about missing
							#files just because static linking was used
							#(in which case we don't need this file anyway)
							if test -f "$one_path/$one_file.a"; then
								GOTIT=1
							fi
						fi
					done
					if test "$GOTIT" = "0"; then
						if test "$enable_ac_debug" = "yes" ; then
							echo "Failed to find file $one_file$SO_EXT|.a"
							echo "In this paths:"
							echo "$ALL_PATHS"
						fi
					fi
				done
			else
				if test "$enable_ac_debug" = "yes" ; then
					echo "ALL_PATHS and/or ALL_FILES is empty"
				fi
			fi
			#----- Third-party file list collection END --------------
		fi

    else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-xmlrpc disabled" >&5
$as_echo "--with-xmlrpc disabled" >&6; }
    fi


else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-xmlrpc not specified" >&5
$as_echo "--with-xmlrpc not specified" >&6; }

fi


if test "$enable_stop_xmlrpc" = "yes" ; then
	exit
fi

## ==================================================================
##            Check for SXML - a simple XML parser libray
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for SXML libraries:${T_ME}" >&5
$as_echo "${T_MD}Checking for SXML libraries:${T_ME}" >&6; }


# Check whether --with-sxml was given.
if test "${with_sxml+set}" = set; then :
  withval=$with_sxml;
	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
			if test "$COMSPEC" = ""; then
	    		withval=/usr/local
			else
				#NOTE: since on CygWin /usr/lib is symling to /usr,
				#files installed there actually end up in /lib, as far as
				#native Windows executable (GCC) is concerned
				withval="`$CYGPATH -m /`"
			fi
		else
			#user specified custom withval
		    CUSTOM_WITHVAL=1
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON SXML"
			WARN_LD_LIBRARY_PATH=1
			ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
	    fi
		#Store current values
		old_LIBS="$LIBS"
		old_LDFLAGS="$LDFLAGS"
		old_CFLAGS="$CFLAGS"
		old_CPPFLAGS="$CPPFLAGS"

		LDFLAGS="-L$withval/lib $LDFLAGS"
		if test "$COMSPEC" = ""; then
			CPPFLAGS="-I$withval/include $CPPFLAGS"
		else
			CPPFLAGS="-I$withval/usr/include $CPPFLAGS"
		fi

		if test "$enable_ac_debug" = "yes" ; then
			echo "LDFLAGS=$LDFLAGS"
			echo "CPPFLAGS=$CPPFLAGS"
		fi

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsxml" >&5
$as_echo_n "checking for main in -lsxml... " >&6; }
if ${ac_cv_lib_sxml_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsxml  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_sxml_main=yes
else
  ac_cv_lib_sxml_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sxml_main" >&5
$as_echo "$ac_cv_lib_sxml_main" >&6; }
if test "x$ac_cv_lib_sxml_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSXML 1
_ACEOF

  LIBS="-lsxml $LIBS"

fi

		for ac_header in  sxml.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SXML" >&5
$as_echo_n "checking if we can use SXML... " >&6; }

		if test "$AUBIT_SOURCE" = "1" ; then
			#Do we really need gmp.h here, or was thsi a C&P typo?
			#if test "$ac_cv_header_gmp_h" = "yes" -a "$ac_cv_lib_sxml_main" = "yes"; then
			if test "$ac_cv_header_sxml_h" = "yes" -a "$ac_cv_lib_sxml_main" = "yes"; then
				HAVE_SXMLLIB=1
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			fi
		else
			if test "$ac_cv_lib_sxml_main" = "yes"; then
				HAVE_SXMLLIB=1
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			fi
		fi

		#Restore values
		LIBS="$old_LIBS"
		LDFLAGS="$old_LDFLAGS"
		CFLAGS="$old_CFLAGS"
		CPPFLAGS="$old_CPPFLAGS"

    else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
    fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-sxml not specified" >&5
$as_echo "--with-sxml not specified" >&6; }

fi


if test "$enable_stop_sxml" = "yes" ; then
	exit
fi

## ==================================================================
##            Check for IBM WebSphere MQ
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for MQ libraries:${T_ME}" >&5
$as_echo "${T_MD}Checking for MQ libraries:${T_ME}" >&6; }


# Check whether --with-mq was given.
if test "${with_mq+set}" = set; then :
  withval=$with_mq;
	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
			if test "$COMSPEC" = ""; then
	    		withval=/usr/mqm
			else
				#NOTE: since on CygWin /usr/lib is symlink to /usr,
				#files installed there actually end up in /lib, as far as
				#native Windows executable (GCC) is concerned
				withval="`$CYGPATH -m /`"
			fi
		else
			#user specified custom withval
		    CUSTOM_WITHVAL=1
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON MQ"
			WARN_LD_LIBRARY_PATH=1
			ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
	    fi
		#Store current values
		old_LIBS="$LIBS"
		old_LDFLAGS="$LDFLAGS"
		old_CFLAGS="$CFLAGS"
		old_CPPFLAGS="$CPPFLAGS"

		LDFLAGS="-L$withval/lib $LDFLAGS"
		CPPFLAGS="-I$withval/inc $CPPFLAGS"

		if test "$enable_ac_debug" = "yes" ; then
			echo "LDFLAGS=$LDFLAGS"
			echo "CPPFLAGS=$CPPFLAGS"
		fi

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmqm" >&5
$as_echo_n "checking for main in -lmqm... " >&6; }
if ${ac_cv_lib_mqm_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmqm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mqm_main=yes
else
  ac_cv_lib_mqm_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mqm_main" >&5
$as_echo "$ac_cv_lib_mqm_main" >&6; }
if test "x$ac_cv_lib_mqm_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBMQM 1
_ACEOF

  LIBS="-lmqm $LIBS"

fi

		for ac_header in  cmqc.h mqcmh.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use MQ" >&5
$as_echo_n "checking if we can use MQ... " >&6; }

		if test "$AUBIT_SOURCE" = "1" ; then
			if test "$ac_cv_header_cmqc_h" = "yes" \
				-a "$ac_cv_header_mqcmh_h" = "yes" \
				-a "$ac_cv_lib_mqm_main" = "yes"; then
				HAVE_MQLIB=1
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			fi
		else
			if test "$ac_cv_lib_mqm_main" = "yes"; then
				HAVE_MQLIB=1
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			fi
		fi

		#Restore values
		LIBS="$old_LIBS"
		LDFLAGS="$old_LDFLAGS"
		CFLAGS="$old_CFLAGS"
		CPPFLAGS="$old_CPPFLAGS"

    else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
    fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-mq not specified" >&5
$as_echo "--with-mq not specified" >&6; }

fi


if test "$enable_stop_mq" = "yes" ; then
	exit
fi

## ==================================================================
##            Check for PCRE - Perl Compatible Regular Expressions
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for PCRE libraries:${T_ME}" >&5
$as_echo "${T_MD}Checking for PCRE libraries:${T_ME}" >&6; }


# Check whether --with-pcre was given.
if test "${with_pcre+set}" = set; then :
  withval=$with_pcre;
	if test "$withval" != "no"; then
		if test "$COMSPEC" != ""; then
			PCRE_REG_PATH="/machine/SOFTWARE/GnuWin32/Pcre/4.4/bin"
			regtool.exe check  "$PCRE_REG_PATH" > /dev/null 2>&1
			RET=$?
			if test "$RET" = "0"; then
				PCRE_INST_PATH=`regtool get "$PCRE_REG_PATH/InstallPath"`
				#echo "PCRE_INST_PATH=$PCRE_INST_PATH"
				PCRE_INST_PATH=`$CYGPATH -ws "$PCRE_INST_PATH"`
				#echo "PCRE_INST_PATH=$PCRE_INST_PATH"
			fi
		fi

		if test "$withval" = "yes"; then
	    	withval=/usr/local
			if test "$COMSPEC" != ""; then
				if test "$PCRE_INST_PATH" != ""; then
					withval=`$CYGPATH -u "$PCRE_INST_PATH"`
				fi
			fi
		else
			#user specified custom withval
		    CUSTOM_WITHVAL=1
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON PCRE"
			WARN_LD_LIBRARY_PATH=1
			ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
	    fi


		#Store current values
		old_LIBS="$LIBS"
		old_LDFLAGS="$LDFLAGS"
		old_CFLAGS="$CFLAGS"
		old_CPPFLAGS="$CPPFLAGS"

		if test "$COMSPEC" = ""; then
			CPPFLAGS="-I$withval/include $CPPFLAGS"
			LDFLAGS="-L$withval/lib $LDFLAGS"
		else
			PCRE_INC_PATH="`$CYGPATH -m $withval`"
			CPPFLAGS="-I$PCRE_INC_PATH/include $CPPFLAGS"
			PCRE_LIB_PATH="`$CYGPATH -m $withval`"
			LDFLAGS="-L$PCRE_LIB_PATH/bin $LDFLAGS"
		fi

		if test "$enable_ac_debug" = "yes" ; then
			echo "LDFLAGS=$LDFLAGS"
			echo "CPPFLAGS=$CPPFLAGS"
		fi

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcre" >&5
$as_echo_n "checking for main in -lpcre... " >&6; }
if ${ac_cv_lib_pcre_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpcre  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pcre_main=yes
else
  ac_cv_lib_pcre_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_main" >&5
$as_echo "$ac_cv_lib_pcre_main" >&6; }
if test "x$ac_cv_lib_pcre_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPCRE 1
_ACEOF

  LIBS="-lpcre $LIBS"

fi

		for ac_header in  pcre.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use PCRE" >&5
$as_echo_n "checking if we can use PCRE... " >&6; }
		if test "$ac_cv_lib_pcre_main" = "yes"; then
			if test "$AUBIT_SOURCE" = "1" ; then
				if test "$ac_cv_header_pcre_h" != "yes"; then
					#On Windows binary distro of pcre, there are no header files
					#This also takes care of cases when we find libpcre suplied
					#with Apache, but there is no header file
					PCRE_INC_PATH="$aubitdir/tools/cygwin"
				fi
				HAVE_PCRELIB=1
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
				if test "$COLLECT_THIRD_PARTY" = "1"; then
					THIRD_PARTY_FILES="$THIRD_PARTY_FILES \
						PCRE#$withval/bin/pcre.dll"
				fi
			else
				HAVE_PCRELIB=1
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			fi
		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			HAVE_PCRELIB=0
	    fi

		#Restore values
		LIBS="$old_LIBS"
		LDFLAGS="$old_LDFLAGS"
		CFLAGS="$old_CFLAGS"
		CPPFLAGS="$old_CPPFLAGS"

    else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
    fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-pcre not specified" >&5
$as_echo "--with-pcre not specified" >&6; }

fi


if test "$enable_stop_pcre" = "yes" ; then
	exit
fi

## ==================================================================
##            Check for POP support
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for POP libraries:${T_ME}" >&5
$as_echo "${T_MD}Checking for POP libraries:${T_ME}" >&6; }


# Check whether --with-pop was given.
if test "${with_pop+set}" = set; then :
  withval=$with_pop;
	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
			if test "$COMSPEC" = ""; then
	    		#withval=/usr/local
				#in new versions changed to:
				withval=/usr
			else
				#NOTE: since on CygWin /usr/lib is symling to /usr,
				#files installed there actually end up in /lib, as far as
				#native Windows executable (GCC) is concerned
				withval="`$CYGPATH -m /`"
			fi
		else
			#user specified custom withval
		    CUSTOM_WITHVAL=1
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON POP"
			WARN_LD_LIBRARY_PATH=1
			ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
	    fi

		#Store current values
		old_LIBS="$LIBS"
		old_LDFLAGS="$LDFLAGS"
		old_CFLAGS="$CFLAGS"
		old_CPPFLAGS="$CPPFLAGS"

		if test "$COMSPEC" = ""; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lssl" >&5
$as_echo_n "checking for main in -lssl... " >&6; }
if ${ac_cv_lib_ssl_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lssl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ssl_main=yes
else
  ac_cv_lib_ssl_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_main" >&5
$as_echo "$ac_cv_lib_ssl_main" >&6; }
if test "x$ac_cv_lib_ssl_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSSL 1
_ACEOF

  LIBS="-lssl $LIBS"

fi

			CPPFLAGS="-I$withval/include $CPPFLAGS"
			LDFLAGS="-L$withval/lib -lssl $LDFLAGS"
		else
			POP_INC_PATH="`$CYGPATH -m $withval`/usr/include"
			CPPFLAGS="-I$POP_INC_PATH $CPPFLAGS"
			POP_LIB_PATH="`$CYGPATH -m $withval`/lib"
			LDFLAGS="-L$POP_LIB_PATH $LDFLAGS"
		fi

		if test "$enable_ac_debug" = "yes" ; then
			echo "LDFLAGS=$LDFLAGS"
			echo "CPPFLAGS=$CPPFLAGS"
		fi

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lspopc" >&5
$as_echo_n "checking for main in -lspopc... " >&6; }
if ${ac_cv_lib_spopc_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lspopc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_spopc_main=yes
else
  ac_cv_lib_spopc_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spopc_main" >&5
$as_echo "$ac_cv_lib_spopc_main" >&6; }
if test "x$ac_cv_lib_spopc_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSPOPC 1
_ACEOF

  LIBS="-lspopc $LIBS"

fi

		for ac_header in  libspopc.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use POP" >&5
$as_echo_n "checking if we can use POP... " >&6; }

		if test "$AUBIT_SOURCE" = "1" ; then
			if test "$ac_cv_lib_spopc_main" = "yes" -a "$ac_cv_header_libspopc_h" = "yes"; then
				HAVE_POPLIB=1
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			fi
		else
			if test "$ac_cv_lib_spopc_main" = "yes"; then
				HAVE_POPLIB=1
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			fi
		fi

		#Restore values
		LIBS="$old_LIBS"
		LDFLAGS="$old_LDFLAGS"
		CFLAGS="$old_CFLAGS"
		CPPFLAGS="$old_CPPFLAGS"

    else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
    fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-pop not specified" >&5
$as_echo "--with-pop not specified" >&6; }

fi


if test "$enable_stop_pop" = "yes" ; then
	exit
fi

## ==================================================================
##            Check for SMTP support
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for SMTP libraries:${T_ME}" >&5
$as_echo "${T_MD}Checking for SMTP libraries:${T_ME}" >&6; }


# Check whether --with-smtp was given.
if test "${with_smtp+set}" = set; then :
  withval=$with_smtp;
	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
			if test "$COMSPEC" = ""; then
	    		withval=/usr/local
			else
				#NOTE: since on CygWin /usr/lib is symling to /usr,
				#files installed there actually end up in /lib, as far as
				#native Windows executable (GCC) is concerned
				withval="`$CYGPATH -m /`"
			fi
		else
			#user specified custom withval
		    CUSTOM_WITHVAL=1
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON SMTP"
			WARN_LD_LIBRARY_PATH=1
			ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
	    fi

		#Store current values
		old_LIBS="$LIBS"
		old_LDFLAGS="$LDFLAGS"
		old_CFLAGS="$CFLAGS"
		old_CPPFLAGS="$CPPFLAGS"

		if test "$COMSPEC" = ""; then
			CPPFLAGS="-I$withval/include $CPPFLAGS `$PKG_CONFIG --cflags glib-2.0`"
			LDFLAGS="-L$withval/lib $LDFLAGS `$PKG_CONFIG --libs glib-2.0`"
		else
			#-IC:/gnu/GTK/include/glib-2.0 -IC:/gnu/GTK/lib/glib-2.0/include
			TMP_GLIB_CFLAGS="`$PKG_CONFIG --cflags glib-2.0`"
			SMTP_INC_PATH="$TMP_GLIB_CFLAGS -I`$CYGPATH -m $withval`/usr/include"
			CPPFLAGS="-I$SMTP_INC_PATH $CPPFLAGS"
			SMTP_LIB_PATH="`$CYGPATH -m $withval`/lib"
			LDFLAGS="-L$SMTP_LIB_PATH $LDFLAGS"
		fi

		if test "$enable_ac_debug" = "yes" ; then
			echo "TMP_GLIB_CFLAGS=$TMP_GLIB_CFLAGS"
			echo "LDFLAGS=$LDFLAGS"
			echo "CPPFLAGS=$CPPFLAGS"
		fi
		#AC_CHECK_LIB([glib],[g_string_new])
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsmtp_session_initialize in -lsmtp" >&5
$as_echo_n "checking for libsmtp_session_initialize in -lsmtp... " >&6; }
if ${ac_cv_lib_smtp_libsmtp_session_initialize+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsmtp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char libsmtp_session_initialize ();
int
main ()
{
return libsmtp_session_initialize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_smtp_libsmtp_session_initialize=yes
else
  ac_cv_lib_smtp_libsmtp_session_initialize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smtp_libsmtp_session_initialize" >&5
$as_echo "$ac_cv_lib_smtp_libsmtp_session_initialize" >&6; }
if test "x$ac_cv_lib_smtp_libsmtp_session_initialize" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSMTP 1
_ACEOF

  LIBS="-lsmtp $LIBS"

fi

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsmtp_part_end in -lsmtp" >&5
$as_echo_n "checking for libsmtp_part_end in -lsmtp... " >&6; }
if ${ac_cv_lib_smtp_libsmtp_part_end+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsmtp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char libsmtp_part_end ();
int
main ()
{
return libsmtp_part_end ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_smtp_libsmtp_part_end=yes
else
  ac_cv_lib_smtp_libsmtp_part_end=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smtp_libsmtp_part_end" >&5
$as_echo "$ac_cv_lib_smtp_libsmtp_part_end" >&6; }
if test "x$ac_cv_lib_smtp_libsmtp_part_end" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSMTP 1
_ACEOF

  LIBS="-lsmtp $LIBS"

fi

		for ac_header in  libsmtp.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SMTP" >&5
$as_echo_n "checking if we can use SMTP... " >&6; }

		if test "$AUBIT_SOURCE" = "1" ; then
			if test "$ac_cv_lib_smtp_libsmtp_session_initialize" = "yes" \
				-a "$ac_cv_header_libsmtp_h" = "yes"; then
				HAVE_SMTPLIB=1
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			fi
		else
			if test "$ac_cv_lib_smtp_libsmtp_session_initialize" = "yes"; then
				HAVE_SMTPLIB=1
				if test "$ac_cv_lib_smtp_libsmtp_part_end" = "yes"; then
					$as_echo "#define HAVE_SMTPLIB_PART_END 1" >>confdefs.h

				fi
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			fi
		fi
		#Restore values
		LIBS="$old_LIBS"
		LDFLAGS="$old_LDFLAGS"
		CFLAGS="$old_CFLAGS"
		CPPFLAGS="$old_CPPFLAGS"

    else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
    fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-smtp not specified" >&5
$as_echo "--with-smtp not specified" >&6; }

fi


if test "$enable_stop_smtp" = "yes" ; then
	exit
fi

## ==================================================================
##            Check for ZLIB support
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for ZLIB libraries:${T_ME}" >&5
$as_echo "${T_MD}Checking for ZLIB libraries:${T_ME}" >&6; }


# Check whether --with-zlib was given.
if test "${with_zlib+set}" = set; then :
  withval=$with_zlib;
	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
			if test "$COMSPEC" = ""; then
	    		withval=/usr/local
			if test -f /usr/local/include/zlib.h
			then
				ZLIB_INC_PATH="/usr/local/include"
			fi
			else
				#NOTE: since on CygWin /usr/lib is symling to /usr,
				#files installed there actually end up in /lib, as far as
				#native Windows executable (GCC) is concerned
				withval="`$CYGPATH -m /`"
			fi
		else
			#user specified custom withval
		    CUSTOM_WITHVAL=1
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON ZLIB"
			WARN_LD_LIBRARY_PATH=1
			ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
	    fi

		#Store current values
		old_LIBS="$LIBS"
		old_LDFLAGS="$LDFLAGS"
		old_CFLAGS="$CFLAGS"
		old_CPPFLAGS="$CPPFLAGS"

		if test "$COMSPEC" = ""; then
			CPPFLAGS="-I$withval/include $CPPFLAGS `$PKG_CONFIG --cflags glib-2.0`"
			LDFLAGS="-L$withval/lib $LDFLAGS `$PKG_CONFIG --libs glib-2.0`"
		else
			ZLIB_INC_PATH="`$CYGPATH -m $withval`/usr/include"
			CPPFLAGS="-I$ZLIB_INC_PATH $CPPFLAGS"
			ZLIB_LIB_PATH="`$CYGPATH -m $withval`/lib"
			LDFLAGS="-L$SMTO_LIB_PATH $LDFLAGS"
		fi

		if test "$enable_ac_debug" = "yes" ; then
			echo "LDFLAGS=$LDFLAGS"
			echo "CPPFLAGS=$CPPFLAGS"
		fi
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
$as_echo_n "checking for gzopen in -lz... " >&6; }
if ${ac_cv_lib_z_gzopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lz  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gzopen ();
int
main ()
{
return gzopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_z_gzopen=yes
else
  ac_cv_lib_z_gzopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
$as_echo "$ac_cv_lib_z_gzopen" >&6; }
if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBZ 1
_ACEOF

  LIBS="-lz $LIBS"

fi

		for ac_header in  zlib.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use zlib" >&5
$as_echo_n "checking if we can use zlib... " >&6; }


		if test "$AUBIT_SOURCE" = "1" ; then
			if test "$ac_cv_lib_z_gzopen" = "yes" -a "$ac_cv_header_zlib_h" = "yes"; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
				HAVE_ZLIB=1

$as_echo "#define HAVE_ZLIB 1" >>confdefs.h


$as_echo "#define HAVE_ZLIB_DEF 1" >>confdefs.h

			else

$as_echo "#define HAVE_ZLIB 0" >>confdefs.h


$as_echo "#define HAVE_ZLIB_DEF 0" >>confdefs.h

				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			fi
		else
			if test "$ac_cv_lib_z_gzopen" = "yes"; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
				HAVE_ZLIB=1

$as_echo "#define HAVE_ZLIB 1" >>confdefs.h


$as_echo "#define HAVE_ZLIB_DEF 1" >>confdefs.h

			else

$as_echo "#define HAVE_ZLIB 0" >>confdefs.h


$as_echo "#define HAVE_ZLIB_DEF 0" >>confdefs.h

				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			fi
		fi
		#Restore values
		LIBS="$old_LIBS"
		LDFLAGS="$old_LDFLAGS"
		CFLAGS="$old_CFLAGS"
		CPPFLAGS="$old_CPPFLAGS"

    else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
    fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-zlib not specified" >&5
$as_echo "--with-zlib not specified" >&6; }

fi


if test "$enable_stop_zlib" = "yes" ; then
	exit
fi

## ==================================================================
##                  Check for PDF support
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for PDF support:${T_ME}" >&5
$as_echo "${T_MD}Checking for PDF support:${T_ME}" >&6; }



# Check whether --with-pdf was given.
if test "${with_pdf+set}" = set; then :
  withval=$with_pdf;
	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
	    	withval=/usr/local
		else
			#user specified custom withval
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON PDF"
			WARN_LD_LIBRARY_PATH=1
            ADD_LD_LIBRARY_PATH="$withval/lib$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
		fi

		old_LIBS=$LIBS
		old_LDFLAGS=$LDFLAGS
        old_CFLAGS=$CFLAGS
        old_CPPFLAGS=$CPPFLAGS
		old_PATH="$PATH"

		if test "$MSYS_ROOTDIR" != ""; then
			PATH="$MSYS_ROOTDIR/local/bin:$PATH"
			echo "PATH=$PATH"
		fi

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

  test -z "$ac_cv_path_PDFLIB_CONFIG" && ac_cv_path_PDFLIB_CONFIG="no"
  ;;
esac
fi
PDFLIB_CONFIG=$ac_cv_path_PDFLIB_CONFIG
if test -n "$PDFLIB_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLIB_CONFIG" >&5
$as_echo "$PDFLIB_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



		if test "$PDFLIB_CONFIG" != "no"; then
			PDF_LIBDIR=`pdflib-config --libdir`
			PDF_INCDIR=`pdflib-config --includedir`
			PDF_VERSION=`pdflib-config --version`
			PDF_LDFLAGS=`pdflib-config --ldflags`
			PDF_CFLAGS=`pdflib-config --cflags`
		fi

			#if test "$GCC_MINGW" != "yes"; then
			#	TEST_PDFLIB_I_FLAGS="-I$withval/include"
			#	TEST_PDFLIB_L_FLAGS="-L$withval/lib"
			#else
			if test "$GCC_MINGW" = "yes" \
				-a "$MSYS_ROOTDIR" != "" \
				-a "$PDFLIB_CONFIG" != "no" ; then
				#On mingw, pdflib-config would return paths relative to
				#it's installation dir (which is by default Msys install dir)
				#so we cant use it
				withval="$MSYS_ROOTDIR"
				withval="`$CYGPATH -m $withval`"
				TEST_PDFLIB_I_FLAGS="-I$withval/local/include"
				TEST_PDFLIB_L_FLAGS="-L$withval/local/lib"
			fi
			#fi

		TEST_PDFLIB_FLAGS="$TEST_PDFLIB_I_FLAGS $TEST_PDFLIB_L_FLAGS"
		LDFLAGS="$LDFLAGS $TEST_PDFLIB_FLAGS -lm"
		CFLAGS="$CFLAGS $TEST_PDFLIB_FLAGS"
		#C preprocesor flags
		CPPFLAGS="$CPPFLAGS $TEST_PDFLIB_I_FLAGS"

		if test "$enable_ac_debug" = "yes" ; then
			echo "LDFLAGS=$LDFLAGS"
			echo "CPPFLAGS=$CPPFLAGS"
			echo "PDF_LIBDIR=$PDF_LIBDIR"
			echo "PDF_INCDIR=$PDF_INCDIR"
			echo "PDF_VERSION=$PDF_VERSION"
			echo "PDF_LDFLAGS=$PDF_LDFLAGS"
			echo "PDF_CFLAGS=$PDF_CFLAGS"
			echo "TEST_PDFLIB_I_FLAGS=$TEST_PDFLIB_I_FLAGS"
			echo "TEST_PDFLIB_L_FLAGS=$TEST_PDFLIB_L_FLAGS"

		fi

		#  AC_CHECK_LIB(pq, PQcmdTuples,AC_DEFINE(HAVE_PQCMDTUPLES,1,[ ]))
		# FIXME: Replace `main' with a function in `-lpdf':
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpdf" >&5
$as_echo_n "checking for main in -lpdf... " >&6; }
if ${ac_cv_lib_pdf_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpdf  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pdf_main=yes
else
  ac_cv_lib_pdf_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pdf_main" >&5
$as_echo "$ac_cv_lib_pdf_main" >&6; }
if test "x$ac_cv_lib_pdf_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPDF 1
_ACEOF

  LIBS="-lpdf $LIBS"

fi

		for ac_header in  pdflib.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


		LIBS=$old_LIBS
		LDFLAGS=$old_LDFLAGS
		CFLAGS=$old_CFLAGS
        CPPFLAGS=$old_CPPFLAGS
		PATH="$old_PATH"

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use PDF" >&5
$as_echo_n "checking if we can use PDF... " >&6; }
		if test "$AUBIT_SOURCE" = "1" ; then
			if test $ac_cv_lib_pdf_main = yes -a "$ac_cv_header_pdflib_h" = "yes"; then
				USE_PDF=yes
				PDFBUILD=yes
				PDFLIB_I_FLAGS="$TEST_PDFLIB_I_FLAGS"
				PDFLIB_L_FLAGS="$TEST_PDFLIB_L_FLAGS"

$as_echo "#define HAVE_PDF 1" >>confdefs.h

				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }


				#;Source: @WINDOWS_DRIVE@@CYGWIN_PATH@\usr\local\lib\libpdf.dll; DestDir: {app}\bin\; Components: PDFLIB
				#;looks like it needs to be called "pdflib.dll" not "libpdf.dll" - which we renamed to be able to use -l when linking
				#;apparently it stores the name of the original dll somewhere?
				#Source: @WINDOWS_DRIVE@@CYGWIN_PATH@\usr\local\lib\libpdf.dll; DestDir: {app}\bin\pdflib.dll; Components: PDFLIB

				#if test "$COLLECT_THIRD_PARTY" = "1"; then
					#When compiling from source on Windows, I got only static object
					#Which we don't need anyway
					#THIRD_PARTY_FILES="$THIRD_PARTY_FILES \
					#	PDF#$withval/lib/libpdf.a"
				#fi

			else

$as_echo "#define HAVE_PDF 0" >>confdefs.h

				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			fi
		else
			if test $ac_cv_lib_pdf_main = yes; then
				USE_PDF=yes
				PDFBUILD=yes
				PDFLIB_I_FLAGS="$TEST_PDFLIB_I_FLAGS"
				PDFLIB_L_FLAGS="$TEST_PDFLIB_L_FLAGS"

$as_echo "#define HAVE_PDF 1" >>confdefs.h

				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			else

$as_echo "#define HAVE_PDF 0" >>confdefs.h

				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			fi
		fi
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-pdf not specified" >&5
$as_echo "--with-pdf not specified" >&6; }

fi


if test "$enable_stop_pdf" = "yes" ; then
	exit
fi



## ==================================================================
##                 Checks for QREncoder support (QR Barcodes)
## ==================================================================


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
$as_echo_n "checking for main in -lstdc++... " >&6; }
if ${ac_cv_lib_stdcpp_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lstdc++  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_stdcpp_main=yes
else
  ac_cv_lib_stdcpp_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
$as_echo "$ac_cv_lib_stdcpp_main" >&6; }
if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
  HAVE_STDCPP="1"
else
  HAVE_STDCPP="0"
fi



  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for QREncoder support:${T_ME}" >&5
$as_echo "${T_MD}Checking for QREncoder support:${T_ME}" >&6; }

save_LIBS="$LIBS"

# Check whether --with-qrencoder was given.
if test "${with_qrencoder+set}" = set; then :
  withval=$with_qrencoder; chk_qrencoder=x$withval
else
  chk_qrencoder=notset
fi


HAVE_LIBQRENCODE=0
if test "$chk_qrencoder" != "no"
then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QRinput_new2 in -lqrencode" >&5
$as_echo_n "checking for QRinput_new2 in -lqrencode... " >&6; }
if ${ac_cv_lib_qrencode_QRinput_new2+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lqrencode  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char QRinput_new2 ();
int
main ()
{
return QRinput_new2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_qrencode_QRinput_new2=yes
else
  ac_cv_lib_qrencode_QRinput_new2=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qrencode_QRinput_new2" >&5
$as_echo "$ac_cv_lib_qrencode_QRinput_new2" >&6; }
if test "x$ac_cv_lib_qrencode_QRinput_new2" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBQRENCODE 1
_ACEOF

  LIBS="-lqrencode $LIBS"

fi

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QRcode_encodeMask in -lqrencode" >&5
$as_echo_n "checking for QRcode_encodeMask in -lqrencode... " >&6; }
if ${ac_cv_lib_qrencode_QRcode_encodeMask+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lqrencode  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char QRcode_encodeMask ();
int
main ()
{
return QRcode_encodeMask ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_qrencode_QRcode_encodeMask=yes
else
  ac_cv_lib_qrencode_QRcode_encodeMask=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qrencode_QRcode_encodeMask" >&5
$as_echo "$ac_cv_lib_qrencode_QRcode_encodeMask" >&6; }
if test "x$ac_cv_lib_qrencode_QRcode_encodeMask" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBQRENCODE 1
_ACEOF

  LIBS="-lqrencode $LIBS"

fi



	if test "$ac_cv_lib_qrencode_QRinput_new2" = "yes"; then
		HAVE_LIBQRENCODE=1
		$as_echo "#define HAVE_LIBQRENCODE 1" >>confdefs.h

		$as_echo "#define HAVE_LIBQRENCODE_ENCODEMASK 1" >>confdefs.h

		if test "$ac_cv_lib_qrencode_QRcode_encodemask" = "yes"; then
			HAVE_LIBQRENCODE_ENCODEMASK=1
   		else
			HAVE_LIBQRENCODE_ENCODEMASK=0
		fi
	fi
fi


if test "$enable_stop_qrencode" = "yes" ; then
	exit
fi

LIBS="$save_LIBS"



## ============================================
##                 Checks for PDFlib8 support
## ============================================



  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for PDFLIB8 support:${T_ME}" >&5
$as_echo "${T_MD}Checking for PDFLIB8 support:${T_ME}" >&6; }

save_LIBS="$LIBS"

# Check whether --with-pdflib was given.
if test "${with_pdflib+set}" = set; then :
  withval=$with_pdflib; chk_pdflib=x$withval
else
  chk_pdflib=notset
fi


HAVE_PDFLIB8=0
if test "$chk_pdflib" != "no"
then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDFLIB_MAJORVERSION	8 in -lpdflib" >&5
$as_echo_n "checking for PDFLIB_MAJORVERSION	8 in -lpdflib... " >&6; }
if ${ac_cv_lib_pdflib_PDFLIB_MAJORVERSION_8+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpdflib  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char PDFLIB_MAJORVERSION	8 ();
int
main ()
{
return PDFLIB_MAJORVERSION	8 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pdflib_PDFLIB_MAJORVERSION_8=yes
else
  ac_cv_lib_pdflib_PDFLIB_MAJORVERSION_8=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pdflib_PDFLIB_MAJORVERSION_8" >&5
$as_echo "$ac_cv_lib_pdflib_PDFLIB_MAJORVERSION_8" >&6; }
if test "x$ac_cv_lib_pdflib_PDFLIB_MAJORVERSION_8" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPDFLIB 1
_ACEOF

  LIBS="-lpdflib $LIBS"

fi



	 if test "$ac_cv_lib_pdflib_PDFLIB_MAJORVERSION	8]" = "yes";
	then
		HAVE_PDFLIB8=1
	 fi

fi


if test "$enable_stop_qrencode" = "yes" ; then
	exit
fi

LIBS="$save_LIBS"




## ==================================================================
##                 Checks for CINT - C code interpreter
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for C interpreter (Cint) :${T_ME}" >&5
$as_echo "${T_MD}Checking for C interpreter (Cint) :${T_ME}" >&6; }



# Check whether --with-cint was given.
if test "${with_cint+set}" = set; then :
  withval=$with_cint;
	if test "$withval" != "no"; then
		if test "$withval" != "yes"; then
			#user specified path to cint
			CINT_PATH=$withval
			#Apprently not needed
            #ADD_LD_LIBRARY_PATH="$withval/lib$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
		else
			CINT_PATH=/usr/local
		fi
		if test "$enable_ac_debug" = "yes" ; then
			echo "CINT_PATH=$withval"
		fi

		#FIXME: despite listing all this paths, cint executable will only be found
	    #if its in the PATH - no idea why
		if test "$enable_ac_debug2" = "yes" ; then
			echo "LDFLAGS=$LDFLAGS"
			echo "save_LDFLAGS=$save_LDFLAGS"
		fi

		save_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
		save_LDFLAGS="$LDFLAGS"
		save_PATH="$PATH"
		save_LIBS="$LIBS"
		if test "$enable_ac_debug2" = "yes" ; then
			echo "LDFLAGS=$LDFLAGS"
			echo "save_LDFLAGS=$save_LDFLAGS"
		fi

		LD_LIBRARY_PATH="$CINT_PATH:/usr/local/cint:/opt/cint:/usr/local/lib:/usr/lib/termcap:$LD_LIBRARY_PATH"
		LDFLAGS="-L$CINT_PATH/lib -L/usr/lib/termcap $LDFLAGS"
		PATH="$CINT_PATH:$PATH" #/opt/cint:/usr/local/bin
		export PATH
		if test "$enable_ac_debug2" = "yes" ; then
			echo "-------------DEBUG--------------"
			echo "PATH=$PATH"
			echo "LDFLAGS=$LDFLAGS"
			echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
			export CINTSYSDIR=$CINT_PATH
			unset CINT
			unset ac_cv_path_CINT
			# Extract the first word of "cint", so it can be a program name with args.
set dummy cint; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_CINT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $CINT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CINT="$CINT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $CINT_PATH $PATH /usr/local/cint /opt/cint
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CINT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_CINT" && ac_cv_path_CINT="no"
  ;;
esac
fi
CINT=$ac_cv_path_CINT
if test -n "$CINT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CINT" >&5
$as_echo "$CINT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


			unset CINT
			unset ac_cv_path_CINT
			# Extract the first word of "cint", so it can be a program name with args.
set dummy cint; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_CINT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $CINT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CINT="$CINT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $CINT_PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CINT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_CINT" && ac_cv_path_CINT="no"
  ;;
esac
fi
CINT=$ac_cv_path_CINT
if test -n "$CINT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CINT" >&5
$as_echo "$CINT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


			unset CINT
			unset ac_cv_path_CINT
			# Extract the first word of "cint", so it can be a program name with args.
set dummy cint; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_CINT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $CINT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CINT="$CINT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $CINT_PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CINT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_CINT" && ac_cv_path_CINT="no"
  ;;
esac
fi
CINT=$ac_cv_path_CINT
if test -n "$CINT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CINT" >&5
$as_echo "$CINT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


			cint -Q dummy
			echo "-------------END DEBUG--------------"
		fi

		unset CINT
		unset ac_cv_path_CINT
		#WARNING: search paths have to be specified with column separator -
		#NOT WITH SPACE SEPARATOR!!!!! or maybe comma needs to be used?
		# Extract the first word of "cint", so it can be a program name with args.
set dummy cint; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_CINT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $CINT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CINT="$CINT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$CINT_PATH:$PATH:/usr/local/cint:/opt/cint "
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CINT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_CINT" && ac_cv_path_CINT="no"
  ;;
esac
fi
CINT=$ac_cv_path_CINT
if test -n "$CINT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CINT" >&5
$as_echo "$CINT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


		# Extract the first word of "makecint", so it can be a program name with args.
set dummy makecint; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_MAKECINT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $MAKECINT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MAKECINT="$MAKECINT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$CINT_PATH:$PATH:/usr/local/cint:/opt/cint "
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MAKECINT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_MAKECINT" && ac_cv_path_MAKECINT="no"
  ;;
esac
fi
MAKECINT=$ac_cv_path_MAKECINT
if test -n "$MAKECINT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKECINT" >&5
$as_echo "$MAKECINT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



		if test "$CINT" != "no" -a "$MAKECINT" != "no"; then
			CINTSYSDIR=`dirname $CINT`

			case "$CINTSYSDIR" in
				*cygdrive*)
					if test "$GCC_MINGW" = "yes"; then
						#convert Cygwin path mapping back to native
						CINTSYSDIR=`echo "$CINTSYSDIR" | sed -e 's/^\/cygdrive\///' -e 's/\//:\//'`
					fi
					;;
			esac

			if test "$COMSPEC" = ""; then
				#UNIX
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltermcap" >&5
$as_echo_n "checking for main in -ltermcap... " >&6; }
if ${ac_cv_lib_termcap_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltermcap  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_termcap_main=yes
else
  ac_cv_lib_termcap_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_main" >&5
$as_echo "$ac_cv_lib_termcap_main" >&6; }
if test "x$ac_cv_lib_termcap_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBTERMCAP 1
_ACEOF

  LIBS="-ltermcap $LIBS"

fi

				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lbsd" >&5
$as_echo_n "checking for main in -lbsd... " >&6; }
if ${ac_cv_lib_bsd_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bsd_main=yes
else
  ac_cv_lib_bsd_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_main" >&5
$as_echo "$ac_cv_lib_bsd_main" >&6; }
if test "x$ac_cv_lib_bsd_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBBSD 1
_ACEOF

  LIBS="-lbsd $LIBS"

fi

				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lbsd-compat" >&5
$as_echo_n "checking for main in -lbsd-compat... " >&6; }
if ${ac_cv_lib_bsd_compat_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd-compat  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bsd_compat_main=yes
else
  ac_cv_lib_bsd_compat_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_compat_main" >&5
$as_echo "$ac_cv_lib_bsd_compat_main" >&6; }
if test "x$ac_cv_lib_bsd_compat_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBBSD_COMPAT 1
_ACEOF

  LIBS="-lbsd-compat $LIBS"

fi

				if test "$ac_cv_lib_bsd_main" != "yes" \
					-a "$ac_cv_lib_bsd_compat_main" = "yes"; \
				then
					ln -s /usr/lib/libbsd-compat.a /usr/lib/libbsd.a
					#reset and re-test
					ac_cv_lib_bsd_main=""
					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lbsd" >&5
$as_echo_n "checking for main in -lbsd... " >&6; }
if ${ac_cv_lib_bsd_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bsd_main=yes
else
  ac_cv_lib_bsd_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_main" >&5
$as_echo "$ac_cv_lib_bsd_main" >&6; }
if test "x$ac_cv_lib_bsd_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBBSD 1
_ACEOF

  LIBS="-lbsd $LIBS"

fi

				fi
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use Cint" >&5
$as_echo_n "checking if we can use Cint... " >&6; }
				if test "$ac_cv_lib_bsd_main" != "yes" \
					-o "$ac_cv_lib_termcap_main" != "yes"; \
				then
					CINT=no
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no-missing bsd or termcap libraries" >&5
$as_echo "no-missing bsd or termcap libraries" >&6; }
				else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
				fi
			else
				#On Windows, we dont have to worry about dependencies
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use Cint" >&5
$as_echo_n "checking if we can use Cint... " >&6; }
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			fi
		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Use Cint - NO - no cint and/or makecint executable" >&5
$as_echo "Use Cint - NO - no cint and/or makecint executable" >&6; }
		fi

		LD_LIBRARY_PATH="$save_LD_LIBRARY_PATH"
		PATH="$save_PATH"
		LDFLAGS="$save_LDFLAGS"
		LIBS="$save_LIBS"

    else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-cint disabled" >&5
$as_echo "--with-cint disabled" >&6; }
    fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-cint not specified" >&5
$as_echo "--with-cint not specified" >&6; }

fi


if test "$enable_ac_debug" = "yes" ; then
	echo "LDFLAGS=$LDFLAGS"
	echo "save_LDFLAGS=$save_LDFLAGS"
	echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
fi

if test "$enable_stop_cint" = "yes" ; then
	exit
fi

## ==================================================================
##                 Determine RPM build location
## ==================================================================

if test "$AUBIT_SOURCE" = "1" ; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}RPM package settings:${T_ME}" >&5
$as_echo "${T_MD}RPM package settings:${T_ME}" >&6; }

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RPM build root" >&5
$as_echo_n "checking RPM build root... " >&6; }

	#MACHTYPE is a environment variable - not a Autoconf one
	case "$MACHTYPE" in
		*-mandrake-linux-gnu)
			RPMBUILDROOT="/usr/src/RPM"
			;;

		*-redhat-linux-gnu)

			#REDHAT_VER
			#configure:7266: checking RedHat version
			#configure:7270: result: Red Hat Linux release 7.2 (Enigma) (7.2)

			case $REDHAT_VER in
				6.*)
					RPMBUILDROOT=/root/redhat
					;;

				*) 	#redhat 7.2 and up
					RPMBUILDROOT=/usr/src/redhat
					;;
			esac
			;;
		*-suse-linux)
			RPMBUILDROOT="/usr/src/packages"
			;;

		*)
			if test "$RPM" != "no"; then
				#Have rpm executables
				RPMBUILDROOT=`$RPM --eval "%_topdir"`
			else
				#Probably not a RPM based distro
				RPMBUILDROOT=no-rpm-build-root
			fi
			;;

	esac

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILDROOT" >&5
$as_echo "$RPMBUILDROOT" >&6; }
fi

## ==================================================================
##                 Checks for other 4gl compiles
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for 4Js BDL / Informix D4GL:${T_ME}" >&5
$as_echo "${T_MD}Checking for 4Js BDL / Informix D4GL:${T_ME}" >&6; }


# Check whether --with-fourj was given.
if test "${with_fourj+set}" = set; then :
  withval=$with_fourj;
	if test "$withval" != "no"; then
		# Extract the first word of "fglcomp", so it can be a program name with args.
set dummy fglcomp; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_FJS_PCOMPILER+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $FJS_PCOMPILER in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_FJS_PCOMPILER="$FJS_PCOMPILER" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_FJS_PCOMPILER="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_FJS_PCOMPILER" && ac_cv_path_FJS_PCOMPILER="no"
  ;;
esac
fi
FJS_PCOMPILER=$ac_cv_path_FJS_PCOMPILER
if test -n "$FJS_PCOMPILER"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FJS_PCOMPILER" >&5
$as_echo "$FJS_PCOMPILER" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_FJS_PRUNTIME" && ac_cv_path_FJS_PRUNTIME="no"
  ;;
esac
fi
FJS_PRUNTIME=$ac_cv_path_FJS_PRUNTIME
if test -n "$FJS_PRUNTIME"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FJS_PRUNTIME" >&5
$as_echo "$FJS_PRUNTIME" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-fourj not specified" >&5
$as_echo "--with-fourj not specified" >&6; }

fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Querix compiler:${T_ME}" >&5
$as_echo "${T_MD}Checking for Querix compiler:${T_ME}" >&6; }


# Check whether --with-hydra was given.
if test "${with_hydra+set}" = set; then :
  withval=$with_hydra;
	if test "$withval" != "no"; then
		#4gl code compiler have same name as Plexus  = fglc so we look for Form Compiler
		# Extract the first word of "fmpc", so it can be a program name with args.
set dummy fmpc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_QUERIX_COMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $QUERIX_COMP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_QUERIX_COMP="$QUERIX_COMP" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_QUERIX_COMP="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_QUERIX_COMP" && ac_cv_path_QUERIX_COMP="no"
  ;;
esac
fi
QUERIX_COMP=$ac_cv_path_QUERIX_COMP
if test -n "$QUERIX_COMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QUERIX_COMP" >&5
$as_echo "$QUERIX_COMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-hydra not specified" >&5
$as_echo "--with-hydra not specified" >&6; }

fi




if test "$cygwin" = "1" ; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Plexus XDP AD32 - FGLC Compiler:${T_ME}" >&5
$as_echo "${T_MD}Checking for Plexus XDP AD32 - FGLC Compiler:${T_ME}" >&6; }


# Check whether --with-plexus was given.
if test "${with_plexus+set}" = set; then :
  withval=$with_plexus;
		if test "$withval" != "no"; then
			#same name as Querix:
			#AC_PATH_PROG(PLEXUS_COMP, fglc, no)
			# Extract the first word of "mkesq", so it can be a program name with args.
set dummy mkesq; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PLEXUS_COMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PLEXUS_COMP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PLEXUS_COMP="$PLEXUS_COMP" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PLEXUS_COMP="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_PLEXUS_COMP" && ac_cv_path_PLEXUS_COMP="no"
  ;;
esac
fi
PLEXUS_COMP=$ac_cv_path_PLEXUS_COMP
if test -n "$PLEXUS_COMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLEXUS_COMP" >&5
$as_echo "$PLEXUS_COMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
		fi

else

	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-plexus not specified" >&5
$as_echo "--with-plexus not specified" >&6; }

fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Classic Informix 4gl P-code:${T_ME}" >&5
$as_echo "${T_MD}Checking for Classic Informix 4gl P-code:${T_ME}" >&6; }


# Check whether --with-i4gl was given.
if test "${with_i4gl+set}" = set; then :
  withval=$with_i4gl;
		if test "$withval" != "no"; then

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

  test -z "$ac_cv_path_I4GL_PCOMPILER" && ac_cv_path_I4GL_PCOMPILER="no"
  ;;
esac
fi
I4GL_PCOMPILER=$ac_cv_path_I4GL_PCOMPILER
if test -n "$I4GL_PCOMPILER"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $I4GL_PCOMPILER" >&5
$as_echo "$I4GL_PCOMPILER" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_I4GL_PRUNTIME" && ac_cv_path_I4GL_PRUNTIME="no"
  ;;
esac
fi
I4GL_PRUNTIME=$ac_cv_path_I4GL_PRUNTIME
if test -n "$I4GL_PRUNTIME"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $I4GL_PRUNTIME" >&5
$as_echo "$I4GL_PRUNTIME" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



		    if test "$I4GL_PCOMPILER" != "no"; then
				#For 4glWorks: try to understand whether this is 4gl4 or 4gl6, as you
				#have to free cursors & statements differently
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fglpc version" >&5
$as_echo_n "checking fglpc version... " >&6; }
				set `fglpc -v 2>/dev/null | head -n 1|sed -e 's/^.*sion //' -e 's/\./ /g'`
				if test "$1" != ""; then
					#if test "$1" = "4" -a "$2" -lt "50"; then
		            if test "$1" -lt "5"; then
						I4GL_PCOMPILER_VER=4
						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2.$3 (series 4 or earler)" >&5
$as_echo "$1.$2.$3 (series 4 or earler)" >&6; }
			        else
						I4GL_PCOMPILER_VER=6
						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2.$3 (series 6 or later)" >&5
$as_echo "$1.$2.$3 (series 6 or later)" >&6; }
			        fi
		        else
					as_fn_error $? "Cannot get fglpc version." "$LINENO" 5
		        fi
		    fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Classic Informix 4gl C-code:${T_ME}" >&5
$as_echo "${T_MD}Checking for Classic Informix 4gl C-code:${T_ME}" >&6; }

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

  test -z "$ac_cv_path_I4GL_CCOMPILER" && ac_cv_path_I4GL_CCOMPILER="no"
  ;;
esac
fi
I4GL_CCOMPILER=$ac_cv_path_I4GL_CCOMPILER
if test -n "$I4GL_CCOMPILER"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $I4GL_CCOMPILER" >&5
$as_echo "$I4GL_CCOMPILER" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



		    if test "$I4GL_CCOMPILER" != "no"; then
			#For 4glWorks: try to understand if the product is esql/c 5+
			#aware, or is a special case, ie c4gl 4.x or is not esql/c
			#aware in any way, shape or form (ie an rds only shop)
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking c4gl version" >&5
$as_echo_n "checking c4gl version... " >&6; }
				set `c4gl -V 2>/dev/null | head -n 1|sed -e 's/^.*INFORMIX-4GL Version //' -e 's/\./ /g'`
				if test "$1" != ""; then
					#if test "$1" = "4" -a "$2" -lt "50"; then
		            if test "$1" -lt "5"; then
						I4GL_CCOMPILER_VER=4
						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2.$3 (series 4 or earler)" >&5
$as_echo "$1.$2.$3 (series 4 or earler)" >&6; }
			        else
						I4GL_CCOMPILER_VER=6
						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $1.$2.$3 (series 6 or later)" >&5
$as_echo "$1.$2.$3 (series 6 or later)" >&6; }
			        fi
		        else
					as_fn_error $? "Cannot get c4gl version." "$LINENO" 5
		        fi
		    fi
		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
		fi

else

	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-i4gl not specified" >&5
$as_echo "--with-i4gl not specified" >&6; }

fi


fi

## ==================================================================
##                 Checks for web server support
## ==================================================================

#see if we can enable Aubit CGI/HTMLlib compile, DoxyGen web
#install, FGLDOC web server support

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Web server:${T_ME}" >&5
$as_echo "${T_MD}Checking for Web server:${T_ME}" >&6; }



# Check whether --with-httpd was given.
if test "${with_httpd+set}" = set; then :
  withval=$with_httpd;
	if test "$withval" != "no"; then
		# Extract the first word of "apachectl", so it can be a program name with args.
set dummy apachectl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_APACHECTL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $APACHECTL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_APACHECTL="$APACHECTL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_APACHECTL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_APACHECTL" && ac_cv_path_APACHECTL="no"
  ;;
esac
fi
APACHECTL=$ac_cv_path_APACHECTL
if test -n "$APACHECTL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APACHECTL" >&5
$as_echo "$APACHECTL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_APACHE2CTL" && ac_cv_path_APACHE2CTL="no"
  ;;
esac
fi
APACHE2CTL=$ac_cv_path_APACHE2CTL
if test -n "$APACHE2CTL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APACHE2CTL" >&5
$as_echo "$APACHE2CTL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_HTTPD" && ac_cv_path_HTTPD="no"
  ;;
esac
fi
HTTPD=$ac_cv_path_HTTPD
if test -n "$HTTPD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5
$as_echo "$HTTPD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



		if test "$APACHE2CTL" != "no"
		then
			APACHECTL=$$APACHE2CTL
		fi
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Web server support" >&5
$as_echo_n "checking Web server support... " >&6; }
		if test "$APACHECTL" != "no"; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Apache" >&5
$as_echo "Apache" >&6; }
		else
			if test "$HTTPD" != "no"; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: httpd" >&5
$as_echo "httpd" >&6; }
		    else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		    fi
		fi

		#If we have web server:

			if test "$APACHECTL" != "no"; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Apache configuration file" >&5
$as_echo_n "checking Apache configuration file... " >&6; }
				if test -f /etc/httpd/conf/httpd.conf; then
					APACHE_CONF=/etc/httpd/conf/httpd.conf
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APACHE_CONF" >&5
$as_echo "$APACHE_CONF" >&6; }
				else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
				fi
			fi

			#FIXME: DO we have JSP needed for FGLDOC?

		    if test "$APACHE_CONF" != ""; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Web server paths" >&5
$as_echo_n "checking Web server paths... " >&6; }
				grep ScriptAlias $APACHE_CONF > /tmp/tmp_config_.tmp
				CGI_DIR=`grep -v \# /tmp/tmp_config_.tmp | grep cgi-bin | awk '{print $3}' | sed -e 's/"//g'`
				WWW_DOCUMENT_ROOT=`grep ^DocumentRoot $APACHE_CONF | head -n 1 | awk '{print $2}' | sed -e 's/"//g'`
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: OK ($WWW_DOCUMENT_ROOT)($CGI_DIR)" >&5
$as_echo "OK ($WWW_DOCUMENT_ROOT)($CGI_DIR)" >&6; }
		    fi


			if test "$with_www_name" != "" ; then
				WWW_HOST_NAME=$with_www_name
		    else
				WWW_HOST_NAME=localhost
		    fi
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-httpd not specified" >&5
$as_echo "--with-httpd not specified" >&6; }

fi



## ==================================================================
##                 Checks for SAP DB ESQL/C (pre-compiler) support
## ==================================================================

SAPDB_ESQLC="no"


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for SAP DB/MySQL MaxDB ESQL/C support:${T_ME}" >&5
$as_echo "${T_MD}Checking for SAP DB/MySQL MaxDB ESQL/C support:${T_ME}" >&6; }



# Check whether --with-sapdb was given.
if test "${with_sapdb+set}" = set; then :
  withval=$with_sapdb;

#                          install directory, defaults to ${SAPDBROOT:-nothing}

#Note - last MaxDB version that includes CPC pre-compiler is 7.5. As of 7.6
#		CPC is no longer available. MySQL recomends using ODBC or there new
#		interface called DBC or something. However, as CPC is not dependent on
#		the version of the MaxDB database compnents, CPC from version 7.5 can
#		be used with 7.6, and all future versions.
#
#		Installing only CPC however requires that full 7.5 package is downloaded
#		and then only CPC component selected for installation.

	SAPDB_VER="7500"

	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
			if test "$SAPDBROOT" = ""; then
				withval="$SAPDBROOT"
				SAPDB_CUSTOM_WITHVAL=1
			else
				#SAPDB_WARNING=1
				#try default
				if test "$SAPDB_VER" = "7500"; then
					#New - MySQL MaxDB default location:
					withval="/opt/sdb"
				else
					#Old SAP DB default location
					withval="/opt/sapdb"
				fi
			fi
		else
			#User specified withval using --with-sapdb=xxx
			SAPDB_CUSTOM_WITHVAL=1
		fi

		SAPDBROOT="$withval"

			if ! test -d "$SAPDBROOT"; then
				if test "$SAPDB_CUSTOM_WITHVAL" = "1"; then
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - directory specified ($SAPDBROOT) does not exist" >&5
$as_echo "no - directory specified ($SAPDBROOT) does not exist" >&6; }
				else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
				fi
            else
				if test "$withval" = "yes"; then
					if test "$SAPDB_VER" = "7500"; then
						SAPDB_INCDIR="-I$SAPDBROOT/programs/sdk/$SAPDB_VER/incl"
						SAPDB_LIBDIR="-L$SAPDBROOT/programs/lib \
							-L$SAPDBROOT/programs/runtime/$SAPDB_VER/lib"
						#-L$SAPDBROOT/programs/runtime/7403/lib
					else
						#At least default SuSE 9 RPM's use /interfaces/precompiler/sdk/7403/incl
						#probably anticipating that cpc compiler will take care of
						#finding includes like cpc.h This may force us to try to compile
						# a simple hello.cpc instead of looking for headers/libraries
						#if we see more of this version numbering in the paths in the future.
						SAPDB_INCDIR="-I$SAPDBROOT/depend/incl \
							-I$SAPDBROOT/interfaces/precompiler/incl \
							-I$SAPDBROOT/interfaces/precompiler/sdk/7403/incl"
						SAPDB_LIBDIR="-L$SAPDBROOT/depend/lib \
							-L$SAPDBROOT/interfaces/precompiler/lib"
					fi
				else
					#user specified custom withval
					WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON SAPESQLC"
					WARN_LD_LIBRARY_PATH=1
					SAPDB_INCDIR="-I$withval/depend/incl -I$withval/interfaces/precompiler/incl"
					SAPDB_LIBDIR="-L$withval/depend/lib -L$withval/interfaces/precompiler/lib"
					if test "$withval" != "$SAPDBROOT"; then
						SAPDB_WARNING=2
					fi
	    		fi

				if test "$withval" != "yes"; then
					#Custom location (withval)
		            ADD_LD_LIBRARY_PATH="$withval/depend/lib$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
	            else
					#Default location (SAPDBROOT or in-built)
		            ADD_LD_LIBRARY_PATH="$SAPDBROOT/depend/lib$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
				fi
				WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON SAP"
				WARN_LD_LIBRARY_PATH=1

	            old_PATH="$PATH"
				if test "$SAPDB_VER" = "7500"; then
					PATH="$SAPDBROOT/programs/bin:$PATH"
				else
	            	PATH="$SAPDBROOT/interfaces/precompiler/bin:$PATH"
				fi

				#First check if we have cpc installed at all:
				# Extract the first word of "cpc", so it can be a program name with args.
set dummy cpc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_SAPDB_ESQLC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $SAPDB_ESQLC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SAPDB_ESQLC="$SAPDB_ESQLC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH $SAPDBROOT/programs/bin $SAPDBDIR/interfaces/precompiler/bin /opt/sapdb/interfaces/precompiler/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SAPDB_ESQLC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_SAPDB_ESQLC" && ac_cv_path_SAPDB_ESQLC="no"
  ;;
esac
fi
SAPDB_ESQLC=$ac_cv_path_SAPDB_ESQLC
if test -n "$SAPDB_ESQLC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAPDB_ESQLC" >&5
$as_echo "$SAPDB_ESQLC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



				#any C (gcc) compiler is OK fro SAP (?)
				SAPDBESQLCC_OK="OK"

				if test "$SAPDB_ESQLC" != "no"; then
					if test "$SAPDB_ESQLC" != "no" && test "$SAPDBESQLCC_OK" = "OK"; then
						SAPDB_INCLUDE="$SAPDB_INCDIR"
						SAPDB_LFLAGS="$SAPDB_LIBDIR"

		                old_CFLAGS="$CFLAGS"
		                old_LDFLAGS="$LDFLAGS"
                        old_CPPFLAGS="$CPPFLAGS"

						CFLAGS="$CFLAGS $SAPDB_INCLUDE $SAPDB_CFLAGS"
						LDFLAGS="$LDFLAGS $SAPDB_LDFLAGS"
                        CPPFLAGS="$CPPFLAGS $SAPDB_INCLUDE"

						for ac_header in  cpc.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


						{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use cpc" >&5
$as_echo_n "checking if we can use cpc... " >&6; }
						if test "$ac_cv_header_cpc_h" = "yes" ; then
							$as_echo "#define HAVE_SAPDB 1" >>confdefs.h

							{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Yes" >&5
$as_echo "Yes" >&6; }
					    else
							{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No - missing header cpc.h" >&5
$as_echo "No - missing header cpc.h" >&6; }
				            SAPDB_ESQLC="no"
					    fi

						CFLAGS="$old_CFLAGS"
		                LDFLAGS="$old_LDFLAGS"
                        CPPFLAGS="$old_CPPFLAGS"

		            else
						{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use cpc" >&5
$as_echo_n "checking if we can use cpc... " >&6; }
						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cpc not working or no compatible C compiler" >&5
$as_echo "cpc not working or no compatible C compiler" >&6; }
			            SAPDB_ESQLC="no"
		            fi
	            else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use cpc" >&5
$as_echo_n "checking if we can use cpc... " >&6; }
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cpc not in path" >&5
$as_echo "cpc not in path" >&6; }
		            SAPDB_ESQLC="no"
	            fi

	            PATH="$old_PATH"
            fi

	else
        SAPDB_ESQLC="no"
		SAPDBDIR=""
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-sapdb not specified" >&5
$as_echo "--with-sapdb not specified" >&6; }

fi


if test "$enable_stop_sapdb" = "yes" ; then
	exit
fi

## ==================================================================
##                 Checks for Querix ESQL/C support
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Querix ESQL/C support:${T_ME}" >&5
$as_echo "${T_MD}Checking for Querix ESQL/C support:${T_ME}" >&6; }



# Check whether --with-esqlc was given.
if test "${with_esqlc+set}" = set; then :
  withval=$with_esqlc;
	if test "$withval" != "no"; then

			#Querix ESQL/C compiler from Hydra 4:
			# Extract the first word of "esqlc", so it can be a program name with args.
set dummy esqlc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_Q_ESQLC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $Q_ESQLC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_Q_ESQLC="$Q_ESQLC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_Q_ESQLC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_Q_ESQLC" && ac_cv_path_Q_ESQLC="no"
  ;;
esac
fi
Q_ESQLC=$ac_cv_path_Q_ESQLC
if test -n "$Q_ESQLC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $Q_ESQLC" >&5
$as_echo "$Q_ESQLC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



			#Qerix flags when using MSVC:
			#CFLAGS=/nologo -DWINNT -Dgetenv=QXgetenv -MD -O2 -Y- $(INCLUDES)
			#CFLAGS_DEBUG=/nologo -DWINNT -Dgetenv=QXgetenv -MD - Zi -GX -Od -Y- $(INCLUDES)

			#FGL_LIBS="$(QUERIXDIR)\lib\libfgl.lib"
			#FGL_LIBS_DEBUG="$(QUERIXDIR)\lib\libfgld.lib"
			#SQL_LIB="$(QUERIXDIR)\lib\libsqlc.lib"
			#SQL_LIB_DEBUG="$(QUERIXDIR)\lib\libsqlcd.lib"
			#LINK_FLAGS=/nologo /subsystem:console /incremental:yes /machine:x86

			#QX_LIBS=$(FGL_LIBS) $(SQL_LIB) $(LINK_FLAGS)
			#QX_LIBS_DEBUG=$(FGL_LIBS_DEBUG) $(SQL_LIB_DEBUG) $(LINK_FLAGS) /debug


			if test "$cygwin" = "1"; then
				#on Windows, Querix officially supportes only
				#Micro$loth or Bordland C compiler to use ESQL/C:
				# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_MSVC_COMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $MSVC_COMP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MSVC_COMP="$MSVC_COMP" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MSVC_COMP="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_MSVC_COMP" && ac_cv_path_MSVC_COMP="no"
  ;;
esac
fi
MSVC_COMP=$ac_cv_path_MSVC_COMP
if test -n "$MSVC_COMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_COMP" >&5
$as_echo "$MSVC_COMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_MSVC_LINK" && ac_cv_path_MSVC_LINK="no"
  ;;
esac
fi
MSVC_LINK=$ac_cv_path_MSVC_LINK
if test -n "$MSVC_LINK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_LINK" >&5
$as_echo "$MSVC_LINK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


				if test "$MSVC_COMP" != "no" && test "$MSVC_LINK" != "no" ;	then
	                QESQLCC_OK="OK"
                    MSVC_LINK="$MSVC_LINK /nologo"
				#else
				#	AC_MSG_WARN(Querix ESQL/C on Windows officially supports only MS or Borland C compilers)
				#	AC_MSG_WARN(We will be using GCC instead, since they where not detected)
				#	QESQLCC_OK="OK"
				fi
			else
                #on non-Windows platforms, native C compiler will do:
				QESQLCC_OK="OK"
			fi
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use Querix ESQL/C" >&5
$as_echo_n "checking if we can use Querix ESQL/C... " >&6; }
			if test "$Q_ESQLC" != "no" && test "$QESQLCC_OK" = "OK";
			then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
            else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - esqlc not in path or no compatible C compiler" >&5
$as_echo "no - esqlc not in path or no compatible C compiler" >&6; }
                Q_ESQLC=no
			fi

    else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
    fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-esqlc not specified" >&5
$as_echo "--with-esqlc not specified" >&6; }

fi



if test "$LIBS" != ""; then
	echo "WARNING: (1) LIBS contains $LIBS"
fi


## ==================================================================
##                 Checks for Informix ESQL/C support
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Informix ESQL/C support:${T_ME}" >&5
$as_echo "${T_MD}Checking for Informix ESQL/C support:${T_ME}" >&6; }



# Check whether --with-informix was given.
if test "${with_informix+set}" = set; then :
  withval=$with_informix;
	if test "$withval" != "no"; then
		if test "$withval" != "yes"; then
			if test "$INFORMIXDIR" = ""; then
				export INFORMIXDIR="$withval"
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INFORMIXDIR not set in environment - setting it form value" >&5
$as_echo "$as_me: WARNING: INFORMIXDIR not set in environment - setting it form value" >&2;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: of --with-informix flag specified:$withval" >&5
$as_echo "$as_me: WARNING: of --with-informix flag specified:$withval" >&2;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to set INFORMIXDIR in your environment" >&5
$as_echo "$as_me: WARNING: You may want to set INFORMIXDIR in your environment" >&2;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: yourself" >&5
$as_echo "$as_me: WARNING: yourself" >&2;}
			fi
		fi

		if test "$INFORMIXDIR" = "" -a "$force_informix" != "yes" ; then
			INFORMIX_WARNING=1
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		else
			if test "$withval" = "yes"; then
				if test "$INFORMIXDIR" = "" ; then
					if test "$COMSPEC" != ""; then
						echo "########################################################"
						#echo "THIS SHOULD NOT HAPPEN ANYMORE"
						echo "Could not get INFORMIXDIR from registry."
						echo "It seems you dont have Informix CSDK installed."
						#echo "and on UNIX INFORMIXDIR _MUST_ be set for anything Informix to work"
						echo "########################################################"
					fi
					#try to find INFORMIXDIR by looking for esqlc in the PATH:
					# Extract the first word of "esql", so it can be a program name with args.
set dummy esql; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_TMPIFMX_ESQLC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $TMPIFMX_ESQLC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_TMPIFMX_ESQLC="$TMPIFMX_ESQLC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_TMPIFMX_ESQLC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_TMPIFMX_ESQLC" && ac_cv_path_TMPIFMX_ESQLC="no"
  ;;
esac
fi
TMPIFMX_ESQLC=$ac_cv_path_TMPIFMX_ESQLC
if test -n "$TMPIFMX_ESQLC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TMPIFMX_ESQLC" >&5
$as_echo "$TMPIFMX_ESQLC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


					if test "$TMPIFMX_ESQLC" != "no"; then
						if test "$enable_ac_debug" = "yes" ; then
							echo "TMPIFMX_ESQLC='$TMPIFMX_ESQLC'"
						fi
						#remove esql.exe
						TMP1=`dirname "$TMPIFMX_ESQLC"`
						#remove bin
						TMP2=`dirname "$TMP1"`
						if test "$COMSPEC" != ""; then
							echo "remove CSDK - THIS SHOULD NOT HAPPEN ANYMORE"
							echo "since we get INFORMIXDIR from registry??!!"
							INFORMIXDIR="`dirname "$TMP2"`"
							case "$INFORMIXDIR" in
								*cygdrive*)
									if test "$GCC_MINGW" = "yes"; then
										#convert Cygwin path mapping back to native
										INFORMIXDIR=`echo "$INFORMIXDIR" | sed -e 's/^\/cygdrive\///' -e 's/\//:\//'`
									fi
								;;
							esac
						fi
						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INFORMIXDIR set based on location of esql" >&5
$as_echo "$as_me: WARNING: INFORMIXDIR set based on location of esql" >&2;}
						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: executable to $INFORMIXDIR" >&5
$as_echo "$as_me: WARNING: executable to $INFORMIXDIR" >&2;}
					else
						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INFORMIXDIR not set in environment and" >&5
$as_echo "$as_me: WARNING: INFORMIXDIR not set in environment and" >&2;}
						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not specified with --with-informix=DIR and" >&5
$as_echo "$as_me: WARNING: not specified with --with-informix=DIR and" >&2;}
						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cant find esql executable" >&5
$as_echo "$as_me: WARNING: cant find esql executable" >&2;}
					fi
				else
					if test "$enable_ac_debug" = "yes" ; then
						echo "INFORMIXDIR='$INFORMIXDIR'"
					fi
				fi
				IFX_INCDIR="$INFORMIXDIR/incl/esql"
				IFX_LIBDIR="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql"
			else
				#user specified custom withval
				if test "$withval" != "$INFORMIXDIR"; then
					INFORMIX_WARNING=2
				fi

				INFORMIXDIR="$withval"
				WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON IESQLC"
				WARN_LD_LIBRARY_PATH=1
				IFX_INCDIR="$withval/incl/esql"
				IFX_LIBDIR="-L$withval/lib -L$withval/lib/esql"
				#Make sure that installation we are looking for is on top of PATH:
				export PATH="$INFORMIXDIR/bin:$PATH"

    		fi

			if test "$INFORMIXDIR" = ""; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INFORMIXDIR still empty!" >&5
$as_echo "$as_me: WARNING: INFORMIXDIR still empty!" >&2;}
			fi

			if test "$withval" != "yes"; then
	            ADD_LD_LIBRARY_PATH="$withval/lib$A4GL_PATH_SEP$withval/lib/esql$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
            else
	            ADD_LD_LIBRARY_PATH="$INFORMIXDIR/lib$A4GL_PATH_SEP$INFORMIXDIR/lib/esql$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
			fi
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON Informix-ESQL"
			WARN_LD_LIBRARY_PATH=1

			#First check if we have esql installed at all:
			# Extract the first word of "esql", so it can be a program name with args.
set dummy esql; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_IFMX_ESQLC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $IFMX_ESQLC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_IFMX_ESQLC="$IFMX_ESQLC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_IFMX_ESQLC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_IFMX_ESQLC" && ac_cv_path_IFMX_ESQLC="no"
  ;;
esac
fi
IFMX_ESQLC=$ac_cv_path_IFMX_ESQLC
if test -n "$IFMX_ESQLC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFMX_ESQLC" >&5
$as_echo "$IFMX_ESQLC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


			if test "$enable_ac_debug" = "yes" ; then
				echo "IFMX_ESQLC='$IFMX_ESQLC'"
			fi

			if test "$IFMX_ESQLC" != "no"; then
				old_CFLAGS="$CFLAGS"; old_LDFLAGS="$LDFLAGS"; old_LIBS="$LIBS"; old_CPPFLAGS="$CPPFLAGS"
				#WARNING:new PG path must come first
				CFLAGS="-I$IFX_INCDIR -I$INFORMIXDIR/incl $CFLAGS"
				CPPFLAGS="-I$IFX_INCDIR -I$INFORMIXDIR/incl $CPPFLAGS"
				#LDFLAGS="$LDFLAGS"
				#LIBS="$PGSQL_LIBS"

				#include "esql/decimal.h"
				for ac_header in  esql/decimal.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

				if test "$ac_cv_header_esql_decimal_h" != "yes" ; then
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing esql/decimal.h - disabling Informix ESQL/C support" >&5
$as_echo "$as_me: WARNING: Missing esql/decimal.h - disabling Informix ESQL/C support" >&2;}
					IFMX_ESQLC="no"
				fi
				CFLAGS="$old_CFLAGS"; LDFLAGS="$old_LDFLAGS"; LIBS="$old_LIBS"; CPPFLAGS="$old_CPPFLAGS"
			fi


			if test "$IFMX_ESQLC" != "no"; then
				case "$IFMX_ESQLC" in
					*cygdrive*)
						if test "$GCC_MINGW" = "yes"; then
							#convert Cygwin path mapping back to native
							IFMX_ESQLC=`echo "$IFMX_ESQLC" | sed -e 's/^\/cygdrive\///' -e 's/\//:\//'`
						fi
						;;
				esac
				#must quote it in case it contins spaces in the path
				IFMX_ESQLC="'$IFMX_ESQLC'"
			fi
			if test "$enable_ac_debug" = "yes" ; then
				echo "IFMX_ESQLC='$IFMX_ESQLC'"
			fi

			if test "$cygwin" = "1"; then
				#on Windows, IBM/Informix officially supportes only
				#Micro$loth or Bordland C compiler to use ESQL/C:
				# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_MSVC_COMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $MSVC_COMP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MSVC_COMP="$MSVC_COMP" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MSVC_COMP="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_MSVC_COMP" && ac_cv_path_MSVC_COMP="no"
  ;;
esac
fi
MSVC_COMP=$ac_cv_path_MSVC_COMP
if test -n "$MSVC_COMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_COMP" >&5
$as_echo "$MSVC_COMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_MSVC_LINK" && ac_cv_path_MSVC_LINK="no"
  ;;
esac
fi
MSVC_LINK=$ac_cv_path_MSVC_LINK
if test -n "$MSVC_LINK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_LINK" >&5
$as_echo "$MSVC_LINK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


				if test "$MSVC_COMP" != "no" && test "$MSVC_LINK" != "no" ; then
	                IESQLCC_OK="OK"
                    MSVC_LINK="$MSVC_LINK /nologo"
				else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Informix ESQL/C on Windows officially supports only MS or" >&5
$as_echo "$as_me: WARNING: Informix ESQL/C on Windows officially supports only MS or" >&2;}
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Borland C compilers. Aubit will use GCC instead since" >&5
$as_echo "$as_me: WARNING: Borland C compilers. Aubit will use GCC instead since" >&2;}
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: they where not detected" >&5
$as_echo "$as_me: WARNING: they where not detected" >&2;}
					IESQLCC_OK="OK"
				fi
			else
                #on non-Windows platforms, native C compiler will do:
				IESQLCC_OK="OK"
			fi

			if test "$IFMX_ESQLC" != "no" && test "$IESQLCC_OK" = "OK";	then
				IFX_INCLUDE="-I$IFX_INCDIR"
				IFX_LFLAGS="$IFX_LIBDIR"
				if test -z "$IFX_LIBS"; then
					#Fails apparently because of single quoting:
					#IFX_LIBS=`$IFMX_ESQLC -libs | sed -e 's/-lm$//'`
					IFX_LIBS=`esql -libs | sed -e 's/-lm$//'`
										IFX_LIBS=`echo $IFX_LIBS | sed -e 's/Libraries to be used://g' -e 's/esql: error -55923: No source or object file\.//g'`
					#dnl Seems to get rid of newlines.
					#dnl According to Perl's DBD-Informix, might contain these strings.
					if test "$IFX_LIBS" = ""; then
						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cant get libraries list using" >&5
$as_echo "$as_me: WARNING: ** Cant get libraries list using" >&2;}
						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** $IFMX_ESQLC -libs" >&5
$as_echo "$as_me: WARNING: ** $IFMX_ESQLC -libs" >&2;}
						$IFMX_ESQLC -libs
						esql -libs
					else

						#WARNING: when using GCC on Windows we need to link with
						#.dll's in /bin - NOT with .lib's in /lib (as 'esql -libs'
						#will return)

						if test "$COMSPEC" != ""; then
							#Convert backslash to slash
							IFX_LIBS=`echo $IFX_LIBS | sed -e 's/\\\\/\//g'`
							#echo "IFX_LIBS=$IFX_LIBS"
							#Remove double slash-es
							IFX_LIBS=`echo $IFX_LIBS | sed -e 's/\/\//\//g'`
							#echo "IFX_LIBS=$IFX_LIBS"
							#convert lib to bin
							IFX_LIBS=`echo $IFX_LIBS | sed -e 's/\/lib\//\/bin\//g'`
							#echo "IFX_LIBS=$IFX_LIBS"
							#convert .lib to .dll
							IFX_LIBS=`echo $IFX_LIBS | sed -e 's/\.lib/\.dll/g'`
							#echo "IFX_LIBS=$IFX_LIBS"
							#They are MSCV libs - filter them out
							IFX_LIBS=`echo $IFX_LIBS | sed -e 's/netapi32\.dll//g' -e 's/wsock32\.dll//g' -e 's/user32\.dll//g' -e 's/winmm\.dll//g'`
							#echo "IFX_LIBS=$IFX_LIBS"
						fi
					fi
				else
										IFX_LIBS="$IFX_LIBS"
				fi

                old_CFLAGS="$CFLAGS"
                old_LDFLAGS="$LDFLAGS"

				if test "`uname -s 2>/dev/null`" = "AIX"; then
					IFX_CFLAGS="-D__H_LOCALEDEF"
				fi

				CFLAGS="$CFLAGS $IFX_INCLUDE $IFX_CFLAGS"
				LDFLAGS="$LDFLAGS $IFX_LDFLAGS"

				$as_echo "#define HAVE_IFX 1" >>confdefs.h

				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Informix version" >&5
$as_echo_n "checking Informix version... " >&6; }
				ESQLC_COMMAND=""
				for esqlc in esql $INFORMIXDIR/bin/esql
				do

        				if esql_output=`$esqlc -V 2>/dev/null | sed -n 1p` && test -n "$esql_output"
        				then
                				esqlv=`echo "$esql_output" |
                           				sed -e 's/.*-ESQL Version *//' \
                                   				-e 's/\\.//' -e 's/\\..*//' `
                				if test "x$esqlv" = "x"
                				then { { echo "$as_me:$LINENO: error: Version information from $esqlc -V not parsable -- $esql_output" >&5
								echo "$as_me: error: Version information from $esqlc -V not parsable -- $esql_output" >&2;}
   				{ (exit 1); exit 1; }; }
                				else
                        				echo "$as_me:$LINENO: result: $esqlc (version $esqlv)" >&5
				echo "${ECHO_T}$esqlc (version $esqlv)" >&6
                        				IFX_ESQLC_COMMAND=$esqlc
                        				IFX_ESQLC_VERSION=$esqlv
                        				IFX_ESQLC_VERTEXT="$esql_output"
					#AC_DEFINE(IFX_ESQLC_COMMAND, $IFX_ESQLC_COMMAND)
					#AC_DEFINE(IFX_ESQLC_VERSION, $IFX_ESQLC_VERSION)
					#AC_DEFINE(IFX_ESQLC_VERTEXT, $IFX_ESQLC_VERTEXT)
                        				break
		                fi
        fi
done


				if test $IFX_ESQLC_VERSION -ge "290"; then
					$as_echo "#define HAVE_IFX_IUS 1" >>confdefs.h

					IFX_ESQL_FLAGS="-EDHAVE_IFX_IUS"
				else
					IFX_ESQL_FLAGS="-EUHAVE_IFX_IUS"
				fi

                #For 4glWorks: try to understand if the product is esql/c 5+
				#aware, or is a special case, ie c4gl 4.x or is not esql/c
				#aware in any way, shape or form (ie an rds only shop)

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

				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFX_VERSION" >&5
$as_echo "$IFX_VERSION" >&6; }
				#IFX_C_MAKE="(esql -e $IFX_ESQL_FLAGS functions/ifx.ec; mv ifx.c functions)"

				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use esql" >&5
$as_echo_n "checking if we can use esql... " >&6; }
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Yes" >&5
$as_echo "Yes" >&6; }

				CFLAGS="$old_CFLAGS"
                LDFLAGS="$old_LDFLAGS"

            else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use esql" >&5
$as_echo_n "checking if we can use esql... " >&6; }
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: esql not in path or no compatible C compiler" >&5
$as_echo "esql not in path or no compatible C compiler" >&6; }
                IFMX_ESQLC="no"
            fi
		fi
	else
		INFORMIXDIR=
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-informix not specified" >&5
$as_echo "--with-informix not specified" >&6; }

fi



# Check whether --with-informixc was given.
if test "${with_informixc+set}" = set; then :
  withval=$with_informixc; DEFINFORMIXC="$withval"
fi


if test "$DEFINFORMIXC" != ""; then
INFORMIXC=$DEFINFORMIXC
fi

#on Windows, we MUST quote INFORMIXDIR
#On UNIX, we MUST NOT quote it
if test "$COMSPEC" != ""; then
	INFORMIXDIR_UNQUOTED="$INFORMIXDIR"
	INFORMIXDIR="'$INFORMIXDIR'"
fi

if test "$enable_stop_informix" = "yes" ; then
	exit
fi




## ==================================================================
##                 Checks for PostgreSQL engine
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking PostgresSQL engine:${T_ME}" >&5
$as_echo "${T_MD}Checking PostgresSQL engine:${T_ME}" >&6; }


# Check whether --with-pgsqleng was given.
if test "${with_pgsqleng+set}" = set; then :
  withval=$with_pgsqleng;
  if test "$withval" != "no"; then
    if test "$withval" = "yes"; then
		withval=/usr
		for a in /usr /usr/local  /usr/local/pgsql /usr/local/postgres
		do
			for b in $a/lib/pgsql $a/pgsql/lib $a/lib/postgresql
			do
				if test -d "$b"
				then
					withval=$a
					break
				fi
			done
		done

		if test "$PG_REG_BASEDIR_CYGPATH" != ""; then
			withval="$PG_REG_BASEDIR_CYGPATH"
		fi
    else
		#user specified custom withval
		WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON PGENGINE"
		WARN_LD_LIBRARY_PATH=1
		#WARNING:new PG path must be first
        ADD_LD_LIBRARY_PATH="$withval/lib$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
    fi
	if test "$enable_ac_debug" = "yes" ; then
		echo "withval=$withval"
	fi
        #check PostgreSQL db engine version
		export PATH="$withval/bin:$PATH"
		if test "$enable_ac_debug" = "yes" ; then
			echo "PATH=$PATH"
		fi

		# Apparently postmaster has been depreciated - look for postgres instead...
		# Extract the first word of "postgres", so it can be a program name with args.
set dummy postgres; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_POSTMASTER+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $POSTMASTER in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_POSTMASTER="$POSTMASTER" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_POSTMASTER="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_POSTMASTER" && ac_cv_path_POSTMASTER="no"
  ;;
esac
fi
POSTMASTER=$ac_cv_path_POSTMASTER
if test -n "$POSTMASTER"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTMASTER" >&5
$as_echo "$POSTMASTER" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  test -z "$ac_cv_path_POSTMASTER" && ac_cv_path_POSTMASTER="no"
  ;;
esac
fi
POSTMASTER=$ac_cv_path_POSTMASTER
if test -n "$POSTMASTER"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTMASTER" >&5
$as_echo "$POSTMASTER" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


		fi

        if test "$POSTMASTER" != "no"; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PG engine version" >&5
$as_echo_n "checking PG engine version... " >&6; }
			POSTMASTER_VER=`$POSTMASTER --version 2>&1 | head -n 1 | sed -e 's/postmaster (PostgreSQL) //'`
			#7.1.3
			case "$POSTMASTER_VER" in
				*informix*) #7.4informix1.6 - Dave's patched code
			    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTMASTER_VER" >&5
$as_echo "$POSTMASTER_VER" >&6; }
					PG_ENGINE_IFXCOMPAT=yes
		            ;;

				*-IFX) #Andrej's RPM builds
			    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTMASTER_VER" >&5
$as_echo "$POSTMASTER_VER" >&6; }
					PG_ENGINE_IFXCOMPAT=yes-old
		            ;;

				6.*.* | 7.1.* | 7.2.* | 7.3.*)
			    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTMASTER_VER" >&5
$as_echo "$POSTMASTER_VER" >&6; }
					PG_ENGINE_IFXCOMPAT=no
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Locally installed PostgreSQL db engine is" >&5
$as_echo "$as_me: WARNING: ** Locally installed PostgreSQL db engine is" >&2;}
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** NOT Informix compatible." >&5
$as_echo "$as_me: WARNING: ** NOT Informix compatible." >&2;}
					#don't reset PG_ESQLC_IFXCOMPAT because user might use
					#remote one

				    ;;
				7.*.*) #7.4.0 and up to 8
			    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTMASTER_VER" >&5
$as_echo "$POSTMASTER_VER" >&6; }
					PG_ENGINE_IFXCOMPAT=maybe
		            ;;

				*.*.*) #8 and up
			    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTMASTER_VER" >&5
$as_echo "$POSTMASTER_VER" >&6; }
					if test "$GCC_MINGW" = "yes"; then
						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: V8 on Windows - probably not" >&5
$as_echo "$as_me: WARNING: V8 on Windows - probably not" >&2;}
						PG_ENGINE_IFXCOMPAT=yes
					else
						PG_ENGINE_IFXCOMPAT=maybe
					fi
		            ;;
				*)
			    	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid version number format-$POSTMASTER_VER" >&5
$as_echo "$as_me: WARNING: Invalid version number format-$POSTMASTER_VER" >&2;}
					PG_ENGINE_IFXCOMPAT=unknown
				    ;;
	        esac

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PG engine IFX compatibility-informix_serial function" >&5
$as_echo_n "checking PG engine IFX compatibility-informix_serial function... " >&6; }
			TMPooo=`nm -A --defined-only $POSTMASTER 2>&1`
			if test "$TMPooo" != ""; then
				case "$TMPooo" in
				*no*symbols)
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
$as_echo "unknown" >&6; }
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** No symbols in PG executable" >&5
$as_echo "$as_me: WARNING: ** No symbols in PG executable" >&2;}
					;;
				*informix_serial*)
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
					#Note: how compatible is it, thats the question
					PG_ENGINE_IFXCOMPAT=yes
					;;
				*)
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown-no result from nm" >&5
$as_echo "unknown-no result from nm" >&6; }
					;;
				esac
			fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PG engine IFX compatibility" >&5
$as_echo_n "checking PG engine IFX compatibility... " >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_ENGINE_IFXCOMPAT" >&5
$as_echo "$PG_ENGINE_IFXCOMPAT" >&6; }
        else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No locally installed postmaster detected" >&5
$as_echo "$as_me: WARNING: No locally installed postmaster detected" >&2;}
		fi

	CFLAGS="$old_CFLAGS"; LDFLAGS="$old_LDFLAGS"; LIBS="$old_LIBS"; CPPFLAGS="$old_CPPFLAGS"
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
  fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-pgsqleng not specified" >&5
$as_echo "--with-pgsqleng not specified" >&6; }

fi


if test "$enable_stop_pgsqleng" = "yes" ; then
	exit
fi

if test "$LIBS" != ""; then
	echo "WARNING: (2) LIBS contains $LIBS"
fi

## ==================================================================
##                 Checks for PostgreSQL lib support
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for PostgresSQL library support:${T_ME}" >&5
$as_echo "${T_MD}Checking for PostgresSQL library support:${T_ME}" >&6; }


# Check whether --with-pgsql was given.
if test "${with_pgsql+set}" = set; then :
  withval=$with_pgsql;

  if test "$withval" != "no"; then
    if test "$withval" = "yes"; then
		#/usr/include/postgresql
		withval=/usr
		for a in /usr/pgsql /usr/postgres /usr/postgresql /usr/local/pgsql /usr/local/postgres /usr/local/postgresql  /usr /usr/local
		do
			for b in $a/include/pgsql $a/pgsql/include $a/include/postgresql $a/include/postgres $a/include
			do
				#echo "Looking $b/libpq-fe.h"

				if test -f "$b/libpq-fe.h"
				then
					#echo "Found $a ... $b"
					withval=$a
					pgsql_incldir=$b
					break
				fi
			done
		done
		if test "$PG_REG_BASEDIR_CYGPATH" != ""; then
			withval="$PG_REG_BASEDIR_CYGPATH"
		fi
    else
		#user specified custom withval
		if test "$enable_ac_debug" = "yes" ; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using custom path $withval" >&5
$as_echo "$as_me: WARNING: Using custom path $withval" >&2;}
		fi
		WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON PGESQLC"
		WARN_LD_LIBRARY_PATH=1
		#WARNING:new PG path must be first
        ADD_LD_LIBRARY_PATH="$withval/lib$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
    fi

	#Store witval for use in ecpg section
	PGSQL_WITHVAL=$withval
	if test "$pgsql_incldir" = ""; then
		#Find PG include dir under $withval
		test -d $withval/include && PGSQL_INCDIR=$withval/include
		if test "$PGSQL_INCDIR" = "" ; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Non-standard include location" >&5
$as_echo "$as_me: WARNING: Non-standard include location" >&2;}
			test -f $withval/include/pgsql/libpq-fe.h && PGSQL_INCDIR=$withval/include/pgsql
			test -f $withval/pgsql/include/libpq-fe.h && PGSQL_INCDIR=$withval/pgsql/include
			test -f $withval/include/postgresql/libpq-fe.h && PGSQL_INCDIR=$withval/include/postgresql
				#RH 7.2: /usr/include/pgsql/libpq-fe.h
			#test -d /usr/include/pgsql && PGSQL_INCDIR=/usr/include/pgsql
		fi
	else
		PGSQL_INCDIR=$pgsql_incldir
	fi
	if test "$PGSQL_INCDIR" = "" ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine include path" >&5
$as_echo "$as_me: WARNING: cannot determine include path" >&2;}
	fi


	echo "pgsql_incldir=$pgsql_incldir"


	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDE : $PGSQL_INCDIR" >&5
$as_echo "INCLUDE : $PGSQL_INCDIR" >&6; }
	#Find PG lib dir under $withval
	test -d $withval/lib && PGSQL_LIBDIR=$withval/lib
	if test "$PGSQL_LIBDIR" = "" ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Non-standard lib location" >&5
$as_echo "$as_me: WARNING: Non-standard lib location" >&2;}
		test -d $withval/lib/pgsql && PGSQL_LIBDIR=$withval/lib/pgsql
		test -d $withval/pgsql/lib && PGSQL_LIBDIR=$withval/pgsql/lib
		test -d $withval/lib/postgresql && PGSQL_LIBDIR=$withval/lib/postgresql
	fi
	if test "$PGSQL_LIBDIR" = "" ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine library path" >&5
$as_echo "$as_me: WARNING: cannot determine library path" >&2;}
	fi

	if test "$GCC_MINGW" = "yes"; then
		#MinGW GCC knows nothing about CygWin paths, need to convert back to
		#native Windows paths
		PGSQL_INCLUDE="-I`$CYGPATH -w $PGSQL_INCDIR`"
		PGSQL_LFLAGS="-L`$CYGPATH -w $PGSQL_LIBDIR`"

		#GCC has problems locating headers files when paths use backslash,
		#so we need to convert them too (proably CygWin trying to be 'smart')
		#PGSQL_INCLUDE=`echo $PGSQL_INCLUDE | tr '\\' '/'`
		#PGSQL_LFLAGS=`echo $PGSQL_LFLAGS | tr '\\' '/'`
	else
		PGSQL_INCLUDE="-I$PGSQL_INCDIR"
		PGSQL_LFLAGS="-L$PGSQL_LIBDIR"
	fi
    PGSQL_LIBS=-lpq
#configure.fin:309: error: possibly undefined macro: AC_ADD_LIBRARY_WITH_PATH
#configure.in:310: error: possibly undefined macro: AC_ADD_INCLUDE
#	AC_ADD_LIBRARY_WITH_PATH(pq, $PGSQL_LIBDIR)
#   AC_ADD_INCLUDE($PGSQL_INCDIR)

	if test "$enable_ac_debug" = "yes" ; then
		echo "PGSQL_INCLUDE=$PGSQL_INCLUDE"
		echo "PGSQL_LFLAGS=$PGSQL_LFLAGS"
		echo "PGSQL_LIBS=$PGSQL_LIBS"
	fi

    old_CFLAGS="$CFLAGS"; old_LDFLAGS="$LDFLAGS"; old_LIBS="$LIBS"; old_CPPFLAGS="$CPPFLAGS"
	#WARNING:new PG path must come first
    CFLAGS="$PGSQL_INCLUDE $CFLAGS"
	CPPFLAGS="$PGSQL_INCLUDE $CPPFLAGS"
    LDFLAGS="$PGSQL_LFLAGS $LDFLAGS"
    LIBS="$LIBS $PGSQL_LIBS"

	if test "$enable_ac_debug" = "yes" ; then
		echo "CFLAGS=$CFLAGS"
		echo "CPPFLAGS=$CPPFLAGS"
		echo "LDFLAGS=$LDFLAGS"
		echo "LIBS=$LIBS"
	fi

	if test "$GCC_MINGW" = "yes"; then
		#On Windows there is no LD_LIBRARY_PATH, and dll's are searched
		#for in PATH.
		#CygWin will do the conversion of PATH to native format automatically
		export PATH="$PGSQL_LIBDIR:$PATH"
		if test "$enable_ac_debug" = "yes" ; then
			echo "PATH set to:"
			echo "$PATH"
		fi
	fi

	# FIXME: Replace `main' with a function in `-lc':
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpq" >&5
$as_echo_n "checking for main in -lpq... " >&6; }
if ${ac_cv_lib_pq_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpq  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pq_main=yes
else
  ac_cv_lib_pq_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_main" >&5
$as_echo "$ac_cv_lib_pq_main" >&6; }
if test "x$ac_cv_lib_pq_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPQ 1
_ACEOF

  LIBS="-lpq $LIBS"

fi


	if test "$ac_cv_lib_pq_main" = "yes"; then
		HAS_LIB_PQ=1

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQresultErrorField in -lpq" >&5
$as_echo_n "checking for PQresultErrorField in -lpq... " >&6; }
if ${ac_cv_lib_pq_PQresultErrorField+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpq  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char PQresultErrorField ();
int
main ()
{
return PQresultErrorField ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pq_PQresultErrorField=yes
else
  ac_cv_lib_pq_PQresultErrorField=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQresultErrorField" >&5
$as_echo "$ac_cv_lib_pq_PQresultErrorField" >&6; }
if test "x$ac_cv_lib_pq_PQresultErrorField" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPQ 1
_ACEOF

  LIBS="-lpq $LIBS"

fi

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQfreemem in -lpq" >&5
$as_echo_n "checking for PQfreemem in -lpq... " >&6; }
if ${ac_cv_lib_pq_PQfreemem+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpq  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char PQfreemem ();
int
main ()
{
return PQfreemem ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pq_PQfreemem=yes
else
  ac_cv_lib_pq_PQfreemem=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQfreemem" >&5
$as_echo "$ac_cv_lib_pq_PQfreemem" >&6; }
if test "x$ac_cv_lib_pq_PQfreemem" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPQ 1
_ACEOF

  LIBS="-lpq $LIBS"

fi

   		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetNoticeReceiver in -lpq" >&5
$as_echo_n "checking for PQsetNoticeReceiver in -lpq... " >&6; }
if ${ac_cv_lib_pq_PQsetNoticeReceiver+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpq  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char PQsetNoticeReceiver ();
int
main ()
{
return PQsetNoticeReceiver ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pq_PQsetNoticeReceiver=yes
else
  ac_cv_lib_pq_PQsetNoticeReceiver=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetNoticeReceiver" >&5
$as_echo "$ac_cv_lib_pq_PQsetNoticeReceiver" >&6; }
if test "x$ac_cv_lib_pq_PQsetNoticeReceiver" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPQ 1
_ACEOF

  LIBS="-lpq $LIBS"

fi


		# Cant see this being used anywhere...
		#AC_CHECK_LIB([pq], [last_path_separator])

	    #AC_CHECK_FUNC(PQresultErrorField,AC_DEFINE(HAVE_PQresultErrorField))

		#needed by native PG connector:
		HAVE_PG_ESQL_HEADERS_LIB=no
		for ac_header in  libpq-fe.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

		if test "$ac_cv_header_libpq_fe_h" != "yes" ; then
			for ac_header in  pgsql/libpq-fe.h postgresql/libpq-fe.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

			if test "$ac_cv_header_pgsql_libpq_fe_h" = "yes"; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Non-standard location of libpq-fe.h (pgsql)" >&5
$as_echo "$as_me: WARNING: Non-standard location of libpq-fe.h (pgsql)" >&2;}
				HAVE_PG_ESQL_HEADERS_LIB=yes
				PGSQL_INCLUDE="$PGSQL_INCLUDE -I$PGSQL_INCDIR/pgsql"
			fi
			if test "$ac_cv_header_postgresql_libpq_fe_h" = "yes"; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Non-standard location of libpq-fe.h (postgresql)" >&5
$as_echo "$as_me: WARNING: Non-standard location of libpq-fe.h (postgresql)" >&2;}
				HAVE_PG_ESQL_HEADERS_LIB=yes
				PGSQL_INCLUDE="$PGSQL_INCLUDE -I$PGSQL_INCDIR/postgresql"
			fi
		else
			#Note: this is NOT same as HAVE_PG_ESQL_HEADERS test in ecpg section
			HAVE_PG_ESQL_HEADERS_LIB=yes
		fi
	fi

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PG ESQL connector support" >&5
$as_echo_n "checking PG ESQL connector support... " >&6; }
	if test "$HAS_LIB_PQ" = "1" ; then
		if test "$AUBIT_SOURCE" = "1" ; then
			if test "$HAVE_PG_ESQL_HEADERS_LIB" = "yes"; then
				$as_echo "#define HAVE_PGSQL 1" >>confdefs.h

				HAVE_PGSQL_LIB=yes
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Yes" >&5
$as_echo "Yes" >&6; }
				ac_fn_c_check_func "$LINENO" "PQcmdTuples" "ac_cv_func_PQcmdTuples"
if test "x$ac_cv_func_PQcmdTuples" = xyes; then :
  $as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h

fi

			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: NO (missing headers)" >&5
$as_echo "NO (missing headers)" >&6; }
			fi
		else
			$as_echo "#define HAVE_PGSQL 1" >>confdefs.h

			HAVE_PGSQL_LIB=yes
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Yes" >&5
$as_echo "Yes" >&6; }
			ac_fn_c_check_func "$LINENO" "PQcmdTuples" "ac_cv_func_PQcmdTuples"
if test "x$ac_cv_func_PQcmdTuples" = xyes; then :
  $as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h

fi

		fi
    else
        HAVE_PGSQL_LIB=no
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: NO (missing library)" >&5
$as_echo "NO (missing library)" >&6; }
    fi

	CFLAGS="$old_CFLAGS"; LDFLAGS="$old_LDFLAGS"; LIBS="$old_LIBS"; CPPFLAGS="$old_CPPFLAGS"
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
  fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-pgsql not specified" >&5
$as_echo "--with-pgsql not specified" >&6; }

fi


if test "$enable_stop_pgsql" = "yes" ; then
	exit
fi

## ==================================================================
##                 Checks for PostgreSQL ESQL/C pre-compiler
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for PostgresSQL ESQL pre-compiler:${T_ME}" >&5
$as_echo "${T_MD}Checking for PostgresSQL ESQL pre-compiler:${T_ME}" >&6; }


# Check whether --with-ecpg was given.
if test "${with_ecpg+set}" = set; then :
  withval=$with_ecpg;
if test "$HAS_LIB_PQ" != "1"; then
    withval="no"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabled testing for PG ESQL compiler - libpg was not detected" >&5
$as_echo "$as_me: WARNING: Disabled testing for PG ESQL compiler - libpg was not detected" >&2;}
fi

if test "$withval" != "no"; then
	if test "$withval" = "yes"; then
		withval=/usr
		for a in /usr /usr/local  /usr/local/pgsql /usr/local/postgres
		do
			for b in $a/bin
			do
				if test -x "$b/ecpg"
				then
					withval=$a
					break
				fi
			done
		done
		if test "$PG_REG_BASEDIR_CYGPATH" != ""; then
			withval="$PG_REG_BASEDIR_CYGPATH"
		fi
	else
		if test "$enable_ac_debug" = "yes" ; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using custom path $withval" >&5
$as_echo "$as_me: WARNING: Using custom path $withval" >&2;}
		fi
    fi

	export PATH="$withval/bin:$PATH"
	# Extract the first word of "ecpg", so it can be a program name with args.
set dummy ecpg; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PG_ESQLC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PG_ESQLC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PG_ESQLC="$PG_ESQLC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$withval/bin:$PATH"
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PG_ESQLC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_PG_ESQLC" && ac_cv_path_PG_ESQLC="no"
  ;;
esac
fi
PG_ESQLC=$ac_cv_path_PG_ESQLC
if test -n "$PG_ESQLC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_ESQLC" >&5
$as_echo "$PG_ESQLC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



	if test "$COMSPEC" != "" -a "$PG_ESQLC" != "no"; then
		#Convert back to native Windows path
		PG_ESQLC="`$CYGPATH --mixed $PG_ESQLC`"
		echo "Converted back to native path: $PG_ESQLC"
	fi

	if test "$PG_ESQLC" != "no"; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PG ESQL Informix compatibility" >&5
$as_echo_n "checking PG ESQL Informix compatibility... " >&6; }
		#First, with -v
		PG_ESQLC_VERSION=`$PG_ESQLC -v 2>&1  | head -n 1 | sed -e 's/ecpg - the postgresql preprocessor, version: //' | sed -e 's/ecpg, the PostgreSQL embedded C preprocessor, version //'`
		#Fri Jul 18 16:31:10 CEST 2003
		#        - Set ecpg version to 3.0.0
		#        - Set ecpg library to 4.0.0
		#        - Set pgtypes library to 1.0.0
		#        - Set compat library to 1.0.0

		if test "$PG_ESQLC_VERSION" != ""; then
			case "$PG_ESQLC_VERSION" in

				2.* | 1.*)
			    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No-$PG_ESQLC_VERSION" >&5
$as_echo "No-$PG_ESQLC_VERSION" >&6; }
					PG_ESQLC_IFXCOMPAT=no
				    ;;
				3.*.*) #3.0.0 and up
			    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Maybe-$PG_ESQLC_VERSION" >&5
$as_echo "Maybe-$PG_ESQLC_VERSION" >&6; }
					PG_ESQLC_IFXCOMPAT=maybe
					PG_ESQLC_V3=1
				;;
				4.*.*) #4.0.0 and up
			    		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Maybe-$PG_ESQLC_VERSION" >&5
$as_echo "Maybe-$PG_ESQLC_VERSION" >&6; }
					PG_ESQLC_IFXCOMPAT=maybe
					PG_ESQLC_V3=1
		            	;;
				*)
			    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No-Invalid version number format-$PG_ESQLC_VERSION" >&5
$as_echo "No-Invalid version number format-$PG_ESQLC_VERSION" >&6; }
					PG_ESQLC_IFXCOMPAT=no
				    ;;
	        esac
        else
	    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No-Cannot read version number" >&5
$as_echo "No-Cannot read version number" >&6; }
			PG_ESQLC_IFXCOMPAT=no
        fi

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PG ESQL Informix compatibility" >&5
$as_echo_n "checking PG ESQL Informix compatibility... " >&6; }
		#Now with --version
		#ecpg (PostgreSQL 7.4informix1.6) 3.0.0
		if test "$enable_ac_debug" = "yes" ; then
			$PG_ESQLC --version 2>&1 | sed -e 's/ecpg (PostgreSQL //' | sed -e 's/)//'
		fi
		PG_ESQLC_VERSION2=`$PG_ESQLC --version 2>&1  | head -n 1 | sed -e 's/ecpg (PostgreSQL //' | sed -e 's/)//' | awk '{print $1}'`
		if test "$PG_ESQLC_VERSION2" != ""; then
			case "$PG_ESQLC_VERSION2" in

				*informix*)
			    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Yes-$PG_ESQLC_VERSION $PG_ESQLC_VERSION2" >&5
$as_echo "Yes-$PG_ESQLC_VERSION $PG_ESQLC_VERSION2" >&6; }
					PG_ESQLC_IFXCOMPAT=yes
		            ;;
				*)
					if test "$PG_ESQLC_V3" != "1"; then
				    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No-'informix' identifier not found-$PG_ESQLC_VERSION $PG_ESQLC_VERSION2" >&5
$as_echo "No-'informix' identifier not found-$PG_ESQLC_VERSION $PG_ESQLC_VERSION2" >&6; }
						PG_ESQLC_IFXCOMPAT=no
						case $PG_ESQLC_VERSION2 in
							8.*) 	PG_ESQLC_IFXCOMPAT=yes
								PG_ESQLC_HASV3=1
								{ $as_echo "$as_me:${as_lineno-$LINENO}: result: allow it anyway - set HASV3" >&5
$as_echo "allow it anyway - set HASV3" >&6; }
							;;
							*) 	PG_ESQLC_IFXCOMPAT=no
								{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not allowed" >&5
$as_echo "not allowed" >&6; }
							;;
						esac
					else
				    		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No-'informix' identifier not found-$PG_ESQLC_VERSION $PG_ESQLC_VERSION2" >&5
$as_echo "No-'informix' identifier not found-$PG_ESQLC_VERSION $PG_ESQLC_VERSION2" >&6; }
						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: recent ECPG so will allow it anyway" >&5
$as_echo "recent ECPG so will allow it anyway" >&6; }
						PG_ESQLC_IFXCOMPAT=yes
					fi
				    ;;
	        esac
        else
	    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No-Cannot read version number" >&5
$as_echo "No-Cannot read version number" >&6; }
			PG_ESQLC_IFXCOMPAT=no
        fi

		#Check paths
		if test -d "$withval/include"; then
			ECPG_INCDIR="$withval/include"
			if test "$GCC_MINGW" = "yes"; then
				ECPG_IFLAGS="-I`$CYGPATH -w $ECPG_INCDIR`"
				#ECPG_IFLAGS=`echo $ECPG_IFLAGS | tr '\\' '/'`
			else
				ECPG_IFLAGS="-I$ECPG_INCDIR"
			fi
		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine include path under $withval" >&5
$as_echo "$as_me: WARNING: cannot determine include path under $withval" >&2;}
		fi
		if test -d "$withval/lib" ; then
			ECPG_LIBDIR="$withval/lib"
		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine library path under $withval" >&5
$as_echo "$as_me: WARNING: cannot determine library path under $withval" >&2;}
		fi

		if test -f "$ECPG_INCDIR/postgresql/informix/esql/ecpg_informix.h"; then
			ECPG_IFLAGS="$ECPG_IFLAGS -I$ECPG_INCDIR/postgresql/informix/esql"
			if test "$enable_ac_debug" = "yes" ; then
				echo "Found ecpg_informix.h in $ECPG_INCDIR/postgresql/informix/esql"
			fi
		elif test -f "$ECPG_INCDIR/pgsql/informix/esql/ecpg_informix.h"; then
			ECPG_IFLAGS="$ECPG_IFLAGS -I$ECPG_INCDIR/pgsql/informix/esql"
			if test "$enable_ac_debug" = "yes" ; then
				echo "Found ecpg_informix.h in $ECPG_INCDIR/pgsql/informix/esql"
			fi
		elif test -f "$ECPG_INCDIR/ecpg_informix.h"; then
			#In Dave's patched tarball they are now in incl/
			#/usr2/pg-ifx/install/include/ecpg_informix.h
			if test "$enable_ac_debug" = "yes" ; then
				echo "Found ecpg_informix.h in $ECPG_INCDIR"
			fi
		elif test -f "$ECPG_INCDIR/pgsql/ecpg_informix.h"; then
			#SuSE RPMs
			if test "$enable_ac_debug" = "yes" ; then
				echo "Found ecpg_informix.h in $ECPG_INCDIR/pgsql"
			fi
		elif test -f "$ECPG_INCDIR/postgresql/ecpg_informix.h"; then
			#reported on mailing list - Debian's standard PostgresSQL
			if test "$enable_ac_debug" = "yes" ; then
				echo "Found ecpg_informix.h in $ECPG_INCDIR/postgresql"
			fi
		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** cannot find Informix compatibility header (ecpg_informix.h) at " >&5
$as_echo "$as_me: WARNING: ** cannot find Informix compatibility header (ecpg_informix.h) at " >&2;}
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** $ECPG_INCDIR/postgresql/informix/esql" >&5
$as_echo "$as_me: WARNING: ** $ECPG_INCDIR/postgresql/informix/esql" >&2;}
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** ...or..." >&5
$as_echo "$as_me: WARNING: ** ...or..." >&2;}
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** $ECPG_INCDIR/pgsql/informix/esql" >&5
$as_echo "$as_me: WARNING: ** $ECPG_INCDIR/pgsql/informix/esql" >&2;}
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** ...or..." >&5
$as_echo "$as_me: WARNING: ** ...or..." >&2;}
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** $ECPG_INCDIR" >&5
$as_echo "$as_me: WARNING: ** $ECPG_INCDIR" >&2;}
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** ...or..." >&5
$as_echo "$as_me: WARNING: ** ...or..." >&2;}
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** $ECPG_INCDIR/pgsql" >&5
$as_echo "$as_me: WARNING: ** $ECPG_INCDIR/pgsql" >&2;}
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** ...or..." >&5
$as_echo "$as_me: WARNING: ** ...or..." >&2;}
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** $ECPG_INCDIR/postgresql" >&5
$as_echo "$as_me: WARNING: ** $ECPG_INCDIR/postgresql" >&2;}

		fi

		#In case we are working from not installed CVS code:
		#ECPG_LFLAGS="-L$withval/compatlib -L$withval/ecpglib -L$withval/pgtypeslib"

		#we at least need to know if we have headers
		#for compiling things like SQL_c_ecpg that do not need IFX compatibility

		#Make sure we have libpq -
        if test "$PGSQL_WITHVAL" = ""; then
			as_fn_error $? "libpq detection was disabled. Please add --with-pgsql and try again" "$LINENO" 5
        fi

		#Finally, the one in CVS code installed by our install.xxx target:
		#/opt/aubit/aubit4glsrc/pgsql-server/src/interfaces/libpq/libpq-fe.h
		#NOTE: can't use this one, all other PG headers we need are not there...
		#test -d $withval/../libpq && PGSQL_INCDIR=$withval/../libpq

		if test "$enable_ac_debug" = "yes" ; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ----BEFORE----" >&5
$as_echo "----BEFORE----" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS=$CFLAGS" >&5
$as_echo "CFLAGS=$CFLAGS" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS=$CPPFLAGS" >&5
$as_echo "CPPFLAGS=$CPPFLAGS" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS=$LDFLAGS" >&5
$as_echo "LDFLAGS=$LDFLAGS" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS=$LIBS" >&5
$as_echo "LIBS=$LIBS" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ECPG_IFLAGS=$ECPG_IFLAGS" >&5
$as_echo "ECPG_IFLAGS=$ECPG_IFLAGS" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PGSQL_INCDIR=$PGSQL_INCDIR" >&5
$as_echo "PGSQL_INCDIR=$PGSQL_INCDIR" >&6; }
		fi

	    old_CFLAGS="$CFLAGS"; old_LDFLAGS="$LDFLAGS"; old_LIBS="$LIBS"; old_CPPFLAGS="$CPPFLAGS"
	    #WARNING: PG paths need to be at beginig

		if test "$GCC_MINGW" = "yes"; then
			PGSQL_IFLAGS="-I`$CYGPATH -w $PGSQL_INCDIR`"
			ECPG_LFLAGS="-L`$CYGPATH -w $ECPG_LIBDIR`"
			#PGSQL_IFLAGS=`echo $PGSQL_IFLAGS | tr '\\' '/'`
			#ECPG_LFLAGS=`echo $ECPG_LFLAGS | tr '\\' '/'`
		else
			PGSQL_IFLAGS="-I$PGSQL_INCDIR"
			ECPG_LFLAGS="-L$ECPG_LIBDIR"
		fi

		CFLAGS="$PGSQL_IFLAGS $ECPG_IFLAGS $CFLAGS"
		CPPFLAGS="$PGSQL_IFLAGS $ECPG_IFLAGS $CPPFLAGS"
		#LDFLAGS="$PGSQL_LFLAGS $LDFLAGS"
		LDFLAGS="$ECPG_LFLAGS $LDFLAGS"
		LIBS="$LIBS $PGSQL_LIBS";

		export CFLAGS LDFLAGS LIBS CPPFLAGS
		if test "$enable_ac_debug" = "yes" ; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ----AFTER----" >&5
$as_echo "----AFTER----" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS=$CFLAGS" >&5
$as_echo "CFLAGS=$CFLAGS" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS=$CPPFLAGS" >&5
$as_echo "CPPFLAGS=$CPPFLAGS" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS=$LDFLAGS" >&5
$as_echo "LDFLAGS=$LDFLAGS" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS=$LIBS" >&5
$as_echo "LIBS=$LIBS" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ECPG_IFLAGS=$ECPG_IFLAGS" >&5
$as_echo "ECPG_IFLAGS=$ECPG_IFLAGS" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PGSQL_INCDIR=$PGSQL_INCDIR" >&5
$as_echo "PGSQL_INCDIR=$PGSQL_INCDIR" >&6; }
		fi
        #reset:
		unset ac_cv_header_libpq_fe_h
		unset ac_cv_header_pgsql_libpq_fe_h
		unset ac_cv_header_postgresql_libpq_fe_h

		#libpq-fe.h hader is NOT part of ecpg, its part of libpq
		for ac_header in  libpq-fe.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

		#Note: this is NOT same as HAVE_PG_ESQL_HEADERS test in ecpg section
		HAVE_PG_ESQL_HEADERS_LIB=no
		if test "$ac_cv_header_libpq_fe_h" != "yes" ; then
			for ac_header in  pgsql/libpq-fe.h postgresql/libpq-fe.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

			if test "$ac_cv_header_pgsql_libpq_fe_h" = "yes" ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Non-standard location of libpq-fe.h (pgsql)" >&5
$as_echo "$as_me: WARNING: Non-standard location of libpq-fe.h (pgsql)" >&2;}
				HAVE_PG_ESQL_HEADERS_LIB=yes
				PG_ESQL_HEADERS_LIB_SUFIX="pgsql"
			fi
			if test "$ac_cv_header_postgresql_libpq_fe_h" = "yes"; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Non-standard location of libpq-fe.h (postgresql)" >&5
$as_echo "$as_me: WARNING: Non-standard location of libpq-fe.h (postgresql)" >&2;}
				HAVE_PG_ESQL_HEADERS_LIB=yes
				PG_ESQL_HEADERS_LIB_SUFIX="postgresql"
			fi
		else
			HAVE_PG_ESQL_HEADERS_LIB=yes
			PG_ESQL_HEADERS_LIB_SUFIX=""
		fi

		#Add suffix needed for libpq-fe.h included from ecpglib.h
		LIBPQ_FE_H_IFLAGS="-I$PGSQL_INCDIR/$PG_ESQL_HEADERS_LIB_SUFIX"
		#Why was this here?
		#/usr/include/pgsql/ecpgtype.h
		#LIBPQ_FE_H_IFLAGS="$LIBPQ_FE_H_IFLAGS -I/usr/include/$PG_ESQL_HEADERS_LIB_SUFIX"
		CPPFLAGS="$LIBPQ_FE_H_IFLAGS $CPPFLAGS"
		if test "$enable_ac_debug" = "yes" ; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: added LIBPQ_FE_H_IFLAGS=$LIBPQ_FE_H_IFLAGS to CPPFLAGS:" >&5
$as_echo "added LIBPQ_FE_H_IFLAGS=$LIBPQ_FE_H_IFLAGS to CPPFLAGS:" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS=$CPPFLAGS" >&5
$as_echo "CPPFLAGS=$CPPFLAGS" >&6; }
		fi

		#headers needed to make libSQL_c_ecpg.so (esql_simple_ecpg.c):
		#When testing for ecpglib.h, we allready need to know where is
		#libpq-fe.h because ecpglib.h includes it - WITHOUT A PATH!
		for ac_header in  ecpgtype.h ecpglib.h ecpgerrno.h sqlca.h sql3types.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

		#AC_CHECK_HEADERS([ pgsql/ecpgtype.h pgsql/ecpglib.h pgsql/ecpgerrno.h pgsql/sqlca.h pgsql/sql3types.h ])

		unset ac_cv_header_pgsql_informix_esql_decimal_h
		unset ac_cv_header_postgresql_informix_esql_decimal_h
		HAVE_PG_ESQL_DECIMAL_H=no

		if test -f $PGSQL_INCDIR/informix/esql/decimal.h
		then
			HAVE_PG_ESQL_DECIMAL_H=yes
			          HAVE_PG_INFORMIX_ESQL_DECIMAL_H=yes

$as_echo "#define HAVE_PG_INFORMIX_ESQL_DECIMAL_H 1" >>confdefs.h

		fi

		if test -f $PGSQL_INCDIR/pgsql/informix/esql/decimal.h
		then
                       	HAVE_PG_ESQL_DECIMAL_H=yes
                                  HAVE_PGSQL_INFORMIX_ESQL_DECIMAL_H=yes

$as_echo "#define HAVE_PGSQL_INFORMIX_ESQL_DECIMAL_H 1" >>confdefs.h

		fi

		if test -f $PGSQL_INCDIR/postgresql/informix/esql/decimal.h
		then
			HAVE_PG_ESQL_DECIMAL_H=yes
			          HAVE_POSTGRESQL_INFORMIX_ESQL_DECIMAL_H=yes

$as_echo "#define HAVE_POSTGRESQL_INFORMIX_ESQL_DECIMAL_H 1" >>confdefs.h

		fi


		old_xCFLAGS="$CFLAGS"
		if test "$HAVE_PG_ESQL_DECIMAL_H" = "no"
		then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Double checking for PG Decimal.h in $PGSQL_INCDIR" >&5
$as_echo_n "checking Double checking for PG Decimal.h in $PGSQL_INCDIR... " >&6; }
			unset ac_cv_header_informix_esql_decimal_h
			CFLAGS="$CFLAGS -I$PGSQL_INCDIR"
			for ac_header in  informix/esql/decimal.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

			if test "$ac_cv_header_informix_esql_decimal_h" = "yes" ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Found PGSQL decimal.h in informix/esql/decimal.h" >&5
$as_echo "Found PGSQL decimal.h in informix/esql/decimal.h" >&6; }
				HAVE_PG_ESQL_DECIMAL_H=yes
				HAVE_PG_INFORMIX_ESQL_DECIMAL_H=yes

$as_echo "#define HAVE_PG_INFORMIX_ESQL_DECIMAL_H 1" >>confdefs.h

			fi
		fi
		CFLAGS="$old_xCFLAGS"


		if test "$HAVE_PG_ESQL_DECIMAL_H" != "yes"; then
			unset ac_cv_header_decimal_h
			for ac_header in  decimal.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

			if test "$ac_cv_header_decimal_h" = "yes" ; then
				HAVE_PG_ESQL_DECIMAL_H=yes
				if test -f "$withval/include/decimal.h" ; then
					#Should be OK as long as -I$withval/include is in front
					#of all others
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal.h found in $withval/include" >&5
$as_echo "$as_me: WARNING: decimal.h found in $withval/include" >&2;}
				else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal.h found - but not sure where" >&5
$as_echo "$as_me: WARNING: decimal.h found - but not sure where" >&2;}
				fi
			fi
		fi

		if test "$PG_ESQLC_V3" = "1"; then
			#On Windows (ecpg 3.2.0) there is no decimal.h - seems to be in ecpg_informix.h now
			HAVE_PG_ESQL_DECIMAL_H=yes
			if test "$enable_ac_debug" = "yes" ; then
				echo "On Windows - ignoring missing decimal.h - using ecpg_informix.h instead"
			fi
		fi

		if test "$ac_cv_header_ecpgtype_h" = "yes" \
				-a "$ac_cv_header_ecpglib_h" = "yes" \
				-a "$ac_cv_header_ecpgerrno_h" = "yes" \
				-a "$ac_cv_header_sqlca_h" = "yes" \
				-a "$ac_cv_header_sql3types_h" = "yes" \
				-a "$HAVE_PG_ESQL_HEADERS_LIB" = "yes";
		then
			HAVE_PG_ESQL_HEADERS=yes

			if test "$HAVE_PG_ESQL_DECIMAL_H" != "yes"; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find ECPG Informix compatibility headers" >&5
$as_echo "$as_me: WARNING: ** Cannot find ECPG Informix compatibility headers" >&2;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** (decimal.h) - this ECPG is NOT Informix compatible." >&5
$as_echo "$as_me: WARNING: ** (decimal.h) - this ECPG is NOT Informix compatible." >&2;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** A4GL_LEX=EC with A4GL_LEXDIALECT=POSTGRES" >&5
$as_echo "$as_me: WARNING: ** A4GL_LEX=EC with A4GL_LEXDIALECT=POSTGRES" >&2;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** will not work correctly and should NOT be used." >&5
$as_echo "$as_me: WARNING: ** will not work correctly and should NOT be used." >&2;}
				PG_ESQLC_IFXCOMPAT=no
				#TODO: disable PG ESQLC Aubit mode, since it wont work
				#Do not disable ecpg, sice it can still be used to compile
				#libSQL_pg
			else
				PG_ESQLC_IFXCOMPAT=yes
				#Note: this is relative - all we did is test ecpg version and
				#presence of headers. Since PG Informix compatibility depends
				#on patches independent of official PG CVS, it is possible we
				#have ecpg that does have high enough version, and does have
				#Informix compatibility headers, and accepts -C INFORMIX flag,
				#but is not patched. Even if ecpg is 100% OK and Informix compatible,
				#we still need Informix patched and compatible PG engine, on the same
				#patch level with that ecpg, or things won't work again.
				#Presently, we have no way to verify any of this, other then to
				#run all suite of Aubit regression tests against it. Version numbers
				#for both ecpg and postmaster at the moment mean very little, as
				#most of the Informix compatibility functionality depends on
				#independent pathces. Please see this links for more information:
				# http://gborg.postgresql.org/project/pginformix/projdisplay.php
				# Downloads: http://informix.postgresintl.com/
				# http://informix.fastcrypt.com/
				#Contact: Dave Cramer [dave@fastcrypt.com]
				#Michael Meskes [Michael.Meskes@credativ.de]
				#Mike Aubury [mike.aubury@aubit.com]
			fi
        else
		    HAVE_PG_ESQL_HEADERS=no
        fi

		if test "$HAVE_PG_ESQL_HEADERS" = "yes" ; then
			ECPG_IFLAGS="$ECPG_IFLAGS -I$PGSQL_INCDIR"

			#FIXME: how do we check for libraries versions?
			#also check versions of:
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lecpg" >&5
$as_echo_n "checking for main in -lecpg... " >&6; }
if ${ac_cv_lib_ecpg_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lecpg  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ecpg_main=yes
else
  ac_cv_lib_ecpg_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ecpg_main" >&5
$as_echo "$ac_cv_lib_ecpg_main" >&6; }
if test "x$ac_cv_lib_ecpg_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBECPG 1
_ACEOF

  LIBS="-lecpg $LIBS"

fi


			#apparently pgtypes and ecpg_compat are present only
			#in version 3.x and up. They are specified in bin/ecpg_wrap 4glc(compile.c)
			#lib/extra_lib/esqlc/make_static lib/libesql/Makefile
			#lib/libsql/esqlc/Makefile
			#So it looks like that eanything in Aubit that uses ecpg needs
			#both of them - CHECK THIS
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECPGget_PGconn in -lecpg" >&5
$as_echo_n "checking for ECPGget_PGconn in -lecpg... " >&6; }
if ${ac_cv_lib_ecpg_ECPGget_PGconn+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lecpg  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ECPGget_PGconn ();
int
main ()
{
return ECPGget_PGconn ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ecpg_ECPGget_PGconn=yes
else
  ac_cv_lib_ecpg_ECPGget_PGconn=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ecpg_ECPGget_PGconn" >&5
$as_echo "$ac_cv_lib_ecpg_ECPGget_PGconn" >&6; }
if test "x$ac_cv_lib_ecpg_ECPGget_PGconn" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBECPG 1
_ACEOF

  LIBS="-lecpg $LIBS"

fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ecpg_get_connection in -lecpg" >&5
$as_echo_n "checking for ecpg_get_connection in -lecpg... " >&6; }
if ${ac_cv_lib_ecpg_ecpg_get_connection+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lecpg  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ecpg_get_connection ();
int
main ()
{
return ecpg_get_connection ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ecpg_ecpg_get_connection=yes
else
  ac_cv_lib_ecpg_ecpg_get_connection=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ecpg_ecpg_get_connection" >&5
$as_echo "$ac_cv_lib_ecpg_ecpg_get_connection" >&6; }
if test "x$ac_cv_lib_ecpg_ecpg_get_connection" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBECPG 1
_ACEOF

  LIBS="-lecpg $LIBS"

fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECPGget_connection in -lecpg" >&5
$as_echo_n "checking for ECPGget_connection in -lecpg... " >&6; }
if ${ac_cv_lib_ecpg_ECPGget_connection+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lecpg  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ECPGget_connection ();
int
main ()
{
return ECPGget_connection ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ecpg_ECPGget_connection=yes
else
  ac_cv_lib_ecpg_ECPGget_connection=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ecpg_ECPGget_connection" >&5
$as_echo "$ac_cv_lib_ecpg_ECPGget_connection" >&6; }
if test "x$ac_cv_lib_ecpg_ECPGget_connection" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBECPG 1
_ACEOF

  LIBS="-lecpg $LIBS"

fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpgtypes" >&5
$as_echo_n "checking for main in -lpgtypes... " >&6; }
if ${ac_cv_lib_pgtypes_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpgtypes  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pgtypes_main=yes
else
  ac_cv_lib_pgtypes_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pgtypes_main" >&5
$as_echo "$ac_cv_lib_pgtypes_main" >&6; }
if test "x$ac_cv_lib_pgtypes_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPGTYPES 1
_ACEOF

  LIBS="-lpgtypes $LIBS"

fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lecpg_compat" >&5
$as_echo_n "checking for main in -lecpg_compat... " >&6; }
if ${ac_cv_lib_ecpg_compat_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lecpg_compat  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ecpg_compat_main=yes
else
  ac_cv_lib_ecpg_compat_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ecpg_compat_main" >&5
$as_echo "$ac_cv_lib_ecpg_compat_main" >&6; }
if test "x$ac_cv_lib_ecpg_compat_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBECPG_COMPAT 1
_ACEOF

  LIBS="-lecpg_compat $LIBS"

fi


			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PG ESQL librarys compatibility" >&5
$as_echo_n "checking PG ESQL librarys compatibility... " >&6; }
			if test "$ac_cv_lib_ecpg_main" = "yes" \
					-a "$ac_cv_lib_pgtypes_main" = "yes" \
					-a "$ac_cv_lib_ecpg_compat_main" = "yes"; then
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
$as_echo "OK" >&6; }
                    #POSTGRESDIR is really a ecpg installation dir, but...
					if test "$GCC_MINGW" = "yes"; then
						POSTGRESDIR="`$CYGPATH -w $withval`"
					else
						POSTGRESDIR=$withval
					fi

			if test "$ac_cv_lib_ecpg_ECPGget_PGconn" = "yes"
			then
			    	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ecpg has ECPGGET_PGCONN" >&5
$as_echo "$as_me: WARNING: ecpg has ECPGGET_PGCONN" >&2;}
				ECPG_HAVE_ECPGGET_PGCONN=1
				$as_echo "#define HAVE_ECPGGET_PGCONN 1" >>confdefs.h

			fi
			if test "$ac_cv_lib_ecpg_ecpg_get_connection" = "yes"
			then
			    	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ecpg has ecpg_get_connection" >&5
$as_echo "$as_me: WARNING: ecpg has ecpg_get_connection" >&2;}
				ECPG_HAVE_ECPG_GET_CONNECTION=1
				$as_echo "#define HAVE_ECPG_GET_CONNECTION 1" >>confdefs.h

			fi
			if test "$ac_cv_lib_ecpg_ECPGget_connection" = "yes"
			then
			    	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ecpg has ecpgget_connection" >&5
$as_echo "$as_me: WARNING: ecpg has ecpgget_connection" >&2;}
				ECPG_HAVE_ECPGGET_CONNECTION=1
				$as_echo "#define HAVE_ECPGGET_CONNECTION 1" >>confdefs.h

			fi
            else
	                PG_ESQLC_IFXCOMPAT=no
	                PG_ESQLC=no
			    	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabled ecpg - no libs" >&5
$as_echo "$as_me: WARNING: Disabled ecpg - no libs" >&2;}
			fi
		else
            PG_ESQLC_IFXCOMPAT=no
            PG_ESQLC=no
		  	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabled ecpg - no headers" >&5
$as_echo "$as_me: WARNING: Disabled ecpg - no headers" >&2;}
	    fi

		CFLAGS="$old_CFLAGS"; LDFLAGS="$old_LDFLAGS"; LIBS="$old_LIBS"; CPPFLAGS="$old_CPPFLAGS"
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No - ecpg not found" >&5
$as_echo "No - ecpg not found" >&6; }
	fi
else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-ecpg not specified" >&5
$as_echo "--with-ecpg not specified" >&6; }

fi


if test "$enable_stop_ecpg" = "yes" ; then
	exit
fi

## ==================================================================
##   Check all PostgreSQL components for Aubit/Informix compatibility
## ==================================================================

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Check for postgres - 1-$POSTMASTER 2-$PGSQL_LIBS 3-$HAS_LIB_PQ 4-$HAVE_PGSQL_LIB 5-$PG_ESQLC " >&5
$as_echo_n "checking Check for postgres - 1-$POSTMASTER 2-$PGSQL_LIBS 3-$HAS_LIB_PQ 4-$HAVE_PGSQL_LIB 5-$PG_ESQLC ... " >&6; }

if test "$POSTMASTER" != "" -a "$PGSQL_LIBS" != "" -a "$HAS_LIB_PQ" != "0" \
		-a "$HAVE_PGSQL_LIB" != "no" -a "$PG_ESQLC" != "no"; then


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking PostgresSQL Aubit/Informix compatibility:${T_ME}" >&5
$as_echo "${T_MD}Checking PostgresSQL Aubit/Informix compatibility:${T_ME}" >&6; }


# Check whether --with-pgcompat was given.
if test "${with_pgcompat+set}" = set; then :
  withval=$with_pgcompat;
	if test "$withval" != "no"; then
		PG_AUBIT_COMPAT=1

		if test "$PG_ENGINE_IFXCOMPAT" = "no" -a "$POSTMASTER" != "no"; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Local engine NOT compatible - wont allow pgsql" >&5
$as_echo "$as_me: WARNING: Local engine NOT compatible - wont allow pgsql" >&2;}
			PG_AUBIT_COMPAT=0
		fi
		if test "$PG_ESQLC_IFXCOMPAT" != "yes"; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ecpg NOT compatible - wont allow pgsql" >&5
$as_echo "$as_me: WARNING: ecpg NOT compatible - wont allow pgsql" >&2;}
			PG_AUBIT_COMPAT=0
		fi

		#TODO: how do we check libpq?
		#Dave say: libpq doesn't matter, it's just the protocol.

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use Aubit in EC mode with PostgreSQL" >&5
$as_echo_n "checking if we can use Aubit in EC mode with PostgreSQL... " >&6; }
		if test "$PG_AUBIT_COMPAT" = "0"; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			WARN_PGCOMPAT=1
			#disable everything
			PG_ENGINE_IFXCOMPAT="no"
			PG_ESQLC_IFXCOMPAT="no"
			POSTMASTER=""
			PG_ENGINE_IFXCOMPAT="no"
			PGSQL_WITHVAL=""
			PGSQL_INCDIR=""
			PGSQL_LIBDIR=""
			PGSQL_INCLUDE=""
			PGSQL_LFLAGS=""
			PGSQL_LIBS=""
			HAS_LIB_PQ=0
			HAVE_PG_ESQL_HEADERS_LIB="no"
    	    HAVE_PGSQL_LIB="no"
			PG_ESQLC="no"
			PG_ESQLC_VERSION=""
			PG_ESQLC_VERSION2=""
			ECPG_INCDIR=""
			ECPG_IFLAGS=""
			ECPG_LIBDIR=""
			HAVE_PG_ESQL_HEADERS_LIB="no"
			PG_ESQL_HEADERS_LIB_SUFIX=""
			LIBPQ_FE_H_IFLAGS=""
			HAVE_PG_ESQL_DECIMAL_H="no"
			HAVE_PG_ESQL_HEADERS_LIB="no"
			HAVE_PG_ESQL_HEADERS="no"
			ECPG_IFLAGS=""
			POSTGRESDIR=""
            PG_ESQLC="no"
		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
		fi

	else
    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-pgcompat not specified" >&5
$as_echo "--with-pgcompat not specified" >&6; }

fi


else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: wont allow pgsql" >&5
$as_echo "wont allow pgsql" >&6; }
	PG_AUBIT_COMPAT=0
fi

if test "$enable_stop_pgcompat" = "yes" ; then
	exit
fi

## ==================================================================
##                 Checks for SQLite support
## ==================================================================
	#Store current values
	old_LIBS="$LIBS"
	old_LDFLAGS="$LDFLAGS"
	old_CFLAGS="$CFLAGS"
	old_CPPFLAGS="$CPPFLAGS"
    old_PATH="$PATH"



  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for SQLite library support:${T_ME}" >&5
$as_echo "${T_MD}Checking for SQLite library support:${T_ME}" >&6; }


# Check whether --with-sqlite was given.
if test "${with_sqlite+set}" = set; then :
  withval=$with_sqlite;
        if test "$withval" != "no"; then
	        if test "$withval" = "yes"; then
            	if test "$GCC_MINGW" = "yes"; then
					#Note that on CygWin /usr/lib is a symlink to /lib
					#but when we convert paths to native Windows paths,
					#<CYGDIR>/usr/lib DOES NOT EXIST - because native Windows
					#executables know nothing about CygWin symlinking!!!!
					if test "$COMSPEC" != "" -a "$MSYS_ROOTDIR" != ""; then
						withval="$MSYS_ROOTDIR/local"
					else
						withval=/usr/local
					fi
				else
					withval="/usr"
				fi
			else
				echo "Using $withval"
			fi

			PATH="$withval:$withval/bin:$old_PATH"

			#readline library is needed to link SQLite
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
$as_echo_n "checking for main in -lreadline... " >&6; }
if ${ac_cv_lib_readline_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lreadline  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_readline_main=yes
else
  ac_cv_lib_readline_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
$as_echo "$ac_cv_lib_readline_main" >&6; }
if test "x$ac_cv_lib_readline_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBREADLINE 1
_ACEOF

  LIBS="-lreadline $LIBS"

fi


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

  test -z "$ac_cv_path_SQLITE" && ac_cv_path_SQLITE="no"
  ;;
esac
fi
SQLITE=$ac_cv_path_SQLITE
if test -n "$SQLITE"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE" >&5
$as_echo "$SQLITE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


			if test "$SQLITE" = "no"; then
				# Extract the first word of "sqlite", so it can be a program name with args.
set dummy sqlite; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_OLD_SQLITE+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $OLD_SQLITE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_OLD_SQLITE="$OLD_SQLITE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_OLD_SQLITE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_OLD_SQLITE" && ac_cv_path_OLD_SQLITE="no"
  ;;
esac
fi
OLD_SQLITE=$ac_cv_path_OLD_SQLITE
if test -n "$OLD_SQLITE"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OLD_SQLITE" >&5
$as_echo "$OLD_SQLITE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


				if test "$OLD_SQLITE" != "no"; then
					SQLITE="$OLD_SQLITE"
					SQLITE_LIBNAME="sqlite"
				fi
			else
				SQLITE_VER=3
				SQLITE_LIBNAME="sqlite3"
			fi

	        if test "$SQLITE" != "no" -a "$COMSPEC" = ""; then
				#we found executable, set withval to the place
				#you found sqlite executable in
				TMPhhh=`dirname $SQLITE`
                #to remove bin/
				withval=`dirname $TMPhhh`
			fi

			if test "$GCC_MINGW" = "yes"; then
				#WARNING: paths for MinGW GCC MUST use forward slash - NOT backslash!!!
				SQLITE_ROOT=`$CYGPATH -m "$withval"`
			else
				SQLITE_ROOT="$withval"
			fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SQLite base install directory" >&5
$as_echo_n "checking SQLite base install directory... " >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE_ROOT" >&5
$as_echo "$SQLITE_ROOT" >&6; }

			SQLITE_LDPATH="$SQLITE_ROOT/lib"
			SQLITE_LDPATH2="$SQLITE_ROOT"
			LDFLAGS="-L$SQLITE_LDPATH -L$SQLITE_LDPATH2 $LDFLAGS"
			CFLAGS="-I$SQLITE_ROOT/include -I$SQLITE_ROOT $CFLAGS"
			CPPFLAGS="-I$SQLITE_ROOT/include -I$SQLITE_ROOT $CPPFLAGS"

			if test "$SQLITE_VER" = "3"; then
				# FIXME: Replace `main' with a function in `-lc':
				#WARNING- cant use variable as library name here - test will
				#work ok, but resulting variable we need ($ac_cv_lib_sqlite_main)
				#will end up empty
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsqlite3" >&5
$as_echo_n "checking for main in -lsqlite3... " >&6; }
if ${ac_cv_lib_sqlite3_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsqlite3  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_sqlite3_main=yes
else
  ac_cv_lib_sqlite3_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_main" >&5
$as_echo "$ac_cv_lib_sqlite3_main" >&6; }
if test "x$ac_cv_lib_sqlite3_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSQLITE3 1
_ACEOF

  LIBS="-lsqlite3 $LIBS"

fi

			else
				# FIXME: Replace `main' with a function in `-lc':
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsqlite" >&5
$as_echo_n "checking for main in -lsqlite... " >&6; }
if ${ac_cv_lib_sqlite_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsqlite  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_sqlite_main=yes
else
  ac_cv_lib_sqlite_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_main" >&5
$as_echo "$ac_cv_lib_sqlite_main" >&6; }
if test "x$ac_cv_lib_sqlite_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSQLITE 1
_ACEOF

  LIBS="-lsqlite $LIBS"

fi

			fi

			#I don't think we need sqlite.h - we are using private copy of
			#it as sqlite-local.h in lib/libsql/odbc
			#as well as private copy of sqliteodbc.h and sqliteodbc.c
			if test "$SQLITE_VER" = "3"; then
				for ac_header in  sqlite3.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

			else
				for ac_header in  sqlite.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

			fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SQLite" >&5
$as_echo_n "checking if we can use SQLite... " >&6; }
			if test "$ac_cv_lib_sqlite_main" = "yes" -o "$ac_cv_lib_sqlite3_main" = "yes"; then
				SQLITE_LIB=1
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
				# test for availability of sqlite_libversion()
				if test "$SQLITE_VER" = "3"; then
					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_libversion in -lsqlite3" >&5
$as_echo_n "checking for sqlite3_libversion in -lsqlite3... " >&6; }
if ${ac_cv_lib_sqlite3_sqlite3_libversion+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsqlite3  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sqlite3_libversion ();
int
main ()
{
return sqlite3_libversion ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_sqlite3_sqlite3_libversion=yes
else
  ac_cv_lib_sqlite3_sqlite3_libversion=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_libversion" >&5
$as_echo "$ac_cv_lib_sqlite3_sqlite3_libversion" >&6; }
if test "x$ac_cv_lib_sqlite3_sqlite3_libversion" = xyes; then :
  SQLITE_LIBVERSION=1
else
  SQLITE_LIBVERSION=0
fi

					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_version in -lsqlite3" >&5
$as_echo_n "checking for sqlite_version in -lsqlite3... " >&6; }
if ${ac_cv_lib_sqlite3_sqlite_version+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsqlite3  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sqlite_version ();
int
main ()
{
return sqlite_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_sqlite3_sqlite_version=yes
else
  ac_cv_lib_sqlite3_sqlite_version=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite_version" >&5
$as_echo "$ac_cv_lib_sqlite3_sqlite_version" >&6; }
if test "x$ac_cv_lib_sqlite3_sqlite_version" = xyes; then :
  SQLITE_VERSION=1
else
  SQLITE_VERSION=0
fi

				else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_libversion in -lsqlite" >&5
$as_echo_n "checking for sqlite_libversion in -lsqlite... " >&6; }
if ${ac_cv_lib_sqlite_sqlite_libversion+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsqlite  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sqlite_libversion ();
int
main ()
{
return sqlite_libversion ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_sqlite_sqlite_libversion=yes
else
  ac_cv_lib_sqlite_sqlite_libversion=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_libversion" >&5
$as_echo "$ac_cv_lib_sqlite_sqlite_libversion" >&6; }
if test "x$ac_cv_lib_sqlite_sqlite_libversion" = xyes; then :
  SQLITE_LIBVERSION=1
else
  SQLITE_LIBVERSION=0
fi

					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_version in -lsqlite" >&5
$as_echo_n "checking for sqlite_version in -lsqlite... " >&6; }
if ${ac_cv_lib_sqlite_sqlite_version+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsqlite  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sqlite_version ();
int
main ()
{
return sqlite_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_sqlite_sqlite_version=yes
else
  ac_cv_lib_sqlite_sqlite_version=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_version" >&5
$as_echo "$ac_cv_lib_sqlite_sqlite_version" >&6; }
if test "x$ac_cv_lib_sqlite_sqlite_version" = xyes; then :
  SQLITE_VERSION=1
else
  SQLITE_VERSION=0
fi

				fi


				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default SQLite database" >&5
$as_echo_n "checking for default SQLite database... " >&6; }
	            SQLITE_DB=tools/aubit.db
				if test -f "$SQLITE_DB" ; then
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Allready present in $SQLITE_DB" >&5
$as_echo "Allready present in $SQLITE_DB" >&6; }
	            else
					#create a default database
					$SQLITE $SQLITE_DB "create table testing (test integer)"
					$SQLITE $SQLITE_DB "insert into testing values (987)"
					#$SQLITE $SQLITE_DB "select * from testing"
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Created $SQLITE_DB" >&5
$as_echo "Created $SQLITE_DB" >&6; }
				fi

				if test "$COMSPEC" != "" -a "$COLLECT_THIRD_PARTY" = "1"; then
					#a=`$CYGPATH -u "$WINDIR"`
					#b=`$CYGPATH -u "$CYGWIN_PATH_WIN"`
					#b="/lib"
					a="$withval"
					b="$withval"
					if test "$SQLITE_VER" = "3"; then
						THIRD_PARTY_FILES="$THIRD_PARTY_FILES \
							SQLITE#$a/sqlite3.exe \
							SQLITE#$b/libsqlite3.dll \
							SQLITE#$b/sqlite3.dll \
							SQLITE#$b/sqlite3.dll!libsqlite3.dll \
							SQLITE#$b/libsqlite3.dll!sqlite3.dll"
					else
						THIRD_PARTY_FILES="$THIRD_PARTY_FILES \
							SQLITE#$a/sqlite.exe \
							SQLITE#$b/lib/libsqlite.def \
							SQLITE#$b/lib/libsqlite.dll \
							SQLITE#$b/lib/libsqlite.dll!sqlite.dll"
					fi
				fi
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no-missing library" >&5
$as_echo "no-missing library" >&6; }
			fi
        else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
        fi

else

	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-sqlite not specified" >&5
$as_echo "--with-sqlite not specified" >&6; }

fi


	#Restore Stored values
	LIBS="$old_LIBS"
	LDFLAGS="$old_LDFLAGS"
	CFLAGS="$old_CFLAGS"
	CPPFLAGS="$old_CPPFLAGS"
    PATH="$old_PATH"

if test "$enable_stop_sqlite" = "yes" ; then
	exit
fi

## ==================================================================
##                 Checks for SQLite ODBC support
## ==================================================================

	#Store current values
	old_LIBS="$LIBS"
	old_LDFLAGS="$LDFLAGS"
	old_CFLAGS="$CFLAGS"

    #NOTE: sqlite ODBC driver needs iODBC or unixODB driver manager.
    #-lsqliteodbc will be linked with -liodbcinst or -lodbcinst


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for SQLite ODBC library support:${T_ME}" >&5
$as_echo "${T_MD}Checking for SQLite ODBC library support:${T_ME}" >&6; }


# Check whether --with-sqliteodbc was given.
if test "${with_sqliteodbc+set}" = set; then :
  withval=$with_sqliteodbc;

		if test "$withval" != "no"; then
			if test "$withval" = "yes"; then
				withval=/usr/local/lib
            fi

#/usr/local/lib/libsqlite3odbc-0.70.so
#libsqlite3odbc.so
#/usr/local/lib/libsqlite3odbc.la
#/usr/local/lib/libsqlite3odbc.a

#PATH="$PATH:/sbin" ldconfig -n /usr/local/lib



            LDFLAGS="-L$withval $LDFLAGS"
            #LIBS="-liodbc -liodbcadm $LIBS"
            LIBS="-liodbcadm $LIBS"

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsqliteodbc" >&5
$as_echo_n "checking for main in -lsqliteodbc... " >&6; }
if ${ac_cv_lib_sqliteodbc_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsqliteodbc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_sqliteodbc_main=yes
else
  ac_cv_lib_sqliteodbc_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqliteodbc_main" >&5
$as_echo "$ac_cv_lib_sqliteodbc_main" >&6; }
if test "x$ac_cv_lib_sqliteodbc_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSQLITEODBC 1
_ACEOF

  LIBS="-lsqliteodbc $LIBS"

fi

			if test "$ac_cv_lib_sqliteodbc_main" = "yes" ; then
				#AC_MSG_RESULT(Yes)
	            SQLITE_ODBC=1
				SQLITE_ODBC_VER=2
	        else
                #maybe it was linked with unixODBC?
	            #FIXME: do I need to add any libs here?
				LIBS="$old_LIBS"
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsqliteodbc" >&5
$as_echo_n "checking for main in -lsqliteodbc... " >&6; }
if ${ac_cv_lib_sqliteodbc_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsqliteodbc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_sqliteodbc_main=yes
else
  ac_cv_lib_sqliteodbc_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqliteodbc_main" >&5
$as_echo "$ac_cv_lib_sqliteodbc_main" >&6; }
if test "x$ac_cv_lib_sqliteodbc_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSQLITEODBC 1
_ACEOF

  LIBS="-lsqliteodbc $LIBS"

fi

				if test "$ac_cv_lib_sqliteodbc_main" = "yes" ; then
					#AC_MSG_RESULT(Yes)
		            SQLITE_ODBC=1
					SQLITE_ODBC_VER=2
                fi
			fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsqlite3odbc" >&5
$as_echo_n "checking for main in -lsqlite3odbc... " >&6; }
if ${ac_cv_lib_sqlite3odbc_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsqlite3odbc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_sqlite3odbc_main=yes
else
  ac_cv_lib_sqlite3odbc_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3odbc_main" >&5
$as_echo "$ac_cv_lib_sqlite3odbc_main" >&6; }
if test "x$ac_cv_lib_sqlite3odbc_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSQLITE3ODBC 1
_ACEOF

  LIBS="-lsqlite3odbc $LIBS"

fi

			if test "$ac_cv_lib_sqlite3odbc_main" = "yes" ; then
				#AC_MSG_RESULT(Yes)
	            SQLITE_ODBC=1
				SQLITE_ODBC_VER=3
				SQLITE_ODBC_LIBNAME_SHARED=sqlite3odbc
				SQLITE_ODBC_LIBNAME_STATIC=sqlite3odbc
	        else
                #maybe it was linked with unixODBC?
	            #FIXME: do I need to add any libs here?
				LIBS="$old_LIBS"
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsqlite3odbc" >&5
$as_echo_n "checking for main in -lsqlite3odbc... " >&6; }
if ${ac_cv_lib_sqlite3odbc_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsqlite3odbc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_sqlite3odbc_main=yes
else
  ac_cv_lib_sqlite3odbc_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3odbc_main" >&5
$as_echo "$ac_cv_lib_sqlite3odbc_main" >&6; }
if test "x$ac_cv_lib_sqlite3odbc_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSQLITE3ODBC 1
_ACEOF

  LIBS="-lsqlite3odbc $LIBS"

fi

				if test "$ac_cv_lib_sqlite3odbc_main" = "yes" ; then
					#AC_MSG_RESULT(Yes)
		            SQLITE_ODBC=1
					SQLITE_ODBC_VER=3
					SQLITE_ODBC_LIBNAME_SHARED=sqlite3odbc
					SQLITE_ODBC_LIBNAME_STATIC=sqlite3odbc
                fi
			fi


			if test "$SQLITE_ODBC" = "1"; then
				SQLITE_ODBC_LIBDIR=$withval
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default SQLite odbc.ini entry" >&5
$as_echo_n "checking for default SQLite odbc.ini entry... " >&6; }
				ODBC_INI="/etc/odbc.ini"
                if test -w $ODBC_INI; then
					TMP123=`grep mysqlitedb $ODBC_INI`
                else
					ODBC_INI="~/.odbc.ini"
	                if test -w $ODBC_INI; then
						TMP123=`grep mysqlitedb $ODBC_INI`
	                else
						ODBC_INI=no
                        TMP123=no
                    fi
				fi
				if test "$TMP123" = ""; then
					#To setup a SQLite data source using unixODBC (www.unixodbc.org):
					#  1. Add the driver to /etc/odbcinst.ini:
					#[SQLite]
					#Description=SQLite ODBC Driver
					#Driver=/usr/local/lib/libsqliteodbc.so
					#Setup=
					#[ODBC Drivers]
					#SQLite=Installed

					#  2. Add a DSN to your private ~/.odbc.ini:

                    echo " " >> $ODBC_INI
					#Workaround for Autoconf stripping [] - echo "[mysqlitedb]" >> $ODBC_INI
					echo '\133mysqlitedb\135' > tmp.tmp
					xx=`cat tmp.tmp`
					echo -e "$xx" >> $ODBC_INI
					echo "Description=Aubit created SQLite test database" >> $ODBC_INI
					#unixODBC only:
					#echo "Driver=SQLite" >> $ODBC_INI
					#iODBC, but works for unixODBC too:
					if test "$SQLITE_ODBC_VER" = "2"; then
						echo "Driver=$withval/libsqliteodbc.so" >> $ODBC_INI
					else
						echo "Driver=$withval/libsqlite3odbc.so" >> $ODBC_INI
					fi
					echo "Database=$aubitdir/$SQLITE_DB" >> $ODBC_INI
					echo "# optional lock timeout in milliseconds" >> $ODBC_INI
					echo "Timeout=2000" >> $ODBC_INI
					echo "# optional turn threading support on" >> $ODBC_INI
					echo "Threaded=1" >> $ODBC_INI
                    echo " " >> $ODBC_INI

					#For iODBC (www.iodbc.org, only versions 3.0.[56] tested)
					#  2. Add a DSN to your private ~/.odbc.ini:
					#    [ODBC Data Sources]
					#    mysqlitedb=SQLite
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Added" >&5
$as_echo "Added" >&6; }
				else
					if test "$ODBC_INI" = "no" ; then
						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: /etc/odbc.ini or ~/.odbc.ini not found or not writable" >&5
$as_echo "/etc/odbc.ini or ~/.odbc.ini not found or not writable" >&6; }
                    else
						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: allready present" >&5
$as_echo "allready present" >&6; }
                    fi
                fi
			fi

        else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled" >&5
$as_echo "Disabled" >&6; }
        fi


else

	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-sqliteodbc not specified" >&5
$as_echo "--with-sqliteodbc not specified" >&6; }

fi



	#Restore Stored values
	LIBS="$old_LIBS"
	LDFLAGS="$old_LDFLAGS"
	CFLAGS="$old_CFLAGS"

if test "$enable_stop_sqliteodbc" = "yes" ; then
	exit
fi

## ==================================================================
##                 Checks for Informix ODBC driver
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Informix ODBC driver:${T_ME}" >&5
$as_echo "${T_MD}Checking for Informix ODBC driver:${T_ME}" >&6; }



# Check whether --with-ifxodbc was given.
if test "${with_ifxodbc+set}" = set; then :
  withval=$with_ifxodbc;

		if test "$withval" != "no"; then
			if test "$withval" = "yes"; then
				withval=$INFORMIXDIR
            fi


			if test "$cygwin" = "1"; then

				#No point in making directly linked ODBC plug-ins on Windows - use odbc32
		        echo "Skipped - Windows"

				#FIXME: this is not working, probably because it is a DLL and
		        #name does not start with "libxxxxx", or because there are no .a or .def files
		        #available, and linking cannot be done without them with a .dll file on Windows
		        #Anyway, directly linked ODBC Aubit plig-ins are only usefull when there is no
		        #ODBC manager present on machine, and all Windows installation have it, so just use
		        #Informix ODBC via MS manager plug-in (odbc32)...

				#IVIF7912.DLL      INTERSOLV Informix ODBC driver - WIN
		        #this should be in WINDOWSDIR/system32 - but its DLL !!!!
				#AC_CHECK_LIB([ivif7912], [main])

				#only two dll's in csdk280_tc1 - none have lib prefix
				#AC_CHECK_LIB([clidll], [main])
				#AC_CHECK_LIB([iclit09b], [main])
			else

				#Shared drivers for use with ODBC managers (?)
				#[INFORMIX 2.8 32-BIT]
				#Driver=/extra/informix/lib/cli/iclis09a.so
				#AC_CHECK_LIB([iclis09a], [main])
				# FIXME: Replace `main' with a function in `-lxxxx':
				#[INFORMIX 3.3 32-BIT]
				#Driver=/extra/informix/lib/cli/iclis09b.so
				#AC_CHECK_LIB([iclis09b], [main])

				old_LIBS=$LIBS
				old_LDFLAGS=$LDFLAGS
				LDFLAGS="$LDFLAGS -L$INFORMIXDIR/lib/cli -L$INFORMIXDIR/lib/esql -Xlinker -rpath -Xlinker $INFORMIXDIR/lib/esql"
				# FIXME: Replace `main' with a function in `-lifcli':
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lifcli" >&5
$as_echo_n "checking for main in -lifcli... " >&6; }
if ${ac_cv_lib_ifcli_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lifcli  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ifcli_main=yes
else
  ac_cv_lib_ifcli_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ifcli_main" >&5
$as_echo "$ac_cv_lib_ifcli_main" >&6; }
if test "x$ac_cv_lib_ifcli_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBIFCLI 1
_ACEOF

  LIBS="-lifcli $LIBS"

fi

				LIBS=$old_LIBS
				LDFLAGS=$old_LDFLAGS

				if test "$ac_cv_lib_ifcli_main" = "yes"; then
					old_CFLAGS="$CFLAGS"; old_LDFLAGS="$LDFLAGS"; old_LIBS="$LIBS"; old_CPPFLAGS="$CPPFLAGS"
					CFLAGS="-I$IFX_INCDIR -I$INFORMIXDIR/incl -I$INFORMIXDIR $CFLAGS"
					CPPFLAGS="-I$IFX_INCDIR -I$INFORMIXDIR/incl -I$INFORMIXDIR $CPPFLAGS"
					#LDFLAGS="$LDFLAGS"
					#LIBS="$PGSQL_LIBS"

					for ac_header in  incl/cli/infxcli.h incl/cli/infxsql.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

					if test "$ac_cv_header_incl_cli_infxcli_h" != "yes" \
						-o "$ac_cv_header_incl_cli_infxsql_h" != "yes" ; then
						if test "$AUBIT_SOURCE" = "1" ; then
							{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing incl/cli/infxcli.h or incl/cli/infxsql.h - disabling Informix ODBC support" >&5
$as_echo "$as_me: WARNING: Missing incl/cli/infxcli.h or incl/cli/infxsql.h - disabling Informix ODBC support" >&2;}
							ac_cv_lib_ifcli_main="no"
						fi
					fi
					CFLAGS="$old_CFLAGS"; LDFLAGS="$old_LDFLAGS"; LIBS="$old_LIBS"; CPPFLAGS="$old_CPPFLAGS"
				fi

				if test "$ac_cv_lib_ifcli_main" = "yes"; then
					HAVE_IFXODBC=yes

					case $LD_LIBRARY_PATH in
						*$INFORMIXDIR/lib/cli*)
			    	        ;;
						*)
							TMP1234=`cat /etc/ld.so.conf | grep $INFORMIXDIR/lib/cli`
			                if test "$TMP1234" = ""; then
								WARN_LD_LIBRARY_PATH=1
								WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON IFXODBC"
								ADD_LD_LIBRARY_PATH="$INFORMIXDIR/lib/cli$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
			                fi
							;;
					esac
					INFORMIXODBC_WARNING=1
				else
					old_LIBS=$LIBS
					old_LDFLAGS=$LDFLAGS
					LDFLAGS="$LDFLAGS -L$INFORMIXDIR/lib/cli -L$INFORMIXDIR/lib/esql -Xlinker -rpath -Xlinker $INFORMIXDIR/lib/esql"
					# FIXME: Replace `main' with a function in `-lifcli':
					#		ivif7912.xx           INTERSOLV Informix ODBC driver - UNIX
					#        Driver=/opt/informix/lib/ivinf7912.so
					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -livif7912" >&5
$as_echo_n "checking for main in -livif7912... " >&6; }
if ${ac_cv_lib_ivif7912_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-livif7912  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ivif7912_main=yes
else
  ac_cv_lib_ivif7912_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ivif7912_main" >&5
$as_echo "$ac_cv_lib_ivif7912_main" >&6; }
if test "x$ac_cv_lib_ivif7912_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBIVIF7912 1
_ACEOF

  LIBS="-livif7912 $LIBS"

fi

					LIBS=$old_LIBS
					LDFLAGS=$old_LDFLAGS

					if test "$ac_cv_lib_ivif7912_main" = "yes"; then
						HAVE_IS_IFXODBC=yes
						INFORMIXODBC_WARNING=1
			        fi
				fi
			fi
		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-ifxodbc disabled" >&5
$as_echo "--with-ifxodbc disabled" >&6; }
		fi


else

	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-ifxodbc not specified" >&5
$as_echo "--with-ifxodbc not specified" >&6; }

fi


if test "$enable_stop_ifxodbc" = "yes" ; then
	exit
fi

## ==================================================================
##                 Checks for SAP DB ODBC driver
## ==================================================================
#UNIX:
#bin/odbclnk Shell script (Unix only) for the linking of an application.
#demo/eng/ODBC/sqlexamp.c C example program for an ODBC application.
#demo/eng/ODBC/sqladhoc.c C example program for an ODBC application.
#demo/eng/ODBC/Makefile Makefile for generating a demo program.


#Win32:
#pgm\sql*.dll Libraries for the SAP DB runtime
#environment (see the platform-specific SAP DB Installation manual)
#<Windows System 32> directory :
#odbc32.dll Driver Manager
#ctl3dv2.dll 3D Windows Controls
#odbccp32.dll Installer library
#odbcinst.hlp Installer library help
#odbcad32.exe Administrator program
#odbccr32.dll ODBC cursor library


#Example makefile:
#INCL = -I$(SAPDBROOT)/incl
#LIBS = $(SAPDBROOT)/lib/libsqlod.a $(SAPDBROOT)/lib/libsqlrte.a $(SAPDBROOT)/lib/libpcr.a -lpthread -lm
#HelloSAPDB: HelloSAPDB.o
#        $(CC) -o $@ HelloSAPDB.o $(LIBS)
#.c.o:
#        $(CC) -c -DSQLODBC $(CCFLAGS) $(UNDEF) $(DEFINES) $(INCL) $<


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for SAP DB ODBC driver support:${T_ME}" >&5
$as_echo "${T_MD}Checking for SAP DB ODBC driver support:${T_ME}" >&6; }



# Check whether --with-sapodbc was given.
if test "${with_sapodbc+set}" = set; then :
  withval=$with_sapodbc;
	SAPDB_VER="7500"
	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
			if test "$SAPDB_VER" = "7500"; then
	    		withval=/opt/sdb #$SAPDBROOT
			else
				withval=/opt/sapdb #$SAPDBROOT
			fi
			SAPDBROOT="$withval"
		else
			#user specified custom withval
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON SAPODBC"
			WARN_LD_LIBRARY_PATH=1
            ADD_LD_LIBRARY_PATH="$withval/interfaces/odbc/lib$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
		fi

# regtool list "/machine/SOFTWARE/SAP AG/SAPDB ODBC Driver/7.4"

		old_LIBS="$LIBS"
		old_LDFLAGS="$LDFLAGS"
        old_CPPFLAGS="$CPPFLAGS"

		if test "$SAPDB_VER" = "7500"; then
			TMP_SAPODBC_INCLUDE="-I$withval/programs/incl -I$withval"
		else
			TMP_SAPODBC_INCLUDE="-I$withval/interfaces/odbc/incl -I$withval"
		fi

		if test "$SAPDB_VER" = "7500"; then
			TMP_SAPODBC_LFLAGS="-L$withval/programs/runtime/$SAPDB_VER/lib \
				-L$withval/programs/lib"
		else
			#libpcr (needed by libsqlod) is at least in SuSE 9 default RPM's
			#in path that includes version nubering (/7403/)
			TMP_SAPODBC_LFLAGS="-L$withval/interfaces/odbc/lib \
				-L$withval/indep_prog/runtime/7300/lib \
				-L$withval/interfaces/precompiler/runtime/7403/lib \
				-L$withval/indep_prog/runtime/7403/lib"
		fi

		if test "$SAPDB_VER" = "7500"; then
			#/opt/sdb/programs/web/lib/libsqlrte.so
			#/opt/sdb/programs/runtime/7500/lib/libpcr.so
			#-lsqlrte -lpcr
			SAPDB_ODBC_ADDLIBS="-lpthread -lm"
		else
        	SAPDB_ODBC_ADDLIBS="-lsqlrte -lpcr -lpthread -lm"
		fi
		LIBS="$SAPDB_ODBC_ADDLIBS"

        #libpcr: WARNING: NOT part of the SAP DB ODBC RPM!!!
        #Its part of "environment" RPM:
        #/opt/sapdb/indep_prog/runtime/7300/lib/libpcr.so
		#/opt/sapdb/interfaces/precompiler/lib/libpcr.a
		#/opt/sapdb/interfaces/precompiler/runtime/7300/lib/libpcr.so


		CPPFLAGS="$CPPFLAGS $TMP_SAPODBC_INCLUDE"
		LDFLAGS="$LDFLAGS $TMP_SAPODBC_LFLAGS $TMP_SAPODBC_INCLUDE"

		#Apparently needed by sqlod - but I don;t see it when I do ldd on libsqlod
		#version 7.403 which is strange? maybe no longer neded?
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcr" >&5
$as_echo_n "checking for main in -lpcr... " >&6; }
if ${ac_cv_lib_pcr_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpcr  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pcr_main=yes
else
  ac_cv_lib_pcr_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcr_main" >&5
$as_echo "$ac_cv_lib_pcr_main" >&6; }
if test "x$ac_cv_lib_pcr_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPCR 1
_ACEOF

  LIBS="-lpcr $LIBS"

fi


		# FIXME: Replace `main' with a function in `-lsqlod':
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsqlod" >&5
$as_echo_n "checking for main in -lsqlod... " >&6; }
if ${ac_cv_lib_sqlod_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsqlod  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_sqlod_main=yes
else
  ac_cv_lib_sqlod_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlod_main" >&5
$as_echo "$ac_cv_lib_sqlod_main" >&6; }
if test "x$ac_cv_lib_sqlod_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSQLOD 1
_ACEOF

  LIBS="-lsqlod $LIBS"

fi

		if test $ac_cv_lib_sqlod_main = yes; then
			#First test for WINDOWS.H - it defines stuff like DWORD which is needed by
			#other SAP ODBC headers
			if test "$SAPDB_VER" = "7500"; then
				for ac_header in programs/incl/WINDOWS.H
do :
  ac_fn_c_check_header_mongrel "$LINENO" "programs/incl/WINDOWS.H" "ac_cv_header_programs_incl_WINDOWS_H" "$ac_includes_default"
if test "x$ac_cv_header_programs_incl_WINDOWS_H" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PROGRAMS_INCL_WINDOWS_H 1
_ACEOF

fi

done

			else
				for ac_header in interfaces/odbc/incl/WINDOWS.H
do :
  ac_fn_c_check_header_mongrel "$LINENO" "interfaces/odbc/incl/WINDOWS.H" "ac_cv_header_interfaces_odbc_incl_WINDOWS_H" "$ac_includes_default"
if test "x$ac_cv_header_interfaces_odbc_incl_WINDOWS_H" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_INTERFACES_ODBC_INCL_WINDOWS_H 1
_ACEOF

fi

done

			fi

			if test "$ac_cv_header_interfaces_odbc_incl_WINDOWS_H" = "yes" \
				-o "$ac_cv_header_programs_incl_WINDOWS_H" = "yes"; then
				#Now test for remaining 3, and include WINDOWS.H in testing code:
				if test "$SAPDB_VER" = "7500"; then
					for ac_header in programs/incl/sql.h \
						programs/incl/sqlext.h \
						programs/incl/sqltypes.h \

do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#if HAVE_PROGRAMS_INCL_WINDOWS_H
						# include <programs/incl/WINDOWS.H>
						# endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

				else
					for ac_header in interfaces/odbc/incl/sql.h \
						interfaces/odbc/incl/sqlext.h \
						interfaces/odbc/incl/sqltypes.h \

do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#if HAVE_INTERFACES_ODBC_INCL_WINDOWS_H
						# include <interfaces/odbc/incl/WINDOWS.H>
						# endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

				fi
			fi
        fi
		LIBS="$old_LIBS"
		LDFLAGS="$old_LDFLAGS"
        CPPFLAGS="$old_CPPFLAGS"

		if test $ac_cv_lib_sqlod_main = yes; then
			if test "$SAPDB_VER" = "7500"; then
				if test "$ac_cv_header_programs_incl_sqltypes_h" = "yes" \
					-a "$ac_cv_header_programs_incl_sql_h" = "yes" \
					-a "$ac_cv_header_programs_incl_sqlext_h" = "yes" \
					-a "$ac_cv_header_programs_incl_WINDOWS_H" = "yes"
				then
					HAVE_SAPODBC_HEADERS=yes

$as_echo "#define HAVE_SAPODBC_HEADERS_7500 1" >>confdefs.h


$as_echo "#define HAVE_SAPODBC_HEADERS 1" >>confdefs.h

				else
					HAVE_SAPODBC_HEADERS=no
				fi
			else
				if test "$ac_cv_header_interfaces_odbc_incl_sqltypes_h" = "yes" \
					-a "$ac_cv_header_interfaces_odbc_incl_sql_h" = "yes" \
					-a "$ac_cv_header_interfaces_odbc_incl_sqlext_h" = "yes" \
					-a "$ac_cv_header_interfaces_odbc_incl_WINDOWS_H" = "yes"
				then
					HAVE_SAPODBC_HEADERS=yes

$as_echo "#define HAVE_SAPODBC_HEADERS 1" >>confdefs.h

				else
					HAVE_SAPODBC_HEADERS=no
				fi
			fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SAP ODBC" >&5
$as_echo_n "checking if we can use SAP ODBC... " >&6; }
			if test "$HAVE_SAPODBC_HEADERS" != "yes" -a "$AUBIT_SOURCE" = "1" ; then
				#we need headers only to compile source code

$as_echo "#define HAVE_SAPODBC 0" >>confdefs.h

				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no header files" >&5
$as_echo "no header files" >&6; }
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
				HAVE_SAPODBC=yes
				SAPODBC_INCLUDE="$TMP_SAPODBC_INCLUDE"
				SAPODBC_LFLAGS="$TMP_SAPODBC_LFLAGS"

$as_echo "#define HAVE_SAPODBC 1" >>confdefs.h

			fi
		else

$as_echo "#define HAVE_SAPODBC 0" >>confdefs.h

		fi
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-sapodbc not specified" >&5
$as_echo "--with-sapodbc not specified" >&6; }

fi


if test "$enable_stop_sapodbc" = "yes" ; then
	exit
fi

## ==================================================================
##                 Checks for iODBC ODBC manager support
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for iODBC support:${T_ME}" >&5
$as_echo "${T_MD}Checking for iODBC support:${T_ME}" >&6; }




# Check whether --with-iodbc was given.
if test "${with_iodbc+set}" = set; then :
  withval=$with_iodbc;
	old_LIBS="$LIBS"
	old_LDFLAGS="$LDFLAGS"
	old_PATH="$PATH"

	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
			if test -d /opt/iodbc; then
				withval=/opt/iodbc
			else
	    		withval=/usr/local
			fi
		else
			#user specified custom withval
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON iODBC"
			WARN_LD_LIBRARY_PATH=1
            ADD_LD_LIBRARY_PATH="$withval/lib$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
		fi

	    IODBC_INCLUDE="-I$withval/include"
	    IODBC_LFLAGS="-L$withval/lib -L/usr/lib"
		PATH="$withval/bin:$PATH"

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

  test -z "$ac_cv_path_IODBC_CONFIG" && ac_cv_path_IODBC_CONFIG="no"
  ;;
esac
fi
IODBC_CONFIG=$ac_cv_path_IODBC_CONFIG
if test -n "$IODBC_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IODBC_CONFIG" >&5
$as_echo "$IODBC_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



		#We can use pkg-config too:
		#/opt/iodbc/lib/pkgconfig/libiodbc.pc

		LDFLAGS="$LDFLAGS $IODBC_LFLAGS"
		#  AC_CHECK_LIB(pq, PQcmdTuples,AC_DEFINE(HAVE_PQCMDTUPLES,1,[ ]))
		# FIXME: Replace `main' with a function in `-liodbc':
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liodbc" >&5
$as_echo_n "checking for main in -liodbc... " >&6; }
if ${ac_cv_lib_iodbc_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-liodbc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_iodbc_main=yes
else
  ac_cv_lib_iodbc_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_main" >&5
$as_echo "$ac_cv_lib_iodbc_main" >&6; }
if test "x$ac_cv_lib_iodbc_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBIODBC 1
_ACEOF

  LIBS="-liodbc $LIBS"

fi


		#On SuSE 9 this is all we have : /usr/lib/libiodbc.so.2
		#Not sure if this check will work, because of .so.2 part
		#DOES NOT WORK
		#AC_CHECK_LIB([iodbc.so.2], [main])

		if test $ac_cv_lib_iodbc_main = yes; then

			#do we need to check for headers ?
			#This two tests are for debugging only:
			for ac_header in  iodbc.h isql.h isqlext.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

			for ac_header in  odbc.h sql.h sqlext.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



$as_echo "#define HAVE_IODBC_HEADERS 1" >>confdefs.h

			HAVE_IODBC_HEADERS=1

			ODBC_LIB_NAME=iodbc
			HAVE_IODBC=yes

			#PHP_ADD_LIBRARY_WITH_PATH(iodbc, $withval/lib)
		    #PHP_ADD_INCLUDE($withval/include, 1)
		    ODBC_TYPE=iodbc
		    IODBC_LIBS=-liodbc

$as_echo "#define HAVE_IODBC 1" >>confdefs.h

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use iODBC" >&5
$as_echo_n "checking if we can use iODBC... " >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_IODBC" >&5
$as_echo "$HAVE_IODBC" >&6; }
		else

$as_echo "#define HAVE_IODBC 0" >>confdefs.h

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use iODBC" >&5
$as_echo_n "checking if we can use iODBC... " >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_IODBC - missing iodbc library" >&5
$as_echo "$HAVE_IODBC - missing iodbc library" >&6; }
		fi
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

	LIBS="$old_LIBS"
	LDFLAGS="$old_LDFLAGS"
	PATH="$old_PATH"



else

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-iodbc not specified" >&5
$as_echo "--with-iodbc not specified" >&6; }

fi


if test "$enable_stop_iodbc" = "yes" ; then
	exit
fi

## ==================================================================
##            Checks for unixODBC ODBC manager support
## ==================================================================



  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for unixODBC support:${T_ME}" >&5
$as_echo "${T_MD}Checking for unixODBC support:${T_ME}" >&6; }



# Check whether --with-unixodbc was given.
if test "${with_unixodbc+set}" = set; then :
  withval=$with_unixodbc;
	#PHP_WITH_SHARED
if test "$withval" = "yes"; then
    	withval=/usr/local
else
		#user specified custom withval
		WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON unixODBC"
		WARN_LD_LIBRARY_PATH=1
        ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
fi

if test "$withval" != "no"; then

		old_LIBS=$LIBS
		old_LDFLAGS=$LDFLAGS
		LDFLAGS="$LDFLAGS -L$withval/lib"
		#  AC_CHECK_LIB(pq, PQcmdTuples,AC_DEFINE(HAVE_PQCMDTUPLES,1,[ ]))
		# FIXME: Replace `main' with a function in `-lodbc':
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lodbc" >&5
$as_echo_n "checking for main in -lodbc... " >&6; }
if ${ac_cv_lib_odbc_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lodbc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_odbc_main=yes
else
  ac_cv_lib_odbc_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_main" >&5
$as_echo "$ac_cv_lib_odbc_main" >&6; }
if test "x$ac_cv_lib_odbc_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBODBC 1
_ACEOF

  LIBS="-lodbc $LIBS"

fi

		LIBS=$old_LIBS
		LDFLAGS=$old_LDFLAGS
                old_CFLAGS=$CFLAGS
                CFLAGS="$CFLAGS -I$withval/include"

		if test $ac_cv_lib_odbc_main = yes; then
			if test "$AUBIT_SOURCE" = "1" ; then
				#CPPFLAGS="$CPPFLAGS $TMP_IFLAGS"
				for ac_header in sql.h sqlext.h odbcinst.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 HAVE_UNIXODBC_HEADERS=1
else
  HAVE_UNIXODBC_HEADERS=0
fi

done

			else
			    	HAVE_UNIXODBC_HEADERS=1
			fi

			if test "$HAVE_UNIXODBC_HEADERS" = "1" ; then
				ODBC_LIB_NAME=odbc
				HAVE_UNIXODBC=yes
			    	UNIXODBC_INCLUDE=-I$withval/include
			    	UNIXODBC_LFLAGS=-L$withval/lib
			    	UNIXODBC_LIBS=-lodbc

			    	ODBC_TYPE=unixODBC

$as_echo "#define HAVE_UNIXODBC 1" >>confdefs.h

            		else
				if test "$AUBIT_SOURCE" = "1" ; then
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unixODBC libraries present but headers are missing." >&5
$as_echo "$as_me: WARNING: unixODBC libraries present but headers are missing." >&2;}

$as_echo "#define HAVE_UNIXODBC 0" >>confdefs.h

					INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.unixodbcdev"
				else
					ODBC_LIB_NAME=odbc
					HAVE_UNIXODBC=yes
					UNIXODBC_INCLUDE=-I$withval/include
					UNIXODBC_LFLAGS=-L$withval/lib
					UNIXODBC_LIBS=-lodbc
					ODBC_TYPE=unixODBC

$as_echo "#define HAVE_UNIXODBC 1" >>confdefs.h

				fi
            fi
			CFLAGS=$old_CFLAGS
		else

$as_echo "#define HAVE_UNIXODBC 0" >>confdefs.h

			INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.unixodbc"
		fi
else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disbled" >&5
$as_echo "disbled" >&6; }

$as_echo "#define HAVE_UNIXODBC 0" >>confdefs.h

fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-unixodbc not specified" >&5
$as_echo "--with-unixodbc not specified" >&6; }

fi


## ==================================================================
##            Checks for Easysoft ODBC-ODBC Bridge support
## ==================================================================

if test "$cygwin" = "0"; then

#Do this check only if we did not find any ODBC manager support already:
if test -z "$ODBC_TYPE"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Easysoft ODBC-ODBC Bridge support:${T_ME}" >&5
$as_echo "${T_MD}Checking for Easysoft ODBC-ODBC Bridge support:${T_ME}" >&6; }

#AC_MSG_CHECKING(for Easysoft ODBC-ODBC Bridge support)

# Check whether --with-esoob was given.
if test "${with_esoob+set}" = set; then :
  withval=$with_esoob;
  #PHP_WITH_SHARED
  if test "$withval" = "yes"; then
    withval=/usr/local/easysoft/oob/client
	#ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
  else
	#user specified custom withval
	WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON ODBCbridge"
	WARN_LD_LIBRARY_PATH=1
    ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
  fi


  if test "$withval" != "no"; then
    ODBC_INCDIR=$withval/include
    ODBC_LIBDIR=$withval/lib
    ODBC_LFLAGS=-L$ODBC_LIBDIR
    ODBC_INCLUDE=-I$ODBC_INCDIR
    ODBC_LIBS=-lesoobclient
    ODBC_TYPE=ESOOB

$as_echo "#define HAVE_ESOOB 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
  fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-esoob not specified" >&5
$as_echo "--with-esoob not specified" >&6; }

fi

fi

fi
if test "$LIBS" != ""; then
	echo "WARNING: (3) LIBS contains $LIBS"
fi

## ==================================================================
##            Checks for custom ODBC support
## ==================================================================

if test "$cygwin" = "0"; then

#Do this check only if we did not find any ODBC manager support already:
if test -z "$ODBC_TYPE"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for custom ODBC support:${T_ME}" >&5
$as_echo "${T_MD}Checking for custom ODBC support:${T_ME}" >&6; }

#AC_MSG_CHECKING(for a custom ODBC support)

# Check whether --with-custom-odbc was given.
if test "${with_custom_odbc+set}" = set; then :
  withval=$with_custom_odbc;
  if test "$withval" = "yes"; then
    withval=/usr/local
  else
	#user specified custom withval
	WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON CustODBC"
	WARN_LD_LIBRARY_PATH=1
    ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
  fi
  if test "$withval" != "no"; then
    ODBC_INCDIR=$withval/include
    ODBC_LIBDIR=$withval/lib
    ODBC_LFLAGS=-L$ODBC_LIBDIR
    ODBC_INCLUDE=-I$ODBC_INCDIR
    ODBC_LIBS=$CUSTOM_ODBC_LIBS
    ODBC_TYPE=custom

$as_echo "#define HAVE_CODBC 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
  fi

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-custom-odbc not specified" >&5
$as_echo "--with-custom-odbc not specified" >&6; }

fi

fi

fi

#</This block was copied from PHP 4.x ext/odbc/config.m4 ---------------->

# Ensure MSVC-compatible struct packing convention is used when
# compiling for Win32 with gcc.
# What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
# gcc2 uses "-fnative-struct".
if test x"$glib_native_win32" = xyes; then
  if test x"$GCC" = xyes; then
    msnative_struct=''
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
$as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; }
    if test -z "$ac_cv_prog_CC"; then
      our_gcc="$CC"
    else
      our_gcc="$ac_cv_prog_CC"
    fi
    case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
      2.)
	if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
	  msnative_struct='-fnative-struct'
	fi
	;;
      *)
	if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
	  msnative_struct='-mms-bitfields'
	fi
	;;
    esac
    if test x"$msnative_struct" = x ; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5
$as_echo "no way" >&6; }
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
$as_echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
    else
      CFLAGS="$CFLAGS $msnative_struct"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
$as_echo "${msnative_struct}" >&6; }
    fi
  fi
fi


## ==================================================================
##                 Checks for PostgreSQL ODBC driver
## ==================================================================

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for PostgreSQL ODBC driver support:${T_ME}" >&5
$as_echo "${T_MD}Checking for PostgreSQL ODBC driver support:${T_ME}" >&6; }



# Check whether --with-pgodbc was given.
if test "${with_pgodbc+set}" = set; then :
  withval=$with_pgodbc;
	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
	    	withval=/usr
		else
			#user specified custom withval
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON PGODBC"
			WARN_LD_LIBRARY_PATH=1
            ADD_LD_LIBRARY_PATH="$withval/lib$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
		fi
#$ regtool get "/machine/SOFTWARE/PostgreSQL/Installations/{EABF5323-E52C-47FF-8
#D9D-46B699E84F44}/psqlODBC Directory"
#E:\Program Files\PostgreSQL\8.0.0-beta5\odbc\

		old_LIBS="$LIBS"; old_LDFLAGS="$LDFLAGS"; old_CPPFLAGS="$CPPFLAGS"
		TMP_PGODBC_INCLUDE="-I$withval/include"
		if test -d "$withval/include/pgsql/iodbc"; then
			if test "$enable_ac_debug" = "yes"; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $withval/include/pgsql/iodbc added to IFLAGS" >&5
$as_echo "$as_me: WARNING: $withval/include/pgsql/iodbc added to IFLAGS" >&2;}
			fi
			TMP_PGODBC_INCLUDE="$TMP_PGODBC_INCLUDE -I$withval/include/pgsql/iodbc"
		fi
		TMP_PGODBC_LFLAGS="-L$withval/lib"
		if test -d "/usr/lib/unixODBC" ; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: /usr/lib/unixODBC added to LFLAGS" >&5
$as_echo "$as_me: WARNING: /usr/lib/unixODBC added to LFLAGS" >&2;}
			TMP_PGODBC_LFLAGS="$TMP_PGODBC_LFLAGS -L/usr/lib/unixODBC"
		fi

		#QT libs also have something that looks like PG ODBC driver:
		#/usr/lib/qt3/plugins/sqldrivers/libqsqlpsql.so
		#/usr/lib/qt3/plugins/sqldrivers/libtudopsql.so

		CPPFLAGS="$TMP_PGODBC_INCLUDE $CPPFLAGS"
		LDFLAGS="$TMP_PGODBC_LFLAGS $LDFLAGS"
		# FIXME: Replace `main' with a function in `-lpsqlodbc':

		echo "LDFLAGS=$LDFLAGS"
		echo "CPPFLAGS=$CPPFLAGS"

		#unixODBC distributed ODBC driver for PG
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lodbcpsql" >&5
$as_echo_n "checking for main in -lodbcpsql... " >&6; }
if ${ac_cv_lib_odbcpsql_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lodbcpsql  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_odbcpsql_main=yes
else
  ac_cv_lib_odbcpsql_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbcpsql_main" >&5
$as_echo "$ac_cv_lib_odbcpsql_main" >&6; }
if test "x$ac_cv_lib_odbcpsql_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBODBCPSQL 1
_ACEOF

  LIBS="-lodbcpsql $LIBS"

fi

		if test "$ac_cv_lib_odbcpsql_main" = "yes"; then
            PGODBC_LIBNAME=odbcpsql
        fi

		#PostgreSQL distributed ODBC driver for PG
		#WARNING - library file does not have lib prefix:/usr/lib/psqlodbc.so
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpsqlodbc" >&5
$as_echo_n "checking for main in -lpsqlodbc... " >&6; }
if ${ac_cv_lib_psqlodbc_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsqlodbc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_psqlodbc_main=yes
else
  ac_cv_lib_psqlodbc_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psqlodbc_main" >&5
$as_echo "$ac_cv_lib_psqlodbc_main" >&6; }
if test "x$ac_cv_lib_psqlodbc_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPSQLODBC 1
_ACEOF

  LIBS="-lpsqlodbc $LIBS"

fi

		if test "$ac_cv_lib_psqlodbc_main" = "yes"; then
            PGODBC_LIBNAME=psqlodbc
		else
			if test -f "$withval/lib/psqlodbc.so"; then
				echo "Found $withval/lib/psqlodbc.so"
				echo "WARNING - library file does not have lib prefix and cannot be"
				echo "Detected by CHECK LIB macro or linked with -l flag !"
				echo "WILL IGNORE"
			else
				TMP_LOCATE="`locate psqlodbc.so 2>/dev/null`"
				if test "$TMP_LOCATE" != ""; then
					echo "Found outside of $withval/lib:"
					echo "$TMP_LOCATE"
					echo "WARNING - library file does not have lib prefix and cannot be"
					echo "Detected by CHECK LIB macro or linked with -l flag !"
					echo "WILL IGNORE"
				fi
			fi
        fi


		if test "$ac_cv_lib_psqlodbc_main" = "yes" -o "$ac_cv_lib_odbcpsql_main" = "yes"; then
			#also check for headers, since they are not in PG ODBC RPM, they are
			#in postgresql-devel, <<< THIS IS NOT TRUE ANY MORE, at least for RH 8 RPM's!
			#7.1.3 seems to be last version to include this files!!
            #http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/interfaces/odbc/Attic/iodbc.h?hideattic=0 say:
            #Remove all traces of the ODBC driver, which is now on GBorg as the psqlodbc project ...
            #
            #
			#including /usr/lib/libpsqlodbc.a (so we don't need
			#PGSQLODBC RPM installed at all, unless we are using ODBC manager):
			#/usr/include/pgsql/iodbc: iodbc.h isql.h isqlext.h

			#AC_CHECK_HEADERS([ iodbc.h isql.h isqlext.h ])

			#NOTE: we apparently do not use isql.h and define FAR & SQLHANDLE ourselves
			#see lib/libsql/odbc/a4gl_lib_sql_odbc_int.h
			for ac_header in  pgsql/iodbc/iodbc.h pgsql/iodbc/isql.h pgsql/iodbc/isqlext.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


			if test "$ac_cv_header_pgsql_iodbc_iodbc_h" != "yes" \
				-o "$ac_cv_header_pgsql_iodbc_isql_h" != "yes" \
				-o "$ac_cv_header_pgsql_iodbc_isqlext_h" != "yes" ; then
				#Use our headers
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using headers from Aubit CVS - tools/odbctest/pgsql/iodbc" >&5
$as_echo "$as_me: WARNING: Using headers from Aubit CVS - tools/odbctest/pgsql/iodbc" >&2;}
				unset ac_cv_header_pgsql_iodbc_iodbc_h
				unset ac_cv_header_pgsql_iodbc_isql_h
				unset ac_cv_header_pgsql_iodbc_isqlext_h
				#this include files reference each other internaly WITHOUT pgsql/iodbc
				#prefix, so we have to provide -I path for this too:
				#TODO-edit them to use prefix path
				TMP_PGODBC_INCLUDE="-I$aubitdir/tools/odbctest -I$aubitdir/tools/odbctest/pgsql/iodbc"
				CPPFLAGS="$TMP_PGODBC_INCLUDE $old_CPPFLAGS"
				#isql. does not include others
				#isqlext & iodbc include isql.h
				for ac_header in  pgsql/iodbc/isql.h pgsql/iodbc/isqlext.h pgsql/iodbc/iodbc.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


if test "$DISABLED" = "1"; then
				#TODO - above test works, but will spit out warnings as it cannot compile
				#the header files. Compile of the Aubit PG ODBC plugin will work OK,
				#and I tried to fix the autoconf warning but failed...

				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --2--" >&5
$as_echo "$as_me: WARNING: --2--" >&2;}
				unset ac_cv_header_pgsql_iodbc_iodbc_h
				unset ac_cv_header_pgsql_iodbc_isql_h
				unset ac_cv_header_pgsql_iodbc_isqlext_h
				for ac_header in pgsql/iodbc/isqlext.h pgsql/iodbc/iodbc.h pgsql/iodbc/isql.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
				# include <pgsql/iodbc/isqlext.h>
				# include <pgsql/iodbc/iodbc.h>
				# include <pgsql/iodbc/isql.h>

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --3--" >&5
$as_echo "$as_me: WARNING: --3--" >&2;}
				unset ac_cv_header_pgsql_iodbc_iodbc_h
				unset ac_cv_header_pgsql_iodbc_isql_h
				unset ac_cv_header_pgsql_iodbc_isqlext_h
				for ac_header in pgsql/iodbc/isqlext.h pgsql/iodbc/iodbc.h pgsql/iodbc/isql.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
				#ifndef __AC_CONF_TEST_PGODBC__
					#define __AC_CONF_TEST_PGODBC__
					#ifndef __UCHAR_DEFINED__
						#define __UCHAR_DEFINED__
					#endif
					#ifndef __ODBC_DEFINED__
						#define __ODBC_DEFINED__
					#endif
					#ifndef FAR
						#define FAR
					#endif
					typedef void FAR *SQLHANDLE;
					typedef SQLHANDLE SQLHSTMT;
				#endif
				# include <pgsql/iodbc/isqlext.h>
				# include <pgsql/iodbc/iodbc.h>
				# include <pgsql/iodbc/isql.h>

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

fi
#ddddd
			fi

			#if test "$ac_cv_header_iodbc_h" = "yes" && test "$ac_cv_header_isql_h" = "yes" && test "$ac_cv_header_isqlext_h" = "yes" ; then
			if test "$ac_cv_header_pgsql_iodbc_iodbc_h" = "yes" \
				-a "$ac_cv_header_pgsql_iodbc_isql_h" = "yes" \
				-a "$ac_cv_header_pgsql_iodbc_isqlext_h" = "yes" ; then
                HAVE_PG_HEADERS=yes
            else
				#TODO - we can often find PG ODBC driver, but no headers. Maybe we should
				#add this headers to Aubit CVS (they are supposed to be standard
				#anyway, so we might be even able to use odbc.h sql.h and sqlext.h
				#if we find them on the system ?)

				#This checks are for debugging only:
				for ac_header in  iodbc.h isql.h isqlext.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

				for ac_header in  odbc.h sql.h sqlext.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


				HAVE_PG_HEADERS=no
            fi

        fi
		LIBS="$old_LIBS"; LDFLAGS="$old_LDFLAGS"; CPPFLAGS="$old_CPPFLAGS"

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PG ODBC connector support" >&5
$as_echo_n "checking PG ODBC connector support... " >&6; }
		if test "$ac_cv_lib_psqlodbc_main" = "yes" -o "$ac_cv_lib_odbcpsql_main" = "yes"; then
			if test "$AUBIT_SOURCE" = "1" ; then
            	#we need headers only to compile source code
				if test "$HAVE_PG_HEADERS" = "yes"; then
					HAVE_PGODBC=yes
					PGODBC_INCLUDE="$TMP_PGODBC_INCLUDE"
					PGODBC_LFLAGS="$TMP_PGODBC_LFLAGS"

$as_echo "#define HAVE_PGODBC_HEADERS 1" >>confdefs.h


$as_echo "#define HAVE_PGODBC 1" >>confdefs.h

					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
				fi

				if test "$HAVE_PGODBC" != "yes" -a "$HAVE_IODBC_HEADERS" = "1"; then
					HAVE_PGODBC=yes
					PGODBC_INCLUDE="$IODBC_INCLUDE"
					PGODBC_LFLAGS="$TMP_PGODBC_LFLAGS"

$as_echo "#define HAVE_PGODBC 1" >>confdefs.h

					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - using iODBC headers" >&5
$as_echo "yes - using iODBC headers" >&6; }
				fi

				if test "$HAVE_PGODBC" != "yes" ; then

$as_echo "#define HAVE_PGODBC 0" >>confdefs.h

					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: NO - missing header files" >&5
$as_echo "NO - missing header files" >&6; }
				fi
			else
				HAVE_PGODBC=yes

$as_echo "#define HAVE_PGODBC_HEADERS 1" >>confdefs.h


$as_echo "#define HAVE_PGODBC 1" >>confdefs.h

				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
            fi

		else

$as_echo "#define HAVE_PGODBC 0" >>confdefs.h

		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: No -missing library" >&5
$as_echo "No -missing library" >&6; }
		fi
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-pgodbc not specified" >&5
$as_echo "--with-pgodbc not specified" >&6; }

fi


if test "$enable_stop_pgodbc" = "yes" ; then
	exit
fi


#FIXME:
#warn user to run /usr/share/pgsql/odbc.sql script to add aditional
# PostgreSQL catalog extensions and functions for ODBC compliance
#do the same for ODBC managers, if you detect PG database installed

## ==================================================================
##                  Check for GTK+ GUI support
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for GTK+ GUI support using AC macros:${T_ME}" >&5
$as_echo "${T_MD}Checking for GTK+ GUI support using AC macros:${T_ME}" >&6; }



# Check whether --with-gtk-ac was given.
if test "${with_gtk_ac+set}" = set; then :
  withval=$with_gtk_ac;
	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
	    	withval=/usr/local
			CUSTOM_WITHVAL=0
		else
			#user specified custom withval
			CUSTOM_WITHVAL=1
		    ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON GTK"
			WARN_LD_LIBRARY_PATH=1
		fi

		GLIB_REQUIRED_VERSION=2.0.0

#I get possibly undefined macro from autoconf on this 3:
#		AM_PATH_GTK(1.0.2,, [AC_MSG_WARN([GTK not in path])])
#		AM_PATH_GTKMM(0.9.5,, [AC_MSG_WARN([GTK not in path])])
#		AM_PATH_GLIB_2_0($GLIB_REQUIRED_VERSION, :,
#		  AC_MSG_WARN([
#		*** GLIB $GLIB_REQUIRED_VERSION or better is required. The latest version of
#		*** GLIB is always available from ftp://ftp.gtk.org/.]),
#		  gobject gmodule)

		GLIB_PACKAGES="gobject-2.0 gmodule-2.0"
#this causes syntax error on DEP
#		PKG_CHECK_MODULES(DEP, glib-2.0 >= $GLIB_REQUIRED_VERSION $GLIB_PACKAGES, , AC_MSG_WARN([
#				*** GLib not found. You can find it on ftp://ftp.gtk.org
#				*** Errors follow:
#					$DEP_PKG_ERRORS]))
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-gtk-ac not specified" >&5
$as_echo "--with-gtk-ac not specified" >&6; }

fi



  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for GTK+ GUI support:${T_ME}" >&5
$as_echo "${T_MD}Checking for GTK+ GUI support:${T_ME}" >&6; }


# Check whether --with-gtk was given.
if test "${with_gtk+set}" = set; then :
  withval=$with_gtk;
	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
	    	withval=/usr/local
			CUSTOM_WITHVAL=0
		else
			#user specified custom withval
			CUSTOM_WITHVAL=1
		    ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON GTK"
			WARN_LD_LIBRARY_PATH=1
		fi

		old_PATH="$PATH"; old_LIBS="$LIBS"; old_LDFLAGS="$LDFLAGS"
		PATH="$PATH:$withval/bin"
		LDFLAGS="$LDFLAGS -L$withval/lib -L/usr/lib"

		GTK_CONFIG=no
		#AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
		# Extract the first word of "gtk-query-immodules-2.0", so it can be a program name with args.
set dummy gtk-query-immodules-2.0; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_GTK_QUERY+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $GTK_QUERY in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GTK_QUERY="$GTK_QUERY" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GTK_QUERY="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_GTK_QUERY" && ac_cv_path_GTK_QUERY="no"
  ;;
esac
fi
GTK_QUERY=$ac_cv_path_GTK_QUERY
if test -n "$GTK_QUERY"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_QUERY" >&5
$as_echo "$GTK_QUERY" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



		if test "$GTK_CONFIG" != "no" -a "$PKG_CONFIG" != "no"; then
			#If both gtk-config and phg-config are found, use pkg-config
			#Because gtk-config is GTK 1.2 only, and has no GTK 2.0 information
			#pkg_config can contain both 1.2 and 2.0 info
			GTK_USE_CONFIG=pkg
		fi
		if test "$GTK_CONFIG" = "no" -a "$PKG_CONFIG" != "no"; then
			#Have pkg-config, no gtk-config
			GTK_USE_CONFIG=pkg
		fi
		if test "$GTK_CONFIG" != "no" -a "$PKG_CONFIG" = "no"; then
			#Have gtk-config, no pkg-config
			GTK_USE_CONFIG=gtk
		fi
		if test "$GTK_CONFIG" = "no" -a "$PKG_CONFIG" = "no"; then
			#No config found
			GTK_USE_CONFIG=no
		fi

		if test "$GTK_USE_CONFIG" = "pkg"; then
			#See if we can extract names
			#pkg-config needs package name as parameter, and on Cygwin,
			#this include version names, so we need to extract this names first:

			#First check if --list-all works
			TMP987=`$PKG_CONFIG --list-all 2>&1 | grep "was not found in the pkg-config search path"`
			if test "$TMP987" != ""; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** cannot use pkg-config --list-all option" >&5
$as_echo "$as_me: WARNING: ** cannot use pkg-config --list-all option" >&2;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** your pkg-config is missconfigured" >&5
$as_echo "$as_me: WARNING: ** your pkg-config is missconfigured" >&2;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Will try guessing GTK2 names" >&5
$as_echo "$as_me: WARNING: ** Will try guessing GTK2 names" >&2;}
				GTK_VERSION="2.0"

$as_echo "#define HAVE_GTK_VERSION 2" >>confdefs.h

				GTK_NAME="gtk+-2.0"
				GDK_NAME="gdk-2.0"
				GLIB_NAME="glib-2.0"
			else
				#pkg-config seems to work
				#First try to see if pgk-config has info on GTK+ version 2
				GTK_NAME=`$PKG_CONFIG --list-all 2>/dev/null | grep "^gtk+-2.0 " | head -n 1 | awk '{print $1}'`
				GDK_NAME=`$PKG_CONFIG --list-all 2>/dev/null | grep "^gdk-2.0 " | head -n 1 | awk '{print $1}'`

				# On some platforms - we have gtk but not gdk
				# like fedora core 8..
				if test "$GDK_NAME" = ""  -a "$GTK_NAME" = "gtk+-2.0"
				then
					# Well - we must have gdk - because we've got gtk+, so just fake it..
					GDK_NAME="gdk-2.0"
					GLIB_NAME="glib-2.0"
					#GDK_NAME_OK=1
					#GLIB_NAME_OK=1
				else
					GLIB_NAME=`$PKG_CONFIG --list-all 2>/dev/null | grep "^glib-2.0 " |  head -n 1 | awk '{print $1}'`
				fi

				if test "$GTK_NAME" = "" -o "$GDK_NAME" = "" -o "$GLIB_NAME" = ""; then
					#No GTK+ version 2 info, try old 1.2
					GTK_NAME=`$PKG_CONFIG --list-all 2>/dev/null | grep "^gtk " | head -n 1 | awk '{print $1}'`
					GDK_NAME=`$PKG_CONFIG --list-all 2>/dev/null | grep "^gdk " | head -n 1 | awk '{print $1}'`
					GLIB_NAME=`$PKG_CONFIG --list-all 2>/dev/null | grep "^glib " |  head -n 1 | awk '{print $1}'`
					if test "$GTK_NAME" = "" -o "$GDK_NAME" = "" -o "$GLIB_NAME" = ""; then
						#No 2 info, no 1.2 info
						GTK_VERSION="0";

$as_echo "#define HAVE_GTK_VERSION 0" >>confdefs.h

						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot extract V 2 or V 1.2 using pkg-config" >&5
$as_echo "$as_me: WARNING: cannot extract V 2 or V 1.2 using pkg-config" >&2;}
						if test "$GTK_CONFIG" != "no" ; then
							{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will try gtk-config instead" >&5
$as_echo "$as_me: WARNING: Will try gtk-config instead" >&2;}
							GTK_USE_CONFIG=gtk
						fi
					else
						GTK_VERSION="1.2";

$as_echo "#define HAVE_GTK_VERSION 1.2" >>confdefs.h

						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 1.2 names found with pkg-config" >&5
$as_echo "GTK+ 1.2 names found with pkg-config" >&6; }
					fi
				else
					GTK_VERSION="2.0"

$as_echo "#define HAVE_GTK_VERSION 2" >>confdefs.h

					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.0 names found with pkg-config" >&5
$as_echo "GTK+ 2.0 names found with pkg-config" >&6; }
				fi
			fi

			#If we still watn to use pkg-config:
			if test "$GTK_USE_CONFIG" = "pkg"; then
				#Now check that names
				if test "$GTK_NAME" != "" -a "$GDK_NAME" != "" -a "$GLIB_NAME" != ""; then
					if $PKG_CONFIG --exists $GTK_NAME ; then
						GTK_NAME_OK=1
					fi
					if $PKG_CONFIG --exists $GDK_NAME ; then
						GDK_NAME_OK=1
					fi
					if $PKG_CONFIG --exists $GLIB_NAME ; then
						GLIB_NAME_OK=1
					fi
					if test "$GTK_NAME_OK" = "1" -a "$GDK_NAME_OK" = "1" -a "$GLIB_NAME_OK" = "1"; then
						if test "$enable_ac_debug" = "yes" ; then
							{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Found names: GTK_NAME=\"$GTK_NAME\" GDK_NAME=\"$GDK_NAME\" GLIB_NAME=\"$GLIB_NAME\"" >&5
$as_echo "Found names: GTK_NAME=\"$GTK_NAME\" GDK_NAME=\"$GDK_NAME\" GLIB_NAME=\"$GLIB_NAME\"" >&6; }
						fi
					else
						GTK_VERSION="0";

$as_echo "#define HAVE_GTK_VERSION 0" >>confdefs.h

						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot confirm names from pkg-config." >&5
$as_echo "$as_me: WARNING: cannot confirm names from pkg-config." >&2;}
						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GTK_NAME=\"$GTK_NAME\"" >&5
$as_echo "$as_me: WARNING: GTK_NAME=\"$GTK_NAME\"" >&2;}
						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDK_NAME=\"$GDK_NAME\"" >&5
$as_echo "$as_me: WARNING: GDK_NAME=\"$GDK_NAME\"" >&2;}
						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GLIB_NAME=\"$GLIB_NAME\"" >&5
$as_echo "$as_me: WARNING: GLIB_NAME=\"$GLIB_NAME\"" >&2;}
					fi
				else
					GTK_VERSION="0";

$as_echo "#define HAVE_GTK_VERSION 0" >>confdefs.h

					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot extract names from pkg-config." >&5
$as_echo "$as_me: WARNING: cannot extract names from pkg-config." >&2;}
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GTK_NAME=\"$GTK_NAME\"" >&5
$as_echo "$as_me: WARNING: GTK_NAME=\"$GTK_NAME\"" >&2;}
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDK_NAME=\"$GDK_NAME\"" >&5
$as_echo "$as_me: WARNING: GDK_NAME=\"$GDK_NAME\"" >&2;}
					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GLIB_NAME=\"$GLIB_NAME\"" >&5
$as_echo "$as_me: WARNING: GLIB_NAME=\"$GLIB_NAME\"" >&2;}
				fi
			fi
		fi

		#########################################################
		if test "$GTK_USE_CONFIG" = "pkg"; then
			GTK_LIB_PATH=`$PKG_CONFIG --libs-only-L $GTK_NAME`
			GTK_INC_PATH=`$PKG_CONFIG --cflags-only-I $GTK_NAME`
			GTKLIBS=`$PKG_CONFIG --libs-only-l $GTK_NAME`
			if test "$GTK_LIB_PATH" != "" -a "$GTK_INC_PATH" != "" \
				-a "$GTKLIBS" != ""; then

$as_echo "#define HAVE_GTK 1" >>confdefs.h

				GTK_REAL_VERSION=`$PKG_CONFIG --modversion $GTK_NAME`
				GTKBUILD=yes
			else

$as_echo "#define HAVE_GTK 0" >>confdefs.h

				GTKBUILD=no
			fi
		fi
		#########################################################
		if test "$GTK_USE_CONFIG" = "gtk"; then
			GTK_NAME="gtk-config"
			GDK_NAME="gtk-config"
			GLIB_NAME="gtk-config"
			GTK_INC_PATH=`$GTK_CONFIG --cflags`
			GLIB_CFLAGS=$GTK_INC_PATH
			GTKLIBS=`$GTK_CONFIG --libs`
			#FIXME: why am I using differnt names?
			if test "$GTK_INC_PATH" != "" -a "$GLIB_CFLAGS" != "" \
				-a "$GTKLIBS" != ""; then

$as_echo "#define HAVE_GTK 1" >>confdefs.h

				GTK_REAL_VERSION=`$GTK_CONFIG --version`
				GTK_VERSION="1.2"
				GTKBUILD=yes
			else

$as_echo "#define HAVE_GTK 0" >>confdefs.h

				GTKBUILD=no
			fi
		fi

		#########################################################
		if test "$GTK_USE_CONFIG" = "no"; then
			if test "$AUBIT_SOURCE" = "1" ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find pkg-config or gtk-config" >&5
$as_echo "$as_me: WARNING: cannot find pkg-config or gtk-config" >&2;}

$as_echo "#define HAVE_GTK 0" >>confdefs.h

				GTKBUILD=no
			#else
			#	...
			fi
		fi

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK usability " >&5
$as_echo_n "checking GTK usability ... " >&6; }
		if test "$AUBIT_SOURCE" = "0"; then
			#We just need libs
			if test "$GTK_QUERY" != "no"; then
				GTKBUILD="yes"
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - libraries only" >&5
$as_echo "yes - libraries only" >&6; }
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			fi
		else
			if test "$GTKBUILD" = "yes"; then
				#Fix silly GTK paths returned by pkg-config on Windows:
				GTK_INC_PATH=`echo $GTK_INC_PATH | sed -e 's/\/target\/build/\/usr/g' -e 's/\/target/\/usr/g'`
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($GTK_VERSION using $GTK_USE_CONFIG V:$GTK_REAL_VERSION)" >&5
$as_echo "yes ($GTK_VERSION using $GTK_USE_CONFIG V:$GTK_REAL_VERSION)" >&6; }
				#AC_MSG_RESULT(Package names: $GTK_NAME $GDK_NAME $GLIB_NAME)
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			fi
		fi
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-gtk not specified" >&5
$as_echo "--with-gtk not specified" >&6; }

fi


CUSTOM_WITHVAL=0
if test "$enable_stop_gtk" = "yes" ; then
	exit
fi
## ==================================================================
##                  Check for Glade support
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Glade support:${T_ME}" >&5
$as_echo "${T_MD}Checking for Glade support:${T_ME}" >&6; }



# Check whether --with-glade was given.
if test "${with_glade+set}" = set; then :
  withval=$with_glade;
	if test "$withval" != "no"; then
		if test "$withval" = "yes"; then
	    	withval=/usr/local
		else
			#user specified custom withval
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON Glade"
			WARN_LD_LIBRARY_PATH=1
            ADD_LD_LIBRARY_PATH="$withval/lib$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
		fi

		old_LIBS="$LIBS"
		old_LDFLAGS="$LDFLAGS"

		if test "$PKG_CONFIG" != "no"; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Glade 2 in pkg-config" >&5
$as_echo_n "checking Glade 2 in pkg-config... " >&6; }
			#--exists  return 0 if the module(s) exist
			GLADE_NAME="libglade-2.0"
			if $PKG_CONFIG --exists $GLADE_NAME ; then
				HAS_GLADE_2=1
				GLADE_VERSION=`$PKG_CONFIG --modversion $GLADE_NAME`
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLADE_NAME present ($GLADE_VERSION)" >&5
$as_echo "$GLADE_NAME present ($GLADE_VERSION)" >&6; }
				#In GladeWin Windows installer:
				#/cygdrive/c/GTK/lib/libglade-2.0.dll.a
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lglade-2.0" >&5
$as_echo_n "checking for main in -lglade-2.0... " >&6; }
if ${ac_cv_lib_glade_2_0_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lglade-2.0  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_glade_2_0_main=yes
else
  ac_cv_lib_glade_2_0_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glade_2_0_main" >&5
$as_echo "$ac_cv_lib_glade_2_0_main" >&6; }
if test "x$ac_cv_lib_glade_2_0_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGLADE_2_0 1
_ACEOF

  LIBS="-lglade-2.0 $LIBS"

fi

				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lglade" >&5
$as_echo_n "checking for main in -lglade... " >&6; }
if ${ac_cv_lib_glade_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lglade  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_glade_main=yes
else
  ac_cv_lib_glade_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glade_main" >&5
$as_echo "$ac_cv_lib_glade_main" >&6; }
if test "x$ac_cv_lib_glade_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGLADE 1
_ACEOF

  LIBS="-lglade $LIBS"

fi

				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lglade-gnome" >&5
$as_echo_n "checking for main in -lglade-gnome... " >&6; }
if ${ac_cv_lib_glade_gnome_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lglade-gnome  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_glade_gnome_main=yes
else
  ac_cv_lib_glade_gnome_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glade_gnome_main" >&5
$as_echo "$ac_cv_lib_glade_gnome_main" >&6; }
if test "x$ac_cv_lib_glade_gnome_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGLADE_GNOME 1
_ACEOF

  LIBS="-lglade-gnome $LIBS"

fi

			else
				HAS_GLADE_2=0
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLADE_NAME MISSING" >&5
$as_echo "$GLADE_NAME MISSING" >&6; }
			fi
		else
			if test "$AUBIT_SOURCE" = "1" ; then
				HAS_GLADE_2=0
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg-config detected" >&5
$as_echo "no pkg-config detected" >&6; }
			#else
			#	...
			fi
		fi

		PATH="$old_PATH"; LIBS="$old_LIBS"; LDFLAGS="$old_LDFLAGS"

	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	fi

else

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-glade not specified" >&5
$as_echo "--with-glade not specified" >&6; }

fi



## ==================================================================
##                  Check for Sun RPC support
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Sun RPC support:${T_ME}" >&5
$as_echo "${T_MD}Checking for Sun RPC support:${T_ME}" >&6; }


if test "$FORCE_RPC" = "1"; then

	#Note: on Linux, rpclib functions are in libc. On other systems, for
	#example Windows/CygWin, this will be a separate library that we will need

	#First, let's see if RPC is in libraries we already have as default:

	#it is not enough to just test for function, you then have test for its success by name!
	#and BTW, what's wrong with svctcp_create ?
	#AC_CHECK_FUNCS([svc_run])
	for ac_func in svctcp_create
do :
  ac_fn_c_check_func "$LINENO" "svctcp_create" "ac_cv_func_svctcp_create"
if test "x$ac_cv_func_svctcp_create" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SVCTCP_CREATE 1
_ACEOF

fi
done

	for ac_header in  rpc/rpc.h rpc.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

			#We will get #define HAVE___rpc_thread_svc_fdset in a4gl_incl_config.h, but no variables
			#are defined when testing functions.

	#if test `eval echo '${'$as_ac_var'}'` != yes ; then
	#if test "$ac_cv_func___rpc_thread_svc_fdset" != "yes"; then
	if test "$ac_cv_func_svctcp_create" != "yes"; then
		RPC_FUNC_INTERNAL=0
		#This happened on ia64-unknown-linux-gnu
		case $host in
		*linux*)
			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ooops-you dont have RPC function in GLIBC" >&5
$as_echo "$as_me: WARNING: Ooops-you dont have RPC function in GLIBC" >&2;}
			;;
		esac

		#force this check even if not specified on command line:
		if test "$with_rpc" = "" && test "$FORCE_RPC" = "1"; then
			with_rpc=yes
		fi
	else
		RPC_FUNC_INTERNAL=1

		if test "$AUBIT_SOURCE" = "1" ; then #if compiling source code...
			#...force this check even if not specified on command line:
			if test "$with_rpc" = ""  && test "$FORCE_RPC" = "1"; then
				with_rpc=yes
			fi
	    else
			HAVE_RPCLIB=1
		fi
	fi

fi #if test "$FORCE_RPC" = "1"


# Check whether --with-rpc was given.
if test "${with_rpc+set}" = set; then :
  withval=$with_rpc;

	if test "$withval" != "no"; then

		#AC_MSG_CHECKING(for RPC support)

		if test "$withval" = "yes"; then
	    	withval=/usr/local
		else
			#user specified custom withval
		    CUSTOM_WITHVAL=1
			ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON RPC"
			WARN_LD_LIBRARY_PATH=1

	    fi

		old_LIBS=$LIBS
		old_LDFLAGS=$LDFLAGS
        old_PATH="$PATH"
        PATH="$withval/rpcgen:$PATH"
        TEST_I_FLAGS="-I$withval/include -I$withval/rpc -I$withval"
        TEST_L_FLAGS="-L$withval/lib"
		LDFLAGS="$LDFLAGS $TEST_I_FLAGS $TEST_L_FLAGS"
		# FIXME: Replace `main' with a function in `-lrpclib':
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrpclib" >&5
$as_echo_n "checking for main in -lrpclib... " >&6; }
if ${ac_cv_lib_rpclib_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrpclib  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rpclib_main=yes
else
  ac_cv_lib_rpclib_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpclib_main" >&5
$as_echo "$ac_cv_lib_rpclib_main" >&6; }
if test "x$ac_cv_lib_rpclib_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBRPCLIB 1
_ACEOF

  LIBS="-lrpclib $LIBS"

fi

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrpcsvc" >&5
$as_echo_n "checking for main in -lrpcsvc... " >&6; }
if ${ac_cv_lib_rpcsvc_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrpcsvc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rpcsvc_main=yes
else
  ac_cv_lib_rpcsvc_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsvc_main" >&5
$as_echo "$ac_cv_lib_rpcsvc_main" >&6; }
if test "x$ac_cv_lib_rpcsvc_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBRPCSVC 1
_ACEOF

  LIBS="-lrpcsvc $LIBS"

fi


		if test "$ac_cv_lib_rpcsvc_main" = "yes"; then
			#seems rpc library is rpcsvc on aix and sparc-sun-solaris2.7
			#which defines a bunch of symbols starting 'xdr_'

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for svctcp_create  in -lrpcsvc" >&5
$as_echo_n "checking for svctcp_create  in -lrpcsvc... " >&6; }
if ${ac_cv_lib_rpcsvc_svctcp_create_+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrpcsvc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char svctcp_create  ();
int
main ()
{
return svctcp_create  ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rpcsvc_svctcp_create_=yes
else
  ac_cv_lib_rpcsvc_svctcp_create_=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsvc_svctcp_create_" >&5
$as_echo "$ac_cv_lib_rpcsvc_svctcp_create_" >&6; }
if test "x$ac_cv_lib_rpcsvc_svctcp_create_" = xyes; then :

$as_echo "#define HAVE_RPCSVC 1" >>confdefs.h

fi


			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing RPC functions" >&5
$as_echo_n "checking library containing RPC functions... " >&6; }
			if test "$ac_cv_lib_rpcsvc___rpc_thread_svc_fdset" = "yes" || test "$ac_cv_lib_rpcsvc_svctcp_create_" = "yes" || test "$ac_cv_lib_rpcsvc_xdr_argument_" = "yes"; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -lrpcsvc" >&5
$as_echo "-lrpcsvc" >&6; }
	            RPCLIB_NAME=-lrpcsvc
            else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Found -lrpcsvc" >&5
$as_echo "Found -lrpcsvc" >&6; }
				#This checks are just to make debugging easier if real one fails, and should be removed in future:
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __rpc_thread_svc_fdset in -lrpcsvc" >&5
$as_echo_n "checking for __rpc_thread_svc_fdset in -lrpcsvc... " >&6; }
if ${ac_cv_lib_rpcsvc___rpc_thread_svc_fdset+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrpcsvc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char __rpc_thread_svc_fdset ();
int
main ()
{
return __rpc_thread_svc_fdset ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rpcsvc___rpc_thread_svc_fdset=yes
else
  ac_cv_lib_rpcsvc___rpc_thread_svc_fdset=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsvc___rpc_thread_svc_fdset" >&5
$as_echo "$ac_cv_lib_rpcsvc___rpc_thread_svc_fdset" >&6; }
if test "x$ac_cv_lib_rpcsvc___rpc_thread_svc_fdset" = xyes; then :

$as_echo "#define HAVE_RPCSVC 1" >>confdefs.h

fi

				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdr_argument  in -lrpcsvc" >&5
$as_echo_n "checking for xdr_argument  in -lrpcsvc... " >&6; }
if ${ac_cv_lib_rpcsvc_xdr_argument_+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrpcsvc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char xdr_argument  ();
int
main ()
{
return xdr_argument  ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rpcsvc_xdr_argument_=yes
else
  ac_cv_lib_rpcsvc_xdr_argument_=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsvc_xdr_argument_" >&5
$as_echo "$ac_cv_lib_rpcsvc_xdr_argument_" >&6; }
if test "x$ac_cv_lib_rpcsvc_xdr_argument_" = xyes; then :

$as_echo "#define HAVE_RPCSVC 1" >>confdefs.h

fi


				case $host in
					*solaris*)
				        #sparc-sun-solaris2.8
                        #I'm obviously looking for wrong functions on Solaris:
						RPCLIB_NAME=-lrpcsvc
						;;

				esac

			fi
        fi

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

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for svctcp_create  in -lrpclib" >&5
$as_echo_n "checking for svctcp_create  in -lrpclib... " >&6; }
if ${ac_cv_lib_rpclib_svctcp_create_+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrpclib  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char svctcp_create  ();
int
main ()
{
return svctcp_create  ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rpclib_svctcp_create_=yes
else
  ac_cv_lib_rpclib_svctcp_create_=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpclib_svctcp_create_" >&5
$as_echo "$ac_cv_lib_rpclib_svctcp_create_" >&6; }
if test "x$ac_cv_lib_rpclib_svctcp_create_" = xyes; then :

$as_echo "#define HAVE_RPCLIB 1" >>confdefs.h

fi

			if test "$ac_cv_lib_rpclib___rpc_thread_svc_fdset" = "yes" || test "$ac_cv_lib_rpclib_svctcp_create_" = "yes" || test "$ac_cv_lib_rpclib_xdr_argument_" = "yes"; then
				echo "Found RPC functions in -lrpclib"
		        RPCLIB_NAME=-lrpclib
	        else
                echo "Found -lrpclib, but no RPC functions inside."
				#This checks are just to make debugging easier if real one fails, and should be removed in future:
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdr_argument  in -lrpclib" >&5
$as_echo_n "checking for xdr_argument  in -lrpclib... " >&6; }
if ${ac_cv_lib_rpclib_xdr_argument_+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrpclib  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char xdr_argument  ();
int
main ()
{
return xdr_argument  ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rpclib_xdr_argument_=yes
else
  ac_cv_lib_rpclib_xdr_argument_=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpclib_xdr_argument_" >&5
$as_echo "$ac_cv_lib_rpclib_xdr_argument_" >&6; }
if test "x$ac_cv_lib_rpclib_xdr_argument_" = xyes; then :

$as_echo "#define HAVE_RPCLIB 1" >>confdefs.h

fi

				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __rpc_thread_svc_fdset in -lrpclib" >&5
$as_echo_n "checking for __rpc_thread_svc_fdset in -lrpclib... " >&6; }
if ${ac_cv_lib_rpclib___rpc_thread_svc_fdset+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrpclib  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char __rpc_thread_svc_fdset ();
int
main ()
{
return __rpc_thread_svc_fdset ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rpclib___rpc_thread_svc_fdset=yes
else
  ac_cv_lib_rpclib___rpc_thread_svc_fdset=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpclib___rpc_thread_svc_fdset" >&5
$as_echo "$ac_cv_lib_rpclib___rpc_thread_svc_fdset" >&6; }
if test "x$ac_cv_lib_rpclib___rpc_thread_svc_fdset" = xyes; then :

$as_echo "#define HAVE_RPCLIB 1" >>confdefs.h

fi


			fi
		fi

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

  test -z "$ac_cv_path_RPCGEN" && ac_cv_path_RPCGEN="no"
  ;;
esac
fi
RPCGEN=$ac_cv_path_RPCGEN
if test -n "$RPCGEN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPCGEN" >&5
$as_echo "$RPCGEN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


		LIBS="$old_LIBS"
		LDFLAGS="$old_LDFLAGS"
        PATH="$old_PATH"

		if test "$RPCGEN" = "no";  then

$as_echo "#define HAVE_RPCGEN 0" >>confdefs.h


			if test "$AUBIT_SOURCE" = "1" ; then

				case "$host" in

					*-*-cygwin* | *-*-mingw* )
						#we don't need rpcgen on CygWin
		                USE_RPCGEN=0
                        #FIXME: if needed, set this path to appropriate subdir of "no_rpc" depending
                        #on platform. It is not clear is this files are platform dependent.
						RPCLIB_INCLUDE="-I$aubitdir/tools/no_rpc/cygwin"
                        WARN_RPCGEN=1
						;;

		            *)
                        WARN_RPCGEN=2
						#AC_MSG_ERROR( "rpcgen" not found. Please install Sun RPC or ask for precompiled RPC files for your platform to be added to Aubit disrtibution. Stop.)
						USE_RPCGEN=0
						RPCLIB_INCLUDE="-I$aubitdir/tools/no_rpc/cygwin"
		                ;;

	            esac
            else
				#we don't need rpcgen for binary distro
                USE_RPCGEN=0
			fi

		else
			USE_RPCGEN=1

$as_echo "#define HAVE_RPCGEN 1" >>confdefs.h

		fi

        if test "$RPCLIB_NAME" != ""; then
		    RPCLIB_INCLUDE="$TEST_I_FLAGS"
		    RPCLIB_LFLAGS="$TEST_L_FLAGS"

$as_echo "#define HAVE_RPCLIB 1" >>confdefs.h

			HAVE_RPCLIB=1
            #A4GL_RPCTYPE=SUNRPC
            #A4GL_RPCTYPE_DETECTED="$A4GL_RPCTYPE_DETECTED $A4GL_RPCTYPE"
		else
			if test "$RPC_FUNC_INTERNAL" != "1"; then

$as_echo "#define HAVE_RPCLIB 0" >>confdefs.h

				HAVE_RPCLIB=0
                WARN_RPCLIB=1
                #FIXME: if we link fcompile and mcompile statically with rpclib for binary distro, will
                #it be able to compile forms and menus on systems without rpclib installed?

				#FIXME: if we link libRPC_SUNRPC statically with rpclib for binary distro, will RPC work
				#on system without rpclib installed?
            else

$as_echo "#define HAVE_RPCLIB 1" >>confdefs.h

				HAVE_RPCLIB=1
			fi
		fi

		if test "$CUSTOM_WITHVAL" = "1"; then
			if test "$HAVE_RPCLIB" = "1"; then
				#user specified custom withval
				WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON RPC"
				WARN_LD_LIBRARY_PATH=1
            fi
		fi
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disbled" >&5
$as_echo "disbled" >&6; }

$as_echo "#define HAVE_RPCLIB 0" >>confdefs.h

		HAVE_RPCLIB=0
		USE_RPCGEN=0

$as_echo "#define HAVE_RPCGEN 0" >>confdefs.h


	fi

else

	#This shoult never happen:
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-rpc not specified" >&5
$as_echo "--with-rpc not specified" >&6; }

fi


CUSTOM_WITHVAL=0

#Its probably ok to link it even if we dont need it, but if RPC functions
#are already in standard libraryes (Linux), we really don't need to:
#if test "$RPC_FUNC_INTERNAL" = "1"; then
#	RPCLIB_NAME=
#fi


## ==================================================================
##            Check for Perl generating compiler support
## ==================================================================


# Check whether --with-perl was given.
if test "${with_perl+set}" = set; then :
  withval=$with_perl;
		if test "$withval" != "no"; then
			if test "$PERL" != no; then
				if test "$SWIG" != no; then
					#Fixme: How to test for MakeMaker Perl module ?
					PERLBUILD=yes
				fi
			fi
		else
			PERLBUILD=no
		fi

fi



## ==================================================================
##               Checks for curses/ncurses library
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for curses libraries:${T_ME}" >&5
$as_echo "${T_MD}Checking for curses libraries:${T_ME}" >&6; }


# Check whether --with-curses was given.
if test "${with_curses+set}" = set; then :
  withval=$with_curses;

	if test "$withval" = "no"; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled" >&5
$as_echo "Disabled" >&6; }
	else
		#User specified location of curses library with --with-curses=path
		if test "$withval" != "yes"; then
			CURSES_LIB_PATH="-L$withval -L$withval/lib"
            CURSES_INC_PATH="-I$withval -I$withval/ncurses -I$withval/include/ncurses -I$withval/include"
            ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON Curses"
			WARN_LD_LIBRARY_PATH=1
		else
			#Note" Aubit source code uses #include <curses.h> and NOT
			#include <ncurses.h> or include <ncurses/ncurses.h> Therefore,
			#-I flag MUST point to acutal directoty containing curses.h file.
			#Also note that old Curses libs (still available on many UNIX systems)
			#Will not include ncurses.h but Ncurses libs will include curses.h
			#So we need to use "curses" naming, not "ncurses"
			CURSES_LIB_PATH="-L/lib"
            if test -d "/usr/local/include/ncurses" ; then
				CURSES_INC_PATH="-I/usr/local/include/ncurses"
			fi
		fi

		#Store current values
		old_LIBS="$LIBS"
		old_LDFLAGS="$LDFLAGS"
		old_CFLAGS="$CFLAGS"


		LDFLAGS="$CURSES_LIB_PATH $LDFLAGS"
		CFLAGS="$CURSES_INC_PATH $CFLAGS"

		#cygncurses6.dll cygncurses5.dll cygncurses7.dll
		#AC_CHECK_LIB([cygncurses6], [main])

		#First test for New Curses (ncurses)
		# FIXME: Replace `main' with a function in `-lncurses':
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
$as_echo_n "checking for main in -lncurses... " >&6; }
if ${ac_cv_lib_ncurses_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lncurses  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ncurses_main=yes
else
  ac_cv_lib_ncurses_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
$as_echo "$ac_cv_lib_ncurses_main" >&6; }
if test "x$ac_cv_lib_ncurses_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBNCURSES 1
_ACEOF

  LIBS="-lncurses $LIBS"

fi


		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for winnstr in -lncurses" >&5
$as_echo_n "checking for winnstr in -lncurses... " >&6; }
if ${ac_cv_lib_ncurses_winnstr+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lncurses  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char winnstr ();
int
main ()
{
return winnstr ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ncurses_winnstr=yes
else
  ac_cv_lib_ncurses_winnstr=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_winnstr" >&5
$as_echo "$ac_cv_lib_ncurses_winnstr" >&6; }
if test "x$ac_cv_lib_ncurses_winnstr" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBNCURSES 1
_ACEOF

  LIBS="-lncurses $LIBS"

fi

		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for winnstr in -lcurses" >&5
$as_echo_n "checking for winnstr in -lcurses... " >&6; }
if ${ac_cv_lib_curses_winnstr+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcurses  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char winnstr ();
int
main ()
{
return winnstr ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_curses_winnstr=yes
else
  ac_cv_lib_curses_winnstr=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_winnstr" >&5
$as_echo "$ac_cv_lib_curses_winnstr" >&6; }
if test "x$ac_cv_lib_curses_winnstr" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCURSES 1
_ACEOF

  LIBS="-lcurses $LIBS"

fi

		if test "$ac_cv_lib_ncurses_main" = "yes"; then
			#We found "ncurses" library
			#fixme: check version of curses - how?
	        HAVE_CURSES=1
		else



					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - found $THIS_LIB" >&5
$as_echo "yes - found $THIS_LIB" >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking For any libncurses library on the system" >&5
$as_echo_n "checking For any libncurses library on the system... " >&6; }
			#Some distros like SuSE stopped linking libncuses.so.x.x back
			#to libncurses.so, so we need to search for it
			#AC SEARCH LIBS(function,search-libs,[echo "found it"],[echo "Did not found it"],[other-libs])
			#Hopefully no other library exports function mvadd_wchnstr
			SEARCH_LIBS="`locate libncurses.so`"
			if test "$SEARCH_LIBS" != "" ; then
				LIBS=""
				THIS_LIB=""
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mvadd_wchnstr" >&5
$as_echo_n "checking for library containing mvadd_wchnstr... " >&6; }
if ${ac_cv_search_mvadd_wchnstr+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mvadd_wchnstr ();
int
main ()
{
return mvadd_wchnstr ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' $SEARCH_LIBS; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib other-libs  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_mvadd_wchnstr=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_mvadd_wchnstr+:} false; then :
  break
fi
done
if ${ac_cv_search_mvadd_wchnstr+:} false; then :

else
  ac_cv_search_mvadd_wchnstr=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mvadd_wchnstr" >&5
$as_echo "$ac_cv_search_mvadd_wchnstr" >&6; }
ac_res=$ac_cv_search_mvadd_wchnstr
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  echo "found it"
else
  echo "Did not find it"
fi

				if test "$LIB" != ""; then
					THIS_LIB="`echo $LIBS | sed -e 's/-l//'`"
					ac_cv_lib_ncurses_main="yes"
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - found $THIS_LIB" >&5
$as_echo "yes - found $THIS_LIB" >&6; }

					#Make a link for us:
					LINK_MATCH="lib$THIS_LIB.so"
					for file in $SEARCH_LIBS ; do
						case $file in
							$LINK_MATCH*)
								echo "Linking $file to $aubitdir/lib/lib$THIS_LIB.so"
								ls -s $file $aubitdir/lib/lib$THIS_LIB.so
								break
							;;
						esac
					done
				else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Found nothing with AC SEARCH LIBS in $SEARCH_LIBS" >&5
$as_echo "Found nothing with AC SEARCH LIBS in $SEARCH_LIBS" >&6; }
				fi
				LIBS=""
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: locate found no libncurses.so on this system" >&5
$as_echo "locate found no libncurses.so on this system" >&6; }
			fi
		fi

		if test "$ac_cv_lib_ncurses_main" = "yes"; then
			#"ncurses" library was NOT found, try curses
			# FIXME: Replace `main' with a function in `-lcurses':
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
$as_echo_n "checking for main in -lcurses... " >&6; }
if ${ac_cv_lib_curses_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcurses  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_curses_main=yes
else
  ac_cv_lib_curses_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
$as_echo "$ac_cv_lib_curses_main" >&6; }
if test "x$ac_cv_lib_curses_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCURSES 1
_ACEOF

  LIBS="-lcurses $LIBS"

fi

			if test "$ac_cv_lib_curses_main" = "yes"; then
				#fixme: check version of curses - how?
		        HAVE_CURSES=1
	        fi
		fi
        if test "$HAVE_CURSES" = "1"; then
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking For wide libncurses library on the system" >&5
$as_echo_n "checking For wide libncurses library on the system... " >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncursesw" >&5
$as_echo_n "checking for main in -lncursesw... " >&6; }
if ${ac_cv_lib_ncursesw_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lncursesw  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ncursesw_main=yes
else
  ac_cv_lib_ncursesw_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_main" >&5
$as_echo "$ac_cv_lib_ncursesw_main" >&6; }
if test "x$ac_cv_lib_ncursesw_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBNCURSESW 1
_ACEOF

  LIBS="-lncursesw $LIBS"

fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpanelw" >&5
$as_echo_n "checking for main in -lpanelw... " >&6; }
if ${ac_cv_lib_panelw_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpanelw  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_panelw_main=yes
else
  ac_cv_lib_panelw_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panelw_main" >&5
$as_echo "$ac_cv_lib_panelw_main" >&6; }
if test "x$ac_cv_lib_panelw_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPANELW 1
_ACEOF

  LIBS="-lpanelw $LIBS"

fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lformw" >&5
$as_echo_n "checking for main in -lformw... " >&6; }
if ${ac_cv_lib_formw_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lformw  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_formw_main=yes
else
  ac_cv_lib_formw_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_formw_main" >&5
$as_echo "$ac_cv_lib_formw_main" >&6; }
if test "x$ac_cv_lib_formw_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBFORMW 1
_ACEOF

  LIBS="-lformw $LIBS"

fi

		if test "$ac_cv_lib_ncursesw_main$ac_cv_lib_panelw_main$ac_cv_lib_formw_main" = "yesyesyes" ; then
			for ac_header in  ncursesw/curses.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

			if test "$ac_cv_header_ncursesw_curses_h" = "yes"
			then
	        		HAVE_WIDE_NCURSES=1
				$as_echo "#define HAVE_WIDE_NCURSES 1" >>confdefs.h

			fi
		fi
			$as_echo "#define HAVE_CURSES 1" >>confdefs.h


		echo "ac_cv_lib_ncurses_winnstr=$ac_cv_lib_ncurses_winnstr"
		echo "ac_cv_lib_curses_winnstr=$ac_cv_lib_curses_winnstr"
			case $host in
				*-apple-darwin*)
					CURSES_LIB_NAME="-lSystem"
					;;
				*solaris*)
					CURSES_LIB_NAME="-lform -lpanel -lncurses"
					;;
				*aix*)
					CURSES_LIB_NAME="-lform -lpanel -lncurses"
					;;
				*hpux*)
					CURSES_LIB_NAME="-lform -lpanel"
					if test "$ac_cv_lib_ncurses_main" = "yes"; then
						CURSES_LIB_NAME="-lncurses $CURSES_LIB_NAME"
                    			else
						CURSES_LIB_NAME="-lcurses $CURSES_LIB_NAME"
                    			fi
					;;
				*linux*)
					CURSES_LIB_NAME="-lform -lpanel"
					if test "$ac_cv_lib_curses_main" = "yes"; then
						CURSES_LIB_NAME="-lcurses $CURSES_LIB_NAME"
                    			else
						CURSES_LIB_NAME="-lncurses $CURSES_LIB_NAME"
                    			fi
					;;
				*)
					CURSES_LIB_NAME="-lform -lpanel"
					if test "$ac_cv_lib_ncurses_main" = "yes"; then
						CURSES_LIB_NAME="-lncurses $CURSES_LIB_NAME"
                    			else
						CURSES_LIB_NAME="-lcurses $CURSES_LIB_NAME"
                    			fi
					;;
			esac
        else
			CURSES_INC_PATH="-I$aubitdir/tools/no_curses/cygwin"
            CURSES_LIB_PATH=
		fi

		for ac_header in  curses.h ncurses.h ncurses/ncurses.h curses/curses.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


		if test "$AUBIT_SOURCE" = "1" ; then
			if test "$ac_cv_header_curses_h" = "yes" ; then
				$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h

			else
				if test "$ac_cv_header_ncurses_h" = "yes" ; then
					#This is OK since all Ncurses instalationa will include
					#curses.h (as link to ncurses.h)
					$as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h

				else
					#HAVE_CURSES=0
					if test "$ac_cv_header_ncurses_ncurses_h" = "yes" ; then
						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No curses.h but have ncurses/ncurses.h - check -I flag if fails" >&5
$as_echo "$as_me: WARNING: No curses.h but have ncurses/ncurses.h - check -I flag if fails" >&2;}
						$as_echo "#define HAVE_NCURSES_NCURSES_H 1" >>confdefs.h

					fi
					if test "$ac_cv_header_curses_curses_h" = "yes" ; then
						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No curses.h but have curses/curses.h - check -I flag if fails" >&5
$as_echo "$as_me: WARNING: No curses.h but have curses/curses.h - check -I flag if fails" >&2;}
						$as_echo "#define HAVE_CURSES_CURSES_H 1" >>confdefs.h

					fi
				fi
			fi
		fi

		#This is more or less just a diagnostic check in the case we fail
        #for some reason in detecting curses/ncurses:
		#form and panel are part of curses - but not PDcurses
		#AIX: Both form and panel h files are part of ncurses. Install it.
		# FIXME: Replace `main' with a function in `-lform':
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lform" >&5
$as_echo_n "checking for main in -lform... " >&6; }
if ${ac_cv_lib_form_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lform  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_form_main=yes
else
  ac_cv_lib_form_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_form_main" >&5
$as_echo "$ac_cv_lib_form_main" >&6; }
if test "x$ac_cv_lib_form_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBFORM 1
_ACEOF

  LIBS="-lform $LIBS"

fi

		# FIXME: Replace `main' with a function in `-lpanel':
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpanel" >&5
$as_echo_n "checking for main in -lpanel... " >&6; }
if ${ac_cv_lib_panel_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpanel  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_panel_main=yes
else
  ac_cv_lib_panel_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panel_main" >&5
$as_echo "$ac_cv_lib_panel_main" >&6; }
if test "x$ac_cv_lib_panel_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPANEL 1
_ACEOF

  LIBS="-lpanel $LIBS"

fi


		#retore current values
		LIBS="$old_LIBS"
		LDFLAGS="$old_LDFLAGS"
		CFLAGS="$old_CFLAGS"

      fi


else

		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-curses not specified" >&5
$as_echo "--with-curses not specified" >&6; }

fi



## ==================================================================
##               Checks for PDcurses library
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for PDcurses/Xcurses:${T_ME}" >&5
$as_echo "${T_MD}Checking for PDcurses/Xcurses:${T_ME}" >&6; }


# Check whether --with-pdcurses was given.
if test "${with_pdcurses+set}" = set; then :
  withval=$with_pdcurses;
	  if test "$withval" != "no"; then
		if test "$withval" != "yes"; then
			#user specified path
			case "$withval" in
				*cygdrive*)
					if test "$GCC_MINGW" = "yes"; then
						#convert Cygwin path mapping back to native
						PDCURSES_WINPATH=`echo "$withval" | sed -e 's/^\/cygdrive\///' -e 's/\//:\//'`
					fi
					;;
			esac
			if test "$PDCURSES_WINPATH" != ""; then
				ADD_LD_LIBRARY_PATH="$PDCURSES_WINPATH$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
			else
				ADD_LD_LIBRARY_PATH="$withval$A4GL_PATH_SEP$ADD_LD_LIBRARY_PATH"
			fi
			WARN_LD_LIBRARY_REASON="$WARN_LD_LIBRARY_REASON PDcurses"
			WARN_LD_LIBRARY_PATH=1
		else
			#withval is 'yes', assign default
			#Source code installs to /usr/local/pdcurses/ by default
			withval=/usr/local/pdcurses
		fi

		old_LIBS="$LIBS"
		old_LDFLAGS="$LDFLAGS"
		old_CFLAGS="$CFLAGS"
		old_CPPFLAGS="$CPPFLAGS"

		CFLAGS="-I$withval/include $CFLAGS"
		CPPFLAGS="-I$withval/include $CPPFLAGS"
		if test "$enable_ac_debug" = "yes" ; then
			echo "withval=$withval"
		fi
		#cr** - how do this paths work anyway?
		#AC_PATH_PROG(XCURSES_CONFIG, xcurses-config, no, "$withval/bin" $PATH )
		export PATH="$withval/bin:/usr/bin:/usr/local/bin:$PATH"

		if test "$GCC_MINGW" != "yes"; then
			# Extract the first word of "xcurses-config", so it can be a program name with args.
set dummy xcurses-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_XCURSES_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $XCURSES_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_XCURSES_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_XCURSES_CONFIG" && ac_cv_path_XCURSES_CONFIG="no "
  ;;
esac
fi
XCURSES_CONFIG=$ac_cv_path_XCURSES_CONFIG
if test -n "$XCURSES_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCURSES_CONFIG" >&5
$as_echo "$XCURSES_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


			for ac_header in  xpanel.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PDcurses Xcurses support" >&5
$as_echo_n "checking PDcurses Xcurses support... " >&6; }
			if test "$AUBIT_SOURCE" = "1" ; then
				if test "$XCURSES_CONFIG" != "no" -a "$ac_cv_header_xpanel_h" = "yes"; then
					#found xcurses - possible only unix
					XCURSES_CFLAGS="`$XCURSES_CONFIG --cflags` -I`$XCURSES_CONFIG --prefix`/include"
					XCURSES_LIBS=`$XCURSES_CONFIG --libs`
					HAVE_XCURSES=1
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
				else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
				fi
			else
				if test "$XCURSES_CONFIG" != "no" ; then
					#found xcurses - possible only unix
					HAVE_XCURSES=1
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
				else
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
				fi
			fi
		else
			#on windows
			#No X on Windows - what would we do with Xcurses...
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PDcurses Xcurses support" >&5
$as_echo_n "checking PDcurses Xcurses support... " >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no Xcurses on Windows" >&5
$as_echo "no Xcurses on Windows" >&6; }
		fi

		if test -d "$withval"; then
			if test -f "$withval/curses.dll"; then
				PD_CURSES_LIB_PATH="-L$withval"
				PD_CURSES_LIB_NAME="$withval/curses.dll $withval/panel.lib"
				HAVE_PDCURSES=1
			fi
			if test -f "$withval/lib/curses.so"; then
				PD_CURSES_LIB_PATH="-L$withval/lib"
				PD_CURSES_LIB_NAME="-l$withval/lib/curses.so $withval/lib/panel.lib"
				HAVE_PDCURSES=1
			fi
			#renamed since 2.7 - MS VC package
			#if test -f "$withval/pdcurses.lib"; then
			#	PD_CURSES_LIB_PATH="-L$withval"
			#	PD_CURSES_LIB_NAME="-l$withval/pdcurses.lib $withval/panel.lib"
			#	HAVE_PDCURSES=1
			#fi
			#renamed since 2.7 - mingw package:
			#if test -f "$withval/pdcurses.a"; then
			#	PD_CURSES_LIB_PATH="-L$withval"
			#	PD_CURSES_LIB_NAME="-l$withval/pdcurses.a $withval/panel.a"
			#	HAVE_PDCURSES=1
			#fi

			if test -d "$withval/incl"; then
				PD_CURSES_INC_PATH="-I$withval/incl"
			else
				#On windows everything is in one directory
				PD_CURSES_INC_PATH="-I$withval"
			fi
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PDcurses-dynamic" >&5
$as_echo_n "checking PDcurses-dynamic... " >&6; }
			if test "$HAVE_PDCURSES" = "1"; then

$as_echo "#define HAVE_PDCURSES 1" >>confdefs.h

				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
				HAS_PDCURSES_DYNAMIC_OBJS=1
			else

$as_echo "#define HAVE_PDCURSES 0" >>confdefs.h

				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - missing curses library (curses.so or .dll)" >&5
$as_echo "no - missing curses library (curses.so or .dll)" >&6; }
				HAS_PDCURSES_DYNAMIC_OBJS=0
			fi


			#below note applies to version 2.5 of pdcurses. now there are both
			#mingw and vc packages available, but only .a or .lib and no .dll at all

			#Note: pre-compiled binaries of PDcurses for Windows are currently
			#available only as MS VC compiled, which includes .dll only,
			#so we cant link it statically. As taking care of another .dll
			#and its PATH is a pain, it is easier for us to link it statically.
			#To get static .a objects for static linking, we have to compile from
			#sources (see 'make install.pdcurses') but then there is no .dll

			#TODO: First install pre-compiled MS VC binaries (.dll) then build
			#static objects from sources, and add them (install) to the same
			#location we installed .dll to - so we can have both

			#Check if we have objects needed to make statically linked HL_TUIN (HL_TUINs)
			#PDCURSES_STATIC_PATH="$CYGWIN_DRIVE:$CYGWIN_PATH/tmp/pdcurs26/win32"
			PDCURSES_STATIC_PATH="$PDCURSES_WINPATH"
			if test -f "$PDCURSES_STATIC_PATH/panel.a" \
				-a -f "$PDCURSES_STATIC_PATH/pdcurses.a";  then

					old_CPPFLAGS="$CPPFLAGS"

					#NOTE: MinGW GCC understands only native Windows path format
					PD_CURSES_LIB_PATH="-L$PDCURSES_WINPATH"
					PD_CURSES_LIB_NAME="$PDCURSES_WINPATH/pdcurses.a $PDCURSES_WINPATH/panel.a"
					PD_CURSES_INC_PATH="-I$PDCURSES_WINPATH"

					CPPFLAGS="$PD_CURSES_INC_PATH $CPPFLAGS"
					for ac_header in  curses.h panel.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

					#Cant check libraries with AC_CHECK_LIB([dl], [main])
					#because they don't have 'lib' prefix
					CPPFLAGS="$old_CPPFLAGS"
					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PDcurses static link objects" >&5
$as_echo_n "checking PDcurses static link objects... " >&6; }
					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
					HAS_PDCURSES_STATIC_OBJS=1
					HAVE_PDCURSES=1

$as_echo "#define HAVE_PDCURSES 1" >>confdefs.h

			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PDcurses static link objects" >&5
$as_echo_n "checking PDcurses static link objects... " >&6; }
				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
				HAS_PDCURSES_STATIC_OBJS=0
			fi

		else
			#given path does not exist
			HAVE_PDCURSES=0
			HAS_PDCURSES_STATIC_OBJS=0

$as_echo "#define HAVE_PDCURSES 0" >>confdefs.h

			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - directory $withval does not exist" >&5
$as_echo "no - directory $withval does not exist" >&6; }
		fi
		TMP_TMP=`echo $withval | sed -e 's/\// /g'`
		TMP_TMP=`echo $TMP_TMP | sed -e 's/\\\\/ /g'`
		TMP_TMP=`echo $TMP_TMP | sed -e 's/cygdrive//' -e 's/\:/ /'`
		if test "$TMP_TMP" != ""; then
			set `echo $TMP_TMP`
			if test "$1" = "c" -o "$1" = "d" -o "$1" = "e" \
			-o "$1" = "C" -o "$1" = "D" -o "$1" = "E"; then
				PD_CURSES_DRIVE=$1
			else
				#No drive leter - so same as CygWin drive
				PD_CURSES_DRIVE=$CYGWIN_DRIVE
			fi
			PD_CURSES_CYGDRIVE="/cygdrive/$PD_CURSES_DRIVE"
		fi

		LIBS="$old_LIBS"
		LDFLAGS="$old_LDFLAGS"
		CFLAGS="$old_CFLAGS"
		CPPFLAGS="$old_CPPFLAGS"


	  else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
	  fi

else

		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-pdcurses not specified" >&5
$as_echo "--with-pdcurses not specified" >&6; }

fi


if test "$enable_stop_pdcurses" = "yes" ; then
	exit
fi


## ==================================================================
##         Checks for Java binding (JNI)
## ==================================================================


USE_JAVA=yes
JAVAINCLUDE=""
JAVAPACKAGE=""


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Java JNI:${T_ME}" >&5
$as_echo "${T_MD}Checking for Java JNI:${T_ME}" >&6; }



# Check whether --with-java was given.
if test "${with_java+set}" = set; then :
  withval=$with_java;
case $withval in
    no) USE_JAVA=no ;;
    yes) USE_JAVA=yes ;;
    *) JAVAPACKAGE=$withval
    ;;
esac

fi


if test "$with_java" != "no" ; then
    USE_JAVA=no
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java header files for JNI" >&5
$as_echo_n "checking for Java header files for JNI... " >&6; }

	#what about using GCC JNI?:
	#/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/jni.h
	#/usr/lib/gcc-lib/i386-redhat-linux/3.0.2/include/jni.h

	#so here we go the "manual" way - it will not actually test if jni.h is usable,

	dirs="$prefix /usr/local/src/j2sdk1.3.1 /usr/lib/java /usr/java        \
		/usr/java/jdk1.4 /usr/lib/jdk1.4 /opt/java1.4 /usr/lpp/java/J1.4       \
		/usr/java/jdk1.4 /usr/lib/jdk1.4 /usr/jdk14 /jdk1.4 /usr/java/jdk1.3   \
		/usr/include/java /usr/local/java /usr/local/include/kaffe             \
		/usr/include/kaffe /usr/lib/jdk1.3 /opt/java1.3 /usr/lpp/java/J1.3     \
		/usr/java/jdk1.2 /usr/lib/jdk1.2.2 /usr/lib/jdk1.2.1 /usr/jdk122       \
		/usr/lib/jdk122 /usr/lib/jdk1.2.1 /opt/java1.2 /usr/lpp/java/J1.2      \
		/usr/lib/jdk1.1.8 /usr/jdk118 /usr/lib/jdk118 /usr/lpp/java/J1.1       \
		/opt/java1.1 /usr /opt/local /jdk1.3 /jdk1.2.3 /jdk1.2.2 /jdk1.2.1     \
		/System/Library/Frameworks/JavaVM.framework/Headers                    \
		/usr/jdk_base/include"

        if test "$JAVAPACKAGE" != ""; then
            dirs="$JAVAPACKAGE $dirs"
		fi
        # now try to find jni.h
        for i in $dirs ; do
			if test -r "$i/jni.h"; then
                JAVAINCLUDE="$i"
                #USE_JAVA=yes
				break
            elif test -r "$i/include/jni.h"; then
				JAVAINCLUDE="$i/include"
                #USE_JAVA=yes
                break
            fi
        done

    # now try with an include path
    if test "$JAVAINCLUDE" != ""; then
        OCPPFLAGS="$CPPFLAGS"
        CPPFLAGS="-I$JAVAINCLUDE $OCPPFLAGS"
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <jni.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

                USE_JAVA=yes
                JAVAINCLUDE="-I$JAVAINCLUDE"

fi
rm -f conftest.err conftest.i conftest.$ac_ext
        CPPFLAGS="$OCPPFLAGS"
    fi

    # if the above didn't work probably jni_md.h is missing
    if test "USE_JAVA" != "yes" ; then
        if test "$JAVAINCLUDE" != ""; then
            subdirs="$JAVAINCLUDE $JAVAINCLUDE/$MACHDEP $JAVAINCLUDE/$ac_md_system $JAVAINCLUDE/solaris $JAVAINCLUDE/genunix $JAVAINCLUDE/alpha $JAVAINCLUDE/win32 $JAVAINCLUDE/mvs"
            for i in $subdirs ; do
                if test -r $i/jni_md.h; then
                    JAVAINCLUDE="-I$JAVAINCLUDE -I$i"
                    USE_JAVA=yes
                    break
                fi
            done
        fi
    fi

	if test "$JAVAINCLUDE" = ""; then
		USE_JAVA=no
    fi

    if test "$USE_JAVA" = "no"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    else
		GENERATED_FILES="$GENERATED_FILES "
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; } #($JAVAINCLUDE))

    fi
else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabled" >&5
$as_echo "Disabled" >&6; }
fi

## ==================================================================
##         Checks for libraries expected in standard locations
## ==================================================================



  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for standard libraries:${T_ME}" >&5
$as_echo "${T_MD}Checking for standard libraries:${T_ME}" >&6; }

		HAVE_LIBDL=0
		case "$host" in
		*-*-cygwin | *-*-cygwin* | *-*-mingw* | *-*-pw32* )
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libdl" >&5
$as_echo_n "checking libdl... " >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Cygwin DLL contains emulation of libdl functions." >&5
$as_echo "Cygwin DLL contains emulation of libdl functions." >&6; }
			USE_LIBDL=0
		    ;;

		*alpha* )
			#DEC Alpha ES40 (uname -a gives: OSF1 maxdev V5.1 732 alpha)
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libdl" >&5
$as_echo_n "checking libdl... " >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DEC Alpha has dlopen in standard libraries." >&5
$as_echo "DEC Alpha has dlopen in standard libraries." >&6; }
			USE_LIBDL=0
		;;
		*freebsd* )
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libdl" >&5
$as_echo_n "checking libdl... " >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Freebsd has dlopen in standard libraries." >&5
$as_echo "Freebsd has dlopen in standard libraries." >&6; }
			USE_LIBDL=0
            ;;

        *hp-hpux* )
			#HP-UX 11.0 gives hppa2.0w-hp-hpux11.00
            #uname -m = 9000/800
			#uname -r = B.11.00
			#uname -s = HP-UX
			#uname -v = U
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libdl" >&5
$as_echo_n "checking libdl... " >&6; }
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX has dlopen in standard libraries." >&5
$as_echo "HP-UX has dlopen in standard libraries." >&6; }
			USE_LIBDL=0

            ;;

		*)

			# FIXME: Replace `main' with a function in `-ldl' - but don't forget to
			#clear AC cache for next test!

            #FIXME: not not check this in a particular library, check for dlopen()
			#function as such in standard libraries first.

			old_LIBS="$LIBS"
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBDL 1
_ACEOF

  LIBS="-ldl $LIBS"

fi


			if test "$ac_cv_lib_dl_main" != "yes"; then
				old_LDFLAGS="$LDFLAGS"
				#/sw/lib/libdl.a
				#/sw/lib/libdl.dylib
				LDFLAGS="$LDFLAGS -L/sw/lib"
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBDL 1
_ACEOF

  LIBS="-ldl $LIBS"

fi

				if test "$ac_cv_lib_dl_dlopen" != "yes"; then
					as_fn_error $? "No dl lib found - please install it. Stop." "$LINENO" 5
				else
					HAVE_LIBDL=1
					USE_LIBDL=1
					$as_echo "#define HAVE_LIB_DL 1" >>confdefs.h


				fi
				LDFLAGS="$old_LDFLAGS"
		    fi
			LIBS="$old_LIBS"

		    ;;
		esac

if test "$ac_cv_lib_dl_dlopen" = "yes"; then
	USE_LIBDL=1
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBDL 1
_ACEOF

  LIBS="-ldl $LIBS"

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
$as_echo_n "checking for gzopen in -lz... " >&6; }
if ${ac_cv_lib_z_gzopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lz  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gzopen ();
int
main ()
{
return gzopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_z_gzopen=yes
else
  ac_cv_lib_z_gzopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
$as_echo "$ac_cv_lib_z_gzopen" >&6; }
if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBZ 1
_ACEOF

  LIBS="-lz $LIBS"

fi


EXTRALIBS=

if test "$ac_cv_lib_dl_dlopen" = "yes"; then
	EXTRALIBS+=" -ldl "
fi
if test "$ac_cv_lib_z_gzopen" = "yes"; then
	EXTRALIBS+=" -lz "
fi

# FIXME: Replace `main' with a function in `-lc':
old_LIBS="$LIBS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5
$as_echo_n "checking for main in -lc... " >&6; }
if ${ac_cv_lib_c_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_main=yes
else
  ac_cv_lib_c_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5
$as_echo "$ac_cv_lib_c_main" >&6; }
if test "x$ac_cv_lib_c_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBC 1
_ACEOF

  LIBS="-lc $LIBS"

fi


#unit test sw for C code, used in tools/test/db
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suite_create in -lcheck" >&5
$as_echo_n "checking for suite_create in -lcheck... " >&6; }
if ${ac_cv_lib_check_suite_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcheck  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char suite_create ();
int
main ()
{
return suite_create ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_check_suite_create=yes
else
  ac_cv_lib_check_suite_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_check_suite_create" >&5
$as_echo "$ac_cv_lib_check_suite_create" >&6; }
if test "x$ac_cv_lib_check_suite_create" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCHECK 1
_ACEOF

  LIBS="-lcheck $LIBS"

fi

if test "$ac_cv_lib_check_suite_create" = "yes" ; then
	HAS_CHECK=1
fi
LIBS="$old_LIBS"

## ==================================================================
##                       Checks for header files
## ==================================================================

if test "$AUBIT_SOURCE" = "1" ; then


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for header files:${T_ME}" >&5
$as_echo "${T_MD}Checking for header files:${T_ME}" >&6; }


	#AC_STDC_HEADERS
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if ${ac_cv_header_stdc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

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

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

	for ac_header in alloca.h errno.h locale.h malloc.h memory.h netdb.h \
		netinet/in.h stddef.h stdlib.h string.h strings.h sys/socket.h \
		sys/time.h sys/timeb.h unistd.h share.h limits.h  libintl.h fcntl.h features.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



	#AC_HAVE_HEADERS(string.h fcntl.h sys/file.h sys/param.h)

   	for ac_header in search.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
if test "x$ac_cv_header_search_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SEARCH_H 1
_ACEOF

fi

done


	if test "$GCC_MINGW" = "yes" ; then
		#MinGW now has something called search.h but its not complete
		#try: grep VISIT /cygdrive/c/MinGW/include/search.h
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling MinGW search.h - not compatible" >&5
$as_echo "$as_me: WARNING: Disabling MinGW search.h - not compatible" >&2;}
		as_ac_Header="no"

$as_echo "#define HAVE_SEARCH_H 0" >>confdefs.h

		HAVE_SEARCH_H=0
	fi

	TMP_TMP=`eval echo '${'$as_ac_Header'}'`
	if test "$TMP_TMP" != "yes" -o "$HAVE_SEARCH_H" = "0" ; then
		#a simple fix is to get a copy of search.h from the Darwin CVS tree's
		#libedit pkg, as follows:
		#cvs -d :pserver:(username)@anoncvs.opensource.apple.com:/cvs/Darwin login
		#CVS password: (password)
		#cvs -d :pserver:blakers@anoncvs.opensource.apple.com:/cvs/Darwin checkout libedit
		#cp /usr/ports/libedit/libedit/search.h /usr/include/search.h

   		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using Aubit provided search.h" >&5
$as_echo "$as_me: WARNING: Using Aubit provided search.h" >&2;}

	fi

   	for ac_header in getopt.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
if test "x$ac_cv_header_getopt_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETOPT_H 1
_ACEOF

fi

done

	if test `eval echo '${'$as_ac_Header'}'` != yes; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using Aubit provided getopt.h" >&5
$as_echo "$as_me: WARNING: Using Aubit provided getopt.h" >&2;}
    fi


	#AC_CHECK_HEADERS([dlfcn.h])
	for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF
 have_dlfcn="yes"
else
  have_dlfcn="no"
fi

done


	if test `eval echo '${'$as_ac_Header'}'` != yes; then

		#libdl: Aubit loads plugins using the dlopen() interface (except on HP-UX).
		#This is not the OS X way, but Apple has supplied the dlcompat library to
		#simulate this interface. This library and its header file dlfcn.h are
		#required for Aubit to compile.

		#Clear cached value:
		unset ac_cv_header_dlfcn_h

        old_CPPFLAGS="$CPPFLAGS"
		#old_CFLAGS="$CFLAGS"

		case $host in
			*-apple-darwin*)
				#only on Darwin:
				TMP_IFLAGS="-I/sw/include"
                RE_CHECK=1
				;;
			*)
		        ;;
		esac

        if test "$RE_CHECK" = "1"; then
		CPPFLAGS="$CPPFLAGS $TMP_IFLAGS"
		for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF
 have_dlfcn="yes"
else
  have_dlfcn="no"
fi

done


        	if test "$have_dlfcn" != "yes"; then
			if test "$GCC_MINGW" != "yes"; then
				as_fn_error $? "No dlfcn.h found - please install dl library. Stop." "$LINENO" 5
            		fi
		else

			CFLAGS="$CFLAGS $TMP_IFLAGS"
        	fi
        fi

		CPPFLAGS="$old_CPPFLAGS"
    fi
fi

## ==================================================================
##      Checks for typedefs, structures, and compiler characteristics
## ==================================================================


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for compiler characteristics:${T_ME}" >&5
$as_echo "${T_MD}Checking for compiler characteristics:${T_ME}" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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 cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* 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";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

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

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi

ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

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

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if ${ac_cv_header_time+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if ${ac_cv_struct_tm+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>

int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_tm=time.h
else
  ac_cv_struct_tm=sys/time.h
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then

$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h

fi


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF




## ==================================================================
##      Checks for cross compilation
## ==================================================================

if test "$AUBIT_SOURCE" = "1" ; then


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for cross compilation options:${T_ME}" >&5
$as_echo "${T_MD}Checking for cross compilation options:${T_ME}" >&6; }

	###############################################################################
	# If we're cross-compiling, allow the user to override the tools and their
	# options.  The configure script is oriented toward identifying the host
	# compiler, etc., but we need a build compiler to generate parts of the source.
	: ${BUILD_CC:='$(CC)'}
	: ${BUILD_CFLAGS:='$(CFLAGS)'}
	: ${BUILD_CPPFLAGS:='$(CPPFLAGS)'}
	: ${BUILD_LDFLAGS:='$(LDFLAGS)'}
	: ${BUILD_LIBS:='$(LIBS)'}
	: ${BUILD_EXEEXT:='$x'}
	if test "$cross_compiling" = yes ; then

# Check whether --with-build-cc was given.
if test "${with_build_cc+set}" = set; then :
  withval=$with_build_cc; BUILD_CC="$withval"
else
  for ac_prog in $CC gcc cc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_BUILD_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$BUILD_CC"; then
  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_BUILD_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
BUILD_CC=$ac_cv_prog_BUILD_CC
if test -n "$BUILD_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
$as_echo "$BUILD_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$BUILD_CC" && break
done

fi


# Check whether --with-build-cflags was given.
if test "${with_build_cflags+set}" = set; then :
  withval=$with_build_cflags; BUILD_CFLAGS="$withval"
fi


# Check whether --with-build-cppflags was given.
if test "${with_build_cppflags+set}" = set; then :
  withval=$with_build_cppflags; BUILD_CPPFLAGS="$withval"
fi


# Check whether --with-build-ldflags was given.
if test "${with_build_ldflags+set}" = set; then :
  withval=$with_build_ldflags; BUILD_LDFLAGS="$withval"
fi


# Check whether --with-build-libs was given.
if test "${with_build_libs+set}" = set; then :
  withval=$with_build_libs; BUILD_LIBS="$withval"
fi

			BUILD_EXEEXT=
	fi







fi


## ==================================================================
##                 Checks for libcurl
## ==================================================================

#AC_SUBST(LIBCURL_CPPFLAGS)
#AC_SUBST(LIBCURL)



if test "x$export_dynamic_flag_spec" = "x"
then
	RDYNAMIC_FLAG=""
else
	RDYNAMIC_FLAG=`eval "echo $export_dynamic_flag_spec"`
fi


# Check whether --with-curl was given.
if test "${with_curl+set}" = set; then :
  withval=$with_curl; chk_curl=x$withval
else
  chk_curl=notset
fi


if test "$chk_curl" = "xno"
then
	HAVE_LIBCURL=0
else
	#AC_SUBST(HAVE_LIBCURL)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking LIBCURL support" >&5
$as_echo_n "checking Checking LIBCURL support... " >&6; }

























# Check whether --with-libcurl was given.
if test "${with_libcurl+set}" = set; then :
  withval=$with_libcurl; _libcurl_with=$withval
else
  _libcurl_with=yes
fi


  if test "$_libcurl_with" != "no" ; then

     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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


  test -n "$AWK" && break
done


     _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"

     _libcurl_try_link=yes

     if test -d "$_libcurl_with" ; then
        LIBCURL_CPPFLAGS="-I$withval/include"
        _libcurl_ldflags="-L$withval/lib"
        # Extract the first word of "curl-config", so it can be a program name with args.
set dummy curl-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path__libcurl_config+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $_libcurl_config in
  [\\/]* | ?:[\\/]*)
  ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in "$withval/bin"
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
  ;;
esac
fi
_libcurl_config=$ac_cv_path__libcurl_config
if test -n "$_libcurl_config"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
$as_echo "$_libcurl_config" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


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

  ;;
esac
fi
_libcurl_config=$ac_cv_path__libcurl_config
if test -n "$_libcurl_config"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
$as_echo "$_libcurl_config" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


     fi

     if test x$_libcurl_config != "x" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
$as_echo_n "checking for the version of libcurl... " >&6; }
if ${libcurl_cv_lib_curl_version+:} false; then :
  $as_echo_n "(cached) " >&6
else
  libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
$as_echo "$libcurl_cv_lib_curl_version" >&6; }

        _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
        _libcurl_wanted=`echo 7.9.7 | $_libcurl_version_parse`

        if test $_libcurl_wanted -gt 0 ; then
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.9.7" >&5
$as_echo_n "checking for libcurl >= version 7.9.7... " >&6; }
if ${libcurl_cv_lib_version_ok+:} false; then :
  $as_echo_n "(cached) " >&6
else

              if test $_libcurl_version -ge $_libcurl_wanted ; then
                 libcurl_cv_lib_version_ok=yes
              else
                 libcurl_cv_lib_version_ok=no
              fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
$as_echo "$libcurl_cv_lib_version_ok" >&6; }
        fi

        if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
           if test x"$LIBCURL_CPPFLAGS" = "x" ; then
              LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
           fi
           if test x"$LIBCURL" = "x" ; then
              LIBCURL=`$_libcurl_config --libs`

              # This is so silly, but Apple actually has a bug in their
              # curl-config script.  Fixed in Tiger, but there are still
              # lots of Panther installs around.
              case "${host}" in
                 powerpc-apple-darwin7*)
                    LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
                 ;;
              esac
           fi

           # All curl-config scripts support --feature
           _libcurl_features=`$_libcurl_config --feature`

           # Is it modern enough to have --protocols? (7.12.4)
           if test $_libcurl_version -ge 461828 ; then
              _libcurl_protocols=`$_libcurl_config --protocols`
           fi
        else
           _libcurl_try_link=no
        fi

        unset _libcurl_wanted
     fi

     if test $_libcurl_try_link = yes ; then

        # we didn't find curl-config, so let's see if the user-supplied
        # link line (or failing that, "-lcurl") is enough.
        LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
$as_echo_n "checking whether libcurl is usable... " >&6; }
if ${libcurl_cv_lib_curl_usable+:} false; then :
  $as_echo_n "(cached) " >&6
else

           _libcurl_save_cppflags=$CPPFLAGS
           CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
           _libcurl_save_libs=$LIBS
           LIBS="$LIBCURL $LIBS"

           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <curl/curl.h>
int
main ()
{

/* Try and use a few common options to force a failure if we are
   missing symbols or can't link. */
int x;
curl_easy_setopt(NULL,CURLOPT_URL,NULL);
x=CURL_ERROR_SIZE;
x=CURLOPT_WRITEFUNCTION;
x=CURLOPT_FILE;
x=CURLOPT_ERRORBUFFER;
x=CURLOPT_STDERR;
x=CURLOPT_VERBOSE;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  libcurl_cv_lib_curl_usable=yes
else
  libcurl_cv_lib_curl_usable=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

           CPPFLAGS=$_libcurl_save_cppflags
           LIBS=$_libcurl_save_libs
           unset _libcurl_save_cppflags
           unset _libcurl_save_libs

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
$as_echo "$libcurl_cv_lib_curl_usable" >&6; }

        if test $libcurl_cv_lib_curl_usable = yes ; then

           # Does curl_free() exist in this version of libcurl?
           # If not, fake it with free()

           _libcurl_save_cppflags=$CPPFLAGS
           CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
           _libcurl_save_libs=$LIBS
           LIBS="$LIBS $LIBCURL"

           ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
if test "x$ac_cv_func_curl_free" = xyes; then :

else

$as_echo "#define curl_free free" >>confdefs.h

fi


           CPPFLAGS=$_libcurl_save_cppflags
           LIBS=$_libcurl_save_libs
           unset _libcurl_save_cppflags
           unset _libcurl_save_libs


$as_echo "#define HAVE_LIBCURL 1" >>confdefs.h




           for _libcurl_feature in $_libcurl_features ; do
              cat >>confdefs.h <<_ACEOF
#define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
_ACEOF

              eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
           done

           if test "x$_libcurl_protocols" = "x" ; then

              # We don't have --protocols, so just assume that all
              # protocols are available
              _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"

              if test x$libcurl_feature_SSL = xyes ; then
                 _libcurl_protocols="$_libcurl_protocols HTTPS"

                 # FTPS wasn't standards-compliant until version
                 # 7.11.0 (0x070b00 == 461568)
                 if test $_libcurl_version -ge 461568; then
                    _libcurl_protocols="$_libcurl_protocols FTPS"
                 fi
              fi

              # RTSP, IMAP, POP3 and SMTP were added in
              # 7.20.0 (0x071400 == 463872)
              if test $_libcurl_version -ge 463872; then
                 _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
              fi
           fi

           for _libcurl_protocol in $_libcurl_protocols ; do
              cat >>confdefs.h <<_ACEOF
#define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
_ACEOF

              eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
           done
        else
           unset LIBCURL
           unset LIBCURL_CPPFLAGS
        fi
     fi

     unset _libcurl_try_link
     unset _libcurl_version_parse
     unset _libcurl_config
     unset _libcurl_feature
     unset _libcurl_features
     unset _libcurl_protocol
     unset _libcurl_protocols
     unset _libcurl_version
     unset _libcurl_ldflags
  fi

  if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
     # This is the IF-NO path
     HAVE_LIBCURL=0
  else
     # This is the IF-YES path
     HAVE_LIBCURL=1
  fi

  unset _libcurl_with

fi



## ==================================================================
##                   Checks for library functions
## ==================================================================

if test "$AUBIT_SOURCE" = "1" ; then


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for library functions:${T_ME}" >&5
$as_echo "${T_MD}Checking for library functions:${T_ME}" >&6; }


	ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

else

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

fi

for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$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
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_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
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef 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)
      ;
    return (
	 /* 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
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$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
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_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

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

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

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

	for ac_header in stdlib.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
if test "x$ac_cv_header_stdlib_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STDLIB_H 1
_ACEOF

fi

done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_malloc_0_nonnull=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
# include <stdlib.h>
#else
char *malloc ();
#endif

int
main ()
{
return ! malloc (0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_malloc_0_nonnull=yes
else
  ac_cv_func_malloc_0_nonnull=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
if test $ac_cv_func_malloc_0_nonnull = yes; then :

$as_echo "#define HAVE_MALLOC 1" >>confdefs.h

else
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h

   case " $LIBOBJS " in
  *" malloc.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
 ;;
esac


$as_echo "#define malloc rpl_malloc" >>confdefs.h

fi


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
$as_echo_n "checking for working memcmp... " >&6; }
if ${ac_cv_func_memcmp_working+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_memcmp_working=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

  /* Some versions of memcmp are not 8-bit clean.  */
  char c0 = '\100', c1 = '\200', c2 = '\201';
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
    return 1;

  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
     or more and with at least one buffer not starting on a 4-byte boundary.
     William Lewis provided this test program.   */
  {
    char foo[21];
    char bar[21];
    int i;
    for (i = 0; i < 4; i++)
      {
	char *a = foo + i;
	char *b = bar + i;
	strcpy (a, "--------01111111");
	strcpy (b, "--------10000000");
	if (memcmp (a, b, 16) >= 0)
	  return 1;
      }
    return 0;
  }

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_memcmp_working=yes
else
  ac_cv_func_memcmp_working=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
$as_echo "$ac_cv_func_memcmp_working" >&6; }
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  *" memcmp.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
 ;;
esac


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if ${ac_cv_type_signal+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <signal.h>

int
main ()
{
return *(signal (0, 0)) (0) == 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_signal=int
else
  ac_cv_type_signal=void
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }

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


	for ac_func in vprintf
do :
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
if test "x$ac_cv_func_vprintf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VPRINTF 1
_ACEOF

ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
if test "x$ac_cv_func__doprnt" = xyes; then :

$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h

fi

fi
done


	for ac_func in floor gethostbyname inet_ntoa memset pow putenv re_comp regcomp setlocale strcasecmp strchr strdup strncasecmp strrchr strstr strtol index rindex popen snprintf vsnprintf sigaction gettimeofday trunc sleep
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


	#select() and index() are used in Jabber
	#there is apprently an index() func somewhere in libaubit4gl or in some lib
	#linked with it (on Windows)
	ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
if test "x$ac_cv_func_select" = xyes; then :
  $as_echo "#define HAVE_SELECT 1" >>confdefs.h

fi

	#AC_CHECK_FUNC(index,AC_DEFINE(HAVE_INDEX))
	ac_fn_c_check_func "$LINENO" "Sleep" "ac_cv_func_Sleep"
if test "x$ac_cv_func_Sleep" = xyes; then :
  $as_echo "#define HAVE_WINSLEEP 1" >>confdefs.h

fi


	if test "$GCC_MINGW" = "yes"; then
				if test "$HAVE_SELECT" != "1"; then
		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select in ws2_32" >&5
$as_echo_n "checking for select in ws2_32... " >&6; }
		  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <winsock2.h>
int
main ()
{
select(0,(fd_set *)NULL,(fd_set *)NULL,(fd_set *)NULL,(struct timeval *)NULL);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
   			 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			 HAVE_SELECT="1"
			 cat >>confdefs.h <<_ACEOF
#define HAVE_SELECT 1
_ACEOF

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You cant compile Jabber without a select" >&5
$as_echo "$as_me: WARNING: You cant compile Jabber without a select" >&2;}

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

    #all used in lib/libaubit4gl.so:
    #On Solaris, all this are in -lsocket
	for ac_func in socket recv accept bind setsockopt getservbyname listen
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    #So if any of abowe is not found, we should check something like this:
 	#AC_CHECK_LIB([socket], [socket recv accept bind setsockopt getservbyname listen])


	#4glc (mod.c)
	#AC_CHECK_FUNC(setenv,AC_MSG_RESULT(Yes),AC_MSG_ERROR(Cannot compile Aubit without 'setenv'. Stop.))
    #AC_CHECK_FUNC(setenv,,AC_MSG_ERROR(Cannot compile Aubit without 'setenv'. Stop.))
	for ac_func in setenv putenv
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


	for ac_func in htons nstoh ntohs
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done



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

#include <signal.h>
#include <string.h>
#include <stdio.h>

int
main ()
{

struct sigaction sa;
memset(&sa, 0, sizeof(sa));
sa.sa_handler=SIG_IGN;
sigaction(SIGCHLD, &sa, NULL);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  $as_echo "#define HAS_SIGACTION_SA_HANDLER 1" >>confdefs.h

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

	#Check if we have it in libc:
	ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
if test "x$ac_cv_func_getopt_long" = xyes; then :
  GETOPT_LONG=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -liberty" >&5
$as_echo_n "checking for getopt_long in -liberty... " >&6; }
if ${ac_cv_lib_iberty_getopt_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-liberty  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getopt_long ();
int
main ()
{
return getopt_long ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_iberty_getopt_long=yes
else
  ac_cv_lib_iberty_getopt_long=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_getopt_long" >&5
$as_echo "$ac_cv_lib_iberty_getopt_long" >&6; }
if test "x$ac_cv_lib_iberty_getopt_long" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBIBERTY 1
_ACEOF

  LIBS="-liberty $LIBS"

fi

fi

    if test "$GETOPT_LONG" != "yes"; then
		if test "$ac_cv_lib_iberty_getopt_long" = "yes"; then
            #On Solaris systems, you will probably have to install the GNU "libiberty"
			#library (-liberty) which provides getopt_long for Solaris; get it at
			#	http://sunfreeware.com (look for the package "libiberty.so" in
			#the list of freeware) and install it into /usr/local/lib.
			GETOPT_LONG=iberty
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using iberty getopt_long" >&5
$as_echo "using iberty getopt_long" >&6; }
            #echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH xx $LIBPATH"
        else
			GETOPT_LONG=no
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using Aubit included getopt sources" >&5
$as_echo "using Aubit included getopt sources" >&6; }
        fi
    fi
fi
	old_LIBS="$LIBS"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
$as_echo_n "checking for main in -lz... " >&6; }
if ${ac_cv_lib_z_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lz  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_z_main=yes
else
  ac_cv_lib_z_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
$as_echo "$ac_cv_lib_z_main" >&6; }
if test "x$ac_cv_lib_z_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBZ 1
_ACEOF

  LIBS="-lz $LIBS"

fi

	LIBS="$old_LIBS"

## ==================================================================
##                   Checks for Cygwin specifics
## ==================================================================
if test "$LIBS" != ""; then
	echo "WARNING: (4) LIBS contains $LIBS"
fi

case "$host" in
*-*-cygwin | *-*-cygwin* | *-*-mingw* | *-*-pw32* )


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Cygwin specific options:${T_ME}" >&5
$as_echo "${T_MD}Checking for Cygwin specific options:${T_ME}" >&6; }


	#<example form hello.x>
	# ----------------------------------------------------------------------
	# Win32 objects need to tell the header whether they will be linking
	# with a dll or static archive in order that everything is imported
	# to the object in the same way that it was exported from the
	# archive (extern for static, __declspec(dllimport) for dlls)
	# ----------------------------------------------------------------------


	LIBHELLO_DLL_IMPORT=
	LIBGREET_DLL_IMPORT=


	if test X"$enable_shared" = Xyes; then
		LIBHELLO_DLL_IMPORT=-DLIBHELLO_DLL_IMPORT
		LIBGREET_DLL_IMPORT=-DLIBGREET_DLL_IMPORT
					fi



	#</example form hello.x>

	#cygcheck can be used instead of ldd that is missing on CygWin:
	# Extract the first word of "cygcheck", so it can be a program name with args.
set dummy cygcheck; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_CYGCHECK+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $CYGCHECK in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CYGCHECK="$CYGCHECK" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CYGCHECK="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_CYGCHECK" && ac_cv_path_CYGCHECK="no"
  ;;
esac
fi
CYGCHECK=$ac_cv_path_CYGCHECK
if test -n "$CYGCHECK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGCHECK" >&5
$as_echo "$CYGCHECK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



   	#this macros are in aclocal.m4 - run aclocal to create it :

	#AC_OBJEXT
	#AC_EXEEXT

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

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

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 32220 "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; 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"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if ${lt_cv_cc_needs_belf+:} false; then :
  $as_echo_n "(cached) " >&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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_cc_needs_belf=yes
else
  lt_cv_cc_needs_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
$as_echo "$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

need_locks="$enable_libtool_lock"

                         #checking for dlfcn.h... yes
	if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if ${ac_cv_lib_dld_shl_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if ${ac_cv_lib_svld_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if ${ac_cv_lib_dld_dld_link+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&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 <<_LT_EOF
#line $LINENO "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

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
void fnord () __attribute__((visibility("default")));
#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;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&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 <<_LT_EOF
#line $LINENO "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

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
void fnord () __attribute__((visibility("default")));
#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;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$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






              #checking for BSD-compatible nm... /usr/bin/nm -B
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if ${lt_cv_path_NM+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$DUMPBIN"; then :
    # Let the user override the test.
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in dumpbin "link -dump"
  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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$DUMPBIN" && break
  done
fi
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in dumpbin "link -dump"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_DUMPBIN" && break
done

  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DUMPBIN=$ac_ct_DUMPBIN
  fi
fi

    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    *COFF*)
      DUMPBIN="$DUMPBIN -symbols"
      ;;
    *)
      DUMPBIN=:
      ;;
    esac
  fi

  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if ${lt_cv_nm_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }




# Check for command to grab the raw symbol name followed by C symbol from nm.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output" >&5
$as_echo_n "checking command to parse $NM output... " >&6; }
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  $as_echo_n "(cached) " >&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'"

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32*)
  symcode='[ABCDGISTW]'
  ;;
hpux*) # Its linker distinguishes data from code symbols
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  ;;
irix*)
  symcode='[BCDEGRST]'
  ;;
solaris* | sysv5*)
  symcode='[BDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

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

# If we're using GNU nm, then use its standard symbol codes.
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  symcode='[ABCDGISTW]'
fi

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

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

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

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

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

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

EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'

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

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

#ifdef __cplusplus
}
#endif
EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  save_LIBS="$LIBS"
	  save_CFLAGS="$CFLAGS"
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$no_builtin_flag"
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && 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=
else
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
fi
if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the linker ($LD) supports shared libraries... " >&6; }

allow_undefined_flag=
no_undefined_flag=
need_lib_prefix=unknown
need_version=unknown
# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
archive_cmds=
archive_expsym_cmds=
old_archive_from_new_cmds=
old_archive_from_expsyms_cmds=
export_dynamic_flag_spec=
whole_archive_flag_spec=
thread_safe_flag_spec=
hardcode_into_libs=no
hardcode_libdir_flag_spec=
hardcode_libdir_separator=
hardcode_direct=no
hardcode_minus_L=no
hardcode_shlibpath_var=unsupported
runpath_var=
link_all_deplibs=unknown
always_export_symbols=no
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
# include_expsyms should be a list of space-separated symbols to be *always*
# included in the symbol list
include_expsyms=
# exclude_expsyms can be an egrep regular expression of symbols to exclude
# it will be wrapped by ` (' and `)$', so one must not match beginning or
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
# as well as any symbol that contains `d'.
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
# platforms (ab)use it in PIC code, but their linkers get confused if
# the symbol is explicitly referenced.  Since portable code cannot
# rely on this symbol name, it's probably fine to never include it in
# preloaded symbol tables.
extract_expsyms_cmds=

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

esac

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

  # See if GNU ld supports shared libraries.
  case $host_os in
  aix3* | aix4* | aix5*)
    # On AIX, the GNU linker is very broken
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
    ld_shlibs=no
    cat <<EOF 1>&2

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

EOF
    ;;

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

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

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

  cygwin*)
    # hardcode_libdir_flag_spec is actually meaningless, as there is
    # no search path for DLLs.
    hardcode_libdir_flag_spec='-L$libdir'
    shlibpath_overrides_runpath=yes
#    allow_undefined_flag=
#    always_export_symbols=yes

#      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname
#-o $lib ${wl}--image-base=0x10000000'

    if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
    else
      ld_shlibs=no
    fi


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

  mingw* | pw32*)
    # hardcode_libdir_flag_spec is actually meaningless, as there is
    # no search path for DLLs.
    hardcode_libdir_flag_spec='-L$libdir'
    allow_undefined_flag=unsupported
    always_export_symbols=yes

    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
      else $CC -o impgen impgen.c ; fi)~
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'

    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'

    # cygwin and mingw dlls have different entry points and sets of symbols
    # to exclude.
    # FIXME: what about values for MSVC?
    dll_entry=__cygwin_dll_entry@12
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
    case $host_os in
    mingw*)
      # mingw values
      dll_entry=_DllMainCRTStartup@12
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
      ;;
    esac

    # mingw and cygwin differ, and it's simplest to just exclude the union
    # of the two symbol sets.
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12

    # recent cygwin and mingw systems supply a stub DllMain which the user
    # can override, but on older systems we have to supply one (in ltdll.c)
    if test "x$lt_cv_need_dllmain" = "xyes"; then
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
    else
      ltdll_obj=
      ltdll_cmds=
    fi

    # Extract the symbol export list from an `--export-all' def file,
    # then regenerate the def file from the symbol export list, so that
    # the compiled dll only exports the symbol export list.
    # Be careful not to strip the DATA tag left be newer dlltools.
    export_symbols_cmds="$ltdll_cmds"'
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'

    # If the export-symbols file already is a .def file (1st line
    # is EXPORTS), use it as is.
    # If DATA tags from a recent dlltool are present, honour them!
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
        cp $export_symbols $output_objdir/$soname-def;
      else
        echo EXPORTS > $output_objdir/$soname-def;
        _lt_hint=1;
        cat $export_symbols | while read symbol; do
         set dummy \$symbol;
         case \$# in
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
         esac;
         _lt_hint=`expr 1 + \$_lt_hint`;
        done;
      fi~
      '"$ltdll_cmds"'
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
    ;;

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

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

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

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

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

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

  if test "$ld_shlibs" = yes; then
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    case $host_os in
    cygwin* | mingw* | pw32*)
      # dlltool doesn't understand --whole-archive et. al.
      whole_archive_flag_spec=
      ;;
    *)
      # ancient GNU ld didn't support --whole-archive et. al.
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
	whole_archive_flag_spec=
      fi
      ;;
    esac
  fi
else
  # PORTME fill in a description of your system's linker (not GNU ld)
  case $host_os in
  aix3*)
    allow_undefined_flag=unsupported
    always_export_symbols=yes
    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
    # Note: this linker hardcodes the directories in LIBPATH if there
    # are no directories specified by -L.
    hardcode_minus_L=yes
    if test "$GCC" = yes && test -z "$link_static_flag"; then
      # Neither direct hardcoding nor static linking is supported with a
      # broken collect2.
      hardcode_direct=unsupported
    fi
    ;;

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

    archive_cmds=''
    hardcode_libdir_separator=':'
    if test "$GCC" = yes; then
      collect2name=`${CC} -print-prog-name=collect2`
      if test -f "$collect2name" && \
	 strings "$collect2name" | grep resolve_lib_name >/dev/null
      then
	# We have reworked collect2
	hardcode_direct=yes
      else
        # We have old collect2
        hardcode_direct=unsupported
        # It fails to find uninstalled libraries when the uninstalled
        # path is not listed in the libpath.  Setting hardcode_minus_L
        # to unsupported forces relinking
        hardcode_minus_L=yes
        hardcode_libdir_flag_spec='-L$libdir'
        hardcode_libdir_separator=
      fi
      shared_flag='-shared'
    else
      if test "$host_cpu" = ia64; then
        shared_flag='-G'
      else
        shared_flag='${wl}-bM:SRE'
      fi
      hardcode_direct=yes
    fi

    if test "$host_cpu" = ia64; then
      # On IA64, the linker does run time linking by default, so we don't
      # have to do anything special.
      aix_use_runtimelinking=no
      exp_sym_flag='-Bexport'
      no_entry_flag=""
    else
      # Test if we are trying to use run time linking, or normal AIX style linking.
      # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
      aix_use_runtimelinking=no
      for ld_flag in $LDFLAGS; do
        if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
          aix_use_runtimelinking=yes
          break
        fi
      done
      exp_sym_flag='-bexport'
      no_entry_flag='-bnoentry'
    fi
    # It seems that -bexpall can do strange things, so it is better to
    # generate a list of symbols to export.
    always_export_symbols=yes
    if test "$aix_use_runtimelinking" = yes; then
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
      allow_undefined_flag=' -Wl,-G'
      archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
    else
      if test "$host_cpu" = ia64; then
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
       allow_undefined_flag="-znodefs"
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
      else
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
        # Warning - without using the other run time loading flags, -berok will
        #           link without error, but may produce a broken library.
        allow_undefined_flag='${wl}-berok"
        # This is a bit strange, but is similar to how AIX traditionally builds
        # it's shared libraries.
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
      fi
    fi
    ;;

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

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

  darwin* | rhapsody*)
    allow_undefined_flag='-undefined suppress'
    # FIXME: Relying on posixy $() will cause problems for
    #        cross-compilation, but unfortunately the echo tests do not
    #        yet detect zsh echo's removal of \ escapes.
    archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
    # We need to add '_' to the symbols in $export_symbols first
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    whole_archive_flag_spec='-all_load $convenience'
    ;;

  freebsd1*)
    ld_shlibs=no
    ;;

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

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

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

  hpux9* | hpux10* | hpux11*)
    case $host_os in
    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
    esac
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
    hardcode_libdir_separator=:
    hardcode_direct=yes
    hardcode_minus_L=yes # Not in the search PATH, but as the default
			 # location of the library.
    export_dynamic_flag_spec='${wl}-E'
    ;;

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

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

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

  openbsd*)
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

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

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

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

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

  sco3.2v5*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_shlibpath_var=no
    runpath_var=LD_RUN_PATH
    hardcode_runpath_var=yes
    ;;

  solaris*)
    no_undefined_flag=' -z defs'
    # $CC -shared without GNU ld will not create a library from C++
    # object files and a static libstdc++, better avoid it by now
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_shlibpath_var=no
    case $host_os in
    solaris2.[0-5] | solaris2.[0-5].*) ;;
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
    esac
    link_all_deplibs=yes
    ;;

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

  sysv4)
    if test "x$host_vendor" = xsno; then
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
      hardcode_direct=yes # is this really true???
    else
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
    fi
    runpath_var='LD_RUN_PATH'
    hardcode_shlibpath_var=no
    ;;

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

  sysv5*)
    no_undefined_flag=' -z text'
    # $CC -shared without GNU ld will not create a library from C++
    # object files and a static libstdc++, better avoid it by now
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    hardcode_libdir_flag_spec=
    hardcode_shlibpath_var=no
    runpath_var='LD_RUN_PATH'
    ;;

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

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

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

  sysv4.2uw2*)
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    hardcode_direct=yes
    hardcode_minus_L=no
    hardcode_shlibpath_var=no
    hardcode_runpath_var=yes
    runpath_var=LD_RUN_PATH
    ;;

  sysv5uw7* | unixware7*)
    no_undefined_flag='${wl}-z ${wl}text'
    if test "$GCC" = yes; then
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    else
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    fi
    runpath_var='LD_RUN_PATH'
    hardcode_shlibpath_var=no
    ;;

  *)
    ld_shlibs=no
    ;;
  esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
$as_echo "$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi
           #checking command to parse /usr/bin/nm -B output... ok
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&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 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}.so$major'
  ;;

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

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

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

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

cygwin* | mingw* | pw32*)
  version_type=windows
  need_version=no
  need_lib_prefix=no
  case $GCC,$host_os in
  yes,cygwin*)
    library_names_spec='$libname.dll.a'
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog .libs/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    ;;
  yes,mingw*)
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
    ;;
  yes,pw32*)
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
    ;;
  *)
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  # FIXME: Relying on posixy $() will cause problems for
  #        cross-compilation, but unfortunately the echo tests do not
  #        yet detect zsh echo's removal of \ escapes.
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  ;;

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

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_lc=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
    ;;
  freebsd3.01* | freebsdelf3.01*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  *) # from 3.2 on
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  esac
  ;;

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

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  dynamic_linker="$host_os dld.sl"
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  shlibpath_var=SHLIB_PATH
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  soname_spec='${libname}${release}.sl$major'
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

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

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

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

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
    soname_spec='${libname}${release}.so$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
    need_version=no
  fi
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

os2*)
  libname_spec='$name'
  need_lib_prefix=no
  library_names_spec='$libname.dll $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_version=no
  soname_spec='${libname}${release}.so'
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

sco3.2v5*)
  version_type=osf
  soname_spec='${libname}${release}.so$major'
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

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

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

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no
       #checking whether the linker () supports shared libraries... yes
	LIBM=
case $host in
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  # These system don't have libm, or don't need it
  ;;
*-ncr-sysv4.3*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmw  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char _mwvalidcheckl ();
int
main ()
{
return _mwvalidcheckl ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mw__mwvalidcheckl=yes
else
  ac_cv_lib_mw__mwvalidcheckl=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
  LIBM="-lmw"
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
$as_echo_n "checking for cos in -lm... " >&6; }
if ${ac_cv_lib_m_cos+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cos ();
int
main ()
{
return cos ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_m_cos=yes
else
  ac_cv_lib_m_cos=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
$as_echo "$ac_cv_lib_m_cos" >&6; }
if test "x$ac_cv_lib_m_cos" = xyes; then :
  LIBM="$LIBM -lm"
fi

  ;;
*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
$as_echo_n "checking for cos in -lm... " >&6; }
if ${ac_cv_lib_m_cos+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cos ();
int
main ()
{
return cos ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_m_cos=yes
else
  ac_cv_lib_m_cos=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
$as_echo "$ac_cv_lib_m_cos" >&6; }
if test "x$ac_cv_lib_m_cos" = xyes; then :
  LIBM="-lm"
fi

  ;;
esac

                       #checking dynamic linker characteristics... Win32 ld.exe


	# recent cygwin and mingw systems supply a stub DllMain which the user
	# can override, but on older systems we have to supply one
	#  echo "$as_me:3493: checking if libtool should supply DllMain function" >&5
	#echo $ECHO_N "checking if libtool should supply DllMain function... $ECHO_C" >&6
	#if test "${lt_cv_need_dllmain+set}" = set; then

	#=======================================


	#  case $host/$CC in
	#  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
	#    # old mingw systems require "-dll" to link a DLL, while more recent ones
	#    # require "-mdll"
	#    SAVE_CFLAGS="$CFLAGS"
	#    CFLAGS="$CFLAGS -mdll"
	#    echo "$as_me:3540: checking how to link DLLs" >&5
	#echo $ECHO_N "checking how to link DLLs... $ECHO_C" >&6
	#if test "${lt_cv_cc_dll_switch+set}" = set; then
	#
	#...
	#
	#
	#  *-*-cygwin* | *-*-pw32*)
	#    # cygwin systems need to pass --dll to the linker, and not link
	#    # crt.o which will require a WinMain@16 definition.
	#    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
	#  esac
	#  ;;
	#
	#

	#=======================================

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


	;;
esac

## ==================================================================
##            check what the byte ordering is:
## ==================================================================

##	AC_MSG_CHECKING(byte ordering)
##
##    gcc order.c -o order
##
##    ORDER=`./order`
##
##	case "$ORDER" in
##		10) #least byte first
##			AC_DEFINE(HAVE_LEAST_BYTE_FIRST,1,[ ])
##			AC_MSG_RESULT(10)
##        ;;
##
##        01) #If it gives 01 then ntohs would be
##			#define ntohs(x) (x)
##			AC_DEFINE(HAVE_LEAST_BYTE_FIRST,0,[ ])
##			AC_MSG_RESULT(01)
##	        ;;
##
##        *)
##			AC_MSG_RESULT(Invalid byte order result: >>$ORDER<<)
##            #must not exit here untill I find a way for this to work on
##            #CygWin without re-runing autoconf
##			#exit 5
##	        ;;
##    esac
##
##	rm -f ./order.c ./order ./order.exe ./order.o ./order.tmp

## ==================================================================
##            Decide on default SQL driver
## ==================================================================






  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Seting defaults:${T_ME}" >&5
$as_echo "${T_MD}Seting defaults:${T_ME}" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Default SQL driver" >&5
$as_echo_n "checking Default SQL driver... " >&6; }

#if more then one ODBC support was detected, this one will
#override A4GL_SQLTYPE set earlier in this script:
#Options: static nosql iodbc unixodbc esql ifxodbc pgodbc odbc32

if test "$default_sql" != ""; then
	#User can force SQL driver default with --default-odbc=xxxx switch

	case "$default_sql" in
		ec-i | ec-pg | ec-sap | ec-querix)
			A4GL_LEXTYPE=EC
        ;;

		pgodbc | ifxodbc | sapodbc | unixodbc | iodbc | odbc32 | sqlite | sqliteodbc | esql)
			A4GL_LEXTYPE=C
        ;;

        *)
			as_fn_error $? "Specified --default-sql=\"$default_sql\" is invalid" "$LINENO" 5
        ;;
    esac
	A4GL_SQLTYPE="$default_sql"
else
	#User did not specify default, so we will scan trough available database conectivity
	#options (ODBC, ESQL/C generation, native plug-ins) to pick the most stabile
	#and functional option from what is available

	#########################################
	############# ODBC drivers ##############
	#
	#	In reverse order of preference - most functional / stabile drivers
	#	are listed last, so they overrite previous declarations
	#

	if test "$HAVE_PGODBC" = "yes" ; then
		A4GL_LEXTYPE=C
		A4GL_SQLTYPE=pgodbc
        A4GL_SQLTYPE_DETECTED="$A4GL_SQLTYPE_DETECTED $A4GL_SQLTYPE"
		A4GL_SQLTYPE_EC_VALID_POSTGRES="pgodbc $A4GL_SQLTYPE_EC_VALID_POSTGRES"
	fi
	if test "$HAVE_IFXODBC" = "yes" ; then
		A4GL_LEXTYPE=C
		A4GL_SQLTYPE=ifxodbc
        A4GL_SQLTYPE_DETECTED="$A4GL_SQLTYPE_DETECTED $A4GL_SQLTYPE"
		A4GL_SQLTYPE_EC_VALID_INFORMIX="ifxodbc $A4GL_SQLTYPE_EC_VALID_INFORMIX"
	fi

	if test "$HAVE_SAPODBC" = "yes" ; then
		A4GL_LEXTYPE=C
		A4GL_SQLTYPE=sapodbc
        A4GL_SQLTYPE_DETECTED="$A4GL_SQLTYPE_DETECTED $A4GL_SQLTYPE"
		A4GL_SQLTYPE_EC_VALID_SAPDB="sapodbc $A4GL_SQLTYPE_EC_VALID_SAPDB"
    fi

	#########################################
	############# ODBC managers #############
	#
	#	In reverse order of preference - most functional / stabile drivers
	#	are listed last, so they overrite previous declarations
	#
	if test "$HAVE_UNIXODBC" = "yes" ; then
		A4GL_LEXTYPE=C
		A4GL_SQLTYPE=unixodbc
        A4GL_SQLTYPE_DETECTED="$A4GL_SQLTYPE_DETECTED $A4GL_SQLTYPE"
		A4GL_SQLTYPE_EC_VALID_ALL="unixodbc $A4GL_SQLTYPE_EC_VALID_ALL"
	fi
	if test "$HAVE_IODBC" = "yes" ; then
		#we want iodbc to have highest priority, when we have a choice,
        #sine we still have problems with unixODBC
		A4GL_LEXTYPE=C
		A4GL_SQLTYPE=iodbc
        A4GL_SQLTYPE_DETECTED="$A4GL_SQLTYPE_DETECTED $A4GL_SQLTYPE"
		A4GL_SQLTYPE_EC_VALID_ALL="iodbc $A4GL_SQLTYPE_EC_VALID_ALL"
	fi
	if test "$cygwin" = "1"; then
		#if we are on windows, we will ALLWAYS use native odbc32 manager
		A4GL_LEXTYPE=C
		A4GL_SQLTYPE=odbc32
        A4GL_SQLTYPE_DETECTED="$A4GL_SQLTYPE_DETECTED $A4GL_SQLTYPE"
		A4GL_SQLTYPE_EC_VALID_ALL="odbc32 $A4GL_SQLTYPE_EC_VALID_ALL"
	fi

	########################################################################
	########################## ESQL generation #############################
	########################################################################
	#
	#	In reverse order of preference - most functional / stabile drivers
	#	are listed last, so they overrite previous declarations
	#


	########## SAP-DB ESQL/C pre-compiler output #############
	if test "$SAPDB_ESQLC" != "no"; then
		A4GL_LEXTYPE=EC
		if test "`echo $A4GL_LEXTYPE_DETECTED | $GREP_WORD EC`" = ""; then
			A4GL_LEXTYPE_DETECTED="$A4GL_LEXTYPE_DETECTED $A4GL_LEXTYPE"
		fi
		#NOTE - plugin name is  libESQL_SAP.so NOT SAPDB
		A4GL_LEXDIALECT=SAP
        A4GL_LEXDIALECT_DETECTED="$A4GL_LEXDIALECT_DETECTED $A4GL_LEXDIALECT"
        #FIXME:4glc still needs to get to db for DEFINE LIKE
		A4GL_SQLTYPE=FIXME-ec
    fi

	######### Ingres ESQL/C compiler ################
	if test "$HAVE_INGRES_ESQLC" != "no"; then
		A4GL_LEXTYPE=EC
		if test "`echo $A4GL_LEXTYPE_DETECTED | $GREP_WORD EC`" = ""; then
			A4GL_LEXTYPE_DETECTED="$A4GL_LEXTYPE_DETECTED $A4GL_LEXTYPE"
		fi
		A4GL_LEXDIALECT=INGRES
        A4GL_LEXDIALECT_DETECTED="$A4GL_LEXDIALECT_DETECTED $A4GL_LEXDIALECT"
		#4glc still needs to get to db for DEFINE LIKE
		#Note - Mike say this driver was abandoned???
        A4GL_SQLTYPE=ingres
		A4GL_SQLTYPE_EC_VALID_INGRES="ingres $A4GL_SQLTYPE_EC_VALID_INGRES"
	fi

	########## PostgreSQL ESQL/C compiler #########
	#If we have PostgreSQL ESQL/C compiler, we can use it, bypassing A4GL_SQLTYPE
    #setting - this will limit Aubit DB connectivity to PostgreSQL ONLY.
    #Postgres - the ecpg needs to be the absolute latest CVS
	#version which has support for the "-C INFORMIX" flag.
	#Also - this version relies on a few backend changes for more Informix
	#compatibilty - some of which won't make it into the official postgres
	#releases and will need special patches...
	#All these are available (open source etc) - they are just not what most people
	#will have..
	if test "$PG_ESQLC" != "no" ; then
		if test "$PG_ESQLC_IFXCOMPAT" = "yes"; then
			A4GL_LEXTYPE=EC
			if test "`echo $A4GL_LEXTYPE_DETECTED | $GREP_WORD EC`" = ""; then
				A4GL_LEXTYPE_DETECTED="$A4GL_LEXTYPE_DETECTED $A4GL_LEXTYPE"
			fi
			A4GL_LEXDIALECT=POSTGRES
	        A4GL_LEXDIALECT_DETECTED="$A4GL_LEXDIALECT_DETECTED $A4GL_LEXDIALECT"
			#4glc still needs to get to db for DEFINE LIKE
	        A4GL_SQLTYPE="pg8"
			A4GL_SQLTYPE_COMPILE_ONLY_DETECTED="$A4GL_SQLTYPE_COMPILE_ONLY_DETECTED pg"
			A4GL_SQLTYPE_EC_VALID_POSTGRES="pg $A4GL_SQLTYPE_EC_VALID_POSTGRES"
        fi
    fi

    ########## Informix ESQL/C compiler ############
	#If we have Informix ESQL/C compiler, we can use it, bypassing A4GL_SQLTYPE
    #setting - this will limit Aubit DB connectivity to Informix ONLY.
	if test "$IFMX_ESQLC" != "no" ; then
		A4GL_LEXTYPE=EC
		if test "`echo $A4GL_LEXTYPE_DETECTED | $GREP_WORD EC`" = ""; then
			A4GL_LEXTYPE_DETECTED="$A4GL_LEXTYPE_DETECTED $A4GL_LEXTYPE"
		fi
		A4GL_LEXDIALECT=INFORMIX
        A4GL_LEXDIALECT_DETECTED="$A4GL_LEXDIALECT_DETECTED $A4GL_LEXDIALECT"
		A4GL_SQLTYPE_EC_VALID_INFORMIX="esql $A4GL_SQLTYPE_EC_VALID_INFORMIX"
		#4glc still needs to get to db for DEFINE LIKE
        A4GL_SQLTYPE=esql
    fi

    ########## Querix ESQL/C compiler ############
	#If we have Querix ESQL/C compiler, we can use it, bypassing A4GL_SQLTYPE
    #setting - this will limit Aubit DB connectivity to Querix supported RDBMS ONLY.
	#if test "$Q_ESQLC" != "no" ; then
		#If we have Querix ESQL/C compiler, we can use it, bypassing A4GL_SQLTYPE
    	#setting - this will limit Aubit DB connectivity to Querix supported RDBMS ONLY.
		#A4GL_LEXTYPE=EC
		#if test "`echo $A4GL_LEXTYPE_DETECTED | grep -w EC`" = ""; then
		#	A4GL_LEXTYPE_DETECTED="$A4GL_LEXTYPE_DETECTED $A4GL_LEXTYPE"
		#fi
		#A4GL_LEXDIALECT=QUERIX
        #A4GL_LEXDIALECT_DETECTED="$A4GL_LEXDIALECT_DETECTED $A4GL_LEXDIALECT"
		#FIXME:4glc still needs to get to db for DEFINE LIKE
    	#A4GL_SQLTYPE=FIXME-ec
    #fi

	#######################################################################
	######################## native drivers ###############################
	#######################################################################
	#
	#	In reverse order of preference - most functional / stabile drivers
	#	are listed last, so they overrite previous declarations
	#

	######### Ingres native ################
	if test "$HAVE_INGRES_ESQLC" != "no"; then
		#Note - Mike say this driver was abandoned???
		A4GL_LEXTYPE=C
		A4GL_SQLTYPE=ingres
        A4GL_SQLTYPE_DETECTED="$A4GL_SQLTYPE_DETECTED $A4GL_SQLTYPE"
	fi

	######### MySQL native #################
	if test "$SQL_MYSQL" = "yes" ; then
		A4GL_LEXTYPE=C
		A4GL_SQLTYPE=mysql
        A4GL_SQLTYPE_DETECTED="$A4GL_SQLTYPE_DETECTED $A4GL_SQLTYPE"
	fi

	######### PgSQL native #################
	#non existant: full driver was never finished by Sergio) and all we have is
	# a basic (simple) driver we use for DEFINE LIKE and such with PG ESQL output
	#if test "$HAVE_PGSQL_LIB" = "yes" ; then
	#	A4GL_SQLTYPE=pgsql
    #fi

	######### Informix native ###############
	if test "$IFMX_ESQLC" != "no" ; then
		A4GL_LEXTYPE=C
		A4GL_SQLTYPE=esql
        A4GL_SQLTYPE_DETECTED="$A4GL_SQLTYPE_DETECTED $A4GL_SQLTYPE"
	fi

	if test "$A4GL_SQLTYPE" = "nosql"; then
	#Did not get anything so far.
	#As a last resort, use SQLIte (as we will allways have it, as we have
	#SQLite ODBC code in our CVS) if we still dont
	#have default SQL plug-in at this point
	#Note that this is for Aubit connectivity side only - user is still
	#expected to make sure he has SQLite engine itself installed, but as SQLite
	#database engine is just one library, this should be easy. Easier then any
	#other RDBMS anyway.

		############# SQLite via ODBC ####################
		#This will never happen, since SQLIte native connector will allways "win"
		#as it is allways present (since we have all code in our CVS)
		if test "$SQLITE_LIB" = "1" -a "$SQLITE_ODBC" = "1"; then
			A4GL_LEXTYPE=C
			A4GL_SQLTYPE=sqliteodbc
			A4GL_SQLTYPE_DETECTED="$A4GL_SQLTYPE_DETECTED $A4GL_SQLTYPE"
		fi

		############# SQLite native connector ####################
		#It is not really native - it does not call SQLite API directly,
		#but instead it uses SQLite ODBC driver code to create plug-in
		#linked with Aubit ODBC code and SQLIte ODBC code - therefore it looks
		#like a native driver but interanlly it used ODBC API
		if test "$SQLITE_LIB" = "1" ; then
			A4GL_LEXTYPE=C
			#FIXME: how do we know if we have 'S'tatic one?
			if test "$SQLITE_VER" = "3"; then
				A4GL_SQLTYPE=sqlite3S
				A4GL_SQLTYPE_DETECTED="$A4GL_SQLTYPE_DETECTED $A4GL_SQLTYPE sqlite3"
			else
				A4GL_SQLTYPE=sqliteS
				A4GL_SQLTYPE_DETECTED="$A4GL_SQLTYPE_DETECTED $A4GL_SQLTYPE sqlite"
			fi
		else
			echo "Final attempt to assigne default database conectivity plug-in"
			echo "failed as there is no SQLite engine on this system, and no "
			echo "other database connectivity options where detected."
		fi
	fi
fi

#Add detected valid to the ones taht are allways valid for all
A4GL_SQLTYPE_EC_VALID_INFORMIX="$A4GL_SQLTYPE_EC_VALID_INFORMIX $A4GL_SQLTYPE_EC_VALID_ALL"
A4GL_SQLTYPE_EC_VALID_SAPDB="$A4GL_SQLTYPE_EC_VALID_SAPDB $A4GL_SQLTYPE_EC_VALID_ALL"
A4GL_SQLTYPE_EC_VALID_INGRES="$A4GL_SQLTYPE_EC_VALID_INGRES $A4GL_SQLTYPE_EC_VALID_ALL"
A4GL_SQLTYPE_EC_VALID_POSTGRES="$A4GL_SQLTYPE_EC_VALID_POSTGRES $A4GL_SQLTYPE_EC_VALID_ALL"

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}$A4GL_SQLTYPE${T_ME}" >&5
$as_echo "${T_MD}$A4GL_SQLTYPE${T_ME}" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Detected:$A4GL_SQLTYPE_DETECTED" >&5
$as_echo "Detected:$A4GL_SQLTYPE_DETECTED" >&6; }


## ==================================================================
##            Decide on default COMPILER OUTPUT driver
## ==================================================================

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Default compiler output language" >&5
$as_echo_n "checking Default compiler output language... " >&6; }

PCODE_ENABLED="no"
if test "$with_pcode" = "yes"; then
	if test "$enable_minimal" != "yes"; then
		# Removed PCODE compilation from build...
		#PCODE_ENABLED="yes"
		:
	fi
fi

if test "$default_comp" != ""; then
	#User can force COMPILER driver default with --default-comp=xxxx switch
	A4GL_LEXTYPE="$default_comp"
	if test "$default_lexdialect" != ""; then
		A4GL_LEXDIALECT="$default_lexdialect"
    fi
else

	#LEXTYPE is at this point empty, unless a variant of embedded
	#C was chosen in SQL connectivity "decide" section.

	if test "$PERLBUILD" != "no"; then
		#No point:
		#A4GL_LEXTYPE="PERL"
		#A4GL_LEXDIALECT=""
		A4GL_LEXTYPE_DETECTED="$A4GL_LEXTYPE_DETECTED PERL"
    fi

	# C# output (Mono)
	if test "$CS_COMPILER" != "no"; then
		#No point:
		#A4GL_LEXTYPE="CS"
		#A4GL_LEXDIALECT=""
		A4GL_LEXTYPE_DETECTED="$A4GL_LEXTYPE_DETECTED CS"
    fi

	if test "$PCODE_ENABLED" = "yes"; then
		A4GL_LEXTYPE="PCODE"
		A4GL_LEXDIALECT=""
		A4GL_LEXTYPE_DETECTED="$A4GL_LEXTYPE_DETECTED $A4GL_LEXTYPE"
	fi


	if test "$HAVE_C_COMP" = "1"; then
		A4GL_LEXTYPE="C"
		A4GL_LEXDIALECT=""
		A4GL_LEXTYPE_DETECTED="$A4GL_LEXTYPE_DETECTED $A4GL_LEXTYPE"
	fi


    #NOTE: Since it primarily affects database connectivity, embedded C
    #variants are in SQL connectivity "decide" section

fi

if test "$A4GL_LEXTYPE" = "EC"; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}$A4GL_LEXTYPE $A4GL_LEXDIALECT${T_ME}" >&5
$as_echo "${T_MD}$A4GL_LEXTYPE $A4GL_LEXDIALECT${T_ME}" >&6; }
else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}$A4GL_LEXTYPE${T_ME}" >&5
$as_echo "${T_MD}$A4GL_LEXTYPE${T_ME}" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Detected:$A4GL_LEXTYPE_DETECTED" >&5
$as_echo "Detected:$A4GL_LEXTYPE_DETECTED" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Detected-EC dialects:$A4GL_LEXDIALECT_DETECTED" >&5
$as_echo "Detected-EC dialects:$A4GL_LEXDIALECT_DETECTED" >&6; }

## ==================================================================
##            Decide on default RPC driver
## ==================================================================

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Default RPC driver" >&5
$as_echo_n "checking Default RPC driver... " >&6; }

if test "$default_rpc" != ""; then
	#User can force RPC driver default with --default-rpc=xxxx switch
	A4GL_RPCTYPE="$default_rpc"
else

	if test "$XML_RPC" != "no"; then
		A4GL_RPCTYPE="XMLRPC"
        A4GL_RPCTYPE_DETECTED="$A4GL_RPCTYPE_DETECTED $A4GL_RPCTYPE"
    fi

	if test "$HAVE_RPCLIB" != "0"; then
		A4GL_RPCTYPE="XDR"
        A4GL_RPCTYPE_DETECTED="$A4GL_RPCTYPE_DETECTED $A4GL_RPCTYPE"
    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}$A4GL_RPCTYPE${T_ME}" >&5
$as_echo "${T_MD}$A4GL_RPCTYPE${T_ME}" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Detected:$A4GL_RPCTYPE_DETECTED" >&5
$as_echo "Detected:$A4GL_RPCTYPE_DETECTED" >&6; }

## ==================================================================
##            Decide on default FORM driver
## ==================================================================

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Default forms driver" >&5
$as_echo_n "checking Default forms driver... " >&6; }

if test "$default_form" != ""; then
	#User can force FORM driver default with --default-form=xxxx switch
	A4GL_FORMTYPE="$default_form"
else
	#FIXME: do we want to use XDR forms any more?
	if test "$HAVE_RPCLIB" != "0"; then
		A4GL_FORMTYPE="XDR"
		A4GL_FORMTYPE_DETECTED="$A4GL_FORMTYPE_DETECTED $A4GL_FORMTYPE"
    fi

	A4GL_FORMTYPE="GENERIC"
	A4GL_FORMTYPE_DETECTED="$A4GL_FORMTYPE_DETECTED $A4GL_FORMTYPE"
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}$A4GL_FORMTYPE${T_ME}" >&5
$as_echo "${T_MD}$A4GL_FORMTYPE${T_ME}" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Detected:$A4GL_FORMTYPE_DETECTED" >&5
$as_echo "Detected:$A4GL_FORMTYPE_DETECTED" >&6; }


## ==================================================================
##            Decide on default EXTended REPorts driver
## ==================================================================

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Default EXTended REPorts driver" >&5
$as_echo_n "checking Default EXTended REPorts driver... " >&6; }
if test "$default_report" != ""; then
	#User can force EXREPORT driver default with --default-report=xxxx switch
	A4GL_PDFTYPE="$default_report"
else
	if test "$PDFBUILD" != "no"; then
		A4GL_PDFTYPE="PDF"
		A4GL_PDFTYPE_DETECTED="$A4GL_PDFTYPE_DETECTED $A4GL_PDFTYPE"
    fi
fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}$A4GL_PDFTYPE${T_ME}" >&5
$as_echo "${T_MD}$A4GL_PDFTYPE${T_ME}" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Detected:$A4GL_PDFTYPE_DETECTED" >&5
$as_echo "Detected:$A4GL_PDFTYPE_DETECTED" >&6; }

## ==================================================================
##            Decide on default UI driver
## ==================================================================

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Default UI driver" >&5
$as_echo_n "checking Default UI driver... " >&6; }
if test "$default_ui" != ""; then
	#User can force UI driver default with --default-ui=xxxx switch
	A4GL_UI="$default_ui"
else

	if test "$HAVE_XCURSES" = "1"; then
	#	A4GL_UI="HL_TUIX"
		A4GL_UI_DETECTED="$A4GL_UI_DETECTED HL_TUIX"
	fi

	if test "$GTKBUILD" != "no"; then
		A4GL_UI="HL_GTK"
		A4GL_UI_DETECTED="$A4GL_UI_DETECTED $A4GL_UI"
	fi

	if test "$HAVE_CURSES" = "1" ; then
		A4GL_UI="TUI"
        #HL_TUI is still not as good as TUI according to Mike
		#A4GL_UI="HL_TUI"
		A4GL_UI_DETECTED="$A4GL_UI_DETECTED TUI HL_TUI HL_TUIN"
	else
		if test "$HAS_PDCURSES_STATIC_OBJS" = "1" ; then
				A4GL_UI="HL_TUINs"
				A4GL_UI_DETECTED="$A4GL_UI_DETECTED HL_TUINs UI_HL_TUIws"
		fi
		#we can compile only HL_TUIN with PDcurses
		if test "$HAVE_PDCURSES" = "1"; then
			A4GL_UI="TUI"
			A4GL_UI_DETECTED="$A4GL_UI_DETECTED HL_TUIN UI_HL_TUIw"
		fi
	fi

	if test "$A4GL_UI" = "CONSOLE" ; then
		WARN_UI=1
    fi
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}$A4GL_UI${T_ME}" >&5
$as_echo "${T_MD}$A4GL_UI${T_ME}" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Detected:$A4GL_UI_DETECTED" >&5
$as_echo "Detected:$A4GL_UI_DETECTED" >&6; }


## ==================================================================
##            Decide on default HELP MESSAGE driver
## ==================================================================
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Default Message driver" >&5
$as_echo_n "checking Default Message driver... " >&6; }
if test "$default_msg" != ""; then
	#User can force HELP MESSAGE driver default with --default-msg=xxxx switch
	A4GL_MSGTYPE="$default_msg"
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}$A4GL_MSGTYPE${T_ME}" >&5
$as_echo "${T_MD}$A4GL_MSGTYPE${T_ME}" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Detected:$A4GL_MSGTYPE_DETECTED" >&5
$as_echo "Detected:$A4GL_MSGTYPE_DETECTED" >&6; }

## ==================================================================
##  Decide on default packer driver for forms,menus and reports (ace)
## ==================================================================

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Default packer driver" >&5
$as_echo_n "checking Default packer driver... " >&6; }
if test "$default_packer" != ""; then
	#User can force PACKER driver default with --default-packer=xxxx switch
	A4GL_PACKER="$default_packer"
else

	A4GL_PACKER=XML
	A4GL_PACKER_DETECTED="$A4GL_PACKER_DETECTED $A4GL_PACKER"

   	if test "$HAVE_RPCLIB" != "0"; then
		A4GL_PACKER=XDR
		A4GL_PACKER_DETECTED="$A4GL_PACKER_DETECTED $A4GL_PACKER"
    fi

	#Check if we can build libPACKER_GZPACKED
	if test $ac_cv_lib_z_main = yes; then
		A4GL_PACKER=GZPACKED
		A4GL_PACKER_DETECTED="$A4GL_PACKER_DETECTED $A4GL_PACKER"
	fi


	#A4GL_PACKER=PERL

	#Why would we use anything else anyway?
	#Simple data
	A4GL_PACKER=PACKED
	A4GL_PACKER_DETECTED="$A4GL_PACKER_DETECTED $A4GL_PACKER"

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}$A4GL_PACKER${T_ME}" >&5
$as_echo "${T_MD}$A4GL_PACKER${T_ME}" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Detected:$A4GL_PACKER_DETECTED" >&5
$as_echo "Detected:$A4GL_PACKER_DETECTED" >&6; }

## ==================================================================
##				Decide on targets that are built/istalled/packaged
##              optionaly based on external dependencies. This affects
##              RPM packaging, install/deinstall and build process
## ==================================================================

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Plug-ins to build" >&5
$as_echo_n "checking Plug-ins to build... " >&6; }

PLUGIN_YES=
PLUGIN_YES_LINKABLE=
PLUGIN_NO=
PLUGIN_NO_LINKABLE=

	if test "$PCODE_ENABLED" = "yes"; then
		if test "$enable_minimal" != "yes"; then
			#Need RPClib:
			PCODE_EXE_RPC="c2pcode checker runner"
			PCODE_EXE_NATIVE="c2pcode_fgl checker_fgl runner_fgl link_fgl"
			PLUGIN_YES="$PLUGIN_YES LEX_PCODEC"
		fi
	else
		ALL_DISABLED="$ALL_DISABLED c2pcode checker runner c2pcode_fgl checker_fgl runner_fgl link_fgl LEX_PCODEC"
		PLUGIN_NO="$PLUGIN_NO LEX_PCODEC"
	fi


	if test "$PERLBUILD" != "no"; then
		PLUGIN_YES="$PLUGIN_YES LEX_PERL"
		if test "$DO_DISABLE" = "1"; then
			ALL_DISABLED="$ALL_DISABLED aubit4gl_pl.pm"
			DISABLED_MANUAL_CMD="$DISABLED_MANUAL_CMD 'make perl'"
		fi
	else
		PLUGIN_NO="$PLUGIN_NO LEX_PERL aubit4gl_pl.pm"
    fi

	if test "$HAVE_CURSES" = "1" ; then
        PLUGIN_YES="$PLUGIN_YES UI_TUI UI_HL_TUI UI_HL_TUIN"
		if test "$HAVE_WIDE_NCURSES" = "1"; then
        		PLUGIN_YES="$PLUGIN_YES UI_TUI_wide"
		fi
        	#add UI_HL_TUINs
	else
		if test "$HAVE_PDCURSES" = "1" -o "$HAS_PDCURSES_STATIC_OBJS" = "1"; then
			#no curses, but found PDcurses
			#can make only UI_TUIN with PDcurses
			if test "$HAVE_PDCURSES" = "1"; then
    	    	PLUGIN_YES="$PLUGIN_YES UI_HL_TUIN UI_HL_TUIw"
			else
				PLUGIN_NO="$PLUGIN_NO UI_HL_TUIN UI_HL_TUIw"
			fi
			if test "$HAS_PDCURSES_STATIC_OBJS" = "1"; then
				PLUGIN_YES="$PLUGIN_YES UI_HL_TUINs UI_HL_TUIws"
			else
				PLUGIN_NO="$PLUGIN_NO UI_HL_TUINs UI_HL_TUIws"
			fi
			if test "$GCC_MINGW" != "yes"; then
				#Does not exist for MinGW anyway
				PLUGIN_NO="$PLUGIN_NO UI_TUI UI_HL_TUI"
				#Will be on all known Linux installations, but not by default on CygWin
				INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL "
			else
				PLATFORM_UNAVAILABLE_OPTIONS="$PLATFORM_UNAVAILABLE_OPTIONS UI_TUI UI_HL_TUI"
			fi
		else
			#no Curses and no PDcurses
			if test "$GCC_MINGW" != "yes"; then
				#Does not exist for MinGW anyway
				PLUGIN_NO="$PLUGIN_NO UI_TUI UI_HL_TUI UI_HL_TUIN UI_HL_TUINs UI_HL_TUIw UI_HL_TUIws"
				#Will be on all known Linux installations, but not by default on CygWin
				INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL "
			else
				PLATFORM_UNAVAILABLE_OPTIONS="$PLATFORM_UNAVAILABLE_OPTIONS UI_TUI UI_HL_TUI UI_HL_TUIN UI_HL_TUINs"
			fi
		fi
	fi

	if test "$HAVE_XCURSES" = "1"; then
		PLUGIN_YES="$PLUGIN_YES UI_HL_TUIX"
	else
		if test "$COMSPEC" = ""; then
			PLUGIN_NO="$PLUGIN_NO UI_HL_TUIX"
			INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.pdcurses"
		else
			PLATFORM_UNAVAILABLE_OPTIONS="$PLATFORM_UNAVAILABLE_OPTIONS UI_HL_TUIX"
		fi
	fi

	if test "$PDFBUILD" != "no"; then
		PLUGIN_YES="$PLUGIN_YES EXREPORT_PDF $LIBLOGICAL_PDF_DEPEND"
	else
        PLUGIN_NO="$PLUGIN_NO EXREPORT_PDF $LIBLOGICAL_PDF_DEPEND"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.pdflib"
	fi

	if test "$PDFBUILD" != "no" -a "$GTK_VERSION" = "2.0"; then
		PLUGIN_YES="$PLUGIN_YES $LIBLOGICAL_PDF_GTK2_DEPEND"
	else
        PLUGIN_NO="$PLUGIN_NO $LIBLOGICAL_PDF_GTK2_DEPEND"
		#INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.pdflib"
	fi

	if test "$IFMX_ESQLC" != "no" ; then
		PLUGIN_YES="$PLUGIN_YES SQL_esql ESQL_INFORMIX"
		if test "$enable_minimal" != "yes"; then
			COMP_EXE="$COMP_EXE aupscol adbload2 asql_i$A4GL_EXE_EXT runforms$A4GL_EXE_EXT"
			#adbload2, aupscol and sqleditor currently compiles only with Informix ESQL/C
		fi
	else
        PLUGIN_NO="$PLUGIN_NO SQL_esql ESQL_INFORMIX sqleditor$A4GL_EXE_EXT aupscol adbload2 asql_i$A4GL_EXE_EXT"
		EXE_NO="$COMP_EXE aupscol adbload2 asql_i$A4GL_EXE_EXT runforms$A4GL_EXE_EXT"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.ifx.esql"
	fi

	if test "$HAVE_INGRES_ESQLC" != "no"; then
		PLUGIN_YES="$PLUGIN_YES SQL_ingres"
		if test "$DO_DISABLE" = "1"; then
			#Fixme: helper_ingres.ec not in CVS:
			#Cant a4gl_I compile because of the above problem:
			ALL_DISABLED="$ALL_DISABLED ESQL_INGRES asql_I$A4GL_EXE_EXT"
			DISABLED_MANUAL_CMD="$DISABLED_MANUAL_CMD 'make ???'"
		else
			PLUGIN_YES="$PLUGIN_YES ESQL_INGRES"
			if test "$enable_minimal" != "yes"; then
				COMP_EXE="$COMP_EXE asql_I$A4GL_EXE_EXT"
			fi
		fi
	else
		PLUGIN_NO="$PLUGIN_NO SQL_ingres ESQL_INGRES"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.ingres"
	fi

	if test "$SQL_MYSQL" = "yes" ; then
		PLUGIN_YES="$PLUGIN_YES SQL_mysql"
	else
        PLUGIN_NO="$PLUGIN_NO SQL_mysql"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.mysql.client"
	fi

        if test "$SQL_MYSQL_EMB" = "yes" ; then
                PLUGIN_YES="$PLUGIN_YES SQL_mysqldb"
        fi

	if test "$HAVE_PGODBC" = "yes" ; then
        PLUGIN_YES="$PLUGIN_YES SQL_pgodbc"
	else
        if test "$COMSPEC" = ""; then
            #no point in building directly linked ODBC drivers on Windows - use odbc32
			PLUGIN_NO="$PLUGIN_NO SQL_pgodbc"
			INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.pg.odbc"
        fi
	fi

	if test "$HAVE_IFXODBC" = "yes" ; then
        PLUGIN_YES="$PLUGIN_YES SQL_ifxodbc"
	else
        if test "$COMSPEC" = ""; then
            #no point in building directly linked ODBC drivers on Windows - use odbc32
			PLUGIN_NO="$PLUGIN_NO SQL_ifxodbc"
			INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.ifx.odbc"
        fi
	fi

	if test "$cygwin" != "1" ; then
		if test "$HAVE_IODBC" = "yes" ; then
	        PLUGIN_YES="$PLUGIN_YES SQL_iodbc"
		else
	        PLUGIN_NO="$PLUGIN_NO SQL_iodbc"
			INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.iodbc"
		fi

		if test "$HAVE_UNIXODBC" = "yes" ; then
	        PLUGIN_YES="$PLUGIN_YES SQL_unixodbc"
		else
	        PLUGIN_NO="$PLUGIN_NO SQL_unixodbc"
			#INSTALL_MISSING_OPTIONAL is set in unixODBC tests, because it can have two variants
		fi
    fi

	if test "$cygwin" = "1"; then
        PLUGIN_YES="$PLUGIN_YES SQL_odbc32"
	#else
		#We do not want to confuse people on UNIX saying this will not be built
        #since we can only build it on Windows and we allways build it on Windows
		#PLUGIN_NO="$PLUGIN_NO ODBC32"
	fi

	if test "$XML_RPC" != "no"; then
        PLUGIN_YES="$PLUGIN_YES RPC_XMLRPC"
	else
        PLUGIN_NO="$PLUGIN_NO RPC_XMLRPC"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.xmlrpc"
	fi

	if test "$CINT" != "no"; then
        PLUGIN_YES="$PLUGIN_YES A4GL_cint"
	else
        PLUGIN_NO="$PLUGIN_NO A4GL_cint"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.cint"
	fi

	if test "$HAVE_RPCLIB" != "0"; then
		PLUGIN_YES="$PLUGIN_YES RPC_XDR FORM_XDR XDRPACKER_report XDRPACKER_struct_form PACKER_XDR XDRPACKER_module XDRPACKER_module_definition"
	else
		if test "$GCC_MINGW" != "yes"; then
			#SUN RPC does not exist for MinGW anyway
			PLUGIN_NO="$PLUGIN_NO RPC_XDR FORM_XDR XDRPACKER_report XDRPACKER_struct_form PACKER_XDR XDRPACKER_module XDRPACKER_module_definition"
			INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.sunrpc"
		else
			PLATFORM_UNAVAILABLE_OPTIONS="$PLATFORM_UNAVAILABLE_OPTIONS RPC_XDR FORM_XDR  XDRPACKER_report XDRPACKER_struct_form PACKER_XDR XDRPACKER_module XDRPACKER_module_definition"
        fi
	fi

	if test $ac_cv_lib_z_main = yes; then
		PLUGIN_YES="$PLUGIN_YES PACKER_GZPACKED"
	else
		PLUGIN_NO="$PLUGIN_NO PACKER_GZPACKED"
	fi


	if test "$EXDATA_MPZ" != "no"; then
		PLUGIN_YES="$PLUGIN_YES EXDTYPE_mpz"
	else
        PLUGIN_NO="$PLUGIN_NO EXDTYPE_mpz"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.mpz"
	fi

	if test "$HAVE_SAPODBC" = "yes" ; then
        PLUGIN_YES="$PLUGIN_YES SQL_sapodbc"
	else
        if test "$COMSPEC" = ""; then
            #no point in building directly linked ODBC drivers on Windows - use odbc32
			PLUGIN_NO="$PLUGIN_NO SQL_sapodbc"
			INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.sapdb.odbc"
        fi
	fi

	#this is made by 'make extra' -- check this stmt, I dont think so
	if test "$JABBERBUILD" != "no"; then
		#if test "$DO_DISABLE" = "1"; then
		#	ALL_DISABLED="$ALL_DISABLED IM_JABBER IM_JABBERs"
		#	DISABLED_MANUAL_CMD="$DISABLED_MANUAL_CMD 'make jabber'"
		#else
	        PLUGIN_YES_LINKABLE="$PLUGIN_YES_LINKABLE IM_JABBER IM_JABBERs"
		#fi
	else
        PLUGIN_NO_LINKABLE="$PLUGIN_NO_LINKABLE IM_JABBER IM_JABBERs"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.iksemel"
	fi

	if test "$HAVE_PGSQL_LIB" = "yes"; then
        #an simple PG plug-in with limited functionality (by Mike)
		PLUGIN_YES="$PLUGIN_YES SQL_pg SQL_pg8"

		if test "$PG_ESQLC" != "no" -a "$HAVE_PG_ESQL_HEADERS" = "yes" ; then
			#ESQL based PG plug-in based on 'simple' template using ecpg in no-Informix mode
			#does NOT need IFX compatibility in ecpg or PG engine - it is used
			#only to resolve variables defined as LIKE when compiling 4gl
			#code using EC dialect POSTGRES
			#REPLACED BY postgresql/simple.c driver
			#PLUGIN_YES="$PLUGIN_YES SQL_c_ecpg"
			COMP_EXE="$COMP_EXE asql_p$A4GL_EXE_EXT"
			#asql_p compile only if PG ESQLC compiler is installed

        else
			PLUGIN_NO="$PLUGIN_NO asql_p$A4GL_EXE_EXT"
			#PLUGIN_NO="$PLUGIN_NO SQL_c_ecpg"
		fi

		if test "$DO_DISABLE" = "1"; then
			ALL_DISABLED="$ALL_DISABLED SQL_pgDEVEL"
			DISABLED_MANUAL_CMD="$DISABLED_MANUAL_CMD 'make ???'"
		else
			#"real" one written in CPP - Sergio never finised it... :-(
			PLUGIN_YES="$PLUGIN_YES SQL_pgDEVEL"
		fi

	else
		PLUGIN_NO="$PLUGIN_NO SQL_pg SQL_pg8"
		#PLUGIN_NO="$PLUGIN_NO SQL_c_ecpg"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.pg.esql"
	fi


	#GTK plug-in may need to recompile assist.4gl, so it may need to have 4glc,
    #so it needs to be AFTER all other plug-ins needed by 4glc, like SQL plug-ins:
	if test "$GTKBUILD" != "no"; then
		PLUGIN_YES="$PLUGIN_YES UI_HL_GTK"
	else
        PLUGIN_NO="$PLUGIN_NO UI_HL_GTK"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.gtk"
	fi

	if test "$GTK_VERSION" = "2.0"; then
		PLUGIN_YES="$PLUGIN_YES $LIBLOGICAL_GTK2_DEPEND"
	else
		PLUGIN_NO="$PLUGIN_NO $LIBLOGICAL_GTK2_DEPEND"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.gtk2"
	fi

	if test "$HAS_GLADE_2" = "1" -a "$GTKBUILD" != "no"; then
		PLUGIN_YES="$PLUGIN_YES UI_GLADE A4GL_glade"
	else
        PLUGIN_NO="$PLUGIN_NO UI_GLADE A4GL_glade"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.glade2"
	fi

	#All libMENU_xxx need libUI_GTK on Windows to be linked with, to
    #resolve symbols - so all libMENU_ must be built after libUI_GTK
	if test "$HAVE_RPCLIB" != "0" -a "$GTKBUILD" != "no"; then
		PLUGIN_YES="$PLUGIN_YES "
    else
		if test "$GCC_MINGW" != "yes"; then
			#hide MENU_XDR from list of not to build - no Sun RPC with MinGW GCC
			PLUGIN_NO="$PLUGIN_NO "
		else
			PLATFORM_UNAVAILABLE_OPTIONS="$PLATFORM_UNAVAILABLE_OPTIONS "
		fi
    fi

	#SQLite native connection
	if test "$SQLITE_LIB" = "1"; then
		if test "$SQLITE_VER" = "3"; then
			#PLUGIN_YES="$PLUGIN_YES SQL_sqlite3 SQL_sqlite3S"
			PLUGIN_YES="$PLUGIN_YES SQL_sqlite3 "
		else
			PLUGIN_YES="$PLUGIN_YES SQL_sqlite"
			if test "$GCC_MINGW" != "yes" -a "$cygwin" != "1"; then
				#PLUGIN_YES="$PLUGIN_YES SQL_sqliteS"
				PLUGIN_YES="$PLUGIN_YES "
			else
				#no static SQLite library supplied for Windows in V2
				PLATFORM_UNAVAILABLE_OPTIONS="$PLATFORM_UNAVAILABLE_OPTIONS SQL_sqliteS"
			fi
		fi
    else
        PLUGIN_NO="$PLUGIN_NO SQL_sqlite SQL_sqliteS SQL_sqlite3 SQL_sqlite3S"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.sqlite"
    fi

	#SQLite ODBC driver
	if test "$SQLITE_ODBC" = "1"; then
		PLUGIN_YES="$PLUGIN_YES SQL_sqliteodbc"
    else
        if test "$COMSPEC" = ""; then
            #no point in building directly linked ODBC drivers on Windows - use odbc32
			PLUGIN_NO="$PLUGIN_NO SQL_sqliteodbc"
			INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.sqlite.odbc"
        fi
    fi

	if test "$HAVE_POPLIB" = "1"; then
		#NOTE: needs 4glc
		PLUGIN_YES="$PLUGIN_YES A4GL_pop"
    else
        PLUGIN_NO="$PLUGIN_NO A4GL_pop"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.libspopc"
    fi


    if test "$HAVE_SMTPLIB" = "1"; then
		#NOTE: needs 4glc
		PLUGIN_YES="$PLUGIN_YES fgl_smtp"
    else
        PLUGIN_NO="$PLUGIN_NO fgl_smtp"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.libsmtp"
    fi

	if test "$HAVE_PCRELIB" = "1"; then
		#NOTE: needs 4glc
		PLUGIN_YES="$PLUGIN_YES A4GL_pcre"
    else
        PLUGIN_NO="$PLUGIN_NO A4GL_pcre"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.pcre"
    fi
	if test "$HAVE_SXMLLIB" = "1"; then
		#NOTE: needs 4glc
		PLUGIN_YES="$PLUGIN_YES A4GL_sxml"
    else
        PLUGIN_NO="$PLUGIN_NO A4GL_sxml"
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.sxml"
    fi

	if test "$PG_ESQLC" != "no" && test "$PG_ESQLC_IFXCOMPAT" = "yes"; then
		PLUGIN_YES="$PLUGIN_YES ESQL_POSTGRES"
		if test "$DO_DISABLE" = "1"; then
			ALL_DISABLED="$ALL_DISABLED SQL_esqlPG"
			DISABLED_MANUAL_CMD="$DISABLED_MANUAL_CMD 'make ???'"
		else
			#Compile Aubit ESQL/C SQL connectivity plug-in using PG ESQL/C compiler
			#Mike say: Main problem is ecpg doesn't support get diagnostics
			#(think I wrote another one for postgres anyway - I'll
			#check to see whats around when I get back)
			PLUGIN_YES="$PLUGIN_YES SQL_esqlPG"
		fi
    else
        PLUGIN_NO="$PLUGIN_NO ESQL_POSTGRES SQL_esqlPG"
		#INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.libspopc"
    fi


	if test "$Q_ESQLC" != "no" ; then
		if test "$DO_DISABLE" = "1" -o "$cygwin" != "1"; then
			ALL_DISABLED="$ALL_DISABLED ESQL_QUERIX SQL_esqlQ"
			DISABLED_MANUAL_CMD="$DISABLED_MANUAL_CMD 'make ???'"
		else
			#Don't know how to link this on Windows...GCC not supported?
			#since introduction of "decimal" can't compile - must pre-process with cpp first
			PLUGIN_YES="$PLUGIN_YES ESQL_QUERIX"
			#Compile Aubit ESQL/C SQL connectivity plug-in using Querix ESQL/C compiler
			PLUGIN_YES="$PLUGIN_YES SQL_esqlQ"
		fi
	else
			PLUGIN_NO="$PLUGIN_NO ESQL_QUERIX SQL_esqlQ"
			#INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.querix"
	fi

	if test "$SAPDB_ESQLC" != "no"; then
		PLUGIN_YES="$PLUGIN_YES ESQL_SAP"
		if test "$DO_DISABLE" = "1" ; then
			ALL_DISABLED="$ALL_DISABLED SQL_esqlSAP"
			DISABLED_MANUAL_CMD="$DISABLED_MANUAL_CMD 'make ???'"
		else
			#Compile Aubit ESQL/C SQL connectivity plug-in using SAP DB ESQL/C compiler
			PLUGIN_YES="$PLUGIN_YES SQL_esqlSAP"
		fi
	else
		if test "$COMSPEC" != ""; then
			PLATFORM_UNAVAILABLE_OPTIONS="$PLATFORM_UNAVAILABLE_OPTIONS SQL_esqlSAP ESQL_SAP"
		else
        	PLUGIN_NO="$PLUGIN_NO SQL_esqlSAP ESQL_SAP"
			#INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.sap.esqlc"
		fi
    fi

	if test "$DO_DISABLE" = "1" ; then
		ALL_DISABLED="$ALL_DISABLED LL_server UI_client server_gtk server_tui server_console"
		DISABLED_MANUAL_CMD="$DISABLED_MANUAL_CMD 'make -C lib/libui/ui_highlevel/remote_client'"

		#lib/libui/ui_highlevel/remote_client
		#libLL_server.so - A convinience library for wrapping common server stuff up
		#libUI_client.so - This is a UI you can use just like TUI, HL_TUI, HL_GTK etc.. A4GL_UI=client

		#server_gtk	- This is the thin client program for displaying the output (GTK mode)
		#server_tui	- This is the thin client program for displaying the output (TUI mode)
		#server_console  - Not yet - but soon...
	fi

	#######################################################################
	#Output created list of plugins to be created as individual variables
	#for use in RPM and Windows setup creation:

    #Can't use 'let' - standard sh don't know that...
	#let COUNTER=0
    COUNTER=0
	COUNTER_IS=0
	for FILE in $PLUGIN_YES ; do
		#let COUNTER=COUNTER+1
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "RPMFILE_$COUNTER='$RPM_PLUGIN_PREFIX/lib$FILE$SO_EXT'"
		eval "ISFILE_$COUNTER='Source: $IS_SOURCE\\$PLUGIN_DIR\lib$FILE$SO_EXT; DestDir: {app}\\$PLUGIN_DIR; Components: runtime'"
	done
	COUNTER_IS="$COUNTER"

	#Linkable (not dlopen-able) optional libraries (not plug-ins)
	#For example, IM_JABBER
	for FILE in $PLUGIN_YES_LINKABLE ; do
		#Note; even tho this libs are NOT plug-ns, we stuff them in plugin
		#folder so we dont have to change all makefiles and install scripts - FOR NOW
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "RPMFILE_$COUNTER='$RPM_PLUGIN_PREFIX/lib$FILE$SO_EXT_LINKABLE'"
		COUNTER_IS=`(expr $COUNTER_IS + 1) 2>/dev/null`
		eval "ISFILE_$COUNTER_IS='Source: $IS_SOURCE\lib\lib$FILE$SO_EXT_LINKABLE; DestDir: {app}\lib; Components: runtime'"
		COUNTER_IS=`(expr $COUNTER_IS + 1) 2>/dev/null`
		eval "ISFILE_$COUNTER_IS='Source: $IS_SOURCE\lib\lib$FILE$SO_EXT_LINKABLE.a; DestDir: {app}\lib; Components: runtime'"
	done

    PLUGIN_YES="$PLUGIN_YES $PLUGIN_YES_LINKABLE"
    PLUGIN_NO="$PLUGIN_NO $PLUGIN_NO_LINKABLE"


## ==================================================================
##    Populate files lists for executables, resource files, etc:
## ==================================================================

#FIXME: can't make pcode without Bison - IS THIS STILL TRUE?
#if test "$BISON" != "no"; then
	COMP_EXE="$COMP_EXE $PCODE_EXE_NATIVE"
	if test "$HAVE_RPCLIB" != "0"; then
		COMP_EXE="$COMP_EXE $PCODE_EXE_RPC"
	else
		if test "$GCC_MINGW" != "yes"; then
			EXE_NO="$EXE_NO $PCODE_EXE_RPC"
		else
			PLATFORM_UNAVAILABLE_OPTIONS="$PLATFORM_UNAVAILABLE_OPTIONS $PCODE_EXE_RPC"
		fi
	fi
#fi
	if test "$GTK_VERSION" = "2.0"; then
		RUNTIME_EXE="$RUNTIME_EXE $LIBLOGICAL_EXE_GTK2_DEPEND"
	else
		EXE_NO="$EXE_NO $LIBLOGICAL_EXE_GTK2_DEPEND"
	fi

    COUNTER=0
	for FILE in $COMP_EXE ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		FILE_EXE="$FILE"
		if test "$COMSPEC" != ""; then
			A=`basename $FILE $A4GL_EXE_EXT`
			B=`basename $FILE`
			if test "$A" = "$B"; then
				#file does not have Aubit executable extension
				FILE_EXE="$FILE$EXEEXT"
			fi
		fi
		eval "EXEFILE_$COUNTER='$RPM_EXE_PREFIX/$FILE_EXE'"
		#DestName: "4glc.exe"; CopyMode: alwaysoverwrite;
		eval "ISEXEFILE_$COUNTER='Source: $IS_SOURCE\bin\\$FILE_EXE; DestDir: {app}\bin; $COPYMODE_NORMAL; Components: compiler'"
	done

	for FILE in $RUNTIME_EXE ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		FILE_EXE="$FILE"
		if test "$COMSPEC" != ""; then
			if test "`basename $FILE $A4GL_EXE_EXT`" = "`basename $FILE`"; then
				#file does not have Aubit executable extension
				FILE_EXE="$FILE$EXEEXT"
			fi
		fi
		eval "EXEFILE_$COUNTER='$RPM_EXE_PREFIX/$FILE_EXE'"
		eval "ISEXEFILE_$COUNTER='Source: $IS_SOURCE\bin\\$FILE_EXE; DestDir: {app}\bin; $COPYMODE_NORMAL; Components: runtime'"
	done

	for FILE in $RUNTIME_RESOURCE ; do
		COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
		eval "EXEFILE_$COUNTER='$RPM_EXE_PREFIX/$FILE'"
		eval "ISEXEFILE_$COUNTER='Source: $IS_SOURCE\bin\\$FILE; DestDir: {app}\bin; $COPYMODE_NORMAL; Components: runtime'"
	done

	COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
	eval "ISEXEFILE_$COUNTER='Source: $IS_SOURCE\lib\lib4glc.dll; DestDir: {app}\bin; $COPYMODE_NORMAL; Components: compiler'"

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done." >&5
$as_echo "done." >&6; }

## ==================================================================
##           Additional auto-install targets:
## ==================================================================


	if test "$DOTTOOL" = "no"; then
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.dot"
    fi

	if test "$DOXYGEN" = "no"; then
		INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.doxygen"
    fi

	if test "$HAS_CHECK" != "1"; then
		if test "$COMSPEC" = ""; then
			INSTALL_MISSING_OPTIONAL="$INSTALL_MISSING_OPTIONAL install.libcheck"
		else
			PLATFORM_UNAVAILABLE_OPTIONS="$PLATFORM_UNAVAILABLE_OPTIONS libcheck"
		fi
    fi

## ==================================================================
##           Translate Autoconf internals into our replace tags:
## ==================================================================
LTPIC="$lt_prog_compiler_pic"


if test "$LTPIC" = ""
then
	if test "$lt_cv_prog_cc_pic_works" = "yes"; then
		#WARNING: this will overwrite PIC settings from the beginning of this file
    		#if this works OK, remove manually set ones there!
		#lt_cv_prog_cc_pic=' -fno-common'
		APIC="$lt_cv_prog_cc_pic"

		if test "$arch" = "x86_64" ; then
			APIC="-fPIC_FORCED"
		fi
		LDFLAGS_SHARED="$APIC -shared"
		CFLAGS="$CFLAGS $APIC"
    		#echo "LDFLAGS_SHARED set to $LDFLAGS_SHARED"
	fi
else
	LDFLAGS_SHARED="$LTPIC ${shared_flag}"
	CFLAGS="$CFLAGS $LTPIC"
	APIC="$LTPIC"
fi

## ==================================================================
##           Define list of third-party files to use in installer:
## ==================================================================

if test "$COMSPEC" != ""; then
#Add additional third-party files to installer:

#Dont think we need this any longer, using PDcurses now:
#;for CygWin curses to find terminfo, we have to set %HOME% to location ABOVE .terminfo directory.
#;if HOME is not set, and CYGDIR is not set, curses will look only under C:\cygwin
#Source: @WINDOWS_DRIVE@@CYGWIN_PATH@\usr\share\terminfo\c\cygwin; DestDir: {app}\.terminfo\c; Components: TUI

	if test "$COLLECT_THIRD_PARTY" = "1"; then
		THIRD_PARTY_FILES="$THIRD_PARTY_FILES \
		util#$aubitdir/tools/cygwin/run.exe \
		util#/bin/cygcheck.exe \
		util#/bin/cygpath.exe \
		util#/bin/regtool.exe \
		"
	fi
fi

if test "$THIRD_PARTY_FILES" != ""; then
	COUNTER=0
	for an_file in $THIRD_PARTY_FILES; do
		GROUP=`echo $an_file | sed -e 's/#/ /' | awk '{print $1}'`
		PATH_FILE=`echo $an_file | sed -e 's/#/ /' | awk '{print $2}'`
		DEST_NAME=`echo $PATH_FILE | sed -e 's/!/ /' | awk '{print $2}'`
		if test "$DEST_NAME" != ""; then
			PATH_FILE=`echo $PATH_FILE | sed -e 's/!/ /' | awk '{print $1}'`
		fi
		if test "$COMSPEC" != ""; then
			PATH_FILE=`$CYGPATH -w "$PATH_FILE"`
		fi
		if test "$enable_ac_debug" = "yes" ; then
			echo "Third-party file: $an_file"
			echo "GROUP=$GROUP"
			echo "PATH_FILE=$PATH_FILE"
			echo "DEST_NAME=$DEST_NAME"
		fi
		if test -f "$PATH_FILE"; then
			#let COUNTER=COUNTER+1
			COUNTER=`(expr $COUNTER + 1) 2>/dev/null`
			if test "$DEST_NAME" = ""; then
				eval "IS_THIRDPARTY_$COUNTER='Source: $PATH_FILE; DestDir: {app}\bin; Components: $GROUP'"
			else
				eval "IS_THIRDPARTY_$COUNTER='Source: $PATH_FILE; DestDir: {app}\bin; DestName: "$DEST_NAME"; Components: $GROUP'"
			fi

		else
			if test "$enable_ac_debug" = "yes" ; then
				echo "#### WARNING: missing $PATH_FILE"
			fi
		fi
	done
fi

## ==================================================================
##           Define which files we will substitute @xxx@ in
## ==================================================================


if test "$AUBIT_SOURCE" = "1" ; then

	#TODO: move this from .in to normal files, and include Makefile-common;
	#There is no need for them to be .in files:
	GENERATED_FILES="$GENERATED_FILES \
                compilers/4glc/rules/Makefile \
                compilers/fcompile/Makefile \
                compilers/helpcompile/Makefile \
                compilers/ace/Makefile \
                lib/libform/form_xdr/Makefile \
                lib/libform/noform/Makefile \
                lib/libform/form_generic/Makefile \
                lib/libmsg/msg_native/Makefile \
                lib/liblex/lex_c/Makefile \
                lib/liblex/lex_esqlc/Makefile \
				lib/liblex/lex_perl/Makefile \
				lib/libpdf/Makefile \
                lib/libui/ui_console/Makefile \
                lib/libui/ui_curses/Makefile \
                lib/resource/Makefile \
                lib/libsql/nosql/Makefile \
                lib/libsql/postgresql/Makefile \
                lib/libsql/sapdb/Makefile \
                lib/librpc/no_rpc/Makefile \
				lib/librpc/sun_rpc/Makefile \
                lib/librpc/xml_rpc/Makefile \
				lib/extra_libs/string/Makefile \
				lib/libpacker/packed/Makefile \
				lib/libpacker/mempacked/Makefile \
				lib/libpacker/perl/Makefile \
				lib/libpacker/xdr/Makefile \
				lib/libpacker/xml/Makefile \
   				lib/libexdata/Makefile \
                tools/misql/Makefile \
                tools/loadmap/Makefile \
                tools/adbload/Makefile \
                tools/ide/Makefile \
                tools/4glunit/Makefile \
                tools/odbctest/Makefile \
                tools/test/gui/Makefile \
                tools/test/regression/Makefile \
                tools/test/lang/Makefile \
                tools/test/db/Makefile \
                tools/test/db/informix/Makefile \
                tools/test/db/postgresql/Makefile \
                tools/test/ace/Makefile"

	GENERATED_FILES="$GENERATED_FILES \
				etc/aubitrc \
                incl/Makefile-common \
				compilers/4glc/mk_states_c \
                bin/aubitbuild.sh"

	#We refresh this files automatically when needed, so we dont need
	#to generate them at this point (saves time, especially on CygWin):
	GENERATED_AUTOREFRESH="$GENERATED_AUTOREFRESH \
                etc/aubit-rpm.spec \
				etc/default.apspec \
                etc/aubit-InnoSetup.iss \
				etc/debian/control \
				etc/debian/preinst \
				etc/debian/postinst \
				etc/debian/prerm \
				etc/debian/postrm \
				etc/debian/templates \
				etc/debian/changelog \
				etc/debian/globals \
				etc/debian/config \
				lib/swig/domake \
				docs/doxy/Doxyfile"

else

	#etc/aubitrc-bin.in is a copy of etc/aubitrc.in created by 'make install'
	#It is renamed to prevent if from beeing seen by aubit programs
	#It will get installed as aubitrc under /etc/opt/aubit4gl/ or ~/.aubit4gl/
	#by 'make install' when executed in binary distribution tree
	GENERATED_FILES="$GENERATED_FILES \
                etc/aubitrc-bin \
				incl/Makefile-common"
fi
STD_CFLAGS="$STD_CFLAGS $APIC"


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Creating files:${T_ME}" >&5
$as_echo "${T_MD}Creating files:${T_ME}" >&6; }

#AC _OUTPUT
ac_config_files="$ac_config_files $GENERATED_FILES"

ac_config_commands="$ac_config_commands default"

cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs




: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $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}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

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


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


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

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

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

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


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

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

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

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

# 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

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

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


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

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

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


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by Aubit4gl $as_me $AUBIT_VERSION.$AUBIT_BUILD, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   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 <aubit4gl-discuss@lists.sourceforge.net>."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
Aubit4gl config.status $AUBIT_VERSION.$AUBIT_BUILD
configured by $0, generated by GNU Autoconf 2.68,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2010 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
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=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    $as_echo "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error $? "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error $? "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#



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

sed_quote_subst='$sed_quote_subst'
double_quote_subst='$double_quote_subst'
delay_variable_subst='$delay_variable_subst'
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'

LTCC='$LTCC'
LTCFLAGS='$LTCFLAGS'
compiler='$compiler_DEFAULT'

# A function that is used when there is no print builtin or printf.
func_fallback_echo ()
{
  eval 'cat <<_LTECHO_EOF
\$1
_LTECHO_EOF'
}

# Quote evaled strings.
for var in AS \
DLLTOOL \
OBJDUMP \
SHELL \
ECHO \
SED \
GREP \
EGREP \
FGREP \
LD \
NM \
LN_S \
lt_SP2NL \
lt_NL2SP \
reload_flag \
deplibs_check_method \
file_magic_cmd \
AR \
AR_FLAGS \
STRIP \
RANLIB \
CC \
CFLAGS \
compiler \
lt_cv_sys_global_symbol_pipe \
lt_cv_sys_global_symbol_to_cdecl \
lt_cv_sys_global_symbol_to_c_name_address \
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
lt_prog_compiler_no_builtin_flag \
lt_prog_compiler_wl \
lt_prog_compiler_pic \
lt_prog_compiler_static \
lt_cv_prog_compiler_c_o \
need_locks \
DSYMUTIL \
NMEDIT \
LIPO \
OTOOL \
OTOOL64 \
shrext_cmds \
export_dynamic_flag_spec \
whole_archive_flag_spec \
compiler_needs_object \
with_gnu_ld \
allow_undefined_flag \
no_undefined_flag \
hardcode_libdir_flag_spec \
hardcode_libdir_flag_spec_ld \
hardcode_libdir_separator \
fix_srcfile_path \
exclude_expsyms \
include_expsyms \
file_list_spec \
variables_saved_for_relink \
libname_spec \
library_names_spec \
soname_spec \
install_override_mode \
finish_eval \
old_striplib \
striplib; do
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

# Double-quote double-evaled strings.
for var in reload_cmds \
old_postinstall_cmds \
old_postuninstall_cmds \
old_archive_cmds \
extract_expsyms_cmds \
old_archive_from_new_cmds \
old_archive_from_expsyms_cmds \
archive_cmds \
archive_expsym_cmds \
module_cmds \
module_expsym_cmds \
export_symbols_cmds \
prelink_cmds \
postinstall_cmds \
postuninstall_cmds \
finish_cmds \
sys_lib_search_path_spec \
sys_lib_dlsearch_path_spec; do
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

ac_aux_dir='$ac_aux_dir'
xsi_shell='$xsi_shell'
lt_shell_append='$lt_shell_append'

# See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes INIT.
if test -n "\${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi


    PACKAGE='$PACKAGE'
    VERSION='$VERSION'
    TIMESTAMP='$TIMESTAMP'
    RM='$RM'
    ofile='$ofile'




_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "incl/a4gl_incl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS incl/a4gl_incl_config.h" ;;
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
    "$GENERATED_FILES") CONFIG_FILES="$CONFIG_FILES $GENERATED_FILES" ;;
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;

  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  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 against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp= ac_tmp=
  trap 'exit_status=$?
  : "${ac_tmp:=$tmp}"
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
_ACEOF


{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""

}
{
  line = $ 0
  nfields = split(line, field, "@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
}

_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
# ${srcdir} and @srcdir@ entries 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[	 ]*=[	 ]*/{
h
s///
s/^/:/
s/[	 ]*$/:/
s/:\$(srcdir):/:/g
s/:\${srcdir}:/:/g
s/:@srcdir@:/:/g
s/^:*//
s/:*$//
x
s/\(=[	 ]*\).*/\1/
G
s/\n//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_tt"; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$ac_tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

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

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


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&2;}

  rm -f "$ac_tmp/stdin"
  case $ac_file in
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  esac \
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    } >"$ac_tmp/config.h" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$ac_tmp/config.h" "$ac_file" \
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error $? "could not create -" "$LINENO" 5
  fi
 ;;

  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "default-1":C) test -z "$CONFIG_HEADERS" || echo timestamp > incl/stamp-h ;;
    "libtool":C)

    # See if we are running on zsh, and set the options which allow our
    # commands through without removal of \ escapes.
    if test -n "${ZSH_VERSION+set}" ; then
      setopt NO_GLOB_SUBST
    fi

    cfgfile="${ofile}T"
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
    $RM "$cfgfile"

    cat <<_LT_EOF >> "$cfgfile"
#! $SHELL

# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
#                 Inc.
#   Written by Gordon Matzigkeit, 1996
#
#   This file is part of GNU Libtool.
#
# GNU Libtool 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.
#
# As a special exception to the GNU General Public License,
# if you distribute this file as part of a program or library that
# is built using GNU Libtool, you may include this file under the
# same distribution terms that you use for the rest of that program.
#
# GNU Libtool 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 GNU Libtool; see the file COPYING.  If not, a copy
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
# obtained by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


# The names of the tagged configurations supported by this script.
available_tags=""

# ### BEGIN LIBTOOL CONFIG

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Assembler program.
AS=$lt_AS

# DLL creation program.
DLLTOOL=$lt_DLLTOOL

# Object dumper program.
OBJDUMP=$lt_OBJDUMP

# Which release of libtool.m4 was used?
macro_version=$macro_version
macro_revision=$macro_revision

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# What type of objects to build.
pic_mode=$pic_mode

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# An echo program that protects backslashes.
ECHO=$lt_ECHO

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# A sed program that does not truncate output.
SED=$lt_SED

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="\$SED -e 1s/^X//"

# A grep program that handles long lines.
GREP=$lt_GREP

# An ERE matcher.
EGREP=$lt_EGREP

# A literal string matcher.
FGREP=$lt_FGREP

# A BSD- or MS-compatible name lister.
NM=$lt_NM

# Whether we need soft or hard links.
LN_S=$lt_LN_S

# What is the maximum length of a command?
max_cmd_len=$max_cmd_len

# Object file suffix (normally "o").
objext=$ac_objext

# Executable file suffix (normally "").
exeext=$exeext

# whether the shell understands "unset".
lt_unset=$lt_unset

# turn spaces into newlines.
SP2NL=$lt_lt_SP2NL

# turn newlines into spaces.
NL2SP=$lt_lt_NL2SP

# 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

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A symbol stripping program.
STRIP=$lt_STRIP

# Commands used to install an old-style archive.
RANLIB=$lt_RANLIB
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Whether to use a lock for old archive extraction.
lock_old_archive_extraction=$lock_old_archive_extraction

# A C compiler.
LTCC=$lt_CC

# LTCC compiler flags.
LTCFLAGS=$lt_CFLAGS

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration.
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair.
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# Transform the output of nm in a C name address pair when lib prefix is needed.
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# Used to examine libraries when file_magic_cmd begins with "file".
MAGIC_CMD=$MAGIC_CMD

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
DSYMUTIL=$lt_DSYMUTIL

# Tool to change global to local symbols on Mac OS X.
NMEDIT=$lt_NMEDIT

# Tool to manipulate fat objects and archives on Mac OS X.
LIPO=$lt_LIPO

# ldd/readelf like tool for Mach-O binaries on Mac OS X.
OTOOL=$lt_OTOOL

# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
OTOOL64=$lt_OTOOL64

# Old archive suffix (normally "a").
libext=$libext

# Shared library suffix (normally ".so").
shrext_cmds=$lt_shrext_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Variables whose values should be saved in libtool wrapper scripts and
# restored at link time.
variables_saved_for_relink=$lt_variables_saved_for_relink

# 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

# Library versioning type.
version_type=$version_type

# Shared library runtime path variable.
runpath_var=$runpath_var

# Shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# 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

# Permission mode override for installation of shared libraries.
install_override_mode=$lt_install_override_mode

# Command to use after installation of a shared archive.
postinstall_cmds=$lt_postinstall_cmds

# Command to use after uninstallation of a shared archive.
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# As "finish_cmds", except a single script fragment to be evaled but
# not shown.
finish_eval=$lt_finish_eval

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# 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

# 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

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib


# The linker used to build libraries.
LD=$lt_LD

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds

# A language specific compiler.
CC=$lt_compiler

# Is the compiler the GNU compiler?
with_gcc=$GCC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

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

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# 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

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object

# 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 a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path=$lt_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

# 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

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# ### END LIBTOOL CONFIG

_LT_EOF

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


ltmain="$ac_aux_dir/ltmain.sh"


  # 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 '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
    || (rm -f "$cfgfile"; exit 1)

  case $xsi_shell in
  yes)
    cat << \_LT_EOF >> "$cfgfile"

# func_dirname file append nondir_replacement
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
# otherwise set result to NONDIR_REPLACEMENT.
func_dirname ()
{
  case ${1} in
    */*) func_dirname_result="${1%/*}${2}" ;;
    *  ) func_dirname_result="${3}" ;;
  esac
}

# func_basename file
func_basename ()
{
  func_basename_result="${1##*/}"
}

# func_dirname_and_basename file append nondir_replacement
# perform func_basename and func_dirname in a single function
# call:
#   dirname:  Compute the dirname of FILE.  If nonempty,
#             add APPEND to the result, otherwise set result
#             to NONDIR_REPLACEMENT.
#             value returned in "$func_dirname_result"
#   basename: Compute filename of FILE.
#             value retuned in "$func_basename_result"
# Implementation must be kept synchronized with func_dirname
# and func_basename. For efficiency, we do not delegate to
# those functions but instead duplicate the functionality here.
func_dirname_and_basename ()
{
  case ${1} in
    */*) func_dirname_result="${1%/*}${2}" ;;
    *  ) func_dirname_result="${3}" ;;
  esac
  func_basename_result="${1##*/}"
}

# func_stripname prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
func_stripname ()
{
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  # positional parameters, so assign one to ordinary parameter first.
  func_stripname_result=${3}
  func_stripname_result=${func_stripname_result#"${1}"}
  func_stripname_result=${func_stripname_result%"${2}"}
}

# func_opt_split
func_opt_split ()
{
  func_opt_split_opt=${1%%=*}
  func_opt_split_arg=${1#*=}
}

# func_lo2o object
func_lo2o ()
{
  case ${1} in
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
    *)    func_lo2o_result=${1} ;;
  esac
}

# func_xform libobj-or-source
func_xform ()
{
  func_xform_result=${1%.*}.lo
}

# func_arith arithmetic-term...
func_arith ()
{
  func_arith_result=$(( $* ))
}

# func_len string
# STRING may not start with a hyphen.
func_len ()
{
  func_len_result=${#1}
}

_LT_EOF
    ;;
  *) # Bourne compatible functions.
    cat << \_LT_EOF >> "$cfgfile"

# func_dirname file append nondir_replacement
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
# otherwise set result to NONDIR_REPLACEMENT.
func_dirname ()
{
  # Extract subdirectory from the argument.
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  if test "X$func_dirname_result" = "X${1}"; then
    func_dirname_result="${3}"
  else
    func_dirname_result="$func_dirname_result${2}"
  fi
}

# func_basename file
func_basename ()
{
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
}


# func_stripname prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
# func_strip_suffix prefix name
func_stripname ()
{
  case ${2} in
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  esac
}

# sed scripts:
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
my_sed_long_arg='1s/^-[^=]*=//'

# func_opt_split
func_opt_split ()
{
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
}

# func_lo2o object
func_lo2o ()
{
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
}

# func_xform libobj-or-source
func_xform ()
{
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
}

# func_arith arithmetic-term...
func_arith ()
{
  func_arith_result=`expr "$@"`
}

# func_len string
# STRING may not start with a hyphen.
func_len ()
{
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
}

_LT_EOF
esac

case $lt_shell_append in
  yes)
    cat << \_LT_EOF >> "$cfgfile"

# func_append var value
# Append VALUE to the end of shell variable VAR.
func_append ()
{
  eval "$1+=\$2"
}
_LT_EOF
    ;;
  *)
    cat << \_LT_EOF >> "$cfgfile"

# func_append var value
# Append VALUE to the end of shell variable VAR.
func_append ()
{
  eval "$1=\$$1\$2"
}

_LT_EOF
    ;;
  esac


  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
    || (rm -f "$cfgfile"; exit 1)

  mv -f "$cfgfile" "$ofile" ||
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"

 ;;
    "default":C)
    #chmod +x pdflib-config
 ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5


# 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 || as_fn_exit 1
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi


if test "$LIBS" != ""; then
	echo "WARNING: (5) LIBS contains $LIBS"
fi

if test "$AUBIT_SOURCE" = "1" ; then
	# on MinGW we allready have native path so -d will fail
	if test "$INFORMIXDIR" != "" -a "$GCC_MINGW" != "yes" ; then
		if test -d "$INFORMIXDIR" ; then
			if test "$GCC_MINGW" != "yes"; then
				echo "Running configure for FglDoc... ($INFORMIXDIR)"
				export INFORMIXDIR
				cd tools/fgldoc; ./configure; cd -
			fi
		else
			echo "WARNING: INFORMIXDIR ($INFORMIXDIR) is invalid"
		fi
    fi
fi


## ==================================================================
##                Warnings and exit messages
## ==================================================================

if test "$WARN_LEX" = "1" -a "$AUBIT_SOURCE" = "1" ; then
cat<<X
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
| Will use pre-compiled parser files from tools/no_yacc              |
| Use 'make refresh.noyacc' on source tree with yacc installed.      |
| You will need lex to regenerate the Aubit parsers.                 |
X
fi


#This is now obsolete, as GTK installers take care of GTK paths - remove:
#TMP987=`echo $PATH | grep :/lib:`
#if test "$GTKBUILD" = "yes" && test "$cygwin" = "1" && test "$TMP987" = ""; then
#cat<<X
#+--------------------------------------------------------------------+
#|                        *** WARNING ***                             |
#| Add /lib to your PATH - GTK+ libraries where found there, and you  |
#| are on Windows - Windows native library loader searches PATH to    |
#| to find libraries, but /lib is not in PATH on CygWin by default!   |
#X
#fi


if test "$WARN_YACC" = "1"  -a "$AUBIT_SOURCE" = "1"; then
cat<<X
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
| Will use pre-compiled parser files from tools/no_yacc. Use         |
| 'make refresh.noyacc' on source tree with yacc installed.You will  |
| need Bison 1.875 if you'd want to regenerate the Aubit parsers.    |
X
fi
#Don't war about missing librpc/rpcgen any more, since we now have libpacker:
#if test "$WARN_RPCGEN" = "1"; then
#cat<<X
#+--------------------------------------------------------------------+
#|                        *** WARNING ***                             |
#| "rpcgen" not found. Will use pre-compiled RPCgen-erated files from |
#| tools/cygwin/                                                      |
#| Use 'make refresh.norpcgen' on source tree with rpcgen installed.  |
#X
#fi
#if test "$WARN_RPCGEN" = "2"; then
#cat<<X
#+--------------------------------------------------------------------+
#|                        *** WARNING ***                             |
#| "rpcgen" not found. Will use pre-compiled RPCgen-erated files from |
#| CygWin port. ---NOT SURE THIS WILL WORK---                         |
#X
#fi
#if test "$WARN_RPCLIB" = "1"; then
#cat<<X
#+--------------------------------------------------------------------+
#|                        *** WARNING ***                             |
#| 'rpclib' not found. You will not be able to compile or open form   |
#| and menu files or use Sun RPC functionality of Aubit 4gl compiler. |
#| Consider installing Sun RPC. Will use header files from            |
#| tools/no_rpc/. Use 'make refresh.norpclib' on system with rpclib   |
#X
#fi
if test "$WARN_UI" = "1"; then
cat<<X
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
| No curses or GTK detected - your only screen UI will be CONSOLE    |
| IN CONSOLE MODE YOU WILL NOT BE ABLE TO USE FORMS - ONLY DISPLAY   |
| ERROR MESSAGE MENU & PROMPT WILL WORK! Considder installing        |
| 'curses' libraries                                                 |
X
fi
if test "$INFORMIX_WARNING" = "1"; then
cat<<X
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
| You asked for Informix ESQL/C support, but don't have              |
| \\\$INFORMIXDIR environment value set up. Configuring and          |
| compiling Informix support is impossible and has been turned off.  |
| Please try again after setting up your environment.                |
X
fi
if test "$INFORMIX_WARNING" = "2"; then
cat<<X
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
| You specified Informix base install directory that is different    |
| than your \\\$INFORMIXDIR environment variable. You'd better know  |
| exactly what you are doing.                                        |
X
fi
if test "$SAPDB_WARNING" = "1"; then
cat<<X
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
| You asked for SAP DB ESQL/C support, but don't have \\\$SAPDBROOT  |
| environment value set up. Configuring and compiling Sap DB         |
| support is impossible and has been turned off. Please              |
| try again after setting up your environment.                       |
X
fi
if test "$SAPDB_WARNING" = "2"; then
cat<<X
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
| You specified SAP DB base install directory that is different      |
| than your \\\$SAPDBROOT environment variable. You'd better know    |
| exactly what you are doing.                                        |
X
fi
if test "$INFORMIXODBC_WARNING" = "1"; then
cat<<X
+--------------------------------------------------------------------+
|                        *** NOTE ***                                |
| Configuration files used by Informix ODBC driver:                  |
| \$INFORMIXDIR/etc/odbc.ini odbcinst.ini setup.odbc                  |
X
fi
if test "$MISSING_PERLMODS" != ""; then
cat<<X
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
| One or more required Perl modules where not detected. If this      |
| is connected to the Internet, and you have CPAN Perl module        |
| installed, you should be able to install them automaticall by using|
| command 'make missing.perlmods'. Otherwise, please install this    |
| Perl modules manually: $MISSING_PERLMODS
X
fi
if test "$A4GL_SQLTYPE" = "nosql"; then
cat<<X
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
| No SQL connection options are available. Abut compiler will be     |
| with only dummy NOSQL library - you will not be able to connect to |
| any databases ! Please install at least one supported database     |
| connectivity library, and re-run configure                         |
X
fi
if test "$WARN_LD_LIBRARY_PATH" != ""; then
cat<<X
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
| You have specified one or more --with-xxxx=<path> switches to      |
| 'configure' script, specifiying package installed in non-standard  |
| <path> In most cases, you will have to add this path to your PATH  |
X
if test "$COMSPEC" = ""; then
LD_LIBRARY_PATH_LABEL="LD_LIBRARY_PATH"
cat<<Y
| and/or LD_LIBRARY_PATH and/or ld.so.conf in your run-time          |
Y
else
LD_LIBRARY_PATH_LABEL="PATH"
cat<<Z
| in your run-time                                                   |
Z
fi
cat<<Q
| environment, for Aubit compilers and compiler programs to be able  |
| to find nedded programs and/or libraries that belong to this way   |
| specified package in non-standard place. We will try to do this    |
| automatically for you:                                             |
Q
if test "$enable_ac_debug" = "yes" ; then
cat<<X
|                                                                    |
| (DEBUG) Reason for $LD_LIBRARY_PATH_LABEL warning:
| "$WARN_LD_LIBRARY_REASON"
|                                                                    |
| (DEBUG) configure invoked with flags:                              |
| CONFIGURE_COMMAND="$CONFIGURE_COMMAND"
|                                                                    |
| (DEBUG) $LD_LIBRARY_PATH_LABEL to add:
| ADD_LD_LIBRARY_PATH=$ADD_LD_LIBRARY_PATH
|                                                                    |
X
fi

if test "$AP_INSTALLER_RUNNING" != "1"; then
	if test "$ADD_LD_LIBRARY_PATH" != ""; then
		if test "$MAKE" != "no" ; then
			#--silent
			$MAKE --silent --no-print-directory ldconfig
        else
            echo "Ooops! No 'make' installed, you will have to do it manually!"
        fi
    else
		echo "ERROR: ADD_LD_LIBRATY_PATH is empty."
    fi
else
	#Makefile:32: ../../incl/Makefile-common: No such file or directory
	#Makefile:35: ../../incl/?4gl.mk: No such file or directory
	#gmake[1]: *** No rule to make target `../../incl/?4gl.mk'.  Stop.
	echo "Skip 'make ldconfig' - invoked from AutoPackage installer that will take care of it"
fi

fi
if test "$PLUGIN_NO" != "" -a "$PLUGIN_NO" != " "; then

if test "$AUBIT_SOURCE" = "1" ; then
cat<<X
+--------------------------------------------------------------------+
|                        ***   NOTE  ***                             |
| One or more optional modules will not be built, because required   |
| libraries or programs where not detected.                          |
X
else
cat<<X
+--------------------------------------------------------------------+
|                        ***   NOTE  ***                             |
| One or more plug-in modules will not be functional, because        |
| required libraries or programs where not detected on your system.  |
X
fi


#if test "$WGET" != "no" && test "$RPM" != "no" && (test "$REDHAT_VER" = "8.0" || test "$REDHAT_VER" = "7.3") ; then
if test "$WGET" != "no"; then
cat<<X
| If this computer is connected to the Internet,                     |
|  you should be able to install all of them automaticall by using   |
|  command 'make missing.optional'.                                  |
|                                                                    |
| make targets to install this options are:                          |
| $INSTALL_MISSING_OPTIONAL
|                                                                    |
| You can install individual options as spercified in output of      |
| 'make help.optional' command. Otherwise:                           |
|                                                                    |
X
fi
cat<<X
| Please install this options manually, if you wish to use           |
| this Aubit compiler extended functionality:                        |
|                                                                    |
| $PLUGIN_NO
X
fi
if test "$PLATFORM_UNAVAILABLE_OPTIONS" != "" ; then
cat<<X
+--------------------------------------------------------------------+
| Aubit options not available or not supported on this platform:     |
| $PLATFORM_UNAVAILABLE_OPTIONS
+--------------------------------------------------------------------+
X
fi
if test "$THIRD_PARTY_FILES" != "" -a "$enable_ac_debug" = "yes" ; then
THIRD_PARTY_FILES=`echo $THIRD_PARTY_FILES`
cat<<X
+--------------------------------------------------------------------+
| THIRD_PARTY_FILES:
| $THIRD_PARTY_FILES
+--------------------------------------------------------------------+
X
fi
if test "$WARN_PGCOMPAT" = "1" ; then
cat<<X
+--------------------------------------------------------------------+
|                        ***   NOTE  ***                             |
| Disabled Aubit support for PostgreSQL EC mode, because installed   |
| PostgreSQL ecpg and/or engine and/or libraries are NOT compatible  |
| with Aubit compiler in EC mode. You can still use ODBC to connect  |
| to PostgreSQL. Download and install Aubit/Informix compatible      |
| PostgreSQL from: http://informix.fastcrypt.com if you wish to use  |
| Aubit in PostgreSQL EC mode. You can use 'make install.pgifx' to   |
| download and install it automatically.                             |
| DO NOT FORGET TO DE-INSTALL CURRENTLY INSTALLED PG FIRST!          |
| More info about PG Informix compatibility patch:                   |
| http://gborg.postgresql.org/project/pginformix/projdisplay.php     |
| To disable this check, use --without-pgcompat                      |
| If you do, and you still try to use Aubit in PG EC mode,           |
| you are on your own - please DO NOT report issues related to       |
| Aubit PG EC mode unless this check is enabled. Thank you.          |
+--------------------------------------------------------------------+
X
fi

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

if test "$AUBIT_SOURCE" = "1"; then
	ACTION_STR="built"
else
	ACTION_STR="enabled"
fi

cat<<X
+--------------------------------------------------------------------+
|                     ***  DEBUG NOTE   ***                          |
|                                                                    |
| Aubit plug-ins to build:                                           |
| $PLUGIN_YES
|                                                                    |
| Aubit plug-ins that will NOT be $ACTION_STR because of missing 3rd party |
| dependencies:                                                      |
| $PLUGIN_NO
|                                                                    |
| Aubit executables that will NOT be $ACTION_STR because of missing 3rd    |
| party dependencies:                                                |
|                                                                    |
| $EXE_NO
|                                                                    |
| Aubit plug-ins and options disabled at the moment by developers:   |
| $ALL_DISABLED
|                                                                    |
| You can still try to $ACTION_STR disabled options using this commands:   |
| $DISABLED_MANUAL_CMD
|                                                                    |
| (DEBUG) configure invoked with flags:                              |
| CONFIGURE_COMMAND="$CONFIGURE_COMMAND"
|                                                                    |
| CONFIGURE_VERSION:                                                 |
| $Id: configure,v 1.476 2013/07/12 12:59:47 mikeaubury Exp $
|                                                                    |
+--------------------------------------------------------------------+
X
fi
cat<<X
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the Aubit License, available in this   |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+
X
if test "$AUBIT_SOURCE" = "1" ; then
cat<<X
|                          *** NOTE ***                              |
|            Aubit 4gl compiler source code is now configured.       |
|                    Execute 'make' to compile it.                   |
+--------------------------------------------------------------------+
X
else
cat<<X
|                          *** NOTE ***                              |
|        Aubit 4gl compiler binary disrtibution now configured.      |
|                Execute 'make install' to install it.               |
+--------------------------------------------------------------------+
X

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Thank you for using Aubit 4gl compiler." >&5
$as_echo "Thank you for using Aubit 4gl compiler." >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:               $AUBIT_PUBLISHER" >&5
$as_echo "              $AUBIT_PUBLISHER" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }


#------------------------------ EOF --------------------------------

