# ===========================================================================
# http://www.nongnu.org/autoconf-archive/ax_lib_oracle_oci.html
# ===========================================================================
# AX_LIB_ORACLE_OCI([MINIMUM-VERSION])
# This macro provides tests of availability of Oracle OCI API of
# particular version or newer. This macros checks for Oracle OCI headers
# and libraries and defines compilation flags.
# Macro supports following options and their values:
# 1) Single-option usage:
# --with-oracle -- path to ORACLE_HOME directory
# 2) Two-options usage (both options are required):
# --with-oracle-include -- path to directory with OCI headers
# --with-oracle-lib -- path to directory with OCI libraries
# NOTE: These options described above do not take yes|no values. If 'yes'
# value is passed, then WARNING message will be displayed, 'no' value, as
# well as the --without-oracle-* variations will cause the macro to not
# AC_SUBST(ORACLE_OCI_CFLAGS)
# AC_SUBST(ORACLE_OCI_LDFLAGS)
# AC_SUBST(ORACLE_OCI_LIBS)
# AC_SUBST(ORACLE_OCI_VERSION)
# Copyright (c) 2008 Mateusz Loskot <mateusz@loskot.net>
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved.
# Macro adapted for ZABBIX usage
AC_DEFUN([AX_LIB_ORACLE_OCI],
AS_HELP_STRING([--with-oracle@<:@=ARG@:>@],
[use Oracle OCI API from given Oracle home (ARG=path); use existing ORACLE_HOME (ARG=yes); disable Oracle OCI support (ARG=no)]
if test "$withval" = "no"; then