ODBC library detection

This commit is contained in:
Aleksandar Fabijanic 2007-05-25 01:57:38 +00:00
parent 956aafbd0b
commit 6951cfa3c7
2 changed files with 8 additions and 4 deletions

View File

@ -8,10 +8,12 @@
include $(POCO_BASE)/build/rules/global
ifeq ($(OSNAME),Darwin)
ifeq (0, $(shell test -e /usr/lib/libodbc.so; echo $$?))
SYSLIBS += -lodbc -lodbcinst
else ifeq (0, $(shell test -e /usr/lib/libiodbc.so; echo $$?))
SYSLIBS += -liodbc -liodbcinst
else
SYSLIBS += -lodbc -lodbcinst
$(error No ODBC library found. Please install unixODBC or iODBC and try again)
endif
objects = Binder ConnectionHandle DataTypes EnvironmentHandle \

View File

@ -8,10 +8,12 @@
include $(POCO_BASE)/build/rules/global
ifeq ($(OSNAME),Darwin)
ifeq (0, $(shell test -e /usr/lib/libodbc.so; echo $$?))
SYSLIBS += -lodbc -lodbcinst
else ifeq (0, $(shell test -e /usr/lib/libiodbc.so; echo $$?))
SYSLIBS += -liodbc -liodbcinst
else
SYSLIBS += -lodbc -lodbcinst
$(error No ODBC library found. Please install unixODBC or iODBC and try again)
endif
objects = ODBCTestSuite Driver \