gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r38033 - libmicrohttpd


From: gnunet
Subject: [GNUnet-SVN] r38033 - libmicrohttpd
Date: Tue, 27 Sep 2016 16:34:01 +0200

Author: Karlson2k
Date: 2016-09-27 16:34:01 +0200 (Tue, 27 Sep 2016)
New Revision: 38033

Modified:
   libmicrohttpd/configure.ac
Log:
configure.ac: improve shell compatibility, generate package version components 
at autoconf time

Modified: libmicrohttpd/configure.ac
===================================================================
--- libmicrohttpd/configure.ac  2016-09-27 14:33:58 UTC (rev 38032)
+++ libmicrohttpd/configure.ac  2016-09-27 14:34:01 UTC (rev 38033)
@@ -73,9 +73,9 @@
 LT_INIT([win32-dll])
 LT_LANG([Windows Resource])
 
-PACKAGE_VERSION_MAJOR=${PACKAGE_VERSION%.*.*}
-PACKAGE_VERSION_MINOR=${PACKAGE_VERSION%.*}; 
PACKAGE_VERSION_MINOR=${PACKAGE_VERSION_MINOR#*.}
-PACKAGE_VERSION_SUBMINOR=${PACKAGE_VERSION#*.*.}
+PACKAGE_VERSION_MAJOR='m4_car(m4_unquote(m4_split(AC_PACKAGE_VERSION, [\.])))'
+PACKAGE_VERSION_MINOR='m4_argn(2, m4_unquote(m4_split(AC_PACKAGE_VERSION, 
[\.])))'
+PACKAGE_VERSION_SUBMINOR='m4_argn(3, m4_unquote(m4_split(AC_PACKAGE_VERSION, 
[\.])))'
 AC_SUBST([PACKAGE_VERSION_MAJOR])
 AC_SUBST([PACKAGE_VERSION_MINOR])
 AC_SUBST([PACKAGE_VERSION_SUBMINOR])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]