nemiver r681 - trunk
- From: jjongsma svn gnome org
- To: svn-commits-list gnome org
- Subject: nemiver r681 - trunk
- Date: Mon, 14 Jan 2008 02:48:33 +0000 (GMT)
Author: jjongsma
Date: Mon Jan 14 02:48:32 2008
New Revision: 681
URL: http://svn.gnome.org/viewvc/nemiver?rev=681&view=rev
Log:
* configure.ac: Improve configure script so that if --enable-memoryview is
not specified and gtkhex is not found, it will automatically disable the
memoryview widget (and vice versa, if it is found, automatically enable it).
Also automatically detect whether to build against gtksourceviewmm-1.0 or
gtksourceviewmm-2.0 if --enable-sourceviewmm2 is not explicitly specified.
Modified:
trunk/ChangeLog
trunk/configure.ac
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Mon Jan 14 02:48:32 2008
@@ -36,9 +36,8 @@
AC_SUBST([LIBXML2_VERSION])
LIBGTKMM_VERSION=2.6.0
LIBGLADEMM_VERSION=2.6.0
-dnl default to using gtksourceview-1.0
-LIBGTKSOURCEVIEWMM_PKG=libgtksourceviewmm-1.0
-LIBGTKSOURCEVIEWMM_VERSION=0.3.0
+LIBGTKSOURCEVIEWMM1_VERSION=0.3.0
+LIBGTKSOURCEVIEWMM2_VERSION=1.9.4
SQLITE3_VERSION=3.0
LIBGTOP_VERSION=2.14
LIBVTE_VERSION=0.12.0
@@ -69,8 +68,6 @@
ENABLE_IDEBUGGER_ONLY=no
ENABLE_DBGENGINE=yes
ENABLE_WORKBENCH=yes
-ENABLE_MEMORYVIEW=yes
-ENABLE_SOURCEVIEWMM2=no
dnl *************************************
dnl Internationalization support
@@ -142,7 +139,7 @@
AC_HELP_STRING([--enable-memoryview=yes|no],
[enable the memory view hex editor (default is yes)]),
ENABLE_MEMORYVIEW=$enableval,
- ENABLE_MEMORYVIEW=yes)
+ [PKG_CHECK_EXISTS([gtkhex >= $GTKHEX_VERSION], [ENABLE_MEMORYVIEW=yes], [ENABLE_MEMORYVIEW=no])])
if test x$ENABLE_MEMORYVIEW = xyes ; then
AC_DEFINE([WITH_MEMORYVIEW], 1, [compile the the memory view widget])
else
@@ -155,14 +152,14 @@
AC_HELP_STRING([--enable-sourceviewmm2=yes|no],
[enable the memory view hex editor (default is no)]),
ENABLE_SOURCEVIEWMM2=$enableval,
- ENABLE_SOURCEVIEWMM2=yes)
+ [PKG_CHECK_EXISTS([gtksourceviewmm-2.0 >= $LIBGTKSOURCEVIEWMM2_VERSION], [ENABLE_SOURCEVIEWMM2=yes], [ENABLE_SOURCEVIEWMM2=no])])
if test x$ENABLE_SOURCEVIEWMM2 = xyes ; then
AC_DEFINE([WITH_SOURCEVIEWMM2], 1, [build with gtksourceviewmm 2.x instead of 1.x])
- LIBGTKSOURCEVIEWMM_VERSION=1.9.4
+ LIBGTKSOURCEVIEWMM_VERSION=$LIBGTKSOURCEVIEWMM2_VERSION
LIBGTKSOURCEVIEWMM_PKG=gtksourceviewmm-2.0
else
ENABLE_SOURCEVIEWMM2=no
- LIBGTKSOURCEVIEWMM_VERSION=0.3.0
+ LIBGTKSOURCEVIEWMM_VERSION=$LIBGTKSOURCEVIEWMM1_VERSION
LIBGTKSOURCEVIEWMM_PKG=libgtksourceviewmm-1.0
fi
AM_CONDITIONAL(BUILD_MEMORYVIEW, test x$ENABLE_MEMORYVIEW = xyes)
@@ -430,18 +427,22 @@
Source code location : ${srcdir}
C Compiler : ${CC}
C++ Compiler : ${CXX}
+
NEMIVER_DEVEL env var : ${NEMIVER_DEVEL}
+ CFLAGS : ${CFLAGS}
+ CXXFLAGS : ${CXXFLAGS}
+ NEMIVER_LIBS : ${NEMIVER_LIBS}
+ NEMIVER_CFLAGS : ${NEMIVER_CFLAGS}
+
+ OPTIONAL FEATURES:
Enable autotests : ${ENABLE_AUTOTESTS}
Enable verbose debug messages : ${ENABLE_DEBUG}
Enable workbench : ${ENABLE_WORKBENCH}
- Enable memory view : ${ENABLE_MEMORYVIEW}
+ Enable memory view : ${ENABLE_MEMORYVIEW} (requires gtkhex > $GTKHEX_VERSION)
+ gtksourceviewmm version : ${LIBGTKSOURCEVIEWMM_PKG}
Enable variable walker : ${ENABLE_VARIABLE_WALKER}
Enable symbols visibility ctrl : ${ENABLE_GCC_SYMBOLS_VISIBILITY}
Maintainer mode : ${USER_MAINTAINER_MODE}
- CFLAGS : ${CFLAGS}
- CXXFLAGS : ${CXXFLAGS}
- NEMIVER_LIBS : ${NEMIVER_LIBS}
- NEMIVER_CFLAGS : ${NEMIVER_CFLAGS}
Now, Type 'make' to compile Nemiver
Once done, type 'make install' with sufficient privileges to install it to $prefix
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]