$OpenBSD: patch-configure_ac,v 1.2 2010/02/01 10:32:07 jasper Exp $ --- configure.ac.orig Fri Jan 22 18:26:08 2010 +++ configure.ac Mon Feb 1 10:39:19 2010 @@ -5,8 +5,8 @@ dnl TODO: clean up all the OpenSSL and shared module c dnl the most major changes have already been made and it looks like dnl said functions need to be just about as complex as they already are. -AC_PREREQ(2.63) -AUTOMAKE_OPTIONS = 1.10 +AC_PREREQ(2.62) +AUTOMAKE_OPTIONS = 1.9 dnl Sneaky way to get an Id tag into the configure script AC_COPYRIGHT([$Id: patch-configure_ac,v 1.2 2010/02/01 10:32:07 jasper Exp $]) AC_INIT([ircd-ratbox],[devel]) @@ -109,7 +109,7 @@ done LIBTOOL="$LIBTOOL --silent" -AC_CONFIG_SUBDIRS(libltdl libratbox) +AC_CONFIG_SUBDIRS(libratbox) case "$host_os" in *cygwin*) @@ -383,6 +383,24 @@ AC_HELP_STRING([--with-logdir=DIR], AC_MSG_RESULT(no) AC_DEFINE_DIR(LOG_DIR, logdir, [Prefix where to write logfiles.]) AC_SUBST_DIR([logdir])] +) + +dnl ********************************************************************** +dnl Check for --with-rundir +dnl ********************************************************************** + +AC_MSG_CHECKING([whether to modify rundir]) +AC_ARG_WITH(rundir, +AC_HELP_STRING([--with-rundir=DIR], + [Directory where to write runtime files.]), + [ rundir=`echo $withval | sed 's/\/$//'` + AC_MSG_RESULT(yes) + AC_DEFINE_DIR(RUN_DIR, rundir, [Prefix where to write runtime files.]) + AC_SUBST_DIR([rundir]) ], + [ rundir='${localstatedir}/run' + AC_MSG_RESULT(no) + AC_DEFINE_DIR(RUN_DIR, rundir, [Prefix where to write runtime files.]) + AC_SUBST_DIR([rundir])] ) dnl **********************************************************************