Macros by Category | Revision History |
AC_LIB_ID3([ACTION-IF-TRUE], [ACTION-IF-FALSE])
This macro will check for the existence of id3lib (http://id3lib.sourceforge.net/). It does this by checking for the header file id3.h and the id3 library object file. A --with-id3lib option is supported as well. The following output variables are set with AC_SUBST:
ID3_CPPFLAGS ID3_LDFLAGS ID3_LIBS
You can use them like this in Makefile.am:
AM_CPPFLAGS = $(ID3_CPPFLAGS) AM_LDFLAGS = $(ID3_LDFLAGS) program_LDADD = $(ID3_LIBS)
Additionally, the C preprocessor symbol HAVE_ID3LIB will be defined with AC_DEFINE if id3lib is available.
http://autoconf-archive.cryp.to/ac_lib_id3.m4
Copyright © 2008 Oskar Liljeblad <oskar@osk.mine.nu>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.