1 |
schoenebeck |
2 |
AC_INIT(configure.in) |
2 |
capela |
168 |
|
3 |
schoenebeck |
186 |
#------------------------------------------------------------------------------------ |
4 |
schoenebeck |
646 |
# Library's "official" release version: |
5 |
|
|
|
6 |
schoenebeck |
854 |
LIBGIG_RELEASE_MAJOR=3 |
7 |
schoenebeck |
1416 |
LIBGIG_RELEASE_MINOR=2 |
8 |
schoenebeck |
1549 |
LIBGIG_RELEASE_BUILD=1 |
9 |
schoenebeck |
646 |
|
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 |
schoenebeck |
186 |
# |
14 |
|
|
# 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 |
16 |
|
|
# your software. More frequent updates are unnecessary, and only guarantee |
17 |
|
|
# that the current interface number gets larger faster. |
18 |
|
|
# 3. If the library source code has changed at all since the last update, then |
19 |
|
|
# increment revision (`c:r:a' becomes `c:r+1:a'). |
20 |
|
|
# 4. If any interfaces have been added, removed, or changed since the last update, |
21 |
|
|
# increment current, and set revision to 0. |
22 |
|
|
# 5. If any interfaces have been added since the last public release, then increment |
23 |
|
|
# age. |
24 |
|
|
# 6. If any interfaces have been removed since the last public release, then set age |
25 |
|
|
# to 0. |
26 |
|
|
|
27 |
schoenebeck |
1549 |
LIBGIG_LT_CURRENT=9 |
28 |
schoenebeck |
646 |
LIBGIG_LT_REVISION=0 |
29 |
schoenebeck |
1549 |
LIBGIG_LT_AGE=3 |
30 |
schoenebeck |
646 |
SHARED_VERSION_INFO="$LIBGIG_LT_CURRENT:$LIBGIG_LT_REVISION:$LIBGIG_LT_AGE" |
31 |
schoenebeck |
186 |
|
32 |
|
|
|
33 |
schoenebeck |
2 |
AC_LANG_CPLUSPLUS |
34 |
|
|
AC_PROG_CXX |
35 |
persson |
1894 |
AC_LIBTOOL_WIN32_DLL |
36 |
schoenebeck |
2 |
AM_PROG_LIBTOOL |
37 |
|
|
|
38 |
persson |
1417 |
AC_C_BIGENDIAN |
39 |
|
|
|
40 |
schoenebeck |
186 |
AC_SUBST(SHLIB_VERSION_ARG) |
41 |
|
|
AC_SUBST(SHARED_VERSION_INFO) |
42 |
schoenebeck |
1186 |
AC_SUBST(LIBGIG_RELEASE_MAJOR) |
43 |
|
|
AC_SUBST(LIBGIG_RELEASE_MINOR) |
44 |
|
|
AC_SUBST(LIBGIG_RELEASE_BUILD) |
45 |
schoenebeck |
186 |
|
46 |
schoenebeck |
383 |
have_audio_file_lib="false" |
47 |
|
|
|
48 |
persson |
496 |
# check for presence of libsndfile |
49 |
schoenebeck |
220 |
PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0) |
50 |
schoenebeck |
383 |
AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1") |
51 |
schoenebeck |
220 |
AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile}, [Set to 1 if you have libsndfile.]) |
52 |
|
|
AC_SUBST(SNDFILE_CFLAGS) |
53 |
|
|
AC_SUBST(SNDFILE_LIBS) |
54 |
schoenebeck |
383 |
if test "$ac_cv_sndfile" = "1"; then |
55 |
|
|
have_audio_file_lib="true"; |
56 |
schoenebeck |
546 |
else |
57 |
|
|
# no libsndfile? then check for presence of libaudiofile |
58 |
|
|
PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0) |
59 |
|
|
AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.]) |
60 |
|
|
AC_SUBST(AUDIOFILE_CFLAGS) |
61 |
|
|
AC_SUBST(AUDIOFILE_LIBS) |
62 |
|
|
if test "$ac_cv_audiofile" = "1"; then |
63 |
|
|
have_audio_file_lib="true"; |
64 |
|
|
fi |
65 |
schoenebeck |
383 |
fi |
66 |
|
|
if test "$have_audio_file_lib" = "false"; then |
67 |
|
|
echo "No audio file library found!" |
68 |
|
|
echo "Sorry, you need either libsndfile or libaudiofile to compile libgig." |
69 |
|
|
echo "This is needed for the gigextract utility to write audio files." |
70 |
|
|
exit -1; |
71 |
|
|
fi |
72 |
|
|
|
73 |
persson |
1209 |
AC_CHECK_HEADERS(uuid/uuid.h) |
74 |
|
|
AC_SEARCH_LIBS(uuid_generate, uuid) |
75 |
|
|
AC_CHECK_FUNCS(uuid_generate CFUUIDCreate) |
76 |
|
|
|
77 |
persson |
1330 |
case "$host" in |
78 |
|
|
*mingw*|*cygwin*) |
79 |
|
|
win32=yes |
80 |
|
|
;; |
81 |
|
|
*) |
82 |
|
|
win32=no |
83 |
|
|
;; |
84 |
|
|
esac |
85 |
|
|
AM_CONDITIONAL(WIN32, test "$win32" = "yes") |
86 |
|
|
|
87 |
|
|
if test "$ac_cv_func_uuid_generate" = no -a "$ac_cv_func_CFUUIDCreate" = no -a "$win32" = no; then |
88 |
persson |
1209 |
AC_MSG_WARN([No UUID generate function found. |
89 |
|
|
*** libgig will not be able to create DLSIDs in DLS and gig files. |
90 |
|
|
*** Install libuuid from e2fsprogs to solve this. Package might be called |
91 |
|
|
*** uuid-dev, libext2fs2-devel or e2fsprogs-devel.]) |
92 |
|
|
fi |
93 |
|
|
|
94 |
schoenebeck |
522 |
AM_CONFIG_HEADER(config.h) |
95 |
schoenebeck |
646 |
AM_INIT_AUTOMAKE(libgig, "$LIBGIG_RELEASE_MAJOR.$LIBGIG_RELEASE_MINOR.$LIBGIG_RELEASE_BUILD") |
96 |
schoenebeck |
518 |
|
97 |
schoenebeck |
1186 |
AC_OUTPUT( \ |
98 |
|
|
Doxyfile \ |
99 |
|
|
gig.pc \ |
100 |
|
|
libgig.spec \ |
101 |
|
|
Makefile \ |
102 |
|
|
src/Makefile \ |
103 |
|
|
src/testcases/Makefile \ |
104 |
|
|
doc/Makefile \ |
105 |
|
|
man/Makefile \ |
106 |
|
|
man/dlsdump.1 \ |
107 |
|
|
man/gigdump.1 \ |
108 |
|
|
man/gigextract.1 \ |
109 |
|
|
man/rifftree.1 \ |
110 |
|
|
debian/Makefile \ |
111 |
|
|
osx/Makefile \ |
112 |
|
|
osx/libgig.xcodeproj/Makefile \ |
113 |
|
|
win32/Makefile \ |
114 |
|
|
win32/libgig.dev \ |
115 |
|
|
) |