From: Travis Cross Date: Wed, 8 May 2013 17:30:02 +0000 (+0000) Subject: Add support for --with-storagedir to configure X-Git-Tag: v1.2.13~255 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98532b86509e1fe66027724bd33d7589e9ed31a2;p=thirdparty%2Ffreeswitch.git Add support for --with-storagedir to configure This is needed for correctly setting the default storage directory for Debian builds. --- diff --git a/configure.in b/configure.in index e2821fb862..e55e0d8ef3 100644 --- a/configure.in +++ b/configure.in @@ -86,6 +86,11 @@ AC_ARG_WITH([recordingsdir], AC_SUBST(recordingsdir) AC_DEFINE_UNQUOTED([SWITCH_RECORDINGS_DIR],"${recordingsdir}",[where to put recording files]) +AC_ARG_WITH([storagedir], + [AS_HELP_STRING([--with-storagedir=DIR], [Put storage files into this location (default: $prefix/storage)])], [storagedir="$withval"], [storagedir="$prefix/storage"]) +AC_SUBST(storagedir) +AC_DEFINE_UNQUOTED([SWITCH_STORAGE_DIR],"${storagedir}",[where to put storage files]) + if test "$sysconfdir" = "\${prefix}/etc" ; then confdir="$prefix/conf" else