]> git.ipfire.org Git - thirdparty/openvpn.git/blame - compat.m4
cleanup: Move init_random_seed() to where it is being used
[thirdparty/openvpn.git] / compat.m4
CommitLineData
51bd56f4
ABL
1dnl OpenVPN -- An application to securely tunnel IP networks
2dnl over a single UDP port, with support for SSL/TLS-based
3dnl session authentication and key exchange,
4dnl packet encryption, packet authentication, and
5dnl packet compression.
6dnl
7dnl Copyright (C) 2008-2012 Alon Bar-Lev <alon.barlev@gmail.com>
8dnl
9dnl This program is free software; you can redistribute it and/or modify
10dnl it under the terms of the GNU General Public License as published by
11dnl the Free Software Foundation; either version 2 of the License, or
12dnl (at your option) any later version.
13dnl
14dnl This program is distributed in the hope that it will be useful,
15dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
16dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17dnl GNU General Public License for more details.
18dnl
caa54ac3
DS
19dnl You should have received a copy of the GNU General Public License along
20dnl with this program; if not, write to the Free Software Foundation, Inc.,
21dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
51bd56f4
ABL
22
23dnl Compatibility layer for <autoconf-2.60 <automake-1.10
24dnl REMOVE THIS IN FUTURE!
25
26ifdef(
27 [AS_VAR_IF],
28 ,
29 [
30 AC_DEFUN([AS_VAR_IF], [dnl
31 if test "$$1" = "$2"; then
32 m4_ifval([$3], [$3], [:])
33 else
34 m4_ifval([$4], [$4], [:])
35 fi
36 ])
37 ]
38)
39ifdef(
40 [AC_USE_SYSTEM_EXTENSIONS],
41 ,
42 [AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], [GNU_SOURCE])]
43)
7046ff20
ABL
44ifdef(
45 [AC_PROG_SED],
46 ,
47 [AC_DEFUN([AC_PROG_SED], [AC_CHECK_PROGS([SED], [sed])])]
48)
51bd56f4
ABL
49ifdef(
50 [AC_TYPE_INT8_T],
51 ,
52 [
53 AC_CHECK_HEADERS([inttypes.h stdint.h])
54 test -z "${ac_cv_header_inttypes_h}${ac_cv_header_stdint_h}" && \
55 AC_MSG_ERROR([Required inttypes.h stdint.h not found])
56
57 AC_DEFUN([AC_TYPE_INT8_T], [])
58 AC_DEFUN([AC_TYPE_INT16_T], [])
59 AC_DEFUN([AC_TYPE_INT32_T], [])
60 AC_DEFUN([AC_TYPE_INT64_T], [])
61 AC_DEFUN([AC_TYPE_UINT8_T], [])
62 AC_DEFUN([AC_TYPE_UINT16_T], [])
63 AC_DEFUN([AC_TYPE_UINT32_T], [])
64 AC_DEFUN([AC_TYPE_UINT64_T], [])
65 ]
66)
67if test -z "${docdir}"; then
68 docdir="\$(datadir)/doc/\$(PACKAGE_NAME)"
69 AC_SUBST([docdir])
70fi
71if test -z "${htmldir}"; then
72 htmldir="\$(docdir)"
73 AC_SUBST([htmldir])
74fi