diff -urN -x .build -x .inst -x .sinst -x configure -x Makefile.in -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x 'intltool*' -x autom4te.cache -x doc libgda-1.2.2-orig/configure.in libgda-1.2.2/configure.in
--- libgda-1.2.2-orig/configure.in	2005-04-30 05:22:36.000000000 -0500
+++ libgda-1.2.2/configure.in	2005-08-25 15:46:11.515625000 -0500
@@ -135,7 +135,7 @@
 		AC_MSG_CHECKING(for Berkeley DB files)
 		for d in $dir /usr /usr/local
 		do
-			if test -f $d/$lib/libdb.so -a -f $d/include/db.h
+			if test -f $d/$lib/libdb.a -a -f $d/include/db.h
 			then
 				AC_MSG_RESULT(found Berkeley DB in $d)
 				bdblib="-ldb"
@@ -360,7 +360,7 @@
 		AC_MSG_CHECKING(for Postgres files)
 		for d in $dir /usr /usr/local/postgres /opt/postgres /opt/packages/postgres /disk/postgres /usr/local/pgsql
 		do
-			if test -f $d/$lib/libpq.so
+			if test -f $d/$lib/libpq.a
 			then
 				AC_MSG_RESULT(found Postgres in $d)
 				postgresdir=$d
@@ -804,7 +804,7 @@
 	mdbdir=""
 	for d in $dir /usr /usr/local /opt/gnome
 	do
-		if test -f $d/include/mdbtools.h -a -f $d/$lib/libmdbsql.so
+		if test -f $d/include/mdbtools.h -a -f $d/$lib/libmdbsql.a
 		then
 			AC_MSG_RESULT(found MDB Tools in $d)
 			mdbdir=$d
diff -urN -x .build -x .inst -x .sinst -x configure -x Makefile.in -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x 'intltool*' -x autom4te.cache -x doc libgda-1.2.2-orig/libgda/Makefile.am libgda-1.2.2/libgda/Makefile.am
--- libgda-1.2.2-orig/libgda/Makefile.am	2004-10-28 10:29:19.000000000 -0500
+++ libgda-1.2.2/libgda/Makefile.am	2005-08-25 15:38:31.312500000 -0500
@@ -159,8 +159,8 @@
 	$(libgda_built_cfiles) \
 	$(libgda_sources)
 
-libgda_2_la_LDFLAGS = -version-info $(GDA_CURRENT):$(GDA_REVISION):$(GDA_AGE)
-libgda_2_la_LIBADD = $(LIBGDA_LIBS) $(top_builddir)/libsql/libgdasql.la
+libgda_2_la_LDFLAGS = -version-info $(GDA_CURRENT):$(GDA_REVISION):$(GDA_AGE) -no-undefined
+libgda_2_la_LIBADD = $(top_builddir)/libsql/libgdasql.la $(LIBGDA_LIBS)
 
 gdaincludedir=$(includedir)/libgda-$(GDA_MAJOR_VERSION).$(GDA_MINOR_VERSION)/libgda
 gdainclude_HEADERS=$(libgda_built_headers) $(gda_headers)
diff -urN -x .build -x .inst -x .sinst -x configure -x Makefile.in -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x 'intltool*' -x autom4te.cache -x doc libgda-1.2.2-orig/libsql/Makefile.am libgda-1.2.2/libsql/Makefile.am
--- libgda-1.2.2-orig/libsql/Makefile.am	2005-02-18 04:59:33.000000000 -0600
+++ libgda-1.2.2/libsql/Makefile.am	2005-08-25 15:57:07.906250000 -0500
@@ -27,11 +27,12 @@
 	sql_tree.h
 libgdasqlincdir = $(includedir)/libgda-$(GDA_MAJOR_VERSION).$(GDA_MINOR_VERSION)/sql
 libgdasqlinc_HEADERS = sql_parser.h
-libgdasql_la_LDFLAGS = -version-info $(GDA_CURRENT):$(GDA_REVISION):$(GDA_AGE) $(LIBGDA_LIBS)
+libgdasql_la_LDFLAGS = -version-info $(GDA_CURRENT):$(GDA_REVISION):$(GDA_AGE) -no-undefined
+libgdasql_la_LIBADD = $(LIBGDA_LIBS)
 
 sql_parser_test_SOURCES=sql_parser_test.c
 sql_parser_test_LDFLAGS = $(LIBGDA_LIBS)
-sql_parser_test_DEPENDENCIES =
+sql_parser_test_DEPENDENCIES = libgdasql.la
 sql_parser_test_LDADD = libgdasql.la
 
 tests: sql_parser_test
diff -urN -x .build -x .inst -x .sinst -x configure -x Makefile.in -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x 'intltool*' -x autom4te.cache -x doc libgda-1.2.2-orig/providers/bdb/Makefile.am libgda-1.2.2/providers/bdb/Makefile.am
--- libgda-1.2.2-orig/providers/bdb/Makefile.am	2005-02-28 04:51:35.000000000 -0600
+++ libgda-1.2.2/providers/bdb/Makefile.am	2005-08-25 15:34:54.578125000 -0500
@@ -15,10 +15,10 @@
 	gda-bdb.h \
 	utils.c \
 	libmain.c
-libgda_bdb_la_LDFLAGS = -export-dynamic -module -avoid-version
+libgda_bdb_la_LDFLAGS = -export-dynamic -module -avoid-version -no-undefined
 libgda_bdb_la_LIBADD = \
-	$(LIBGDA_LIBS) \
 	$(top_builddir)/libgda/libgda-2.la \
+	$(LIBGDA_LIBS) \
 	$(BDB_LIBS)
 
 #bin_PROGRAMS = gda-bdb-test
diff -urN -x .build -x .inst -x .sinst -x configure -x Makefile.in -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x 'intltool*' -x autom4te.cache -x doc libgda-1.2.2-orig/providers/ldap/Makefile.am libgda-1.2.2/providers/ldap/Makefile.am
--- libgda-1.2.2-orig/providers/ldap/Makefile.am	2005-02-28 04:51:35.000000000 -0600
+++ libgda-1.2.2/providers/ldap/Makefile.am	2005-08-25 15:39:49.984375000 -0500
@@ -16,7 +16,7 @@
 	gda-ldap-recordset.h \
 	libmain.c \
 	utils.c
-libgda_ldap_la_LDFLAGS = -export-dynamic -module -avoid-version
+libgda_ldap_la_LDFLAGS = -export-dynamic -module -avoid-version -no-undefined
 libgda_ldap_la_LIBADD = \
 	$(top_builddir)/libgda/libgda-2.la \
 	$(LIBGDA_LIBS) \
diff -urN -x .build -x .inst -x .sinst -x configure -x Makefile.in -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x 'intltool*' -x autom4te.cache -x doc libgda-1.2.2-orig/providers/mdb/Makefile.am libgda-1.2.2/providers/mdb/Makefile.am
--- libgda-1.2.2-orig/providers/mdb/Makefile.am	2005-02-28 04:51:35.000000000 -0600
+++ libgda-1.2.2/providers/mdb/Makefile.am	2005-08-25 15:40:02.500000000 -0500
@@ -15,9 +15,9 @@
 	gda-mdb.h \
 	libmain.c \
 	util.c
-libgda_mdb_la_LDFLAGS = -export-dynamic -module -avoid-version
+libgda_mdb_la_LDFLAGS = -export-dynamic -module -avoid-version -no-undefined
 libgda_mdb_la_LIBADD = \
-	$(LIBGDA_LIBS) \
 	$(top_builddir)/libgda/libgda-2.la \
+	$(LIBGDA_LIBS) \
 	$(MDB_LIBS)
 
diff -urN -x .build -x .inst -x .sinst -x configure -x Makefile.in -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x 'intltool*' -x autom4te.cache -x doc libgda-1.2.2-orig/providers/postgres/Makefile.am libgda-1.2.2/providers/postgres/Makefile.am
--- libgda-1.2.2-orig/providers/postgres/Makefile.am	2005-02-28 04:51:35.000000000 -0600
+++ libgda-1.2.2/providers/postgres/Makefile.am	2005-08-25 15:40:39.593750000 -0500
@@ -15,9 +15,9 @@
 	gda-postgres.h \
 	libmain.c \
 	utils.c
-libgda_postgres_la_LDFLAGS = -export-dynamic -module -avoid-version
+libgda_postgres_la_LDFLAGS = -export-dynamic -module -avoid-version -no-undefined
 libgda_postgres_la_LIBADD = \
-	$(LIBGDA_LIBS) \
 	$(top_builddir)/libgda/libgda-2.la \
+	$(LIBGDA_LIBS) \
 	$(POSTGRES_LIBS)
 
diff -urN -x .build -x .inst -x .sinst -x configure -x Makefile.in -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x 'intltool*' -x autom4te.cache -x doc libgda-1.2.2-orig/providers/sqlite/Makefile.am libgda-1.2.2/providers/sqlite/Makefile.am
--- libgda-1.2.2-orig/providers/sqlite/Makefile.am	2005-02-28 04:51:35.000000000 -0600
+++ libgda-1.2.2/providers/sqlite/Makefile.am	2005-08-25 15:40:47.250000000 -0500
@@ -16,9 +16,9 @@
 	utils.c \
 	libmain.c
 
-libgda_sqlite_la_LDFLAGS = -export-dynamic -module -avoid-version
+libgda_sqlite_la_LDFLAGS = -export-dynamic -module -avoid-version -no-undefined
 libgda_sqlite_la_LIBADD = \
-	$(LIBGDA_LIBS) \
 	$(top_builddir)/libgda/libgda-2.la \
+	$(LIBGDA_LIBS) \
 	$(SQLITE_LIBS)
 
diff -urN -x .build -x .inst -x .sinst -x configure -x Makefile.in -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x 'intltool*' -x autom4te.cache -x doc libgda-1.2.2-orig/providers/sqlite/gda-sqlite-provider.c libgda-1.2.2/providers/sqlite/gda-sqlite-provider.c
--- libgda-1.2.2-orig/providers/sqlite/gda-sqlite-provider.c	2005-02-28 06:24:20.000000000 -0600
+++ libgda-1.2.2/providers/sqlite/gda-sqlite-provider.c	2005-08-25 16:56:52.312500000 -0500
@@ -261,7 +261,7 @@
 
 	while ((next = (const gchar *) strchr (next, ';')) != NULL) {
 		gchar *tmp = g_strndup (remainder, next - remainder + 1);
-		if (sqlite_complete (tmp)) {
+		if (sqlite3_complete (tmp)) {
 			string_list = g_slist_prepend (string_list, tmp);
 			n++;
 			remainder = (const gchar *) (next + 1);
diff -urN -x .build -x .inst -x .sinst -x configure -x Makefile.in -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x 'intltool*' -x autom4te.cache -x doc libgda-1.2.2-orig/providers/xml/Makefile.am libgda-1.2.2/providers/xml/Makefile.am
--- libgda-1.2.2-orig/providers/xml/Makefile.am	2005-02-28 04:51:35.000000000 -0600
+++ libgda-1.2.2/providers/xml/Makefile.am	2005-08-25 15:41:24.984375000 -0500
@@ -13,8 +13,8 @@
 	gda-xml-recordset.h \
 	gda-xml.h \
 	libmain.c
-libgda_xml_la_LDFLAGS = -export-dynamic -module -avoid-version
+libgda_xml_la_LDFLAGS = -export-dynamic -module -avoid-version -no-undefined
 libgda_xml_la_LIBADD = \
-	$(LIBGDA_LIBS) \
-	$(top_builddir)/libgda/libgda-2.la
+	$(top_builddir)/libgda/libgda-2.la \
+	$(LIBGDA_LIBS)
 
diff -urN -x .build -x .inst -x .sinst -x configure -x Makefile.in -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x 'intltool*' -x autom4te.cache -x doc libgda-1.2.2-orig/report/libgda-report/Makefile.am libgda-1.2.2/report/libgda-report/Makefile.am
--- libgda-1.2.2-orig/report/libgda-report/Makefile.am	2004-10-28 10:29:20.000000000 -0500
+++ libgda-1.2.2/report/libgda-report/Makefile.am	2005-08-25 15:41:44.453125000 -0500
@@ -44,8 +44,8 @@
 	gda-report-result.c
 
 
-libgda_report_2_la_LDFLAGS = -version-info $(GDA_CURRENT):$(GDA_REVISION):$(GDA_AGE)
-libgda_report_2_la_LIBADD = $(LIBGDA_LIBS) $(top_builddir)/libgda/libgda-2.la
+libgda_report_2_la_LDFLAGS = -version-info $(GDA_CURRENT):$(GDA_REVISION):$(GDA_AGE) -no-undefined
+libgda_report_2_la_LIBADD = $(top_builddir)/libgda/libgda-2.la $(LIBGDA_LIBS)
 
 gdareportincludedir=$(includedir)/libgda-$(GDA_MAJOR_VERSION).$(GDA_MINOR_VERSION)/libgda-report
 gdareportinclude_HEADERS=$(gda_report_headers)
