mhd_check_prog_path.m4 (865B)
1 # SPDX-License-Identifier: FSFAP 2 # 3 # SYNOPSIS 4 # 5 # MHD_CHECK_PROG_PATH([VAR],[FILENAME]) 6 # 7 # DESCRIPTION 8 # 9 # If VAR is NOT already set, check whether FILENAME is executable tool 10 # in the $PATH. On success set VAR to FILENAME. 11 # 12 # Example usage: 13 # 14 # MHD_CHECK_TOOL_PATH}([NM],["special-nm"]) 15 # 16 # LICENSE 17 # 18 # Copyright (c) 2026 Karlson2k (Evgeny Grin) <k2k@drgrin.dev> 19 # 20 # Copying and distribution of this file, with or without modification, are 21 # permitted in any medium without royalty provided the copyright notice 22 # and this notice are preserved. This file is offered as-is, without any 23 # warranty. 24 25 #serial 1 26 27 AC_DEFUN([MHD_CHECK_PROG_PATH],[dnl 28 m4_newline([[# Expansion of $0 macro starts here]]) 29 AS_VAR_SET_IF([$1],[], 30 [AC_CHECK_PROG([$1],[$2],[$2])] 31 ) 32 m4_newline([[# Expansion of $0 macro ends here]]) 33 ])dnl AC_DEFUN MHD_CHECK_TOOL_ABS