AC_SUBST(VERSION)
AC_SUBST(LIBVERSION_MAJOR)
+AC_SUBST(LIBVERSION_MINOR)
+AC_SUBST(LIBVERSION_PATCHLEVEL)
AC_SUBST(LIBVERSION_INFO)
AC_SUBST(docdir)
AC_SUBST(fillupdir)
AC_OUTPUT(
Makefile
snapper/Makefile
+ snapper/Version.h:snapper/Version.h.in
examples/Makefile
examples/c/Makefile
examples/c++-lib/Makefile
--- /dev/null
+/*
+ * Copyright (c) 2013 Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, contact Novell, Inc.
+ *
+ * To contact Novell about this file by physical or electronic mail, you may
+ * find current contact information at www.novell.com.
+ */
+
+
+#ifndef SNAPPER_VERSION_H
+#define SNAPPER_VERSION_H
+
+
+#define LIBSNAPPER_MAJOR="@LIBVERSION_MAJOR@"
+#define LIBSNAPPER_MINOR="@LIBVERSION_MINOR@"
+#define LIBSNAPPER_PATCHLEVEL="@LIBVERSION_PATCHLEVEL@"
+
+#define LIBSNAPPER_VERSION ( LIBSNAPPER_MAJOR * 10000 + \\
+ LIBSNAPPER_MINOR * 100 + \\
+ LIBSNAPPER_PATCHLEVEL )
+
+
+#endif