author | Michael Krelin <hacker@klever.net> | 2013-01-29 18:28:58 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2013-02-02 12:42:52 (UTC) |
commit | 8cef826610f171b25a7a4aa3a764b1fb04c24d2f (patch) (unidiff) | |
tree | 0f4cd74156e998931955c9117fb263a37ba1f98c /configure.ac | |
parent | 7e4f9ebf4a76de3adafba6b32620d4610341897b (diff) | |
download | iii-8cef826610f171b25a7a4aa3a764b1fb04c24d2f.zip iii-8cef826610f171b25a7a4aa3a764b1fb04c24d2f.tar.gz iii-8cef826610f171b25a7a4aa3a764b1fb04c24d2f.tar.bz2 |
added persistent store for photo status
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1e0e42c..3b409fc 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,47 +1,50 @@ | |||
1 | AC_INIT([iii], [0.3], [iii-bugs@klever.net]) | 1 | AC_INIT([iii], [0.3], [iii-bugs@klever.net]) |
2 | AC_CONFIG_SRCDIR([src/iiid.cc]) | 2 | AC_CONFIG_SRCDIR([src/iiid.cc]) |
3 | AC_CONFIG_AUX_DIR([aux.d]) | 3 | AC_CONFIG_AUX_DIR([aux.d]) |
4 | AC_CONFIG_HEADERS([config.h]) | 4 | AC_CONFIG_HEADERS([config.h]) |
5 | AM_INIT_AUTOMAKE([dist-bzip2]) | 5 | AM_INIT_AUTOMAKE([dist-bzip2]) |
6 | 6 | ||
7 | AC_PROG_INSTALL | 7 | AC_PROG_INSTALL |
8 | AC_PROG_CXX | 8 | AC_PROG_CXX |
9 | AC_PROG_CC | 9 | AC_PROG_CC |
10 | PKG_PROG_PKG_CONFIG | 10 | PKG_PROG_PKG_CONFIG |
11 | 11 | ||
12 | AC_HEADER_STDC | 12 | AC_HEADER_STDC |
13 | 13 | ||
14 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) | 14 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) |
15 | 15 | ||
16 | PKG_CHECK_MODULES([MODULES],[gsoap++ libcrypto libconfuse]) | 16 | PKG_CHECK_MODULES([MODULES],[gsoap++ libcrypto libconfuse]) |
17 | PKG_CHECK_MODULES([UUID],[uuid],[have_uuid=true],[have_uuid=false]) | 17 | PKG_CHECK_MODULES([UUID],[uuid],[have_uuid=true],[have_uuid=false]) |
18 | AM_CONDITIONAL([HAVE_UUID],[$have_uuid]) | 18 | AM_CONDITIONAL([HAVE_UUID],[$have_uuid]) |
19 | if $have_uuid ; then | 19 | if $have_uuid ; then |
20 | AC_DEFINE([HAVE_LIBUUID],,[defined in presence of libuuid]) | 20 | AC_DEFINE([HAVE_LIBUUID],,[defined in presence of libuuid]) |
21 | AC_SUBST([UUID_UUID],[uuid]) | 21 | AC_SUBST([UUID_UUID],[uuid]) |
22 | fi | 22 | fi |
23 | 23 | ||
24 | PKG_CHECK_MODULES([SQLITE],[sqlite3],[have_sqlite=true],[have_sqlite=false]) | ||
25 | $have_sqlite && AC_DEFINE([HAVE_SQLITE],,[defined in presence of libsqlite3]) | ||
26 | |||
24 | AC_PATH_PROG([SOAPCPP2],[soapcpp2],[false]) | 27 | AC_PATH_PROG([SOAPCPP2],[soapcpp2],[false]) |
25 | test "$SOAPCPP2" = "false" && AC_MSG_ERROR([no soapcpp2 tool, part of gsoap package, found.]) | 28 | test "$SOAPCPP2" = "false" && AC_MSG_ERROR([no soapcpp2 tool, part of gsoap package, found.]) |
26 | 29 | ||
27 | notfound=false | 30 | notfound=false |
28 | AC_CHECK_HEADERS([archive.h],[ | 31 | AC_CHECK_HEADERS([archive.h],[ |
29 | AC_CHECK_LIB([archive],[archive_read_new],,[notfound=true]) | 32 | AC_CHECK_LIB([archive],[archive_read_new],,[notfound=true]) |
30 | ],[notfound=true]) | 33 | ],[notfound=true]) |
31 | $notfound && AC_MSG_ERROR([no required libarchive library found. get one from http://people.freebsd.org/~kientzle/libarchive/]) | 34 | $notfound && AC_MSG_ERROR([no required libarchive library found. get one from http://people.freebsd.org/~kientzle/libarchive/]) |
32 | 35 | ||
33 | notfound=false | 36 | notfound=false |
34 | AC_LANG_PUSH([C++]) | 37 | AC_LANG_PUSH([C++]) |
35 | AC_CHECK_HEADERS([autosprintf.h],[ | 38 | AC_CHECK_HEADERS([autosprintf.h],[ |
36 | AC_CHECK_LIB([asprintf],[main],,[notfound=true]) | 39 | AC_CHECK_LIB([asprintf],[main],,[notfound=true]) |
37 | ],[notfound=true]) | 40 | ],[notfound=true]) |
38 | $notfound && AC_MSG_ERROR([no autosprintf, part of gettext, found]) | 41 | $notfound && AC_MSG_ERROR([no autosprintf, part of gettext, found]) |
39 | AC_LANG_POP([C++]) | 42 | AC_LANG_POP([C++]) |
40 | 43 | ||
41 | nitpick=false | 44 | nitpick=false |
42 | AC_ARG_ENABLE([nitpicking], | 45 | AC_ARG_ENABLE([nitpicking], |
43 | AC_HELP_STRING([--enable-nitpicking],[make compiler somewhat overly fastidious about the code it deals with]), | 46 | AC_HELP_STRING([--enable-nitpicking],[make compiler somewhat overly fastidious about the code it deals with]), |
44 | [ test "$enableval" = "no" || nitpick=true ] | 47 | [ test "$enableval" = "no" || nitpick=true ] |
45 | ) | 48 | ) |
46 | if $nitpick ; then | 49 | if $nitpick ; then |
47 | CPP_NITPICK="-pedantic -Wall -Wextra -Wundef -Wshadow \ | 50 | CPP_NITPICK="-pedantic -Wall -Wextra -Wundef -Wshadow \ |