<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div>Hi Eliot.<br></div><div><br></div><div>I just realized that platforms/unix/plugins/UUIDPlugin/sqUnixUUID.c chechs in three places for uuid.h and the uuid generator executable (which has different names depending on system)</div><div><br></div><div></div><br><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);"><div><div>#include "config.h"<br><br>#if defined(HAVE_SYS_UUID_H) &nbsp; &nbsp;&nbsp;<br># include &lt;sys/types.h&gt;<br># include &lt;sys/uuid.h&gt;<br>#elif defined(HAVE_UUID_UUID_H)<br># include &lt;uuid/uuid.h&gt;<br>#elif defined(HAVE_UUID_H)<br># include &lt;uuid.h&gt;<br>#else<br># error cannot find a uuid.h to include<br>#endif<br></div></div></blockquote> <br><div>The .m4 file in my last email only checked two.</div><div><br></div><div>Here is a modified version that checks 3 to match the .c file. NOTE however that the executable name differs depending on where the uuid.h file is located. &lt;uuid/uuid.h&gt;-&gt;uuid_generator, &lt;uuid.h&gt;--&gt;uuidgen</div><div>I do not know (and could not determine, but I suspect its BSD) what the name of that program is when uuid.h is under the &lt;sys/uuid.h&gt;-&gt;???????</div><div><br></div><div><br></div><div id="1"><br><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);"><div>&nbsp;# -*- sh -*-<br><br>AC_MSG_CHECKING([for UUID support])<br>AC_TRY_COMPILE([#include &lt;sys/uuid.h&gt;],[uuid_generatorxyz;],[ &nbsp; &nbsp;&lt;----THE uuid_generator_xyz needs to be the renamed for whatever system uses this.<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_MSG_RESULT(yes)<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_CHECK_LIB(uuid, uuid_generator_xyz,LIB_UUID="-luuid" ) &nbsp; &nbsp; &lt;----THE uuid_generator_xyz needs to be the renamed for whatever system uses this.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],[<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_MSG_RESULT(no)<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; AC_MSG_CHECKING([for UUID support uuid/uuid.h] and uuid_generate)<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; AC_TRY_COMPILE([#include &lt;uuid/uuid.h&gt;],[uuid_generate;],[<br>    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_MSG_RESULT(yes)<br>    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_CHECK_LIB(uuid, u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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_CHECK_LIB(uuid, uuidgen, LIB_UUID="-luuid" )],[<br>       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;AC_MSG_RESULT(no)<br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; AC_PLUGIN_DISABLE<br>   ])<br> ])<br>])</div></blockquote><br>I used that .m4 in my oscogvm/platforms/unix/plugins/UUIDPlugin/ &nbsp; for the CMake build I am working on and it worked fine. as my system uses the &lt;uuid.h&gt;--&gt;uuidgen pair.</div><div><br></div><div>So I assume the file is correct syntax wise.</div><div><br></div><div>cheers.</div><div><br></div><div>tty</div><div><br></div></div></body></html>