]> git.sur5r.net Git - bacula/bacula/commitdiff
Implement ./configure --with-plugindir=xxx
authorKern Sibbald <kern@sibbald.com>
Thu, 25 Sep 2008 19:43:35 +0000 (19:43 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 25 Sep 2008 19:43:35 +0000 (19:43 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7645 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/autoconf/configure.in
bacula/configure
bacula/technotes-2.5

index 1c45c017c1bc3da0141e55c5bd2ee76d5263c25a..77ac433bb1232ac626decb821972a5e353d8659d 100644 (file)
@@ -1006,6 +1006,22 @@ AC_ARG_WITH(scriptdir,
 AC_SUBST(scriptdir)
 
 
+# ------------------------------------------
+# Where to place plugindir (script files)
+# ------------------------------------------
+plugindir=`eval echo ${sysconfdir}`
+AC_ARG_WITH(plugindir,
+   [  --with-plugindir=PATH    specify path of Bacula plugins directory],
+   [
+       if test "x$withval" != "xno" ; then     
+             plugindir=$withval
+       fi
+   ]
+)
+
+AC_SUBST(plugindir)
+
+
 # ------------------------------------------
 # Where to send dump email
 # ------------------------------------------
index 1b847dc554012209dc9319829ce3cad01950277f..9afe47dd81b7e79bd917daf61b70017c2bf8693a 100755 (executable)
@@ -808,6 +808,7 @@ OPENSSL_INC
 working_dir
 archivedir
 scriptdir
+plugindir
 dump_email
 job_email
 smtp_host
@@ -1506,6 +1507,7 @@ Optional Packages:
   --with-working-dir=PATH       specify path of Bacula working directory
   --with-archivedir=PATH       specify path of SD archive directory
   --with-scriptdir=PATH    specify path of Bacula scripts directory
+  --with-plugindir=PATH    specify path of Bacula plugins directory
   --with-dump-email=EMAIL       dump email address
   --with-job-email=EMAIL        job output email address
   --with-smtp-host=HOST                 SMTP mail host address
 
 
 
+# ------------------------------------------
+# Where to place plugindir (script files)
+# ------------------------------------------
+plugindir=`eval echo ${sysconfdir}`
+
+# Check whether --with-plugindir was given.
+if test "${with_plugindir+set}" = set; then
+  withval=$with_plugindir;
+       if test "x$withval" != "xno" ; then
+             plugindir=$withval
+       fi
+
+
+fi
+
+
+
+
+
 # ------------------------------------------
 # Where to send dump email
 # ------------------------------------------
@@ -35781,6 +35802,7 @@ OPENSSL_INC!$OPENSSL_INC$ac_delim
 working_dir!$working_dir$ac_delim
 archivedir!$archivedir$ac_delim
 scriptdir!$scriptdir$ac_delim
+plugindir!$plugindir$ac_delim
 dump_email!$dump_email$ac_delim
 job_email!$job_email$ac_delim
 smtp_host!$smtp_host$ac_delim
@@ -35842,7 +35864,7 @@ DISTVER!$DISTVER$ac_delim
 LTLIBOBJS!$LTLIBOBJS$ac_delim
 _ACEOF
 
-  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
+  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
     break
   elif $ac_last_try; then
     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
index 88d35c37e09fb7deae9c8de50736f02d62c6c951..523bcb27c11c0e6b01e8bb36f4028880ccae94a0 100644 (file)
@@ -19,6 +19,7 @@ remove reader/writer in FOPTS????
 
 General:
 25Sep08
+kes  Implement ./configure --with-plugindir=xxx
 ebl  Fix the mysql bug in the new accurate code
 kes  Improve plugin debug. Create plugin test.
 kes  Set main thread specific data to INVALID because it