]> git.sur5r.net Git - openldap/commitdiff
*** empty log message ***
authorKurt Zeilenga <kurt@openldap.org>
Sat, 17 Jan 2009 00:49:38 +0000 (00:49 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 17 Jan 2009 00:49:38 +0000 (00:49 +0000)
build/openldap.m4
configure.in

index dfb9f90898f5e5b5233c64d7aa46b4b706502b36..c173c15eff55bb4732fa942858a1bfa65d9e721e 100644 (file)
@@ -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],
index 1acb271514b12783b248932a1af91361289f4580..e2e738cd84e7aa92b7ecd79f570c3102114e3c50 100644 (file)
@@ -665,6 +665,8 @@ AC_LIBTOOL_WIN32_DLL
 AC_LIBTOOL_DLOPEN
 AC_PROG_LIBTOOL
 
+OL_MSVC
+
 dnl ----------------------------------------------------------------
 dnl Perl
 ol_link_perl=no