Changeset: 0c281aca4f71 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0c281aca4f71 Modified Files: configure.ag Branch: Jan2014 Log Message:
Set CPPFLAGS before running the compiler. This hopefully fixes bug 3452. diffs (20 lines): diff --git a/configure.ag b/configure.ag --- a/configure.ag +++ b/configure.ag @@ -2280,6 +2280,8 @@ if test "x$enable_odbc" != xno; then fi if test "x$have_unixodbc" != xno; then AC_MSG_CHECKING([checking whether SQLColAttribute uses SQLLEN * or SQLPOINTER]) + save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $ODBC_INCS" AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[ #include <sql.h> @@ -2296,6 +2298,7 @@ if test "x$enable_odbc" != xno; then [[SQLColAttribute(0,0,0,0,0,0,0);]])], [lenp_or_pointer_t='SQLLEN *'], [lenp_or_pointer_t=SQLPOINTER]) + CPPFLAGS="$save_CPPFLAGS" AC_MSG_RESULT([using "$lenp_or_pointer_t"]) AC_DEFINE_UNQUOTED(LENP_OR_POINTER_T, $lenp_or_pointer_t, [Define as SQLLEN * or SQLPOINTER depending on the include file]) _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list