Add --with-rsync-path option.
authorDavid Dykstra <dwd@samba.org>
Tue, 12 Jun 2001 19:33:41 +0000 (19:33 +0000)
committerDavid Dykstra <dwd@samba.org>
Tue, 12 Jun 2001 19:33:41 +0000 (19:33 +0000)
acconfig.h
configure.in
options.c

index 7a5f7ca..d7572a5 100644 (file)
@@ -15,4 +15,4 @@
 #undef HAVE_SOCKETPAIR
 #undef HAVE_SECURE_MKSTEMP
 #undef HAVE_C99_VSNPRINTF
-
+#undef RSYNC_PATH
index fca63ca..1adfe9e 100644 (file)
@@ -38,6 +38,13 @@ fi
 AC_ARG_WITH(included-popt,
         [  --with-included-popt    use bundled popt library, not from system])
 
+AC_ARG_WITH(rsync-path,
+       [  --with-rsync-path=PATH  set rsync path used on server to PATH (default: "rsync")],
+       [ RSYNC_PATH="$with_rsync_name" ],
+       [ RSYNC_PATH="rsync" ])
+RSYNC_PATH="\"$RSYNC_PATH\""
+AC_DEFINE_UNQUOTED(RSYNC_PATH, $RSYNC_PATH)
+
 dnl Checks for programs.
 AC_PROG_CC
 AC_PROG_INSTALL
index bbc3219..35a6dc6 100644 (file)
--- a/options.c
+++ b/options.c
@@ -81,7 +81,7 @@ char *config_file = RSYNCD_CONF;
 char *shell_cmd = NULL;
 char *log_format = NULL;
 char *password_file = NULL;
-char *rsync_path = RSYNC_NAME;
+char *rsync_path = RSYNC_PATH;
 char *backup_dir = NULL;
 int rsync_port = RSYNC_PORT;