summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@users.sourceforge.net>2005-01-11 01:08:34 +0000
committerJosé Fonseca <jrfonseca@users.sourceforge.net>2005-01-11 01:08:34 +0000
commitce573ce2d8617929e00ec84d4d7e6d951617f759 (patch)
tree9db41879400b7ad4d13e98c5c984498072be7fc6
parent887dcd4d51c1f475dd3c52ca1ee5670bae5a4c2b (diff)
Fix place of esmtprc config file: esmtprc should put in $sysconfdir, but it's always put in /etc (Sasajima).
-rw-r--r--configure.ac2
-rw-r--r--parser.y2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 09ebee6..5745d8d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,6 +30,8 @@ else
AC_MSG_ERROR(libESMTP library not found)
fi
+AC_SUBST( sysconfdir )
+
adl_FUNC_GETOPT_LONG
AC_CONFIG_FILES([Makefile])
diff --git a/parser.y b/parser.y
index e122193..437adbf 100644
--- a/parser.y
+++ b/parser.y
@@ -127,7 +127,7 @@ void yyerror (const char *s)
#define RCFILE "esmtprc"
#define DOT_RCFILE "." RCFILE
-#define ETC_RCFILE "/etc/" RCFILE
+#define ETC_RCFILE SYSCONFDIR "/" RCFILE
void rcfile_parse(const char *_rcfile)
{