<div dir="ltr"><div><span style="font-size:13px">This is from the gnulib mailing list in reply to a similar question on how to use gnulib without autotools:</span></div><span style="font-size:13px"><div><span style="font-size:13px"><br></span></div><a href="https://lists.gnu.org/archive/html/bug-gnulib/2010-02/msg00248.html">https://lists.gnu.org/archive/html/bug-gnulib/2010-02/msg00248.html</a></span><br><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">"Gnulib depends heavily on autoconf and automake.</span></div><div><span style="font-size:13px">You could manually extract the portions you think you need</span></div><div><span style="font-size:13px">and attempt to use them without the requisite glue, but that is</span></div><div><span style="font-size:13px">very error-prone."</span></div><div><span style="font-size:13px"><br></span></div><div>:,(</div><div><span style="font-size:13px"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 9, 2018 at 12:50 PM Cosimo Lupo <<a href="mailto:cosimo@anthrotype.com">cosimo@anthrotype.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for your help, Alfred.<div><br><div>The problem is that very concept of "external dependency" seems to be at odds with the way gnulib is supposed to work.</div><div><br></div><div>And the docs are clear that "Gnulib assumes that your project uses Autoconf. When using Gnulib, you will need to have Autoconf among your build tools."</div><div><br></div><div><span style="font-size:13px"><a href="https://www.gnu.org/software/gnulib/manual/html_node//Initial-import.html#Initial-import" target="_blank">https://www.gnu.org/software/gnulib/manual/html_node//Initial-import.html#Initial-import</a></span><br></div><div><span style="font-size:13px"><br></span></div><div>Anyway, let's see if others have any more clues.</div><div><br></div><div>Cheers</div><div><br></div><div>Cosimo </div><div><span style="font-size:13px"><br></span></div><div><br></div></div></div><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 9, 2018 at 12:36 PM Alfred Sawaya <<a href="mailto:alfred@huji.fr" target="_blank">alfred@huji.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="background-color:rgb(255,255,255);background-image:initial;line-height:initial"><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905response_container_BBPPID" style="outline:none;font-size:initial;font-family:"Calibri","Slate Pro",sans-serif,"sans-serif"" dir="auto"> <div name="BB10" dir="auto" style="width:100%;padding:initial;font-size:initial;text-align:initial;background-color:rgb(255,255,255)"> Sorry, I did not got this hint.</div><div name="BB10" id="m_2480007664151716286m_-79938666427890095m_1792398030411477905BB10_response_div_BBPPID" dir="auto" style="width:100%;padding:initial;font-size:initial;text-align:initial;background-color:rgb(255,255,255)"><br></div><div name="BB10" id="m_2480007664151716286m_-79938666427890095m_1792398030411477905BB10_response_div_BBPPID" dir="auto" style="width:100%;padding:initial;font-size:initial;text-align:initial;background-color:rgb(255,255,255)">Well, you might<span style="font-family:Calibri,"Slate Pro",sans-serif,sans-serif;font-size:initial;text-align:initial"> still use gnulib as an external dependency (<a href="https://www.gnu.org/software/gnulib/manual/html_node/POSIX-Substitutes-Library.html#POSIX-Substitutes-Library" target="_blank">https://www.gnu.org/software/gnulib/manual/html_node/POSIX-Substitutes-Library.html#POSIX-Substitutes-Library</a>). Maybe be it worth considering a better separation if the build tool is different.</span></div><div name="BB10" id="m_2480007664151716286m_-79938666427890095m_1792398030411477905BB10_response_div_BBPPID" dir="auto" style="width:100%;padding:initial;font-size:initial;text-align:initial;background-color:rgb(255,255,255)"><span style="font-family:Calibri,"Slate Pro",sans-serif,sans-serif;font-size:initial;text-align:initial"><br></span></div><div name="BB10" id="m_2480007664151716286m_-79938666427890095m_1792398030411477905BB10_response_div_BBPPID" dir="auto" style="width:100%;padding:initial;font-size:initial;text-align:initial;background-color:rgb(255,255,255)">I need to read more about gnulib to give you a better answer. Maybe someone already has a clue on the list. </div><div name="BB10" id="m_2480007664151716286m_-79938666427890095m_1792398030411477905BB10_response_div_BBPPID" dir="auto" style="width:100%;padding:initial;font-size:initial;text-align:initial;background-color:rgb(255,255,255)"><br></div><div name="BB10" id="m_2480007664151716286m_-79938666427890095m_1792398030411477905BB10_response_div_BBPPID" dir="auto" style="width:100%;padding:initial;font-size:initial;text-align:initial;background-color:rgb(255,255,255)">Regards,</div>                                                                                                                                      <div name="BB10" dir="auto" style="width:100%;padding:initial;font-size:initial;text-align:initial;background-color:rgb(255,255,255)"> <br style="display:initial"></div>                            <div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905blackberry_signature_BBPPID" name="BB10" dir="auto">     <div name="BB10" dir="auto" style="padding:initial;font-size:initial;text-align:initial;background-color:rgb(255,255,255)">Cordialement,<br><br>Alfred Sawaya</div> </div></div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905_original_msg_header_BBPPID" dir="auto">                                                                                                                                             <table width="100%" style="background-color:white;border-spacing:0px;display:table;outline:none"><tbody><tr><td colspan="2" style="padding:initial;font-size:initial;text-align:initial;background-color:rgb(255,255,255)">                           <div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in;font-family:Tahoma,"BB Alpha Sans","Slate Pro";font-size:10pt">  <div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905from"><b>De:</b> <a href="mailto:cosimo@anthrotype.com" target="_blank">cosimo@anthrotype.com</a></div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905sent"><b>Envoyé:</b> 9 janvier 2018 1:17 PM</div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905to"><b>À:</b> <a href="mailto:alfred@huji.fr" target="_blank">alfred@huji.fr</a></div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905cc"><b>Cc:</b> <a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a></div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905subject"><b>Objet:</b> Re: [CMake] how to port to cmake a project using gnulib</div></div></td></tr></tbody></table> <br> </div></div><div style="background-color:rgb(255,255,255);background-image:initial;line-height:initial"><div name="BB10" dir="auto" style="background-image:initial;line-height:initial;outline:none"><div dir="ltr">Thanks.<div>However, that's not exactly what I was looking for. The gnulib, by design, is not an external library that you link with, but a collection of modules that are meant to be copied into one's project.</div><div>I would like to build ttfautohint with cmake (and ninja), not just adding ttfautohint as an external project built with autotools and GNU make.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 9, 2018 at 12:10 PM Alfred Sawaya <<a href="mailto:alfred@huji.fr" target="_blank">alfred@huji.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="background-color:rgb(255,255,255)"><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841response_container_BBPPID" dir="auto"> <div dir="auto" style="width:100%;background-color:rgb(255,255,255)"> Hello,</div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841BB10_response_div_BBPPID" dir="auto" style="width:100%;background-color:rgb(255,255,255)"><br></div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841BB10_response_div_BBPPID" dir="auto" style="width:100%;background-color:rgb(255,255,255)">I have some CMake projects that depend on autotools bases libs.</div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841BB10_response_div_BBPPID" dir="auto" style="width:100%;background-color:rgb(255,255,255)">I compile them as External project.</div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841BB10_response_div_BBPPID" dir="auto" style="width:100%;background-color:rgb(255,255,255)"><br></div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841BB10_response_div_BBPPID" dir="auto" style="width:100%;background-color:rgb(255,255,255)"><a href="https://cmake.org/cmake/help/latest/module/ExternalProject.html" target="_blank">https://cmake.org/cmake/help/latest/module/ExternalProject.html</a></div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841BB10_response_div_BBPPID" dir="auto" style="width:100%;background-color:rgb(255,255,255)"><br></div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841BB10_response_div_BBPPID" dir="auto" style="width:100%;background-color:rgb(255,255,255)">Regards</div>                                                                                                                                      <div dir="auto" style="width:100%;background-color:rgb(255,255,255)"> <br></div>                            <div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841blackberry_signature_BBPPID" dir="auto">     <div dir="auto" style="background-color:rgb(255,255,255)">Cordialement,<br><br>Alfred Sawaya</div> </div></div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841_original_msg_header_BBPPID" dir="auto">                                                                                                                                             <table width="100%" style="background-color:white;border-spacing:0px;display:table;outline:none"><tbody><tr><td colspan="2" style="background-color:rgb(255,255,255)">                           <div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in;font-family:'tahoma','bb alpha sans','slate pro';font-size:10pt">  <div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841from"><b>De:</b> <a href="mailto:cosimo@anthrotype.com" target="_blank">cosimo@anthrotype.com</a></div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841sent"><b>Envoyé:</b> 9 janvier 2018 1:01 PM</div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841to"><b>À:</b> <a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a></div><div id="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841subject"><b>Objet:</b> [CMake] how to port to cmake a project using gnulib</div></div></td></tr></tbody></table> <br> </div></div><div style="background-color:rgb(255,255,255)"><div dir="auto" style="outline:none"><div dir="ltr">Hello,<div><br></div><div>I'm new to Cmake.</div><div><br></div><div>I would like to port to cmake a project that is currently built with the Autotools and depends on gnulib, the GNU Portability Library: <a href="https://www.gnu.org/software/gnulib/" target="_blank">https://www.gnu.org/software/gnulib/</a></div><div><br></div><div>(The project in question is <a href="https://www.freetype.org/ttfautohint/" target="_blank">https://www.freetype.org/ttfautohint/</a>)</div><div><br></div><div>It appears that gnulib itself is very much tied with autoconf/automake/libtool.</div><div><br></div><div>In fact I couldn't find any examples of other CMake based projects that use gnulib.</div><div><br></div><div>Does anyone has any tips or examples on how I could proceed?</div><div><br></div><div>Thank you,</div><div><br></div><div>Cosimo Lupo</div></div><br clear="all"><br>-- <br><div dir="ltr" class="m_2480007664151716286m_-79938666427890095m_1792398030411477905m_5415204676328472841gmail_signature"><div dir="ltr">Cosimo Lupo</div></div>
</div></div></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="m_2480007664151716286m_-79938666427890095m_1792398030411477905gmail_signature"><div dir="ltr">Cosimo Lupo</div></div>
</div></div></blockquote></div></div><br clear="all"><br>-- <br><div dir="ltr" class="m_2480007664151716286gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Cosimo Lupo</div></div></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Cosimo Lupo</div></div>