]> diplodocus.org Git - nmh/commitdiff
Fix tests with oauth disabled.
authorEric Gillespie <epg@pretzelnet.org>
Mon, 25 Apr 2016 03:33:15 +0000 (03:33 +0000)
committerEric Gillespie <epg@pretzelnet.org>
Mon, 25 Apr 2016 03:33:15 +0000 (03:33 +0000)
configure.ac

index 236fa47c38cd28cf491b41664b7b20e7785579d5..911db7edcd10f556b83ad6b0e3a020d5fd632ab3 100644 (file)
@@ -516,13 +516,14 @@ dnl By default (with_oauth=''), enable OAuth if curl is found.
 dnl If OAuth requested (--with-oauth with_oauth=yes), error if curl not found.
 dnl If OAuth disabled (--without-oauth with_oauth=no), don't enable it.
 oauth_support=no
+OAUTH_SUPPORT=0
+AC_SUBST([OAUTH_SUPPORT])
 AS_IF([test "x$with_oauth" = xyes && test "x$HAVE_CURL_H" = x],
       [AC_MSG_ERROR([OAuth requested but curl/curl.h not found])],
       [test "x$with_oauth" = xyes && test "x$CURLLIB" = x],
       [AC_MSG_ERROR([OAuth requested but curl library not found])],
       [test "x$with_oauth" != xno && test "x$HAVE_CURL_H" = x1 && test "x$CURLLIB" != x],
       [AC_DEFINE([OAUTH_SUPPORT], [1], [Support OAuth2 in SMTP auth.])
-       AC_SUBST(OAUTH_SUPPORT)
        oauth_support=yes])
 
 dnl ----------------