summaryrefslogtreecommitdiff
path: root/dwi-qof.patch
blob: 1e5173a3ebf3dde640316c7d581449a7fc22fd65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
--- dwi-0.6.2/configure.in.orig	2004-07-29 15:49:36.000000000 +0200
+++ dwi-0.6.2/configure.in	2006-02-22 11:40:41.000000000 +0100
@@ -68,13 +68,16 @@
 AC_SUBST(QOF_CFLAGS)
 AC_SUBST(QOF_LIBS)
 
-if test x$QOF_LIBS = x; then
+AC_ARG_WITH(qof, [  --without-qof           disable qof support])
+if test "$with_qof" = "no"; then
+   QOF_LIBS=
+elif test x"$QOF_LIBS" = x; then
    AC_MSG_WARN([****** QOF libs not found; build without QOF.])
 else
    AC_DEFINE(HAVE_QOF,,We Have Found QOF)
 fi
 
-AM_CONDITIONAL(BUILD_QOF, [test x$HAVE_QOF = x])
+AM_CONDITIONAL(BUILD_QOF, [test x"$QOF_LIBS" != x])
 
 dnl **************************************************************
 dnl If ODBC is found on the build system, then use it.
--- dwi-0.6.1/examples/app-integration/Makefile.am.orig	2006-02-22 12:28:48.000000000 +0100
+++ dwi-0.6.1/examples/app-integration/Makefile.am	2006-02-22 12:34:36.000000000 +0100
@@ -38,7 +38,6 @@
  	../../app/libdwi-parse.la \
 	../../src/libdwi.la \
 	../../dwi-gtk/libdwi-gtk.la \
-	../../dwi-qof/libdwi-qof.la \
 	../../db_drivers/libdwi-dbdrivers.la
 
 # ----------------------------------------------
@@ -62,7 +61,6 @@
  	../../app/libdwi-parse.la \
 	../../src/libdwi.la \
 	../../dwi-gtk/libdwi-gtk.la \
-	../../dwi-qof/libdwi-qof.la \
 	../../db_drivers/libdwi-dbdrivers.la
 
 # ----------------------------------------------
--- dwi-0.6.1/examples/basic-qof/Makefile.am.orig	2006-02-22 12:28:48.000000000 +0100
+++ dwi-0.6.1/examples/basic-qof/Makefile.am	2006-02-22 12:34:58.000000000 +0100
@@ -9,7 +9,9 @@
 # Created by Linas Vepstas March 2002
 #
 
+if BUILD_QOF
 noinst_PROGRAMS = my-app
+endif
 
 EXTRA_DIST =                   \
 	.cvsignore                  \
--- dwi-0.6.1/examples/qof-proto/Makefile.am.orig	2006-02-22 12:28:48.000000000 +0100
+++ dwi-0.6.1/examples/qof-proto/Makefile.am	2006-02-22 12:35:24.000000000 +0100
@@ -9,7 +9,9 @@
 # Created by Linas Vepstas March 2002
 #
 
+if BUILD_QOF
 noinst_PROGRAMS = my-app
+endif
 
 EXTRA_DIST =                   \
 	.cvsignore                  \