mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
Add checks for SQL headers in configure.in (need to rerun autoheader
and autoconf); #include "ac/string.h" instead of <string.h>
This commit is contained in:
parent
0491710fa7
commit
5794b3a2dd
4 changed files with 7 additions and 3 deletions
|
|
@ -2090,6 +2090,10 @@ dnl ----------------------------------------------------------------
|
||||||
dnl SQL
|
dnl SQL
|
||||||
ol_link_sql=no
|
ol_link_sql=no
|
||||||
if test $ol_enable_sql != no ; then
|
if test $ol_enable_sql != no ; then
|
||||||
|
AC_CHECK_HEADERS(sql.h sqlext.h,[],[
|
||||||
|
AC_MSG_ERROR([could not locate SQL headers])
|
||||||
|
])
|
||||||
|
|
||||||
AC_CHECK_LIB(iodbc,SQLDriverConnect,[have_iodbc=yes],[have_iodbc=no])
|
AC_CHECK_LIB(iodbc,SQLDriverConnect,[have_iodbc=yes],[have_iodbc=no])
|
||||||
if test $have_iodbc = yes ; then
|
if test $have_iodbc = yes ; then
|
||||||
ol_link_sql="-liodbc"
|
ol_link_sql="-liodbc"
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
#ifdef SLAPD_SQL
|
#ifdef SLAPD_SQL
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include "ac/string.h"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "slap.h"
|
#include "slap.h"
|
||||||
#include "back-sql.h"
|
#include "back-sql.h"
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <string.h>
|
#include "ac/string.h"
|
||||||
#include "slap.h"
|
#include "slap.h"
|
||||||
#include "ldap_pvt.h"
|
#include "ldap_pvt.h"
|
||||||
#include "back-sql.h"
|
#include "back-sql.h"
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <string.h>
|
#include "ac/string.h"
|
||||||
#include "slap.h"
|
#include "slap.h"
|
||||||
#include "lber_pvt.h"
|
#include "lber_pvt.h"
|
||||||
#include "ldap_pvt.h"
|
#include "ldap_pvt.h"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue