From 7bd66343b1701438b7ae74f3fbbf4272e682ce79 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 17 Jan 2009 00:49:38 +0000 Subject: [PATCH] *** empty log message *** --- build/openldap.m4 | 11 +++++++++++ configure.in | 2 ++ 2 files changed, 13 insertions(+) diff --git a/build/openldap.m4 b/build/openldap.m4 index dfb9f90898..c173c15eff 100644 --- a/build/openldap.m4 +++ b/build/openldap.m4 @@ -119,6 +119,17 @@ if test $ol_cv_cpp_ebcdic = yes ; then fi ]) dnl +dnl -------------------------------------------------------------------- +dnl Check for MSVC +AC_DEFUN([OL_MSVC], +[AC_REQUIRE_CPP()dnl +AC_CACHE_CHECK([for Microsoft Visual C++], ol_cv_msvc, +[AC_PREPROC_IFELSE([AC_LANG_SOURCE([[ +#ifndef _MSC_VER +#include <__FOO__/generate_error.h> +#endif +]])],[ol_cv_msvc=yes],[ol_cv_msvc=no])])]) + dnl -------------------------------------------------------------------- dnl OpenLDAP version of STDC header check w/ EBCDIC support AC_DEFUN([OL_HEADER_STDC], diff --git a/configure.in b/configure.in index 1acb271514..e2e738cd84 100644 --- a/configure.in +++ b/configure.in @@ -665,6 +665,8 @@ AC_LIBTOOL_WIN32_DLL AC_LIBTOOL_DLOPEN AC_PROG_LIBTOOL +OL_MSVC + dnl ---------------------------------------------------------------- dnl Perl ol_link_perl=no -- 2.39.5