Index: trunk/config-scripts/cups-directories.m4
===================================================================
--- trunk.orig/config-scripts/cups-directories.m4
+++ trunk/config-scripts/cups-directories.m4
@@ -272,22 +272,25 @@ AC_DEFINE_UNQUOTED(CUPS_REQUESTS, "$loca
 AC_SUBST(CUPS_REQUESTS)
 
 # Server executables...
-case "$uname" in
-	*BSD* | Darwin*)
-		# *BSD and Darwin (MacOS X)
-		INSTALL_SYSV=""
-		CUPS_SERVERBIN="$exec_prefix/libexec/cups"
-		;;
-	*)
-		# All others
-		INSTALL_SYSV="install-sysv"
-		CUPS_SERVERBIN="$exec_prefix/lib/cups"
-		;;
-esac
+AC_ARG_WITH(serverbindir, [  --with-serverbindir         set path for server executables],serverbindir="$withval",serverbindir="")
+
+if test "x$serverbindir" = "x"; then
+	case "$host" in
+		*-*bsd*)
+			# *BSD and Darwin (MacOS X)
+			CUPS_SERVERBIN="$exec_prefix/libexec/cups"
+			;;
+		*)
+			# All others
+			CUPS_SERVERBIN="$exec_prefix/lib/cups"
+			;;
+	esac
+else
+	CUPS_SERVERBIN="$serverbindir"
+fi
 
 AC_DEFINE_UNQUOTED(CUPS_SERVERBIN, "$CUPS_SERVERBIN")
 AC_SUBST(CUPS_SERVERBIN)
-AC_SUBST(INSTALL_SYSV)
 
 # Configuration files
 CUPS_SERVERROOT="$sysconfdir/cups"
