2003-10-11 Moritz Schulte <mo@g10code.com>
authorMoritz Schulte <mo@g10code.com>
Thu, 23 Oct 2003 14:59:19 +0000 (14:59 +0000)
committerMoritz Schulte <mo@g10code.com>
Thu, 23 Oct 2003 14:59:19 +0000 (14:59 +0000)
* acinclude.m4: Update AM_PATH_GPG_ERROR macro.

acinclude.m4

index 688e0a8..9ac79b9 100644 (file)
@@ -290,18 +290,20 @@ AC_DEFUN(AM_PATH_GPG_ERROR,
     req_minor=`echo $min_gpg_error_version | \
                sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
     gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
-    major=`echo $gpg_error_config_version | \
-               sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
-    minor=`echo $gpg_error_config_version | \
-               sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
-    if test "$major" -gt "$req_major"; then
-        ok=yes
-    else 
-        if test "$major" -eq "$req_major"; then
-            if test "$minor" -ge "$req_minor"; then
-               ok=yes
-            fi
-        fi
+    if test "$gpg_error_config_version"; then
+      major=`echo $gpg_error_config_version | \
+                 sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
+      minor=`echo $gpg_error_config_version | \
+                 sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
+      if test "$major" -gt "$req_major"; then
+          ok=yes
+      else 
+          if test "$major" -eq "$req_major"; then
+              if test "$minor" -ge "$req_minor"; then
+                 ok=yes
+              fi
+          fi
+      fi
     fi
   fi
   if test $ok = yes; then