Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates > by-pkgid > e00b64b902be9cec16072aebc13bf07b > files > 42

libfishsound-doc-1.0.0-2.fc13.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libfishsound: Building against libfishsound</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2-20100208 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Building against libfishsound</h1><table border="0" cellpadding="0" cellspacing="0">
</table>
<h2><a class="anchor" id="autoconf">
Using GNU autoconf</a></h2>
<p>If you are using GNU autoconf, you do not need to call pkg-config directly. Use the following macro to determine if libfishsound is available:</p>
<pre>
 PKG_CHECK_MODULES(FISHSOUND, fishsound &gt;= 0.6.0,
                   HAVE_FISHSOUND="yes", HAVE_FISHSOUND="no")
 if test "x$HAVE_FISHSOUND" = "xyes" ; then
   AC_SUBST(FISHSOUND_CFLAGS)
   AC_SUBST(FISHSOUND_LIBS)
 fi
 </pre><p> (Note that if your application requires FLAC support, you should check for a version of fishsound &gt;= 0.9.0).</p>
<p>If libfishsound is found, HAVE_FISHSOUND will be set to "yes", and the autoconf variables FISHSOUND_CFLAGS and FISHSOUND_LIBS will be set appropriately.</p>
<h2><a class="anchor" id="pkg-config">
Determining compiler options with pkg-config</a></h2>
<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>
<pre>
 FISHSOUND_CFLAGS=`pkg-config --cflags fishsound`</pre><pre> FISHSOUND_LIBS=`pkg-config --libs fishsound`
 </pre> </div>
<hr class="footer"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address>
</body>
</html>