1 |
schoenebeck |
2 |
AC_INIT(configure.in) |
2 |
capela |
168 |
AM_CONFIG_HEADER(config.h) |
3 |
|
|
|
4 |
schoenebeck |
315 |
AM_INIT_AUTOMAKE(libgig, 1.0.0, cuse@users.sourceforge.net) |
5 |
schoenebeck |
186 |
AC_PROG_LIBTOOL |
6 |
capela |
168 |
|
7 |
schoenebeck |
186 |
|
8 |
|
|
#------------------------------------------------------------------------------------ |
9 |
|
|
# Rules for library version information: |
10 |
|
|
# |
11 |
|
|
# 1. Start with version information of `0:0:0' for each libtool library. |
12 |
|
|
# 2. Update the version information only immediately before a public release of |
13 |
|
|
# your software. More frequent updates are unnecessary, and only guarantee |
14 |
|
|
# that the current interface number gets larger faster. |
15 |
|
|
# 3. If the library source code has changed at all since the last update, then |
16 |
|
|
# increment revision (`c:r:a' becomes `c:r+1:a'). |
17 |
|
|
# 4. If any interfaces have been added, removed, or changed since the last update, |
18 |
|
|
# increment current, and set revision to 0. |
19 |
|
|
# 5. If any interfaces have been added since the last public release, then increment |
20 |
|
|
# age. |
21 |
|
|
# 6. If any interfaces have been removed since the last public release, then set age |
22 |
|
|
# to 0. |
23 |
|
|
|
24 |
schoenebeck |
315 |
SHARED_VERSION_INFO="1:0:0" |
25 |
schoenebeck |
186 |
|
26 |
|
|
|
27 |
schoenebeck |
11 |
AC_C_BIGENDIAN |
28 |
schoenebeck |
2 |
|
29 |
|
|
AC_LANG_CPLUSPLUS |
30 |
|
|
AC_PROG_CXX |
31 |
|
|
AM_PROG_LIBTOOL |
32 |
|
|
|
33 |
schoenebeck |
186 |
AC_SUBST(SHLIB_VERSION_ARG) |
34 |
|
|
AC_SUBST(SHARED_VERSION_INFO) |
35 |
|
|
|
36 |
schoenebeck |
383 |
have_audio_file_lib="false" |
37 |
|
|
|
38 |
persson |
496 |
# check for presence of libsndfile |
39 |
schoenebeck |
220 |
PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0) |
40 |
schoenebeck |
383 |
AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1") |
41 |
schoenebeck |
220 |
AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile}, [Set to 1 if you have libsndfile.]) |
42 |
|
|
AC_SUBST(SNDFILE_CFLAGS) |
43 |
|
|
AC_SUBST(SNDFILE_LIBS) |
44 |
schoenebeck |
383 |
if test "$ac_cv_sndfile" = "1"; then |
45 |
|
|
have_audio_file_lib="true"; |
46 |
|
|
fi |
47 |
schoenebeck |
220 |
|
48 |
persson |
496 |
# check for presence of libaudiofile |
49 |
schoenebeck |
383 |
PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0) |
50 |
|
|
AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.]) |
51 |
|
|
AC_SUBST(AUDIOFILE_CFLAGS) |
52 |
|
|
AC_SUBST(AUDIOFILE_LIBS) |
53 |
|
|
if test "$ac_cv_audiofile" = "1"; then |
54 |
|
|
have_audio_file_lib="true"; |
55 |
|
|
fi |
56 |
|
|
|
57 |
|
|
if test "$have_audio_file_lib" = "false"; then |
58 |
|
|
echo "No audio file library found!" |
59 |
|
|
echo "Sorry, you need either libsndfile or libaudiofile to compile libgig." |
60 |
|
|
echo "This is needed for the gigextract utility to write audio files." |
61 |
|
|
exit -1; |
62 |
|
|
fi |
63 |
|
|
|
64 |
schoenebeck |
196 |
AC_OUTPUT(Makefile doc/Makefile man/Makefile src/Makefile libgig.spec gig.pc Doxyfile) |