]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
build: add --with-special-build to provide special build string
authorAlon Bar-Lev <alon.barlev@gmail.com>
Sat, 5 May 2012 08:01:17 +0000 (11:01 +0300)
committerDavid Sommerseth <davids@redhat.com>
Wed, 13 Jun 2012 10:20:01 +0000 (12:20 +0200)
Special build string is printed when --version is specified.

Empty = no special build.

This is handy when building a snapshot or if not git repository.

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: David Sommerseth <davids@redhat.com>
Message-Id: 1336204877-3564-1-git-send-email-alon.barlev@gmail.com
URL: http://article.gmane.org/gmane.network.openvpn.devel/6435
Signed-off-by: David Sommerseth <davids@redhat.com>
configure.ac
src/openvpn/options.c

index a9ccb98e8b0404368172850cdf41f3a38894dd17..9511317152e9ccee8572d7165f438d9be848fb99 100644 (file)
@@ -228,6 +228,12 @@ AC_ARG_ENABLE(
        [enable_systemd="no"]
 )
 
+AC_ARG_WITH(
+       [special-build],
+       [AS_HELP_STRING([--with-special-build=STRING], [specify special build string])],
+       [test -n "${withval}" && AC_DEFINE_UNQUOTED([CONFIGURE_SPECIAL_BUILD], ["${withval}"], [special build string])]
+)
+
 AC_ARG_WITH(
        [mem-check],
        [AS_HELP_STRING([--with-mem-check=TYPE], [build with debug memory checking, TYPE=no|dmalloc|valgrind|ssl @<:@default=no@:>@])],
index 2b96957c1e229a24cb0dc1eda923a192c03a5c61..1cb60684be6cc8956ab01ecc5634a47942d5223b 100644 (file)
@@ -3464,6 +3464,9 @@ usage_version (void)
 #ifdef CONFIGURE_DEFINES
   msg (M_INFO|M_NOPREFIX, "Compile time defines: %s", CONFIGURE_DEFINES);
 #endif
+#ifdef CONFIGURE_SPECIAL_BUILD
+  msg (M_INFO|M_NOPREFIX, "special build: %s", CONFIGURE_SPECIAL_BUILD);
+#endif
 #ifdef CONFIGURE_GIT_REVISION
   msg (M_INFO|M_NOPREFIX, "git revision: %s", CONFIGURE_GIT_REVISION);
 #endif