summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2007-10-01 08:15:49 (UTC)
committer Michael Krelin <hacker@klever.net>2007-10-01 08:15:49 (UTC)
commitf886bfcc7e91a54421c36456d40a8e4eb97e4b49 (patch) (unidiff)
treeb92499bf36d4d8042d3e82621a3c94a7e410e1f6
parenta2d909d2ecaaf80e6d0e063f37fa04ed6934c185 (diff)
downloadkonforka-f886bfcc7e91a54421c36456d40a8e4eb97e4b49.zip
konforka-f886bfcc7e91a54421c36456d40a8e4eb97e4b49.tar.gz
konforka-f886bfcc7e91a54421c36456d40a8e4eb97e4b49.tar.bz2
don't try to be smart about pkgconfig directory
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile.am5
-rw-r--r--acinclude.m445
-rw-r--r--configure.ac2
3 files changed, 2 insertions, 50 deletions
diff --git a/Makefile.am b/Makefile.am
index aab3c4b..4c706b7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,22 +1,19 @@
1SUBDIRS=include lib 1SUBDIRS=include lib
2EXTRA_DIST = NEWS NEWS.xml NEWS.xsl 2EXTRA_DIST = NEWS NEWS.xml NEWS.xsl
3 3
4DISTCHECK_CONFIGURE_FLAGS=--with-pkgconfigdir=$${dc_install_base}/lib/pkgconfig 4pkgconfigdir=${libdir}/pkgconfig
5if HAVE_PKGCONFIG
6pkgconfigdir=@PKGCONFIG_DIR@
7pkgconfig_DATA=konforka.pc 5pkgconfig_DATA=konforka.pc
8endif
9 6
10all-local: NEWS 7all-local: NEWS
11if HAVE_DOXYGEN 8if HAVE_DOXYGEN
12clean-local: 9clean-local:
13 rm -rf doxydox 10 rm -rf doxydox
14endif 11endif
15 12
16NEWS: NEWS.xsl NEWS.xml 13NEWS: NEWS.xsl NEWS.xml
17 ${XSLTPROC} -o $@ NEWS.xsl NEWS.xml 14 ${XSLTPROC} -o $@ NEWS.xsl NEWS.xml
18 15
19if HAVE_DOXYGEN 16if HAVE_DOXYGEN
20dox: 17dox:
21 ${DOXYGEN} 18 ${DOXYGEN}
22endif 19endif
diff --git a/acinclude.m4 b/acinclude.m4
index ec2c50f..9f61d6c 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1,69 +1,24 @@
1dnl AC_WITH_PKGCONFIG([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]])
2dnl Outputs:
3dnl AC_SUBST: PKGCONFIG_PKGCONFIG PKGCONFIG_DIR
4dnl AM_CONDTIONAL: HAVE_PKGCONFIG
5AC_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
46dnl AC_WITH_DOXYGEN([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) 1dnl AC_WITH_DOXYGEN([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]])
47dnl Outputs: 2dnl Outputs:
48dnl AC_SUBST: DOXYGEN HAVE_DOXYGEN 3dnl AC_SUBST: DOXYGEN HAVE_DOXYGEN
49dnl AM_CONDTIONAL: HAVE_DOXYGEN 4dnl AM_CONDTIONAL: HAVE_DOXYGEN
50AC_DEFUN([AC_WITH_DOXYGEN],[ 5AC_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
64dnl AC_WITH_DOT([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) 19dnl AC_WITH_DOT([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]])
65dnl Outputs: 20dnl Outputs:
66dnl AC_SUBST: DOT HAVE_DOT 21dnl AC_SUBST: DOT HAVE_DOT
67dnl AM_CONDITIONAL: HAVE_DOT 22dnl AM_CONDITIONAL: HAVE_DOT
68AC_DEFUN([AC_WITH_DOT],[ 23AC_DEFUN([AC_WITH_DOT],[
69 HAVE_DOT="no" 24 HAVE_DOT="no"
diff --git a/configure.ac b/configure.ac
index 33d1a59..7a302a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,45 +1,45 @@
1AC_INIT([konforka], [0.0.1], [konforka-bugs@klever.net]) 1AC_INIT([konforka], [0.0.1], [konforka-bugs@klever.net])
2AC_CONFIG_SRCDIR([include/konforka/exception.h]) 2AC_CONFIG_SRCDIR([include/konforka/exception.h])
3AC_CONFIG_HEADER([config.h]) 3AC_CONFIG_HEADER([config.h])
4AM_INIT_AUTOMAKE([dist-bzip2]) 4AM_INIT_AUTOMAKE([dist-bzip2])
5 5
6AC_PROG_INSTALL 6AC_PROG_INSTALL
7AC_PROG_AWK 7AC_PROG_AWK
8AC_PROG_CXX 8AC_PROG_CXX
9AC_PROG_CC 9AC_PROG_CC
10AC_PROG_LIBTOOL 10AC_PROG_LIBTOOL
11PKG_PROG_PKG_CONFIG
11 12
12AC_HEADER_STDC 13AC_HEADER_STDC
13 14
14AC_C_CONST 15AC_C_CONST
15 16
16AC_FUNC_MALLOC 17AC_FUNC_MALLOC
17AC_FUNC_REALLOC 18AC_FUNC_REALLOC
18 19
19AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) 20AC_PATH_PROG([XSLTPROC],[xsltproc],[true])
20 21
21AC_WITH_PKGCONFIG
22WANT_DOXYGEN="yes" 22WANT_DOXYGEN="yes"
23AC_ARG_ENABLE([doxygen], 23AC_ARG_ENABLE([doxygen],
24 AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), 24 AC_HELP_STRING([--disable-doxygen],[do not generate documentation]),
25 [ 25 [
26 test "${enableval}" = "no" && WANT_DOXYGEN="no" 26 test "${enableval}" = "no" && WANT_DOXYGEN="no"
27 ] 27 ]
28) 28)
29if test "${WANT_DOXYGEN}" = "yes" ; then 29if test "${WANT_DOXYGEN}" = "yes" ; then
30 AC_WITH_DOXYGEN 30 AC_WITH_DOXYGEN
31 AC_WITH_DOT 31 AC_WITH_DOT
32else 32else
33 AM_CONDITIONAL([HAVE_DOXYGEN],[false]) 33 AM_CONDITIONAL([HAVE_DOXYGEN],[false])
34 AM_CONDITIONAL([HAVE_DOT],[false]) 34 AM_CONDITIONAL([HAVE_DOT],[false])
35fi 35fi
36 36
37WANT_PQXX="yes" 37WANT_PQXX="yes"
38AC_ARG_WITH([libpqxx], 38AC_ARG_WITH([libpqxx],
39 AC_HELP_STRING([--without-libpqxx],[do not build libpqxx connection pool support]), 39 AC_HELP_STRING([--without-libpqxx],[do not build libpqxx connection pool support]),
40 [ 40 [
41 test "${withval}" = "no" && WANT_PQXX="no" 41 test "${withval}" = "no" && WANT_PQXX="no"
42 ] 42 ]
43) 43)
44HAVE_PQXX="no" 44HAVE_PQXX="no"
45PC_REQ_PQXX="" 45PC_REQ_PQXX=""