<div dir="ltr"><div><div><div><div><br></div>Hi all<br><br>I am trying to build a custom recipe that heavily relies on autotools. Due to some hierarchy (one package building other), I am not able to call 'oe_runmake configure' and 'oe_runmake make' directly from the .bb file. Instead I manually cd into that directory and then issue ./configure followed by 'make'<br>
<br></div>It seems when I try that it is failing on - <br><br>| /ADT/opensource/poky/build/tmp/sysroots/x86_64-linux/usr/share/automake-1.12/am/<a href="http://ltlibrary.am">ltlibrary.am</a>: archiver requires 'AM_PROG_AR' in '<a href="http://configure.ac">configure.ac</a>'<br>
| <br>| autoreconf: automake failed with exit status: 1<br><br></div><div>If I try to update <a href="http://configure.ac">configure.ac</a> with - <br><br>+AC_CONFIG_MACRO_DIR([m4])<br>+AM_PROG_AR<br><br></div><div>then I hit this error -<br>
<br> aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...<br>| aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...<br>| aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...<br>| <a href="http://configure.ac:25">configure.ac:25</a>: the top level<br>
| <a href="http://configure.ac:19">configure.ac:19</a>: error: possibly undefined macro: AM_PROG_AR<br>| If this token and others are legitimate, please use m4_pattern_allow.<br><br></div><div>Yocto uses automake 1.12.6 so I know it supports AM_PROG_AR<br>
</div><div><br></div><div><br><br></div><div>However, if I separate out the package and build it separately with oe_runmake * it works correctly. It seems when I run manually, it is skipping some steps (such as running aclocal may be?) so the package runs into tool incompatibility issues.<br>
</div><br></div>Where can I find the script that runs oerunmake configure? Also what can be done to allow manually ./configure and make? Is there any place where I can see any guidelines about what care needs to be taken while using manual build options?<br>
<br>Thanks<br>Udayan<br></div>