#endif
#ifdef __WXGTK__
+extern "C" {
#include <../iodbc/postgres/isqlext.h>
#include <../iodbc/postgres/odbc_funcs.h>
#include <../iodbc/postgres/odbc_types.h>
+}
#else
#include <sqlext.h>
#endif
+DL_LIBRARY=-ldl
+
+
+
+
OPENGL_INCLUDE=
OPENGL_LIBRARY=
OPENGL_LINK=
if test "$USE_OPENGL" = 1; then
echo $ac_n "checking for OpenGL includes""... $ac_c" 1>&6
-echo "configure:6173: checking for OpenGL includes" >&5
+echo "configure:6178: checking for OpenGL includes" >&5
ac_find_includes=
for ac_dir in $SEARCH_INCLUDE;
OPENGL_INCLUDE="-I$ac_find_includes"
echo "$ac_t""found $ac_find_includes" 1>&6
echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
-echo "configure:6188: checking for OpenGL library" >&5
+echo "configure:6193: checking for OpenGL library" >&5
ac_find_libraries=
for ac_dir in $SEARCH_LIB;
s%@GUI_TK_LINK@%$GUI_TK_LINK%g
s%@TOOLKIT@%$TOOLKIT%g
s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
+s%@DL_LIBRARY@%$DL_LIBRARY%g
s%@OPENGL_INCLUDE@%$OPENGL_INCLUDE%g
s%@OPENGL_LIBRARY@%$OPENGL_LIBRARY%g
s%@OPENGL_LINK@%$OPENGL_LINK%g
AC_SUBST(TOOLKIT)
AC_SUBST(TOOLKIT_DEF)
+dnl ----------------------------------------------------------------
+dnl select dynamic loader (used by iODBC to load drivers)
+dnl ----------------------------------------------------------------
+
+DL_LIBRARY=-ldl
+
+AC_SUBST(DL_LIBRARY)
+
dnl ----------------------------------------------------------------
dnl search for opengl
dnl ----------------------------------------------------------------
iodbc/hstmt.c \
iodbc/connect.c \
iodbc/prepare.c \
- iodbc/execute.c \
iodbc/result.c \
iodbc/execute.c \
iodbc/fetch.c \
OPENGL_LIBS = $(OPENGL_LIBRARY) $(OPENGL_LINK)
-GUI_TK_LIBS = $(GUI_TK_LIBRARY) $(GUI_TK_LINK)
+GUI_TK_LIBS = $(GUI_TK_LIBRARY) $(GUI_TK_LINK) -ldl
LINK = $(CXX) -o $@
LINK_LIBS= \
s|*GUI_TK_INCLUDE*|@GUI_TK_INCLUDE@|g
s|*GUI_TK_LIBRARY*|@GUI_TK_LIBRARY@|g
s|*GUI_TK_LINK*|@GUI_TK_LINK@|g
+s|*DL_LIBRARY*|@DL_LIBRARY@|g
s|*OPENGL_INCLUDE*|@OPENGL_INCLUDE@|g
s|*OPENGL_LIBRARY*|@OPENGL_LIBRARY@|g
s|*OPENGL_LINK*|@OPENGL_LINK@|g
OPENGL_LIBS = $(OPENGL_LIBRARY) $(OPENGL_LINK)
-GUI_TK_LIBS = $(GUI_TK_LIBRARY) $(GUI_TK_LINK)
+GUI_TK_LIBS = $(GUI_TK_LIBRARY) $(GUI_TK_LINK) -ldl
LINK = $(CXX) -o $@
LINK_LIBS= \
s|*GUI_TK_INCLUDE*|@GUI_TK_INCLUDE@|g
s|*GUI_TK_LIBRARY*|@GUI_TK_LIBRARY@|g
s|*GUI_TK_LINK*|@GUI_TK_LINK@|g
+s|*DL_LIBRARY*|@DL_LIBRARY@|g
s|*OPENGL_INCLUDE*|@OPENGL_INCLUDE@|g
s|*OPENGL_LIBRARY*|@OPENGL_LIBRARY@|g
s|*OPENGL_LINK*|@OPENGL_LINK@|g
}
}
-RETCODE SQL_API SQLexecute ( HSTMT hstmt )
+RETCODE SQL_API SQLExecute ( HSTMT hstmt )
{
STMT_t FAR* pstmt = (STMT_t FAR*)hstmt;
HPROC hproc = SQL_NULL_HPROC;
return SQL_SUCCESS;
}
-RETCODE SQL_API SQLfreestmt (
+RETCODE SQL_API SQLFreeStmt (
HSTMT hstmt,
UWORD fOption )
{
#include <../iodbc/itrace.h>
-RETCODE SQL_API SQLprepare (
+RETCODE SQL_API SQLPrepare (
HSTMT hstmt,
UCHAR FAR* szSqlStr,
SDWORD cbSqlStr )