]> git.sur5r.net Git - openldap/commitdiff
ITS#6125
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 24 Mar 2011 01:52:17 +0000 (01:52 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 24 Mar 2011 01:52:17 +0000 (01:52 +0000)
configure

index b218376a2ee265053960b2e772eef223600b10c0..4fd8f0af4e6e823d4c09c2b183552074c3115f77 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.33 2011/01/31 20:51:37 hyc Exp .
+# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.32 2011/01/04 23:49:25 kurt Exp .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.65.
 #
@@ -21730,6 +21730,39 @@ else
   have_odbc32=no
 fi
 
+
+                                                               if test $have_odbc32 = no ; then
+                                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
+$as_echo_n "checking for SQLDriverConnect in -lodbc32 with windows.h... " >&6; }
+                                       save_LIBS="$LIBS"
+                                       LIBS="$LIBS -lodbc32"
+                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <windows.h>
+                                       #include <sqlext.h>
+
+int
+main ()
+{
+
+                                               SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  have_odbc32=yes
+else
+  have_odbc32=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+                                       LIBS="$save_LIBS"
+                                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_odbc32" >&5
+$as_echo "$have_odbc32" >&6; }
+                               fi
+
                                if test $have_odbc32 = yes ; then
                                        ol_link_sql="-lodbc32"
                                fi