r15278 - gnucash/branches/gda-dev - Improve configuration of gda backend. Now is --enable-gda and

Phil Longstaff plongstaff at cvs.gnucash.org
Fri Dec 29 18:30:18 EST 2006


Author: plongstaff
Date: 2006-12-29 18:30:16 -0500 (Fri, 29 Dec 2006)
New Revision: 15278
Trac: http://svn.gnucash.org/trac/changeset/15278

Modified:
   gnucash/branches/gda-dev/configure.in
   gnucash/branches/gda-dev/src/backend/Makefile.am
Log:
Improve configuration of gda backend.  Now is --enable-gda and
--disable-gda, with information taken from pkg-config info.


Modified: gnucash/branches/gda-dev/configure.in
===================================================================
--- gnucash/branches/gda-dev/configure.in	2006-12-28 23:24:02 UTC (rev 15277)
+++ gnucash/branches/gda-dev/configure.in	2006-12-29 23:30:16 UTC (rev 15278)
@@ -538,16 +538,21 @@
 
 ### -----------------------
 ### LIBGDA
-LIBGDA_PACKAGE_NAME=libgda-2.0
-AC_ARG_WITH( libgda,
-  [  --with-libgda=PATH      specify where to look for libgda],
-  [ LIBGDA_PACKAGE_NAME=$with_libgda/lib/pkgconfig/${LIBGDA_PACKAGE_NAME}.pc ])
-#LIBGDA_CFLAGS=`$PKG_CONFIG --silence-errors --cflags $LIBGDA_PACKAGE_NAME`
-#LIBGDA_LIBS=`$PKG_CONFIG --silence-errors --libs $LIBGDA_PACKAGE_NAME`
-LIBGDA_CFLAGS=`$PKG_CONFIG --cflags $LIBGDA_PACKAGE_NAME`
-LIBGDA_LIBS=`$PKG_CONFIG --libs $LIBGDA_PACKAGE_NAME`
+AC_ARG_ENABLE(gda, 
+  [  --disable-gda                build without the libgda backend],
+  [case "${enableval}" in
+     yes) want_gda=true ;;
+     no)  want_gda=false ;;
+     *) want_gda=true ;;
+   esac],[want_gda=true])
+if test x${want_gda} = xtrue
+then
+  PKG_CHECK_MODULES(LIBGDA, libgda-3.0 >= 2.99.2, [GDA_DIR=gda])
+fi
+AC_SUBST(GDA_DIR)
 AC_SUBST(LIBGDA_CFLAGS)
 AC_SUBST(LIBGDA_LIBS)
+
 ### --------------------------------------------------------------------------
 ### Variables
 ### Set up all the initial variable values...
@@ -2276,6 +2281,9 @@
 output_qof_lib_dir=`eval eval eval echo $QOF_LIB_DIR`
 output_qof_xml_dir=`eval eval eval echo $QOF_XML_DIR`
 
+if test x${GDA_DIR} != x; then
+components="$components gda"
+fi
 if test x${SQL_DIR} != x; then
 components="$components sql"
 fi

Modified: gnucash/branches/gda-dev/src/backend/Makefile.am
===================================================================
--- gnucash/branches/gda-dev/src/backend/Makefile.am	2006-12-28 23:24:02 UTC (rev 15277)
+++ gnucash/branches/gda-dev/src/backend/Makefile.am	2006-12-29 23:30:16 UTC (rev 15278)
@@ -1,3 +1,3 @@
 
-SUBDIRS = file ${SQL_DIR} gda
+SUBDIRS = file ${SQL_DIR} ${GDA_DIR}
 DIST_SUBDIRS = file postgres gda



More information about the gnucash-changes mailing list