Adding configuration option (--ndnx=PATH) to specify which ndnx should be used during runtime

Change-Id: I353655cff033e849cf299159794e62d2613569d7
diff --git a/osx/menu-delegate.mm b/osx/menu-delegate.mm
index cdb02e7..8660108 100644
--- a/osx/menu-delegate.mm
+++ b/osx/menu-delegate.mm
@@ -6,11 +6,12 @@
  * @author Ilya Moiseenko <iliamo@ucla.edu>
  */
 
+#include "config.h"
 #import "menu-delegate.h"
 
-#define NDND_START_COMMAND @"/opt/local/bin/ndndstart"
-#define NDND_STOP_COMMAND @"/opt/local/bin/ndndstop"
-#define NDND_STATUS_COMMAND @"/opt/local/bin/ndndstatus"
+#define NDND_START_COMMAND @ NDNX_ROOT "/bin/ndndstart"
+#define NDND_STOP_COMMAND @ NDNX_ROOT "/bin/ndndstop"
+#define NDND_STATUS_COMMAND @ NDNX_ROOT "/bin/ndndstatus"
 
 @implementation MenuDelegate