aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'nxcomp/configure.ac')
-rw-r--r--nxcomp/configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/nxcomp/configure.ac b/nxcomp/configure.ac
index da0832123..a1839c719 100644
--- a/nxcomp/configure.ac
+++ b/nxcomp/configure.ac
@@ -22,7 +22,7 @@ AC_PROG_LIBTOOL
COMP_VERSION=nxcomp_version
AC_SUBST([COMP_VERSION])
-LT_COMP_VERSION=[`echo $COMP_VERSION | sed -E -e 's/^([0-9]+\.[0-9]+\.[0-9]+).*$/\1/' -e 's/\./:/g'`]
+LT_COMP_VERSION=["$(printf '%s\n' "${COMP_VERSION}" | awk -F '.' '/^[0-9]+\.[0-9]+\.[0-9]+.*$/ { print $1 ":" $2 ":" $3; }')"]
AC_SUBST([LT_COMP_VERSION])
# Silence warning: ar: 'u' modifier ignored since 'D' is the default