Invoke external script using Autotools

拥有回忆 提交于 2020-01-24 12:44:08

问题


I am using Autotools, and trying to get configure.ac and the resulting configure script to call an external build_library.sh script.

How can this be done?


回答1:


configure.ac is just a shell script with a "few" macros added on top of it. So, you can put any shell code in there:

$ac_top_srcdir/build_library.sh

(The $ac_top_srcdir makes sure that your script can be found even if you are running ./configure from another directory.)



来源:https://stackoverflow.com/questions/26757929/invoke-external-script-using-autotools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!