Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_need_awk.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_NEED_AWK
  8. #
  9. # DESCRIPTION
  10. #
  11. # Check if an awk implementation is available. Bail-out if not found.
  12. #
  13. # This work is heavily based upon testawk.sh script by Heiner Steven. You
  14. # should find his script (and related works) at
  15. # <http://www.shelldorado.com/articles/awkcompat.html>. Thanks to
  16. # Alessandro Massignan for his suggestions and extensive nawk tests on
  17. # FreeBSD.
  18. #
  19. # LICENSE
  20. #
  21. # Copyright (c) 2009 Francesco Salvestrini <salvestrini@users.sourceforge.net>
  22. #
  23. # Copying and distribution of this file, with or without modification, are
  24. # permitted in any medium without royalty provided the copyright notice
  25. # and this notice are preserved. This file is offered as-is, without any
  26. # warranty.
  27. #serial 9
  28. AC_DEFUN([AX_NEED_AWK],[
  29. AC_REQUIRE([AC_PROG_AWK])
  30. AS_IF([test "x$AWK" = "x"],[
  31. AC_MSG_ERROR([cannot find awk, bailing out])
  32. ])
  33. ])