+videolink (1.2.9) unstable; urgency=low
+
+  * Add support for XULRunner 1.9.1, requiring a version match down to
+    the micro-version, i.e. you can either:
+    - Build and run using XULRunner 1.9, or
+    - Build and run using XULRunner 1.9.1
+
+ -- Ben Hutchings <ben@decadent.org.uk>  Tue, 06 Oct 2009 05:00:13 +0100
+
 videolink (1.2.8) unstable; urgency=low
 
   * Set the XULRunner version requirement to exclude 1.9.1 since it
 
 moz_version := $(shell pkg-config --modversion $(moz_pc))
 moz_version_major := $(word 1,$(subst ., ,$(moz_version)))
 moz_version_minor := $(word 2,$(subst ., ,$(moz_version)))
+moz_version_micro := $(word 3,$(subst ., ,$(moz_version)))
 
 CFLAGS := -ansi -Wall -Wunused -Wno-unused-parameter
 CPPFLAGS := -D_REENTRANT
 $(sources_using_moz_unstable:%.cpp=.objs/%.o)                          \
     : CPPFLAGS += $(moz_unstable_cppflags_extra)                       \
                   -DMOZ_VERSION_MAJOR=$(moz_version_major)             \
-                  -DMOZ_VERSION_MINOR=$(moz_version_minor)
+                  -DMOZ_VERSION_MINOR=$(moz_version_minor)             \
+                  -DMOZ_VERSION_MICRO=$(moz_version_micro)
 
 .objs/%.o : %.cpp .objs/.created
        $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -MD -MF .objs/$*.d -c $<
 
 {
 #if MOZ_VERSION_MAJOR == 1 && MOZ_VERSION_MINOR == 9
     static const GREVersionRange gre_versions = {
+#if MOZ_VERSION_MICRO == 0
        "1.9a", PR_TRUE,
        "1.9.1", PR_FALSE
+#elif MOZ_VERSION_MICRO == 1
+       "1.9.1", PR_TRUE,
+       "1.9.2", PR_FALSE
+#else
+#error "version is unsupported, but you could try continuing the pattern above"
+#endif
     };
     char path[PATH_MAX];
     check(GRE_GetGREPathWithProperties(&gre_versions, 1, 0, 0,