X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fconfigure.ac;h=76b79ab99c9c8d9b600cc01580e14b3ad6c1d3cb;hb=ad56006947ba861bd4becb66a034cc3f476882d9;hp=16eb21312ece530342211f40c9af7a93c3f8d784;hpb=3bd48376ad42f7f992078041895a3a32d37a5909;p=xestiaab%2F.git diff --git a/source/configure.ac b/source/configure.ac index 16eb213..76b79ab 100644 --- a/source/configure.ac +++ b/source/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.68]) -AC_INIT([Xestia Address Book], [0.01], [bugs@xestia.co.uk]) +AC_INIT([Xestia Address Book], [0.03], [bugs@xestia.co.uk]) #AC_CONFIG_SRCDIR([version.h]) #AC_CONFIG_HEADERS([config.h]) @@ -109,6 +109,18 @@ variable before running configure again." # libxml2 Library +CPPFLAGSOLD=CPPFLAGS +CPPFLAGS=`xml2-config --cflags` + +AC_CHECK_PROG([FOUND_XML2CONFIG], [xml2-config], [yes], [no]) +AM_CONDITIONAL([FOUND_XML2CONFIG_RES], [test x$FOUND_XML2CONFIG = xyes]) + +AM_COND_IF([FOUND_XML2CONFIG_RES], [], [echo "Cannot find the xml2-config program on your system. +If it is installed on your system, adjust your PATH environment +variable before running configure again." + exit -1 + ]) + AC_CHECK_LIB([xml2], [main], [], [echo "The libxml2 library must be installed on your system. Please check that this library is installed properly before running configure again." @@ -121,10 +133,14 @@ before running configure again." exit -1 ]) -AC_CHECK_PROG([FOUND_XML2CONFIG], [xml2-config], [yes], [no]) -AM_CONDITIONAL([FOUND_XML2CONFIG_RES], [test x$FOUND_XML2CONFIG = xyes]) +CPPFLAGS=CPPFLAGSOLD -AM_COND_IF([FOUND_XML2CONFIG_RES], [], [echo "Cannot find the xml2-config program on your system. +# file application + +AC_CHECK_PROG([FOUND_FILE], [file], [yes], [no]) +AM_CONDITIONAL([FOUND_FILE_RES], [test x$FOUND_FILE = xyes]) + +AM_COND_IF([FOUND_FILE_RES], [], [echo "Cannot find the file program on your system. If it is installed on your system, adjust your PATH environment variable before running configure again." exit -1