Fix previous commit.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 26 Oct 2018 01:31:43 +0000 (10:31 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 26 Oct 2018 01:31:43 +0000 (10:31 +0900)
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
npth.m4

diff --git a/npth.m4 b/npth.m4
index f5a73db..ff29554 100644 (file)
--- a/npth.m4
+++ b/npth.m4
@@ -88,9 +88,9 @@ AC_DEFUN([AM_PATH_NPTH],
     # API is compatible.
     if test "$req_npth_api" -gt 0 ; then
       if test -z "$use_gpgrt_config"; then
-        tmp=`CC=$CC $NPTH_CONFIG --variable=api_version 2>/dev/null || echo 0`
-      else
         tmp=`CC=$CC $NPTH_CONFIG --api-version 2>/dev/null || echo 0`
+      else
+        tmp=`CC=$CC $NPTH_CONFIG --variable=api_version 2>/dev/null || echo 0`
       fi
       if test "$tmp" -gt 0 ; then
         AC_MSG_CHECKING([NPTH API version])