compat.m4 2.1 KB

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