1 |
iliev |
2008 |
AC_INIT(configure.in) |
2 |
|
|
|
3 |
|
|
#------------------------------------------------------------------------------------ |
4 |
|
|
# Library's "official" release version: |
5 |
|
|
|
6 |
|
|
LIBSF2_RELEASE_MAJOR=0 |
7 |
|
|
LIBSF2_RELEASE_MINOR=0 |
8 |
|
|
LIBSF2_RELEASE_BUILD=1 |
9 |
|
|
|
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 |
|
|
# |
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 |
|
|
LIBSF2_LT_CURRENT=0 |
28 |
|
|
LIBSF2_LT_REVISION=0 |
29 |
|
|
LIBSF2_LT_AGE=0 |
30 |
|
|
SHARED_VERSION_INFO="$LIBSF2_LT_CURRENT:$LIBSF2_LT_REVISION:$LIBSF2_LT_AGE" |
31 |
|
|
|
32 |
|
|
|
33 |
|
|
AC_LANG_CPLUSPLUS |
34 |
|
|
AC_PROG_CXX |
35 |
|
|
AC_LIBTOOL_WIN32_DLL |
36 |
|
|
AM_PROG_LIBTOOL |
37 |
|
|
|
38 |
|
|
AC_C_BIGENDIAN |
39 |
|
|
|
40 |
|
|
AC_SUBST(SHLIB_VERSION_ARG) |
41 |
|
|
AC_SUBST(SHARED_VERSION_INFO) |
42 |
|
|
AC_SUBST(LIBSF2_RELEASE_MAJOR) |
43 |
|
|
AC_SUBST(LIBSF2_RELEASE_MINOR) |
44 |
|
|
AC_SUBST(LIBSF2_RELEASE_BUILD) |
45 |
|
|
|
46 |
|
|
|
47 |
|
|
AC_CHECK_HEADERS(uuid/uuid.h) |
48 |
|
|
AC_SEARCH_LIBS(uuid_generate, uuid) |
49 |
|
|
AC_CHECK_FUNCS(uuid_generate CFUUIDCreate) |
50 |
|
|
|
51 |
|
|
case "$host" in |
52 |
|
|
*mingw*|*cygwin*) |
53 |
|
|
win32=yes |
54 |
|
|
;; |
55 |
|
|
*) |
56 |
|
|
win32=no |
57 |
|
|
;; |
58 |
|
|
esac |
59 |
|
|
AM_CONDITIONAL(WIN32, test "$win32" = "yes") |
60 |
|
|
|
61 |
|
|
if test "$ac_cv_func_uuid_generate" = no -a "$ac_cv_func_CFUUIDCreate" = no -a "$win32" = no; then |
62 |
|
|
AC_MSG_WARN([No UUID generate function found. |
63 |
|
|
*** libsf2 will not be able to create IDs in sf2 files. |
64 |
|
|
*** Install libuuid from e2fsprogs to solve this. Package might be called |
65 |
|
|
*** uuid-dev, libext2fs2-devel or e2fsprogs-devel.]) |
66 |
|
|
fi |
67 |
|
|
|
68 |
|
|
AM_CONFIG_HEADER(config.h) |
69 |
|
|
AM_INIT_AUTOMAKE(libsf2, "$LIBSF2_RELEASE_MAJOR.$LIBSF2_RELEASE_MINOR.$LIBSF2_RELEASE_BUILD") |
70 |
|
|
|
71 |
|
|
AC_OUTPUT( \ |
72 |
|
|
sf2.pc \ |
73 |
|
|
libsf2.spec \ |
74 |
|
|
Makefile \ |
75 |
|
|
src/Makefile \ |
76 |
|
|
) |