[patch] add --with-dhcdbd



with attached patch its possible to configure the path for dhcdbd, 
i.e. --with-dhcdbd=/sbin/dhcdbd 

since it is not needed at compile time.

j
Index: configure.in
===================================================================
RCS file: /cvs/gnome/NetworkManager/configure.in,v
retrieving revision 1.84
diff -u -r1.84 configure.in
--- configure.in	30 Jun 2005 14:34:17 -0000	1.84
+++ configure.in	16 Aug 2005 16:19:05 -0000
@@ -197,9 +197,12 @@
 AC_DEFINE_UNQUOTED(NM_NAMED_DATA_DIR, "$with_named_dir", [Define to path of named data directory])
 AC_DEFINE_UNQUOTED(NM_NAMED_USER, "$with_named_user", [Define to named username])
 
-AC_PATH_PROG(DHCDBD_BINARY_PATH, dhcdbd, [], $PATH:/sbin:/usr/sbin)
-if ! test -x "$DHCDBD_BINARY_PATH"; then
+AC_ARG_WITH(DHCDBD_BINARY_PATH, AC_HELP_STRING([--with-dhcdbd=/path/to/dhcdbd], [path to dhcdbd])) 
+if test "x${DHCDBD_BINARY_PATH}" = x; then
+  AC_PATH_PROG(DHCDBD_BINARY_PATH, dhcdbd, [], $PATH:/sbin:/usr/sbin)
+  if ! test -x "$DHCDBD_BINARY_PATH"; then
 	AC_MSG_ERROR(dhcdbd was not installed.  See http://people.redhat.com/jvdias/dhcdbd)
+  fi
 fi
 AC_SUBST(DHCDBD_BINARY_PATH)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]