-rw-r--r-- | configure.ac | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac index 109eddf..5ae7b27 100644 --- a/configure.ac +++ b/configure.ac @@ -1,2 +1,2 @@ -AC_INIT([kingate], [0.0], [kingate-bugs@klever.net]) +AC_INIT([kingate], [0.0.1], [kingate-bugs@klever.net]) AC_CONFIG_SRCDIR([include/kingate/cgi_gateway.h]) @@ -14,13 +14,18 @@ AC_CHECK_HEADERS([sys/types.h sys/stat.h]) +HAVE_FCGI=false AC_LANG_PUSH(C++) -AC_CHECK_HEADERS([fcgio.h],,[ - exit 1 +AC_CHECK_HEADERS([fcgio.h],[ + AC_CHECK_LIB(fcgi,FCGX_Init,[ + LIBS="-lfcgi ${LIBS}" + AC_CHECK_LIB([fcgi++],[main],[ + LIBS="-lfcgi++ ${LIBS}" + HAVE_FCGI=true ]) -AC_CHECK_LIB(fcgi,FCGX_Init,,[ - exit 1 ]) -AC_CHECK_LIB([fcgi++],[main],,[ - exit 1 ]) AC_LANG_POP(C++) +if ! ${HAVE_FCGI} ; then + AC_MSG_NOTICE([no FastCGI development kit found. It is highly recommnded that you get one. Meanwhile we will proceed without FastCGI support]) +fi +AM_CONDITIONAL([HAVE_FCGI],[${HAVE_FCGI}]) @@ -56,3 +61,3 @@ AC_CONFIG_FILES([ Makefile - kingate.pc kingate-fcgi.pc + kingate.pc kingate-fcgi.pc kingate-plaincgi.pc Doxyfile |