Hi guays.

I was bored of having desktop icons (eh?!), and I think people who don't want them could choose directly when compiling. So i write this patch to add a --enable/disable-desktop-icon that compile or not enlightenment using edbus/ehal. By the way, the default value is yes. So, if you dont want desktop icons you have to disable it.

All feedbacks are welcome ;)
See you

--
Bauland Stephane (aka rookmoot) <[EMAIL PROTECTED]>

Index: configure.in
===================================================================
RCS file: /var/cvs/e/e17/apps/e/configure.in,v
retrieving revision 1.184
diff -u -r1.184 configure.in
--- configure.in	12 Aug 2007 10:16:26 -0000	1.184
+++ configure.in	21 Aug 2007 19:15:36 -0000
@@ -194,12 +194,26 @@
 
 PKG_CHECK_MODULES(E_DBUS, edbus, have_edbus=yes, have_edbus=no)
 PKG_CHECK_MODULES(E_HAL, ehal, have_ehal=yes, have_ehal=no)
-if test x$have_edbus = "xyes"; then
-  if test x$have_ehal = "xyes"; then
-    AC_DEFINE(HAVE_EDBUS, 1, [E_Dbus support])
+
+AC_ARG_ENABLE(desktop-icon,
+  AC_HELP_STRING(
+    [--enable-desktop-icon],
+    [enable the desktop icon support. [[default=enable]]]),
+  [ want_desktop_icon=$enableval ],
+  [ want_desktop_icon="yes" ])
+
+AC_MSG_CHECKING(whether desktop icon is to be built)
+AC_MSG_RESULT($want_desktop_icon)
+
+if test "x$want_desktop_icon" = "xyes"; then
+  if test x$have_edbus = "xyes"; then
+    if test x$have_ehal = "xyes"; then
+      AC_DEFINE(HAVE_EDBUS, 1, [E_Dbus support])
+    fi
   fi
 fi
 
+
 profile="SLOW_PC"
 AC_ARG_WITH(profile,
 [  --with-profile=TARGET_PROFILE    specify a target format profile of:
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to