FSBUILD-84 add support for --switchconfdir
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10665 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1136fcec4a
commit
911e4a0944
10
configure.in
10
configure.in
|
@ -35,9 +35,19 @@ AC_SUBST(switch_builddir)
|
||||||
AC_ARG_WITH([modinstdir],
|
AC_ARG_WITH([modinstdir],
|
||||||
[AS_HELP_STRING([--with-modinstdir=DIR], [Install modules into this location (default: $prefix/mod)])], [modinstdir="$withval"], [modinstdir="${prefix}/mod"])
|
[AS_HELP_STRING([--with-modinstdir=DIR], [Install modules into this location (default: $prefix/mod)])], [modinstdir="$withval"], [modinstdir="${prefix}/mod"])
|
||||||
|
|
||||||
|
|
||||||
AC_SUBST(modinstdir)
|
AC_SUBST(modinstdir)
|
||||||
AC_DEFINE_UNQUOTED([SWITCH_MOD_DIR],"${modinstdir}",[where to install the modules to])
|
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
|
#Set default language
|
||||||
AC_LANG_C
|
AC_LANG_C
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
|
|
Loading…
Reference in New Issue