build: Fix ntbtls.m4.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 24 Oct 2018 07:42:48 +0000 (16:42 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 24 Oct 2018 07:42:48 +0000 (16:42 +0900)
* src/ntbtls.m4: Use --modversion to get the version.

--

Fixes-commit: 06e6d62dcaf6ecd08e16cc692a4bb4bc6acc9307
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
src/ntbtls.m4

index 4a551b6..a958dda 100644 (file)
@@ -66,7 +66,7 @@ AC_DEFUN([AM_PATH_NTBTLS],
                sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
     req_micro=`echo $min_ntbtls_version | \
                sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
-    ntbtls_config_version=`CC=$CC $NTBTLS_CONFIG --version`
+    ntbtls_config_version=`CC=$CC $NTBTLS_CONFIG --modversion`
     major=`echo $ntbtls_config_version | \
                sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
     minor=`echo $ntbtls_config_version | \