$as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
- mschap_sources+="opendir.c"
- mod_ldflags+=" -framework DirectoryService"
+ mschap_sources="opendir.c"
+ mod_ldflags="-framework DirectoryService"
fi
targetname=rlm_mschap
else
FR_SMART_CHECK_INCLUDE(membership.h)
if test "x$ac_cv_header_membership_h" = "xyes"; then
AC_DEFINE([HAVE_MEMBERSHIP_H],[1],[Build with Apple Open Directory support])
- mschap_sources+="opendir.c"
- mod_ldflags+=" -framework DirectoryService"
+ mschap_sources="opendir.c"
+ mod_ldflags="-framework DirectoryService"
fi
targetname=modname
else
AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
else
AC_MSG_WARN([silently not building ]modname[.])
- AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
+ AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
targetname=""
fi
fi
dnl ############################################################
smart_try_dir="$oracle_include_dir /usr/local/instaclient/include"
-
+
if test "x$ORACLE_HOME" != "x"; then
- smart_try_dir+="${ORACLE_HOME}/include"
+ smart_try_dir="${smart_try_dir} ${ORACLE_HOME}/include"
fi
-
+
FR_SMART_CHECK_INCLUDE(oci.h)
if test "x$ac_cv_header_oci_h" != "xyes"; then
AC_MSG_WARN([oracle headers not found. Use --with-oracle-include-dir=<path> or set ORACLE_HOME.])
dnl ############################################################
old_LIBS="$LIBS"
-
+
if test "x$oracle_lib_dir" != "x" ; then
lib_path="${oracle_lib_dir} "
elif test "x$ORACLE_HOME" != "x" ; then
else
AC_MSG_CHECKING([for OCIInitialize in nnz${oracle_version}])
fi
-
+
LIBS="$old_LIBS -L$path -lclntsh -lnnz${oracle_version}"
AC_TRY_LINK([#include <oci.h>
int rc;
char errbuf[100];
int errcode;
-
+
rc = OCIInitialize((ub4) OCI_DEFAULT, (dvoid *)0, /* Initialize OCI */
(dvoid * (*)(dvoid *, size_t)) 0,
(dvoid * (*)(dvoid *, dvoid *, size_t))0,
(void (*)(dvoid *, dvoid *)) 0 );
-
+
],
[mod_ldflags="$LIBS"],
)
fi
AC_MSG_RESULT(no)
done
-
+
if test "x$mod_ldflags" != "x"; then
break
fi
AC_MSG_WARN([oracle libraries not found. Use --with-oracle-lib-dir=<path> or set ORACLE_HOME.])
fail=["$fail libclntsh libnnz[9-11]"]
fi
-
+
targetname=modname
else
targetname=