]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Add configure option for sendmail path
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 24 Jun 2011 11:27:30 +0000 (13:27 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 24 Jun 2011 11:27:30 +0000 (13:27 +0200)
configure
reference.c

index 74c92e384792fc6aba6ef36fd3e22da91a10de84..cb49808f3123d8ee30563bc1eb8b9f9c423f4c2d 100755 (executable)
--- a/configure
+++ b/configure
@@ -103,6 +103,7 @@ For better control, use the options below.
   --disable-rtc          Don't include RTC even on Linux
   --disable-linuxcaps    Disable Linux capabilities support
   --enable-forcednsretry Force retry on DNS failure
+  --with-sendmail=PATH   Path to sendmail binary [/usr/lib/sendmail]
 
 Fine tuning of the installation directories:
   --sysconfdir=DIR       chrony.conf location [/etc]
@@ -173,6 +174,7 @@ feat_pps=1
 try_setsched=0
 try_lockmem=0
 feat_forcednsretry=0
+mail_program="/usr/lib/sendmail"
 
 for option
 do
@@ -240,6 +242,9 @@ do
     --enable-forcednsretry)
       feat_forcednsretry=1
     ;;
+    --with-sendmail=* )
+      mail_program=`echo $option | sed -e 's/^.*=//;'`
+    ;;
     --host-system=* )
       OPERATINGSYSTEM=`echo $option | sed -e 's/^.*=//;'`
     ;;
@@ -500,6 +505,7 @@ if [ "x$SETDOCDIR" != "x" ]; then
 fi
 
 add_def DEFAULT_CONF_DIR "\"$SYSCONFDIR\""
+add_def MAIL_PROGRAM "\"$mail_program\""
 
 if [ -f version.txt ]; then
   add_def CHRONY_VERSION "\"`cat version.txt`\""
index 8c77e40ff5e41454cf905be9f6b8f36062fcdbbf..cad321a59e3d02d957aee41e488b2f8f69202604 100644 (file)
@@ -78,8 +78,6 @@ static double drift_file_age;
 
 static void update_drift_file(double, double);
 
-#define MAIL_PROGRAM "/usr/lib/sendmail"
-
 /* ================================================== */
 
 static LOG_FileID logfileid;