diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-15 15:05:49 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-15 15:05:49 +0000 |
commit | d2725377f5d62c9aa6be659ed2256932ab22f012 (patch) | |
tree | 713c9c78f4eb9a98db30a3143a5f79d8ea602ab3 /configure.ac | |
parent | 6c316f0bc2cb41650b9963aef8dd805753b3a6b6 (diff) |
Fix a bit of wrong logic in the configure script that caused problems when trying to configure
without IMAP. Patch suggestion from phsultan, but I modified it slightly.
(closes issue #12003)
Reported by: pj
Tested by: putnopvut
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@103713 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 63fd4d437..171f39365 100644 --- a/configure.ac +++ b/configure.ac @@ -479,13 +479,13 @@ if test "${PBX_IKSEMEL}" = 1; then fi if test "${USE_IMAP_TK}" != "no"; then + saved_cppflags="${CPPFLAGS}" + saved_libs="${LIBS}" switch_to_system_on_failure="no" if test "${IMAP_TK_DIR}" = ""; then IMAP_TK_DIR=`pwd`"/../imap-2004g" switch_to_system_on_failure="yes" fi - saved_cppflags="${CPPFLAGS}" - saved_libs="${LIBS}" if test "${IMAP_TK_DIR}" != "system"; then AC_MSG_CHECKING(for UW IMAP Toolkit c-client library) if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then @@ -863,8 +863,6 @@ if test "${USE_IMAP_TK}" != "no"; then fi if test "${ac_cv_imap_tk}" = "yes"; then AC_MSG_RESULT(yes) - CPPFLAGS="${saved_cppflags}" - LIBS="${saved_libs}" IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}` IMAP_TK_INCLUDE="${imap_include}" PBX_IMAP_TK=1 @@ -882,6 +880,8 @@ if test "${USE_IMAP_TK}" != "no"; then else AC_MSG_RESULT(no) fi + CPPFLAGS="${saved_cppflags}" + LIBS="${saved_libs}" fi # Needed by unixodbc |