author | Michael Krelin <hacker@klever.net> | 2005-01-29 19:41:34 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2005-01-29 19:41:34 (UTC) |
commit | ee7ac58694c16cdd922a6eeddbe1a2eba0da7b4e (patch) (side-by-side diff) | |
tree | be8029ce4a68870d991651927a27df8ee9d89617 /configure.ac | |
parent | d851b00e16839d6ec14da3a5c442be62ca868bba (diff) | |
download | konforka-ee7ac58694c16cdd922a6eeddbe1a2eba0da7b4e.zip konforka-ee7ac58694c16cdd922a6eeddbe1a2eba0da7b4e.tar.gz konforka-ee7ac58694c16cdd922a6eeddbe1a2eba0da7b4e.tar.bz2 |
initial commit.0.0
-rw-r--r-- | configure.ac | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..96d9325 --- a/dev/null +++ b/configure.ac @@ -0,0 +1,65 @@ +AC_INIT([konforka], [0.0], [konforka-bugs@klever.net]) +AC_CONFIG_SRCDIR([include/konforka/exception.h]) +AC_CONFIG_HEADER([config.h]) +AM_INIT_AUTOMAKE([dist-bzip2]) + +AC_PROG_INSTALL +AC_PROG_AWK +AC_PROG_CXX +AC_PROG_CC +AC_PROG_LIBTOOL + +AC_HEADER_STDC + +AC_C_CONST + +AC_FUNC_MALLOC +AC_FUNC_REALLOC + +AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) + +AC_WITH_PKGCONFIG +WANT_DOXYGEN="yes" +AC_ARG_ENABLE([doxygen], + AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), + [ + test "${enableval}" = "no" && WANT_DOXYGEN="no" + ] +) +if test "${WANT_DOXYGEN}" = "yes" ; then + AC_WITH_DOXYGEN + AC_WITH_DOT +else + AM_CONDITIONAL([HAVE_DOXYGEN],[false]) + AM_CONDITIONAL([HAVE_DOT],[false]) +fi + +WANT_PQXX="yes" +AC_ARG_WITH([libpqxx], + AC_HELP_STRING([--without-libpqxx],[do not build libpqxx connection pool support]), + [ + test "${withval}" = "no" && WANT_PQXX="no" + ] +) +HAVE_PQXX="no" +PC_REQ_PQXX="" +if test "${WANT_PQXX}" = "yes" ; then + PKG_CHECK_MODULES([PQXX],[libpqxx],[ + HAVE_PQXX="yes" + PC_REQ_PQXX="libpqxx" + ],[ + AC_MSG_NOTICE([no libpqxx found, no connection piling support will be built]) + ] + ) +fi +AC_SUBST([PC_REQ_PQXX],[${PC_REQ_PQXX}]) +AM_CONDITIONAL([HAVE_PQXX],[test "${HAVE_PQXX}" = "yes"]) + +AC_CONFIG_FILES([ + Makefile + konforka.pc + Doxyfile + include/Makefile + lib/Makefile +]) +AC_OUTPUT |