diff --git a/configure b/configure index 4410cc8d8b..330b53edde 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Revision: 177163 . +# From configure.ac Revision: 180946 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for asterisk 1.6. # @@ -4059,8 +4059,10 @@ case "${host_os}" in ;; esac -if test ${localstatedir} = '${prefix}/var'; then - localstatedir=/var +if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then + if test ${localstatedir} = '${prefix}/var'; then + localstatedir=/var + fi fi BUILD_PLATFORM=${build} diff --git a/configure.ac b/configure.ac index 0dec1cdd11..c117d2de49 100644 --- a/configure.ac +++ b/configure.ac @@ -45,8 +45,10 @@ case "${host_os}" in ;; esac -if test ${localstatedir} = '${prefix}/var'; then - localstatedir=/var +if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then + if test ${localstatedir} = '${prefix}/var'; then + localstatedir=/var + fi fi BUILD_PLATFORM=${build}