2004-05-21 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Fri, 21 May 2004 19:49:38 +0000 (19:49 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Fri, 21 May 2004 19:49:38 +0000 (19:49 +0000)
* configure.ac (GPGME_CONFIG_API_VERSION): New variable,
substitute it.

gpgme/
2004-05-21  Marcus Brinkmann  <marcus@g10code.de>

* gpgme-config.in (Options): Support --api-version.

trunk/ChangeLog
trunk/configure.ac
trunk/gpgme/ChangeLog
trunk/gpgme/gpgme-config.in

index 3478ec3b8e4c0070bb3b4c647883d92427bceed9..f351395e855aa6607b5086ce3d3b0420b5cdf4fd 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-21  Marcus Brinkmann  <marcus@g10code.de>
+
+       * configure.ac (GPGME_CONFIG_API_VERSION): New variable,
+       substitute it.
+
 2004-04-29  Marcus Brinkmann  <marcus@g10code.de>
 
        Released 0.4.7.
index 2f8872499d11be870b4cc49cb86a9878c2a5c15a..141e23056387f70ed2ec1c7f25c6632b5185f4f7 100644 (file)
@@ -36,6 +36,10 @@ LIBGPGME_LT_CURRENT=13
 # ABI break.  [Note to self: Remove this comment with the next regular break.]
 LIBGPGME_LT_AGE=2
 LIBGPGME_LT_REVISION=2
+
+# If the API is changed in an incompatible way: increment the next counter.
+GPGME_CONFIG_API_VERSION=1
+
 NEED_GPG_VERSION=1.2.2
 NEED_GPGSM_VERSION=1.9.6
 ##############################################
@@ -309,6 +313,7 @@ GNUPG_FIX_HDR_VERSION(gpgme/gpgme.h, GPGME_VERSION)
 # Substitution used for gpgme-config 
 GPGME_CONFIG_LIBS="-lgpgme"
 GPGME_CONFIG_CFLAGS=""
+AC_SUBST(GPGME_CONFIG_API_VERSION)
 AC_SUBST(GPGME_CONFIG_LIBS)
 AC_SUBST(GPGME_CONFIG_CFLAGS)
 
index 42aba9eec076aac2aa1db73ba4f1dc90fc77f49a..1aa370f707c4d0cb94c652134db215479ecb0f01 100644 (file)
@@ -1,5 +1,7 @@
 2004-05-21  Marcus Brinkmann  <marcus@g10code.de>
 
+       * gpgme-config.in (Options): Support --api-version.
+
        * libgpgme.vers: List all gpgme symbols under version GPGME_1.0.
 
        * decrypt.c (_gpgme_decrypt_status_handler): Fix last change.
index 28f14483ab8838e9b1e552f52f0a5c43ab063464..81e599d9b525960c79a9d0449e2229e4f58c11bd 100644 (file)
@@ -40,6 +40,7 @@ Options:
        [--prefix]
        [--exec-prefix]
        [--version]
+        [--api-version]
        [--libs]
        [--cflags]
 EOF
@@ -77,6 +78,10 @@ while test $# -gt 0; do
             echo "@VERSION@"
            exit 0
            ;;
+        --api-version)
+           echo "@GPGME_CONFIG_API_VERSION@"
+           exit 0
+           ;;
         --cflags)
            if test "x$includedir" != "x/usr/include" -a "x$includedir" != "x/include"; then
                output="$output -I$includedir"