Do not try to build libpq++ if class 'string' is not defined in the

available C++ header files.
This commit is contained in:
Tom Lane 2000-05-03 18:30:17 +00:00
parent 86b8bd0748
commit de13d88146
2 changed files with 429 additions and 378 deletions

786
src/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -526,7 +526,26 @@ using namespace std;
#include <string>
], [],
[AC_DEFINE(HAVE_CXX_STRING_HEADER) AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)])
[AC_MSG_RESULT(no)
dnl If we found a <string> header then it's probably safe to assume
dnl class string exists. But if not, check to make sure that <string.h>
dnl defines class string; libpq++ can't build without class string.
AC_MSG_CHECKING([for class string in C++])
AC_TRY_COMPILE([#include <stdio.h>
#include <stdlib.h>
#include <string.h>
], [string foo = "test"],
[AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)
AC_MSG_WARN([
***
Disabling build of libpq++ because we cannot find class string in the
system's C++ header files.
***])
HAVECXX='false'
])
])
fi