--- libgig/trunk/configure.in 2005/06/12 23:52:05 644 +++ libgig/trunk/configure.in 2007/05/27 13:54:24 1209 @@ -1,7 +1,15 @@ AC_INIT(configure.in) #------------------------------------------------------------------------------------ -# Rules for library version information: +# Library's "official" release version: + +LIBGIG_RELEASE_MAJOR=3 +LIBGIG_RELEASE_MINOR=1 +LIBGIG_RELEASE_BUILD=1 + +#------------------------------------------------------------------------------------ +# The following is the libtool / shared library version. This doesn't have to +# do anything with the release version. It MUST conform to the following rules: # # 1. Start with version information of `0:0:0' for each libtool library. # 2. Update the version information only immediately before a public release of @@ -16,10 +24,10 @@ # 6. If any interfaces have been removed since the last public release, then set age # to 0. -LIBGIG_CURRENT=3 -LIBGIG_REVISION=0 -LIBGIG_AGE=1 -SHARED_VERSION_INFO="$LIBGIG_CURRENT:$LIBGIG_REVISION:$LIBGIG_AGE" +LIBGIG_LT_CURRENT=7 +LIBGIG_LT_REVISION=0 +LIBGIG_LT_AGE=1 +SHARED_VERSION_INFO="$LIBGIG_LT_CURRENT:$LIBGIG_LT_REVISION:$LIBGIG_LT_AGE" AC_C_BIGENDIAN @@ -30,6 +38,9 @@ AC_SUBST(SHLIB_VERSION_ARG) AC_SUBST(SHARED_VERSION_INFO) +AC_SUBST(LIBGIG_RELEASE_MAJOR) +AC_SUBST(LIBGIG_RELEASE_MINOR) +AC_SUBST(LIBGIG_RELEASE_BUILD) have_audio_file_lib="false" @@ -58,7 +69,36 @@ exit -1; fi +AC_CHECK_HEADERS(uuid/uuid.h) +AC_SEARCH_LIBS(uuid_generate, uuid) +AC_CHECK_FUNCS(uuid_generate CFUUIDCreate) + +if test "$ac_cv_func_uuid_generate" = no -a "$ac_cv_func_CFUUIDCreate" = no; then + AC_MSG_WARN([No UUID generate function found. +*** libgig will not be able to create DLSIDs in DLS and gig files. +*** Install libuuid from e2fsprogs to solve this. Package might be called +*** uuid-dev, libext2fs2-devel or e2fsprogs-devel.]) +fi + AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(libgig, "$LIBGIG_CURRENT.$LIBGIG_REVISION.$LIBGIG_AGE") +AM_INIT_AUTOMAKE(libgig, "$LIBGIG_RELEASE_MAJOR.$LIBGIG_RELEASE_MINOR.$LIBGIG_RELEASE_BUILD") -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) +AC_OUTPUT( \ + Doxyfile \ + gig.pc \ + libgig.spec \ + Makefile \ + src/Makefile \ + src/testcases/Makefile \ + doc/Makefile \ + man/Makefile \ + man/dlsdump.1 \ + man/gigdump.1 \ + man/gigextract.1 \ + man/rifftree.1 \ + debian/Makefile \ + osx/Makefile \ + osx/libgig.xcodeproj/Makefile \ + win32/Makefile \ + win32/libgig.dev \ +)