aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-16 20:52:45 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-16 20:52:45 +0000
commitc6cead5dfe1080eabac232527e31f3f3a6de325e (patch)
treee72ca4fc4637e94a7a174e64ad46715d887ffb11 /configure.in
parent16b211992e97fcfbadb7224c8dd84b3e62bb4518 (diff)
downloadfetchmail-c6cead5dfe1080eabac232527e31f3f3a6de325e.tar.gz
fetchmail-c6cead5dfe1080eabac232527e31f3f3a6de325e.tar.bz2
fetchmail-c6cead5dfe1080eabac232527e31f3f3a6de325e.zip
Autoconfigure correctly for SunOS boxes.
svn path=/trunk/; revision=1355
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 949e68c2..385292b3 100644
--- a/configure.in
+++ b/configure.in
@@ -128,6 +128,17 @@ AC_TRY_LINK([#include <signal.h>
[AC_DEFINE(SYS_SIGLIST_DECLARED) AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no))
+# Find the right directory to put the root-mode PID file in
+for dir in "/var/run" "/etc"
+do
+ if test -d $dir
+ then
+ break;
+ fi
+done
+AC_MSG_RESULT(root-mode pid file will go in $dir)
+AC_DEFINE_UNQUOTED(PID_DIR, "$dir")
+
AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)