开发者

Is there a standard way of checking for a named executable with autoconf

开发者 https://www.devze.com 2023-02-14 02:09 出处:网络
I have a project using autoconf. On my build server it fails to build because the makefile refers to makeinfo, which is not currently installed on the build server, but the error is not caught until c

I have a project using autoconf. On my build server it fails to build because the makefile refers to makeinfo, which is not currently installed on the build server, but the error is not caught until compile time. I'd like to ensure that the problem is caught at configure time and gives a sensible error m开发者_如何学Goessage.

I can't find a standard macro that will check for the existence of an executable named 'makeinfo'. I could write my own, but I don't want to reinvent the wheel. Is there something generic that I'm missing? Or even a specific check for makeinfo?


How about AC_CHECK_PROG or AC_PATH_PROG?

http://www.gnu.org/software/autoconf/manual/html_node/Generic-Programs.html#Generic-Programs

0

精彩评论

暂无评论...
验证码 换一张
取 消