From ce573ce2d8617929e00ec84d4d7e6d951617f759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Tue, 11 Jan 2005 01:08:34 +0000 Subject: Fix place of esmtprc config file: esmtprc should put in $sysconfdir, but it's always put in /etc (Sasajima). --- configure.ac | 2 ++ parser.y | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3-2-g168b