annotate lib/swig/swigwin-2.0.11/Tools/config/ax_compare_version.m4 @ 2164:f5e9ac04dd25

fixpoint_mul in ProcessPartyActions
author Ritor1
date Thu, 16 Jan 2014 00:08:27 +0600
parents b3009adc0e2f
children
rev   line source
1899
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1 # ===========================================================================
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
2 # http://www.gnu.org/software/autoconf-archive/ax_compare_version.html
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
3 # ===========================================================================
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
4 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
5 # SYNOPSIS
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
6 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
7 # AX_COMPARE_VERSION(VERSION_A, OP, VERSION_B, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
8 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
9 # DESCRIPTION
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
10 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
11 # This macro compares two version strings. Due to the various number of
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
12 # minor-version numbers that can exist, and the fact that string
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
13 # comparisons are not compatible with numeric comparisons, this is not
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
14 # necessarily trivial to do in a autoconf script. This macro makes doing
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
15 # these comparisons easy.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
16 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
17 # The six basic comparisons are available, as well as checking equality
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
18 # limited to a certain number of minor-version levels.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
19 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
20 # The operator OP determines what type of comparison to do, and can be one
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
21 # of:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
22 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
23 # eq - equal (test A == B)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
24 # ne - not equal (test A != B)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
25 # le - less than or equal (test A <= B)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
26 # ge - greater than or equal (test A >= B)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
27 # lt - less than (test A < B)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
28 # gt - greater than (test A > B)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
29 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
30 # Additionally, the eq and ne operator can have a number after it to limit
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
31 # the test to that number of minor versions.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
32 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
33 # eq0 - equal up to the length of the shorter version
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
34 # ne0 - not equal up to the length of the shorter version
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
35 # eqN - equal up to N sub-version levels
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
36 # neN - not equal up to N sub-version levels
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
37 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
38 # When the condition is true, shell commands ACTION-IF-TRUE are run,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
39 # otherwise shell commands ACTION-IF-FALSE are run. The environment
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
40 # variable 'ax_compare_version' is always set to either 'true' or 'false'
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
41 # as well.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
42 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
43 # Examples:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
44 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
45 # AX_COMPARE_VERSION([3.15.7],[lt],[3.15.8])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
46 # AX_COMPARE_VERSION([3.15],[lt],[3.15.8])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
47 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
48 # would both be true.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
49 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
50 # AX_COMPARE_VERSION([3.15.7],[eq],[3.15.8])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
51 # AX_COMPARE_VERSION([3.15],[gt],[3.15.8])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
52 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
53 # would both be false.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
54 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
55 # AX_COMPARE_VERSION([3.15.7],[eq2],[3.15.8])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
56 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
57 # would be true because it is only comparing two minor versions.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
58 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
59 # AX_COMPARE_VERSION([3.15.7],[eq0],[3.15])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
60 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
61 # would be true because it is only comparing the lesser number of minor
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
62 # versions of the two values.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
63 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
64 # Note: The characters that separate the version numbers do not matter. An
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
65 # empty string is the same as version 0. OP is evaluated by autoconf, not
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
66 # configure, so must be a string, not a variable.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
67 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
68 # The author would like to acknowledge Guido Draheim whose advice about
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
69 # the m4_case and m4_ifvaln functions make this macro only include the
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
70 # portions necessary to perform the specific comparison specified by the
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
71 # OP argument in the final configure script.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
72 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
73 # LICENSE
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
74 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
75 # Copyright (c) 2008 Tim Toolan <toolan@ele.uri.edu>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
76 #
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
77 # Copying and distribution of this file, with or without modification, are
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
78 # permitted in any medium without royalty provided the copyright notice
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
79 # and this notice are preserved. This file is offered as-is, without any
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
80 # warranty.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
81
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
82 #serial 11
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
83
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
84 dnl #########################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
85 AC_DEFUN([AX_COMPARE_VERSION], [
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
86 AC_REQUIRE([AC_PROG_AWK])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
87
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
88 # Used to indicate true or false condition
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
89 ax_compare_version=false
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
90
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
91 # Convert the two version strings to be compared into a format that
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
92 # allows a simple string comparison. The end result is that a version
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
93 # string of the form 1.12.5-r617 will be converted to the form
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
94 # 0001001200050617. In other words, each number is zero padded to four
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
95 # digits, and non digits are removed.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
96 AS_VAR_PUSHDEF([A],[ax_compare_version_A])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
97 A=`echo "$1" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
98 -e 's/Z\([[0-9]]\)Z/Z0\1Z/g' \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
99 -e 's/Z\([[0-9]][[0-9]]\)Z/Z0\1Z/g' \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
100 -e 's/Z\([[0-9]][[0-9]][[0-9]]\)Z/Z0\1Z/g' \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
101 -e 's/[[^0-9]]//g'`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
102
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
103 AS_VAR_PUSHDEF([B],[ax_compare_version_B])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
104 B=`echo "$3" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
105 -e 's/Z\([[0-9]]\)Z/Z0\1Z/g' \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
106 -e 's/Z\([[0-9]][[0-9]]\)Z/Z0\1Z/g' \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
107 -e 's/Z\([[0-9]][[0-9]][[0-9]]\)Z/Z0\1Z/g' \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
108 -e 's/[[^0-9]]//g'`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
109
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
110 dnl # In the case of le, ge, lt, and gt, the strings are sorted as necessary
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
111 dnl # then the first line is used to determine if the condition is true.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
112 dnl # The sed right after the echo is to remove any indented white space.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
113 m4_case(m4_tolower($2),
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
114 [lt],[
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
115 ax_compare_version=`echo "x$A
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
116 x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/false/;s/x${B}/true/;1q"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
117 ],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
118 [gt],[
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
119 ax_compare_version=`echo "x$A
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
120 x$B" | sed 's/^ *//' | sort | sed "s/x${A}/false/;s/x${B}/true/;1q"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
121 ],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
122 [le],[
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
123 ax_compare_version=`echo "x$A
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
124 x$B" | sed 's/^ *//' | sort | sed "s/x${A}/true/;s/x${B}/false/;1q"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
125 ],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
126 [ge],[
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
127 ax_compare_version=`echo "x$A
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
128 x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/true/;s/x${B}/false/;1q"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
129 ],[
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
130 dnl Split the operator from the subversion count if present.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
131 m4_bmatch(m4_substr($2,2),
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
132 [0],[
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
133 # A count of zero means use the length of the shorter version.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
134 # Determine the number of characters in A and B.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
135 ax_compare_version_len_A=`echo "$A" | $AWK '{print(length)}'`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
136 ax_compare_version_len_B=`echo "$B" | $AWK '{print(length)}'`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
137
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
138 # Set A to no more than B's length and B to no more than A's length.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
139 A=`echo "$A" | sed "s/\(.\{$ax_compare_version_len_B\}\).*/\1/"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
140 B=`echo "$B" | sed "s/\(.\{$ax_compare_version_len_A\}\).*/\1/"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
141 ],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
142 [[0-9]+],[
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
143 # A count greater than zero means use only that many subversions
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
144 A=`echo "$A" | sed "s/\(\([[0-9]]\{4\}\)\{m4_substr($2,2)\}\).*/\1/"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
145 B=`echo "$B" | sed "s/\(\([[0-9]]\{4\}\)\{m4_substr($2,2)\}\).*/\1/"`
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
146 ],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
147 [.+],[
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
148 AC_WARNING(
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
149 [illegal OP numeric parameter: $2])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
150 ],[])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
151
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
152 # Pad zeros at end of numbers to make same length.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
153 ax_compare_version_tmp_A="$A`echo $B | sed 's/./0/g'`"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
154 B="$B`echo $A | sed 's/./0/g'`"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
155 A="$ax_compare_version_tmp_A"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
156
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
157 # Check for equality or inequality as necessary.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
158 m4_case(m4_tolower(m4_substr($2,0,2)),
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
159 [eq],[
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
160 test "x$A" = "x$B" && ax_compare_version=true
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
161 ],
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
162 [ne],[
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
163 test "x$A" != "x$B" && ax_compare_version=true
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
164 ],[
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
165 AC_WARNING([illegal OP parameter: $2])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
166 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
167 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
168
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
169 AS_VAR_POPDEF([A])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
170 AS_VAR_POPDEF([B])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
171
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
172 dnl # Execute ACTION-IF-TRUE / ACTION-IF-FALSE.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
173 if test "$ax_compare_version" = "true" ; then
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
174 m4_ifvaln([$4],[$4],[:])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
175 m4_ifvaln([$5],[else $5])dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
176 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
177 ]) dnl AX_COMPARE_VERSION