Re: How to exit if program is not found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/14/2012 10:01 AM, Timothy Madden wrote:
> Hello
> 
> I see in the info pages that autoconf macros check for various programs
> and set a variable if found, but how do I get the behaviour I see in
> most configure programs to exit with an error if a program is not found ?

One possible way:

AC_PATH_PROG([PROG], [prog], [], [$PATH:/other/dir])
if test -z "$PROG"; then
  AC_MSG_ERROR([could not find 'prog'])
fi

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux