1 |
AC_INIT(configure.in) |
AC_INIT(configure.in) |
2 |
AM_CONFIG_HEADER(config.h) |
AM_CONFIG_HEADER(config.h) |
3 |
|
|
4 |
AM_INIT_AUTOMAKE(libgig, 0.7.1, cuse@users.sourceforge.net) |
AM_INIT_AUTOMAKE(libgig, 1.0.0, cuse@users.sourceforge.net) |
5 |
AC_PROG_LIBTOOL |
AC_PROG_LIBTOOL |
6 |
|
|
7 |
|
|
21 |
# 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 |
22 |
# to 0. |
# to 0. |
23 |
|
|
24 |
# we wait to bump the version until the next point release |
LIBGIG_CURRENT=1 |
25 |
SHARED_VERSION_INFO="0:0:0" |
LIBGIG_REVISION=0 |
26 |
|
LIBGIG_AGE=0 |
27 |
|
SHARED_VERSION_INFO="$LIBGIG_CURRENT:$LIBGIG_REVISION:$LIBGIG_AGE" |
28 |
|
|
29 |
|
|
30 |
AC_C_BIGENDIAN |
AC_C_BIGENDIAN |
36 |
AC_SUBST(SHLIB_VERSION_ARG) |
AC_SUBST(SHLIB_VERSION_ARG) |
37 |
AC_SUBST(SHARED_VERSION_INFO) |
AC_SUBST(SHARED_VERSION_INFO) |
38 |
|
|
39 |
// check for presence of libsndfile |
have_audio_file_lib="false" |
40 |
|
|
41 |
|
# check for presence of libsndfile |
42 |
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) |
43 |
|
AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1") |
44 |
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.]) |
45 |
AC_SUBST(SNDFILE_CFLAGS) |
AC_SUBST(SNDFILE_CFLAGS) |
46 |
AC_SUBST(SNDFILE_LIBS) |
AC_SUBST(SNDFILE_LIBS) |
47 |
|
if test "$ac_cv_sndfile" = "1"; then |
48 |
|
have_audio_file_lib="true"; |
49 |
|
fi |
50 |
|
|
51 |
|
# check for presence of libaudiofile |
52 |
|
PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0) |
53 |
|
AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.]) |
54 |
|
AC_SUBST(AUDIOFILE_CFLAGS) |
55 |
|
AC_SUBST(AUDIOFILE_LIBS) |
56 |
|
if test "$ac_cv_audiofile" = "1"; then |
57 |
|
have_audio_file_lib="true"; |
58 |
|
fi |
59 |
|
|
60 |
|
if test "$have_audio_file_lib" = "false"; then |
61 |
|
echo "No audio file library found!" |
62 |
|
echo "Sorry, you need either libsndfile or libaudiofile to compile libgig." |
63 |
|
echo "This is needed for the gigextract utility to write audio files." |
64 |
|
exit -1; |
65 |
|
fi |
66 |
|
|
67 |
|
AM_INIT_AUTOMAKE(libgig, "$LIBGIG_CURRENT.$LIBGIG_REVISION.$LIBGIG_AGE") |
68 |
|
|
69 |
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) |