Imported Upstream version 0.2.4
[platform/upstream/remix.git] / doc / libremix / html / group__building.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <title>remix: Building against libremix</title>
6 <link href="tabs.css" rel="stylesheet" type="text/css"/>
7 <link href="doxygen.css" rel="stylesheet" type="text/css"/>
8 </head>
9 <body>
10 <!-- Generated by Doxygen 1.7.1 -->
11 <div class="navigation" id="top">
12   <div class="tabs">
13     <ul class="tablist">
14       <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
15       <li><a href="modules.html"><span>Modules</span></a></li>
16       <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
17       <li><a href="files.html"><span>Files</span></a></li>
18     </ul>
19   </div>
20 </div>
21 <div class="header">
22   <div class="headertitle">
23 <h1>Building against libremix</h1>  </div>
24 </div>
25 <div class="contents">
26 <table class="memberdecls">
27 </table>
28 <h2><a class="anchor" id="autoconf"></a>
29 Using GNU autoconf</h2>
30 <p>If you are using GNU autoconf, you do not need to call pkg-config directly. Use the following macro to determine if libremix is available:</p>
31 <pre>
32  PKG_CHECK_MODULES(REMIX, remix &gt;= 0.2.0,
33                    HAVE_REMIX="yes", HAVE_REMIX="no")
34  if test "x$HAVE_REMIX" = "xyes" ; then
35    AC_SUBST(REMIX_CFLAGS)
36    AC_SUBST(REMIX_LIBS)
37  fi
38  </pre><p>If libremix is found, HAVE_REMIX will be set to "yes", and the autoconf variables REMIX_CFLAGS and REMIX_LIBS will be set appropriately.</p>
39 <h2><a class="anchor" id="pkg-config"></a>
40 Determining compiler options with pkg-config</h2>
41 <p>If you are not using GNU autoconf in your project, you can use the pkg-config tool directly to determine the correct compiler options.</p>
42 <pre>
43  REMIX_CFLAGS=`pkg-config --cflags remix`</pre><pre> REMIX_LIBS=`pkg-config --libs remix`
44  </pre> </div>
45 <hr class="footer"/><address class="footer"><small>Generated on Tue Nov 8 2011 07:59:27 for remix by&nbsp;
46 <a href="http://www.doxygen.org/index.html">
47 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
48 </body>
49 </html>