Updated configure to work with gtk-doc versions > 9.
authorbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Thu, 21 Nov 2002 15:33:48 +0000 (15:33 +0000)
committerbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Thu, 21 Nov 2002 15:33:48 +0000 (15:33 +0000)
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@367 e2bd861d-eb25-0410-b326-f6ed22b6b98c

configure.in

index c3e0b58..6bff4cd 100644 (file)
@@ -57,8 +57,16 @@ if $GTKDOC ; then
     gtk_doc_version=`gtkdoc-mkdb --version`
     AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version])
     if perl <<EOF ; then
-       exit (("$gtk_doc_version" =~ /^[[0-9]]+\.[[0-9]]+$/) &&
-            ("$gtk_doc_version" >= "$gtk_doc_min_version") ? 0 : 1);
+my @installed = split /\./, "$gtk_doc_version";
+my @required = split /\./, "$gtk_doc_min_version";
+
+while (scalar @required) {
+    my \$installed_ver = (shift @installed || 0);
+    my \$required_ver = shift @required;
+    exit 1 if (\$installed_ver < \$required_ver);
+    exit 0 if (\$installed_ver > \$required_ver);
+}
+exit 0;
 EOF
       AC_MSG_RESULT(yes)
    else