Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From 98082f81da1b49876081ff1ab340e952755f985a Mon Sep 17 00:00:00 2001 |
| 2 | From: OBATA Akio <obache@users.noreply.github.com> |
| 3 | Date: Fri, 11 May 2018 18:36:26 +0900 |
| 4 | Subject: [PATCH] configure.ac: fix condition for suppliment snprintf |
| 5 | implementation |
| 6 | |
| 7 | $sasl_cv_snprintf means requremnt of suppliment snprintf |
| 8 | implementation, not existence of system snprintf implementation, |
| 9 | |
| 10 | Upstream-Status: Submitted [https://github.com/cyrusimap/cyrus-sasl/pull/512] |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | configure.ac | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/configure.ac b/configure.ac |
| 17 | index ac59f14..9804e98 100644 |
| 18 | --- a/configure.ac |
| 19 | +++ b/configure.ac |
| 20 | @@ -1264,7 +1264,7 @@ SNPRINTFOBJS="" |
| 21 | LTSNPRINTFOBJS="" |
| 22 | AC_CHECK_FUNC(snprintf, [AC_DEFINE(HAVE_SNPRINTF,[],[Does the system have snprintf()?])], [sasl_cv_snprintf=yes]) |
| 23 | AC_CHECK_FUNC(vsnprintf, [AC_DEFINE(HAVE_VSNPRINTF,[],[Does the system have vsnprintf()?])], [sasl_cv_snprintf=yes]) |
| 24 | -if test $sasl_cv_snprintf = no; then |
| 25 | +if test $sasl_cv_snprintf = yes; then |
| 26 | AC_LIBOBJ(snprintf) |
| 27 | SNPRINTFOBJS="snprintf.o" |
| 28 | LTSNPRINTFOBJS="snprintf.lo" |