/[svn]/libgig/trunk/configure.ac
ViewVC logotype

Diff of /libgig/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 220 by schoenebeck, Wed Aug 18 12:11:26 2004 UTC revision 644 by schoenebeck, Sun Jun 12 23:52:05 2005 UTC
# Line 1  Line 1 
1  AC_INIT(configure.in)  AC_INIT(configure.in)
 AM_CONFIG_HEADER(config.h)  
   
 AM_INIT_AUTOMAKE(libgig, 0.7.1, cuse@users.sourceforge.net)  
 AC_PROG_LIBTOOL  
   
2    
3  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
4  # Rules for library version information:  # Rules for library version information:
# Line 21  AC_PROG_LIBTOOL Line 16  AC_PROG_LIBTOOL
16  #  6. If any interfaces have been removed since the last public release, then set age  #  6. If any interfaces have been removed since the last public release, then set age
17  #     to 0.  #     to 0.
18    
19  # we wait to bump the version until the next point release  LIBGIG_CURRENT=3
20  SHARED_VERSION_INFO="0:0:0"  LIBGIG_REVISION=0
21    LIBGIG_AGE=1
22    SHARED_VERSION_INFO="$LIBGIG_CURRENT:$LIBGIG_REVISION:$LIBGIG_AGE"
23    
24    
25  AC_C_BIGENDIAN  AC_C_BIGENDIAN
# Line 34  AM_PROG_LIBTOOL Line 31  AM_PROG_LIBTOOL
31  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
32  AC_SUBST(SHARED_VERSION_INFO)  AC_SUBST(SHARED_VERSION_INFO)
33    
34  // check for presence of libsndfile  have_audio_file_lib="false"
35    
36    # check for presence of libsndfile
37  PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0)  PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0)
38    AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1")
39  AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile}, [Set to 1 if you have libsndfile.])  AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile}, [Set to 1 if you have libsndfile.])
40  AC_SUBST(SNDFILE_CFLAGS)  AC_SUBST(SNDFILE_CFLAGS)
41  AC_SUBST(SNDFILE_LIBS)  AC_SUBST(SNDFILE_LIBS)
42    if test "$ac_cv_sndfile" = "1"; then
43        have_audio_file_lib="true";
44    else
45        # no libsndfile? then check for presence of libaudiofile
46        PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0)
47        AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.])
48        AC_SUBST(AUDIOFILE_CFLAGS)
49        AC_SUBST(AUDIOFILE_LIBS)
50        if test "$ac_cv_audiofile" = "1"; then
51            have_audio_file_lib="true";
52        fi
53    fi
54    if test "$have_audio_file_lib" = "false"; then
55        echo "No audio file library found!"
56        echo "Sorry, you need either libsndfile or libaudiofile to compile libgig."
57        echo "This is needed for the gigextract utility to write audio files."
58        exit -1;
59    fi
60    
61    AM_CONFIG_HEADER(config.h)
62    AM_INIT_AUTOMAKE(libgig, "$LIBGIG_CURRENT.$LIBGIG_REVISION.$LIBGIG_AGE")
63    
64  AC_OUTPUT(Makefile doc/Makefile man/Makefile src/Makefile libgig.spec gig.pc Doxyfile)  AC_OUTPUT(Makefile doc/Makefile man/Makefile src/Makefile libgig.spec gig.pc Doxyfile man/dlsdump.1 man/gigdump.1 man/gigextract.1 man/rifftree.1 debian/Makefile)

Legend:
Removed from v.220  
changed lines
  Added in v.644

  ViewVC Help
Powered by ViewVC