]> git.proxmox.com Git - mirror_ovs.git/blob - m4/compat.at
Increase prerequisite from Python 2.4 to Python 2.7.
[mirror_ovs.git] / m4 / compat.at
1 # -*- autoconf -*-
2
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at:
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 m4_ifndef([AT_CHECK_UNQUOTED],
16 [m4_define([AT_CHECK_UNQUOTED],
17 [_AT_CHECK([$1], [$2], AS_ESCAPE(m4_dquote(m4_expand([$3])), [""]),
18 AS_ESCAPE(m4_dquote(m4_expand([$4])),[""]), [$5], [$6])])])
19
20 m4_ifndef([AT_SKIP_IF],
21 [m4_define([AT_SKIP_IF],
22 [AT_CHECK([($1) \
23 && exit 77 || exit 0], [0], [ignore], [ignore])])])
24
25 m4_ifndef([AT_FAIL_IF],
26 [m4_define([AT_FAIL_IF],
27 [AT_CHECK([($1) \
28 && exit 99 || exit 0], [0], [ignore], [ignore])])])
29
30 m4_ifndef([AS_VAR_COPY],
31 [m4_define([AS_VAR_COPY],
32 [AS_LITERAL_IF([$1[]$2], [$1=$$2], [eval $1=\$$2])])])