[libbluray-devel] Make version string optional

Petri Hintukainen git at videolan.org
Tue Jun 6 11:38:23 CEST 2017


libudfread | branch: master | Petri Hintukainen <phintuka at gmail.com> | Tue Jun  6 12:35:33 2017 +0300| [210ab72643e4bb06f67c0475918d925285e3245b] | committer: Petri Hintukainen

Make version string optional

> http://git.videolan.org/gitweb.cgi/libudfread.git/?a=commit;h=210ab72643e4bb06f67c0475918d925285e3245b
---

 configure.ac  | 2 ++
 src/udfread.c | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/configure.ac b/configure.ac
index 2248122..4db1e50 100644
--- a/configure.ac
+++ b/configure.ac
@@ -96,6 +96,8 @@ AC_SUBST(UDFREAD_VERSION_MINOR)
 UDFREAD_VERSION_MICRO=udfread_micro()
 AC_SUBST(UDFREAD_VERSION_MICRO)
 
+AC_DEFINE([HAVE_UDFREAD_VERSION_H], 1, ["Define to 1 if you have udfread-version.h header file."])
+
 dnl export library (.so) version
 UDFREAD_LTVERSION="lt_current():lt_revision():lt_age()"
 AC_SUBST(UDFREAD_LTVERSION)
diff --git a/src/udfread.c b/src/udfread.c
index 22b7031..150f39d 100644
--- a/src/udfread.c
+++ b/src/udfread.c
@@ -25,7 +25,10 @@
 
 #include "udfread.h"
 
+#ifdef HAVE_UDFREAD_VERSION_H
 #include "udfread-version.h"
+#endif
+
 #include "blockinput.h"
 #include "default_blockinput.h"
 #include "ecma167.h"
@@ -698,7 +701,10 @@ udfread *udfread_init(void)
         enable_log = 1;
     }
 
+#ifdef HAVE_UDFREAD_VERSION_H
     udf_log("libudfread " UDFREAD_VERSION_STRING "\n");
+#endif
+
     return (udfread *)calloc(1, sizeof(udfread));
 }
 



More information about the libbluray-devel mailing list