Next: , Previous: , Up: The Macros  


ax_lib_id3

Synopsis

AX_LIB_ID3([ACTION-IF-TRUE], [ACTION-IF-FALSE])

Description

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.

Source Code

Download the latest version of ax_lib_id3.m4 or browse the macro’s revision history.

License

Copyright © 2009 Oskar Liljeblad oskar@osk.mine.nu

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.