<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I have been racking my brain over what is causing this problem, but so far, I haven't figured out what the core cause is. When I pass "--enable-rplcas" to configure in 4.1.29 the configure script fails with "configure: error: Can not find libm !" . If I change <a href="http://configure.ac">configure.ac</a> to use "AC_SEARCH_LIBS (exp, m , , AC_MSG_ERROR([Can not find libm !]))" and I comment out the AC_CHECK_LIB line, then the configure script finds libm, but, later in the configure script, when the configure scripts for some of the tools are being executed, I get the same error. After  examining the autotools scripts, it seems that there is an error in the call to AC_CHECK_LIB for libm as main is not an exported function of libm, but, substituting something like "exp" still doesn't clear up the problem. Just to make sure that my system configuration wasn't the cause, I made a tiny test <a href="http://configure.ac">configure.ac</a> and ran autoconf :</div><div dir="ltr"><br></div><div dir="ltr">"<br></div><div dir="ltr">checking for gcc... gcc<br>checking whether the C compiler works... yes<br>checking for C compiler default output file name... a.out<br>checking for suffix of executables... <br>checking whether we are cross compiling... no<br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether gcc accepts -g... yes<br>checking for gcc option to accept ISO C89... none needed<br>checking for exp  in -lm... yes<br>configure: creating ./config.status<br></div><div dir="ltr">"</div><div dir="ltr"><br></div><div>The test <a href="http://configure.ac">configure.ac</a> is just :</div><div><br></div><div>"</div><div>AC_INIT([test],[0.01])<br>AC_CHECK_LIB(m, exp , , AC_MSG_ERROR([Can not find libm !]))<br>AC_OUTPUT<br>"</div><div><br></div><div>As you can see it finds libm, but, if I tell it to look for main in libm, it fails.</div><div><br></div><div>Do you know what the problem might be?</div><div><br></div><div>Thanks,</div><div><br></div><div>Jonathan<br></div></div></div></div></div>