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

Diff of /libgig/trunk/configure.in

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

revision 518 by schoenebeck, Sun May 8 16:19:34 2005 UTC revision 546 by schoenebeck, Mon May 16 18:19:27 2005 UTC
# Line 1  Line 1 
1  AC_INIT(configure.in)  AC_INIT(configure.in)
 AM_CONFIG_HEADER(config.h)  
   
 AM_INIT_AUTOMAKE(libgig, 1.0.0, 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  LIBGIG_CURRENT=1  LIBGIG_CURRENT=2
20  LIBGIG_REVISION=0  LIBGIG_REVISION=0
21  LIBGIG_AGE=0  LIBGIG_AGE=0
22  SHARED_VERSION_INFO="$LIBGIG_CURRENT:$LIBGIG_REVISION:$LIBGIG_AGE"  SHARED_VERSION_INFO="$LIBGIG_CURRENT:$LIBGIG_REVISION:$LIBGIG_AGE"
# Line 46  AC_SUBST(SNDFILE_CFLAGS) Line 41  AC_SUBST(SNDFILE_CFLAGS)
41  AC_SUBST(SNDFILE_LIBS)  AC_SUBST(SNDFILE_LIBS)
42  if test "$ac_cv_sndfile" = "1"; then  if test "$ac_cv_sndfile" = "1"; then
43      have_audio_file_lib="true";      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  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  
   
54  if test "$have_audio_file_lib" = "false"; then  if test "$have_audio_file_lib" = "false"; then
55      echo "No audio file library found!"      echo "No audio file library found!"
56      echo "Sorry, you need either libsndfile or libaudiofile to compile libgig."      echo "Sorry, you need either libsndfile or libaudiofile to compile libgig."
# Line 64  if test "$have_audio_file_lib" = "false" Line 58  if test "$have_audio_file_lib" = "false"
58      exit -1;      exit -1;
59  fi  fi
60    
61    AM_CONFIG_HEADER(config.h)
62  AM_INIT_AUTOMAKE(libgig, "$LIBGIG_CURRENT.$LIBGIG_REVISION.$LIBGIG_AGE")  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 man/dlsdump.1 man/gigdump.1 man/gigextract.1 man/rifftree.1)  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)

Legend:
Removed from v.518  
changed lines
  Added in v.546

  ViewVC Help
Powered by ViewVC