[Freeswitch-svn] [commit] r10665 - freeswitch/trunk
FreeSWITCH SVN
mikej at freeswitch.org
Mon Dec 8 16:50:32 PST 2008
Author: mikej
Date: Mon Dec 8 19:50:32 2008
New Revision: 10665
Log:
FSBUILD-84 add support for --switchconfdir
Modified:
freeswitch/trunk/configure.in
Modified: freeswitch/trunk/configure.in
==============================================================================
--- freeswitch/trunk/configure.in (original)
+++ freeswitch/trunk/configure.in Mon Dec 8 19:50:32 2008
@@ -35,9 +35,19 @@
AC_ARG_WITH([modinstdir],
[AS_HELP_STRING([--with-modinstdir=DIR], [Install modules into this location (default: $prefix/mod)])], [modinstdir="$withval"], [modinstdir="${prefix}/mod"])
+
AC_SUBST(modinstdir)
AC_DEFINE_UNQUOTED([SWITCH_MOD_DIR],"${modinstdir}",[where to install the modules to])
+if test "$sysconfdir" = "\${prefix}/etc" ; then
+ confdir="$prefix/conf"
+else
+ confdir="$sysconfdir"
+fi
+
+AC_SUBST(confdir)
+AC_DEFINE_UNQUOTED([SWITCH_CONF_DIR],"${confdir}",[where to install the modules to])
+
#Set default language
AC_LANG_C
# Checks for programs.
More information about the Freeswitch-svn
mailing list