After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 449258 - Missing --enable-networkmanager configure flag
Missing --enable-networkmanager configure flag
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Shell
2.24.x (obsolete)
Other Linux
: Normal major
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2007-06-19 20:27 UTC by Priit Laes (IRC: plaes)
Modified: 2009-08-25 04:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Priit Laes (IRC: plaes) 2007-06-19 20:27:16 UTC
Currently it is not possible to disable networkmanager support, when running ./configure.
Comment 1 Tobias Mueller 2007-07-23 12:06:38 UTC
CCing shres :p
Comment 2 Shreyas Srinivasan 2007-07-23 17:41:15 UTC
Well, if the system does not have network manager installed then the network manager support isn't built anyway. Adding a --with-nmsupport should be trivial but this is still not a run time check. 

When i wrote this it was decided to make this not a turn off'able feature. Which is why it wasnt a plugin. A run time check is rather unnecessary anyway, I am open to people convincing me otherwise. 

Comment 3 Tobias Mueller 2007-08-20 18:12:40 UTC
I have problems every now and then with building Evolution due to the networkmanager libraries which are from my system (rather than from a build environment). These libraries pull other system (read: old) libraries which make my linker die.

So I work around this issue with this patch, maybe it's useful for anyone.

Index: configure.in
===================================================================
--- configure.in	(revision 34030)
+++ configure.in	(working copy)
@@ -1412,12 +1412,12 @@ dnl --- evolution (shell) flags
 
 NM_SUPPORT_PACKAGES=""
 
-PKG_CHECK_MODULES(NM, dbus-glib-1 libnm_glib, NM_SUPPORT_GLIB="yes", NM_SUPPORT_GLIB="no")
+PKG_CHECK_MODULES(NM, dbus-glib-1 libnm_glib, NM_SUPPORT_GLIB="no", NM_SUPPORT_GLIB="no")
 if test "x$NM_SUPPORT_GLIB" = "xyes"; then 
    AC_DEFINE(NM_SUPPORT_GLIB, 1, [network manager available])
    NM_SUPPORT_PACKAGES="dbus-1 dbus-glib-1 libnm_glib"
 else
-   PKG_CHECK_MODULES(NM, dbus-glib-1, NM_SUPPORT="yes", NM_SUPPORT="no")
+   PKG_CHECK_MODULES(NM, dbus-glib-1, NM_SUPPORT="no", NM_SUPPORT="no")
    AC_CHECK_HEADER(NetworkManager/NetworkManager.h, [ nm_header="yes" ] )
    if test "x$NM_SUPPORT" = "xyes" -a "x$nm_header" = "xyes"; then 
 	AC_DEFINE(NM_SUPPORT, 1, [network manager available])
@@ -1426,9 +1426,11 @@ else
         NM_SUPPORT=no
    fi	   
 fi 
-
+        
 AM_CONDITIONAL(NM_SUPPORT_GLIB, test x$NM_SUPPORT_GLIB = xyes)
 AM_CONDITIONAL(NM_SUPPORT, test x$NM_SUPPORT = xyes)
+NM_SUPPORT=no
+NM_SUPPORTED_PACKAGES=""
 
 
 EVO_SET_COMPILE_FLAGS(SHELL, libgnomeui-2.0 libbonoboui-2.0 libglade-2.0 gnome-vfs-2.0 libgtkhtml-$GTKHTML_PACKAGE $NM_SUPPORT_PACKAGES)  


PS: A configure switch would be appreciated ;-) 
Comment 4 Matthew Barnes 2008-03-11 00:33:46 UTC
Bumping version to a stable release.
Comment 5 Matthew Barnes 2008-03-19 21:20:21 UTC
I agree with shres.  Closing based on comment #2.
Comment 6 Tobias Mueller 2008-03-19 22:54:38 UTC
Well Matthew, as I told in comment #3, it actually is useful to disable nm on a configure basis, although I think it's more or less a cornercase. But still, it would save other poeples time, if they could just switch nm-support off.
Comment 7 Tobias Mueller 2008-06-17 15:57:08 UTC
Right now, I do need that flag because I can't build evo due to new functions introduced in glib.
JHbuild pulls networkmanager libs from my system which in turn pull my systems glib which make Evo not being build.If such a flag existed and worked properly, I would be able to build Evo without the need to find an uptodate NetworkManager.

So I am reopening this as I have brought up reasons which might be convincing to implement that.
Comment 8 Matthew Barnes 2009-08-25 04:34:15 UTC
We have an --enable-nm option now.  Note that NetworkManager integration is enabled by default and configure aborts if it can't find a NetworkManager package.  If you don't want NetworkManager integration you have to be explicit about it.

Closing as fixed.