-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | acinclude.m4 | 45 | ||||
-rw-r--r-- | configure.ac | 2 |
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,12 +1,9 @@ | |||
1 | SUBDIRS=include lib | 1 | SUBDIRS=include lib |
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=konforka.pc | 5 | pkgconfig_DATA=konforka.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: |
diff --git a/acinclude.m4 b/acinclude.m4 index ec2c50f..9f61d6c 100644 --- a/acinclude.m4 +++ b/acinclude.m4 | |||
@@ -1,49 +1,4 @@ | |||
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 |
diff --git a/configure.ac b/configure.ac index 33d1a59..7a302a8 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -7,8 +7,9 @@ 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 | AC_PROG_LIBTOOL | 10 | AC_PROG_LIBTOOL |
11 | PKG_PROG_PKG_CONFIG | ||
11 | 12 | ||
12 | AC_HEADER_STDC | 13 | AC_HEADER_STDC |
13 | 14 | ||
14 | AC_C_CONST | 15 | AC_C_CONST |
@@ -17,9 +18,8 @@ AC_FUNC_MALLOC | |||
17 | AC_FUNC_REALLOC | 18 | AC_FUNC_REALLOC |
18 | 19 | ||
19 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) | 20 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) |
20 | 21 | ||
21 | AC_WITH_PKGCONFIG | ||
22 | WANT_DOXYGEN="yes" | 22 | WANT_DOXYGEN="yes" |
23 | AC_ARG_ENABLE([doxygen], | 23 | AC_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 | [ |