/[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 522 by schoenebeck, Sun May 8 23:37:47 2005 UTC revision 1186 by schoenebeck, Sun May 13 19:03:34 2007 UTC
# Line 1  Line 1 
1  AC_INIT(configure.in)  AC_INIT(configure.in)
2    
3  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
4  # Rules for library version information:  # Library's "official" release version:
5    
6    LIBGIG_RELEASE_MAJOR=3
7    LIBGIG_RELEASE_MINOR=1
8    LIBGIG_RELEASE_BUILD=1
9    
10    #------------------------------------------------------------------------------------
11    # The following is the libtool / shared library version. This doesn't have to
12    # do anything with the release version. It MUST conform to the following rules:
13  #  #
14  #  1. Start with version information of `0:0:0' for each libtool library.  #  1. Start with version information of `0:0:0' for each libtool library.
15  #  2. Update the version information only immediately before a public release of  #  2. Update the version information only immediately before a public release of
# Line 16  AC_INIT(configure.in) Line 24  AC_INIT(configure.in)
24  #  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
25  #     to 0.  #     to 0.
26    
27  LIBGIG_CURRENT=1  LIBGIG_LT_CURRENT=7
28  LIBGIG_REVISION=0  LIBGIG_LT_REVISION=0
29  LIBGIG_AGE=0  LIBGIG_LT_AGE=1
30  SHARED_VERSION_INFO="$LIBGIG_CURRENT:$LIBGIG_REVISION:$LIBGIG_AGE"  SHARED_VERSION_INFO="$LIBGIG_LT_CURRENT:$LIBGIG_LT_REVISION:$LIBGIG_LT_AGE"
31    
32    
33  AC_C_BIGENDIAN  AC_C_BIGENDIAN
# Line 30  AM_PROG_LIBTOOL Line 38  AM_PROG_LIBTOOL
38    
39  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
40  AC_SUBST(SHARED_VERSION_INFO)  AC_SUBST(SHARED_VERSION_INFO)
41    AC_SUBST(LIBGIG_RELEASE_MAJOR)
42    AC_SUBST(LIBGIG_RELEASE_MINOR)
43    AC_SUBST(LIBGIG_RELEASE_BUILD)
44    
45  have_audio_file_lib="false"  have_audio_file_lib="false"
46    
# Line 41  AC_SUBST(SNDFILE_CFLAGS) Line 52  AC_SUBST(SNDFILE_CFLAGS)
52  AC_SUBST(SNDFILE_LIBS)  AC_SUBST(SNDFILE_LIBS)
53  if test "$ac_cv_sndfile" = "1"; then  if test "$ac_cv_sndfile" = "1"; then
54      have_audio_file_lib="true";      have_audio_file_lib="true";
55    else
56        # no libsndfile? then check for presence of libaudiofile
57        PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0)
58        AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.])
59        AC_SUBST(AUDIOFILE_CFLAGS)
60        AC_SUBST(AUDIOFILE_LIBS)
61        if test "$ac_cv_audiofile" = "1"; then
62            have_audio_file_lib="true";
63        fi
64  fi  fi
   
 # check for presence of libaudiofile  
 PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0)  
 AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.])  
 AC_SUBST(AUDIOFILE_CFLAGS)  
 AC_SUBST(AUDIOFILE_LIBS)  
 if test "$ac_cv_audiofile" = "1"; then  
     have_audio_file_lib="true";  
 fi  
   
65  if test "$have_audio_file_lib" = "false"; then  if test "$have_audio_file_lib" = "false"; then
66      echo "No audio file library found!"      echo "No audio file library found!"
67      echo "Sorry, you need either libsndfile or libaudiofile to compile libgig."      echo "Sorry, you need either libsndfile or libaudiofile to compile libgig."
# Line 60  if test "$have_audio_file_lib" = "false" Line 70  if test "$have_audio_file_lib" = "false"
70  fi  fi
71    
72  AM_CONFIG_HEADER(config.h)  AM_CONFIG_HEADER(config.h)
73  AM_INIT_AUTOMAKE(libgig, "$LIBGIG_CURRENT.$LIBGIG_REVISION.$LIBGIG_AGE")  AM_INIT_AUTOMAKE(libgig, "$LIBGIG_RELEASE_MAJOR.$LIBGIG_RELEASE_MINOR.$LIBGIG_RELEASE_BUILD")
74    
75  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)  AC_OUTPUT( \
76        Doxyfile \
77        gig.pc \
78        libgig.spec \
79        Makefile \
80        src/Makefile \
81        src/testcases/Makefile \
82        doc/Makefile \
83        man/Makefile \
84        man/dlsdump.1 \
85        man/gigdump.1 \
86        man/gigextract.1 \
87        man/rifftree.1 \
88        debian/Makefile \
89        osx/Makefile \
90        osx/libgig.xcodeproj/Makefile \
91        win32/Makefile \
92        win32/libgig.dev \
93    )

Legend:
Removed from v.522  
changed lines
  Added in v.1186

  ViewVC Help
Powered by ViewVC