Index: Makefile.in
--- Makefile.in.orig	2013-03-17 09:50:39.000000000 +0100
+++ Makefile.in	2013-05-24 20:16:48.673640936 +0200
@@ -7,7 +7,7 @@
 CC =		@CC@
 INSTALL =	@INSTALL@
 LIBTOOL =	./libtool
-CFLAGS=		@CFLAGS@ -DDRIVER_VER_INFO=\"@VER_INFO@\" @SQLITE3_A10N_FLAGS@
+CFLAGS=		@CFLAGS@ @CPPFLAGS@ -DDRIVER_VER_INFO=\"@VER_INFO@\" @SQLITE3_A10N_FLAGS@
 SQLITE_INC =	@SQLITE_INC@
 SQLITE_LIB =	@SQLITE_LIB@
 SQLITE_FLAGS =	-DHAVE_LIBVERSION=@SQLITE_LIBVERSION@ \
@@ -152,21 +152,21 @@
 		@EXT_CSVTABLE@ @EXT_ZIPFILE@ @EXT_XPATH@
 		$(LIBTOOL) --mode=install $(INSTALL) \
 		    libsqlite3odbc.la $(DESTDIR)$(drvdir)
-		test -z "@EXT_BLOBTOXY@" || \
+		if [ ".@EXT_BLOBTOXY@" != . ]; then \
 		    $(LIBTOOL) --mode=install $(INSTALL) \
-		    @EXT_BLOBTOXY@ $(DESTDIR)$(drvdir)
-		test -z "@EXT_IMPEXP@" || \
+		    @EXT_BLOBTOXY@ $(DESTDIR)$(drvdir); fi
+		if [ ".@EXT_IMPEXP@" != . ]; then \
 		    $(LIBTOOL) --mode=install $(INSTALL) \
-		    @EXT_IMPEXP@ $(DESTDIR)$(drvdir)
-		test -z "@EXT_CSVTABLE@" || \
+		    @EXT_IMPEXP@ $(DESTDIR)$(drvdir); fi
+		if [ ".@EXT_CSVTABLE@" != . ]; then \
 		    $(LIBTOOL) --mode=install $(INSTALL) \
-		    @EXT_CSVTABLE@ $(DESTDIR)$(drvdir)
-		test -z "@EXT_ZIPFILE@" || \
+		    @EXT_CSVTABLE@ $(DESTDIR)$(drvdir); fi
+		if [ ".@EXT_ZIPFILE@" != . ]; then \
 		    $(LIBTOOL) --mode=install $(INSTALL) \
-		    @EXT_ZIPFILE@ $(DESTDIR)$(drvdir)
-		test -z "@EXT_XPATH@" || \
+		    @EXT_ZIPFILE@ $(DESTDIR)$(drvdir); fi
+		if [ ".@EXT_XPATH@" != . ]; then \
 		    $(LIBTOOL) --mode=install $(INSTALL) \
-		    @EXT_XPATH@ $(DESTDIR)$(drvdir)
+		    @EXT_XPATH@ $(DESTDIR)$(drvdir); fi
 
 uninstall-3:
 		$(LIBTOOL) --mode=uninstall \
