Autoconf check for program and fail if not found

后端 未结 6 1844
小鲜肉
小鲜肉 2021-02-19 03:52

I\'m creating a project and using GNU Autoconf tools to do the configuring and making. I\'ve set up all my library checking and header file checking but can\'t seem to figure ou

6条回答
  •  清酒与你
    2021-02-19 04:32

    Stumbled here while looking for this issue, I should note that if you want to have your program just looked in pathm a runtime test is enough:

    if ! which programname >/dev/null ; then
       AC_MSG_ERROR([Missing programname]
    fi
    

提交回复
热议问题