author | Michael Krelin <hacker@klever.net> | 2007-10-01 13:41:33 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-10-01 13:41:33 (UTC) |
commit | c7be373560c95ed9d1214b17bed6215f49f844d6 (patch) (unidiff) | |
tree | 7bf0666a3207ed932cdd0e2c6d1875a745b89192 | |
parent | 29f2fd81e0f4e62c54371b90469d64ec5e47bd8a (diff) | |
download | sitecing-next.zip sitecing-next.tar.gz sitecing-next.tar.bz2 |
don't be smart about pkgconfig dirpublic/nextnext
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | acinclude.m4 | 45 | ||||
-rw-r--r-- | configure.ac | 3 |
3 files changed, 2 insertions, 51 deletions
diff --git a/Makefile.am b/Makefile.am index fb04e49..01b6df7 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -1,22 +1,19 @@ | |||
1 | SUBDIRS=include lib share src components | 1 | SUBDIRS=include lib share src components |
2 | EXTRA_DIST= NEWS NEWS.xml NEWS.xsl | 2 | EXTRA_DIST= NEWS NEWS.xml NEWS.xsl |
3 | 3 | ||
4 | DISTCHECK_CONFIGURE_FLAGS=--with-pkgconfigdir=$${dc_install_base}/lib/pkgconfig | 4 | pkgconfigdir=${libdir}/pkgconfig |
5 | if HAVE_PKGCONFIG | ||
6 | pkgconfigdir=@PKGCONFIG_DIR@ | ||
7 | pkgconfig_DATA=sitecing.pc | 5 | pkgconfig_DATA=sitecing.pc |
8 | endif | ||
9 | 6 | ||
10 | all-local: NEWS | 7 | all-local: NEWS |
11 | if HAVE_DOXYGEN | 8 | if HAVE_DOXYGEN |
12 | clean-local: | 9 | clean-local: |
13 | rm -rf doxydox | 10 | rm -rf doxydox |
14 | endif | 11 | endif |
15 | 12 | ||
16 | NEWS: NEWS.xsl NEWS.xml | 13 | NEWS: NEWS.xsl NEWS.xml |
17 | ${XSLTPROC} -o $@ NEWS.xsl NEWS.xml | 14 | ${XSLTPROC} -o $@ NEWS.xsl NEWS.xml |
18 | 15 | ||
19 | if HAVE_DOXYGEN | 16 | if HAVE_DOXYGEN |
20 | dox: | 17 | dox: |
21 | ${DOXYGEN} | 18 | ${DOXYGEN} |
22 | endif | 19 | endif |
diff --git a/acinclude.m4 b/acinclude.m4 index 14b6de7..e732535 100644 --- a/acinclude.m4 +++ b/acinclude.m4 | |||
@@ -1,93 +1,48 @@ | |||
1 | dnl AC_WITH_PKGCONFIG([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) | ||
2 | dnl Outputs: | ||
3 | dnl AC_SUBST: PKGCONFIG_PKGCONFIG PKGCONFIG_DIR | ||
4 | dnl AM_CONDTIONAL: HAVE_PKGCONFIG | ||
5 | AC_DEFUN([AC_WITH_PKGCONFIG],[ | ||
6 | PKGCONFIG_PKGCONFIG="" | ||
7 | PKGCONFIG_DIR="" | ||
8 | HAVE_PKGCONFIG="no" | ||
9 | EXPLICIT_PKGCONFIGDIR="no" | ||
10 | test -z "${WANT_PKGCONFIG}" && WANT_PKGCONFIG="" | ||
11 | AC_PATH_PROG([PKGCONFIG_PKGCONFIG],[pkg-config],[false]) | ||
12 | if test "${PKGCONFIG_PKGCONFIG}" != "false" ; then | ||
13 | AC_ARG_WITH([pkgconfigdir], | ||
14 | AC_HELP_STRING([--with-pkgconfigdir=dir],[Specify pkgconfig directory]), | ||
15 | [ | ||
16 | if test "${withval}" = "no" ; then | ||
17 | WANT_PKGCONFIG="no" | ||
18 | else | ||
19 | PKGCONFIG_DIR="${withval}" | ||
20 | EXPLICIT_PKGCONFIGDIR="yes" | ||
21 | fi | ||
22 | ],[ | ||
23 | AC_MSG_CHECKING([for pkgconfig directory]) | ||
24 | PKGCONFIG_DIR="`${PKGCONFIG_PKGCONFIG} --debug 2>&1 | grep '^Scanning'| head -n 1 | cut -d\' -f2-|cut -d\' -f1`" | ||
25 | AC_MSG_RESULT([${PKGCONFIG_DIR}]) | ||
26 | ] | ||
27 | ) | ||
28 | if test -d "${PKGCONFIG_DIR}" ; then | ||
29 | HAVE_PKGCONFIG=yes | ||
30 | AC_SUBST([PKGCONFIG_PKGCONFIG]) | ||
31 | AC_SUBST([PKGCONFIG_DIR]) | ||
32 | else | ||
33 | AC_MSG_NOTICE([unexistent pkgconfig directory: ${PKGCONFIG_DIR}]) | ||
34 | if test "${EXPLICIT_PKGCONFIGDIR}" = "yes" ; then | ||
35 | HAVE_PKGCONFIG=yes | ||
36 | AC_SUBST([PKGCONFIG_PKGCONFIG]) | ||
37 | AC_SUBST([PKGCONFIG_DIR]) | ||
38 | else | ||
39 | ifelse([$2], , :, [$2]) | ||
40 | fi | ||
41 | fi | ||
42 | fi | ||
43 | AM_CONDITIONAL([HAVE_PKGCONFIG],[test "${HAVE_PKGCONFIG}" = "yes"]) | ||
44 | ]) | ||
45 | |||
46 | dnl AC_WITH_DOXYGEN([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) | 1 | dnl AC_WITH_DOXYGEN([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) |
47 | dnl Outputs: | 2 | dnl Outputs: |
48 | dnl AC_SUBST: DOXYGEN HAVE_DOXYGEN | 3 | dnl AC_SUBST: DOXYGEN HAVE_DOXYGEN |
49 | dnl AM_CONDTIONAL: HAVE_DOXYGEN | 4 | dnl AM_CONDTIONAL: HAVE_DOXYGEN |
50 | AC_DEFUN([AC_WITH_DOXYGEN],[ | 5 | AC_DEFUN([AC_WITH_DOXYGEN],[ |
51 | HAVE_DOXYGEN="no" | 6 | HAVE_DOXYGEN="no" |
52 | AC_PATH_PROG([DOXYGEN],[doxygen],[false]) | 7 | AC_PATH_PROG([DOXYGEN],[doxygen],[false]) |
53 | if test "${DOXYGEN}" = "false" ; then | 8 | if test "${DOXYGEN}" = "false" ; then |
54 | ifelse([$2], , :, [$2]) | 9 | ifelse([$2], , :, [$2]) |
55 | else | 10 | else |
56 | HAVE_DOXYGEN="yes" | 11 | HAVE_DOXYGEN="yes" |
57 | AC_SUBST([DOXYGEN]) | 12 | AC_SUBST([DOXYGEN]) |
58 | $1 | 13 | $1 |
59 | fi | 14 | fi |
60 | AC_SUBST([HAVE_DOXYGEN]) | 15 | AC_SUBST([HAVE_DOXYGEN]) |
61 | AM_CONDITIONAL([HAVE_DOXYGEN],[test "${HAVE_DOXYGEN}" = "yes"]) | 16 | AM_CONDITIONAL([HAVE_DOXYGEN],[test "${HAVE_DOXYGEN}" = "yes"]) |
62 | ]) | 17 | ]) |
63 | 18 | ||
64 | dnl AC_WITH_DOT([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) | 19 | dnl AC_WITH_DOT([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) |
65 | dnl Outputs: | 20 | dnl Outputs: |
66 | dnl AC_SUBST: DOT HAVE_DOT | 21 | dnl AC_SUBST: DOT HAVE_DOT |
67 | dnl AM_CONDITIONAL: HAVE_DOT | 22 | dnl AM_CONDITIONAL: HAVE_DOT |
68 | AC_DEFUN([AC_WITH_DOT],[ | 23 | AC_DEFUN([AC_WITH_DOT],[ |
69 | HAVE_DOT="no" | 24 | HAVE_DOT="no" |
70 | AC_PATH_PROG([DOT],[dot],[false]) | 25 | AC_PATH_PROG([DOT],[dot],[false]) |
71 | if test "${DOT}" = "false" ; then | 26 | if test "${DOT}" = "false" ; then |
72 | ifelse([$2], , :, [$2]) | 27 | ifelse([$2], , :, [$2]) |
73 | else | 28 | else |
74 | HAVE_DOT="yes" | 29 | HAVE_DOT="yes" |
75 | AC_SUBST([DOT]) | 30 | AC_SUBST([DOT]) |
76 | $1 | 31 | $1 |
77 | fi | 32 | fi |
78 | AC_SUBST([HAVE_DOT]) | 33 | AC_SUBST([HAVE_DOT]) |
79 | AM_CONDITIONAL([HAVE_DOT],[test "${HAVE_DOT}" = "yes"]) | 34 | AM_CONDITIONAL([HAVE_DOT],[test "${HAVE_DOT}" = "yes"]) |
80 | ]) | 35 | ]) |
81 | 36 | ||
82 | dnl AC_WITH_PCRE([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) | 37 | dnl AC_WITH_PCRE([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) |
83 | dnl Outputs: | 38 | dnl Outputs: |
84 | dnl AC_SUBST: PCRE_CONFIG PCRE_PREFIX PCRE_EXEC_PREFIX | 39 | dnl AC_SUBST: PCRE_CONFIG PCRE_PREFIX PCRE_EXEC_PREFIX |
85 | dnl PCRE_VERSION PCRE_CFLAGS PCRE_LIBS | 40 | dnl PCRE_VERSION PCRE_CFLAGS PCRE_LIBS |
86 | dnl PCRE_LIBS_POSIX PCRE_CFLAGS_POSIX | 41 | dnl PCRE_LIBS_POSIX PCRE_CFLAGS_POSIX |
87 | dnl AM_CONDITIONAL: HAVE_PCRE | 42 | dnl AM_CONDITIONAL: HAVE_PCRE |
88 | dnl AC_DEFINE: HAVE_PCRE PCRE_VERSION | 43 | dnl AC_DEFINE: HAVE_PCRE PCRE_VERSION |
89 | AC_DEFUN([AC_WITH_PCRE],[ | 44 | AC_DEFUN([AC_WITH_PCRE],[ |
90 | HAVE_PCRE="no" | 45 | HAVE_PCRE="no" |
91 | PCRE_CONFIG="" | 46 | PCRE_CONFIG="" |
92 | PCRE_PREFIX="" | 47 | PCRE_PREFIX="" |
93 | PCRE_EXEC_PREFIX="" | 48 | PCRE_EXEC_PREFIX="" |
diff --git a/configure.ac b/configure.ac index bb1557a..a7741c5 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,70 +1,69 @@ | |||
1 | AC_INIT([sitecing], [0.0.2], [sitecing-bugs@klever.net]) | 1 | AC_INIT([sitecing], [0.0.2], [sitecing-bugs@klever.net]) |
2 | AC_CONFIG_SRCDIR([include/sitecing/sitecing_parser.h]) | 2 | AC_CONFIG_SRCDIR([include/sitecing/sitecing_parser.h]) |
3 | AC_CONFIG_HEADER([config.h]) | 3 | AC_CONFIG_HEADER([config.h]) |
4 | AM_INIT_AUTOMAKE([dist-bzip2]) | 4 | AM_INIT_AUTOMAKE([dist-bzip2]) |
5 | 5 | ||
6 | AC_PROG_INSTALL | 6 | AC_PROG_INSTALL |
7 | AC_PROG_AWK | 7 | AC_PROG_AWK |
8 | AC_PROG_CXX | 8 | AC_PROG_CXX |
9 | AC_PROG_CC | 9 | AC_PROG_CC |
10 | AM_PROG_LEX | 10 | AM_PROG_LEX |
11 | AC_PROG_LIBTOOL | 11 | AC_PROG_LIBTOOL |
12 | PKG_PROG_PKG_CONFIG | ||
12 | 13 | ||
13 | AC_HEADER_STDC | 14 | AC_HEADER_STDC |
14 | AC_CHECK_HEADERS([stdlib.h unistd.h]) | 15 | AC_CHECK_HEADERS([stdlib.h unistd.h]) |
15 | 16 | ||
16 | AC_C_CONST | 17 | AC_C_CONST |
17 | 18 | ||
18 | AC_FUNC_MALLOC | 19 | AC_FUNC_MALLOC |
19 | AC_FUNC_REALLOC | 20 | AC_FUNC_REALLOC |
20 | 21 | ||
21 | AC_WITH_PKGCONFIG | ||
22 | |||
23 | PKG_CHECK_MODULES([KONFORKA],[konforka >= 0.0.1],,[ | 22 | PKG_CHECK_MODULES([KONFORKA],[konforka >= 0.0.1],,[ |
24 | AC_MSG_ERROR([no proper version of konforka library found, get it at http://kin.klever.net/konforka/]) | 23 | AC_MSG_ERROR([no proper version of konforka library found, get it at http://kin.klever.net/konforka/]) |
25 | ]) | 24 | ]) |
26 | 25 | ||
27 | PKG_CHECK_MODULES([KINGATE],[kingate >= 0.0.1],,[ | 26 | PKG_CHECK_MODULES([KINGATE],[kingate >= 0.0.1],,[ |
28 | AC_MSG_ERROR([no kingate library found, get it at http://kin.klever.net/kingate/]) | 27 | AC_MSG_ERROR([no kingate library found, get it at http://kin.klever.net/kingate/]) |
29 | ]) | 28 | ]) |
30 | HAVE_FCGI=false | 29 | HAVE_FCGI=false |
31 | HAVE_PLAINCGI=false | 30 | HAVE_PLAINCGI=false |
32 | PKG_CHECK_MODULES([KINGATE_FCGI],[kingate-fcgi >= 0.0.1],[ | 31 | PKG_CHECK_MODULES([KINGATE_FCGI],[kingate-fcgi >= 0.0.1],[ |
33 | HAVE_FCGI=true | 32 | HAVE_FCGI=true |
34 | ],[ | 33 | ],[ |
35 | AC_MSG_NOTICE([no fastcgi support in kingate library]) | 34 | AC_MSG_NOTICE([no fastcgi support in kingate library]) |
36 | ]) | 35 | ]) |
37 | PKG_CHECK_MODULES([KINGATE_PLAINCGI],[kingate-plaincgi >= 0.0.1],[ | 36 | PKG_CHECK_MODULES([KINGATE_PLAINCGI],[kingate-plaincgi >= 0.0.1],[ |
38 | HAVE_PLAINCGI=true | 37 | HAVE_PLAINCGI=true |
39 | ],[ | 38 | ],[ |
40 | AC_MSG_NOTICE([no plaincgi support in kingate library]) | 39 | AC_MSG_NOTICE([no plaincgi support in kingate library]) |
41 | ]) | 40 | ]) |
42 | if ! (${HAVE_FCGI} || ${HAVE_PLAINCGI}) ; then | 41 | if ! (${HAVE_FCGI} || ${HAVE_PLAINCGI}) ; then |
43 | AC_MSG_ERROR([not a single CGI interface supported in kingate]) | 42 | AC_MSG_ERROR([not a single CGI interface supported in kingate]) |
44 | fi | 43 | fi |
45 | AM_CONDITIONAL([HAVE_FCGI],[${HAVE_FCGI}]) | 44 | AM_CONDITIONAL([HAVE_FCGI],[${HAVE_FCGI}]) |
46 | AM_CONDITIONAL([HAVE_PLAINCGI],[${HAVE_PLAINCGI}]) | 45 | AM_CONDITIONAL([HAVE_PLAINCGI],[${HAVE_PLAINCGI}]) |
47 | 46 | ||
48 | PKG_CHECK_MODULES([DOTCONF],[dotconf],,[ | 47 | PKG_CHECK_MODULES([DOTCONF],[dotconf],,[ |
49 | AC_MSG_ERROR([no dotconf library found]) | 48 | AC_MSG_ERROR([no dotconf library found]) |
50 | ]) | 49 | ]) |
51 | 50 | ||
52 | AC_WITH_PCRE([ | 51 | AC_WITH_PCRE([ |
53 | AC_WITH_PCREPP(,[ | 52 | AC_WITH_PCREPP(,[ |
54 | AC_MSG_ERROR([no pcre++ library found]) | 53 | AC_MSG_ERROR([no pcre++ library found]) |
55 | ]) | 54 | ]) |
56 | ],[ | 55 | ],[ |
57 | AC_MSG_ERROR([no pcre library found]) | 56 | AC_MSG_ERROR([no pcre library found]) |
58 | ]) | 57 | ]) |
59 | 58 | ||
60 | AC_CHECK_FUNC([dlopen],,[ | 59 | AC_CHECK_FUNC([dlopen],,[ |
61 | AC_CHECK_LIB([dl],[dlopen],,[ | 60 | AC_CHECK_LIB([dl],[dlopen],,[ |
62 | AC_MSG_ERROR([no dlopen library found]) | 61 | AC_MSG_ERROR([no dlopen library found]) |
63 | ]) | 62 | ]) |
64 | ]) | 63 | ]) |
65 | 64 | ||
66 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) | 65 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) |
67 | 66 | ||
68 | WANT_DOXYGEN="yes" | 67 | WANT_DOXYGEN="yes" |
69 | AC_ARG_ENABLE([doxygen], | 68 | AC_ARG_ENABLE([doxygen], |
70 | AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), | 69 | AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), |