PageRenderTime 43ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/autotools/m4/ax_path_missing.m4

#
m4 | 42 lines | 7 code | 2 blank | 33 comment | 0 complexity | 73d0dde3288dd18aeb3b82e84c72646b MD5 | raw file
Possible License(s): GPL-2.0
  1. # ===========================================================================
  2. # http://www.gnu.org/software/autoconf-archive/ax_path_missing.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_PATH_MISSING(VARIABLE, PROG-TO-CHECK-FOR, WARNING-IF-NOT-FOUND, PATH)
  8. #
  9. # DESCRIPTION
  10. #
  11. # Check whether program PROG-TO-CHECK-FOR exists in path. If it is found,
  12. # set VARIABLE to the full path of PROG-TO-CHECK-FOR, otherwise warn using
  13. # the string WARNING-IF-NOT-FOUND and set VARIABLE to the full path of the
  14. # Automake missing script with PROG-TO-CHECK-FOR as the command to run.
  15. #
  16. # A typical use is the following:
  17. #
  18. # AX_PATH_MISSING([AUTOGEN],[autogen],[autogen seems missing ...])
  19. #
  20. # This macro is the combination of AC_PATH_PROG and AX_MISSING_PROG. If
  21. # you do not want to run AC_PATH_PROG, simply use AX_MISSING_PROG or
  22. # AM_MISSING.
  23. #
  24. # LICENSE
  25. #
  26. # Copyright (c) 2008 Noah Slater <nslater@bytesexual.org>
  27. # Copyright (c) 2008 Francesco Salvestrini <salvestrini@sourceforge.net>
  28. #
  29. # Copying and distribution of this file, with or without modification, are
  30. # permitted in any medium without royalty provided the copyright notice
  31. # and this notice are preserved. This file is offered as-is, without any
  32. # warranty.
  33. #serial 11
  34. AC_DEFUN([AX_PATH_MISSING], [
  35. AC_PATH_PROG([$1],[$2],[$4])
  36. AS_IF([ test -z "${$1}" ],[
  37. unset $1
  38. AX_MISSING_PROG([$1],[$2],[$3])
  39. ])
  40. ])