Locates an installed program binary, placing the result in the precious variable VARIABLE. Accepts a present VARIABLE, then –with-program, and failing that searches for program in the given path (which defaults to the system path). If program is found, VARIABLE is set to the full path of the binary; if it is not found VARIABLE is set to VALUE-IF-NOT-FOUND if provided, unchanged otherwise.
A typical example could be the following one:
NOTE: This macro is based upon the original AX_WITH_PYTHON macro from Dustin J. Mitchell <firstname.lastname@example.org>.
Download the latest version of ax_with_prog.m4 or browse the macro’s revision history.
Copyright © 2008 Francesco Salvestrini email@example.com
Copyright © 2008 Dustin J. Mitchell firstname.lastname@example.org
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.