configuration fix

This commit is contained in:
Vitor Santos Costa 2015-02-09 10:16:35 +00:00
parent 1f1aa72e4a
commit a7ae565a75
1 changed files with 6 additions and 9 deletions

View File

@ -21,16 +21,14 @@ m4_include([../ac_swi_c.m4])
yap_cv_prosqlite=yes
yap_cv_prosqlite=yes
AC_ARG_WITH(prosqlite,
[ --with-prosqlite(=location) interface to sqlite],
if test "$withval" = yes; then
PROSQLITE_DIR=/usr
elif test "$withval" = no; then
yap_cv_prosqlite=no
else
PROSQLITE_DIR=$withval
else
PROSQLITE_DIR="$withval"
fi,
[PROSQLITE_DIR=/usr ])
@ -46,7 +44,6 @@ if test $yap_cv_prosqlite = yes; then
PROSQLITE_CPPFLAGS="-I${PROSQLITE_DIR}/include"
PROSQLITE_LDFLAGS="-L${PROSQLITE_DIR}/lib"
CPPFLAGS="-I${PROSQLITE_DIR}/include ${CPPFLAGS}"
CPPFLAGS="-I${PROSQLITE_DIR}/include ${CPPFLAGS}"
CIFLAGS="-I${PROSQLITE_DIR}/include ${CIFLAGS}"
LDFLAGS="-L${PROSQLITE_DIR}/lib ${LDFLAGS}"
fi
@ -64,13 +61,13 @@ if test $yap_cv_prosqlite = yes; then
fi
if test "$havelib" = yes &&
test "$ac_cv_header_sqlite3_h" = yes; then
if test "$yap_cv_prosqlite" != no &&
test "$havelib" = yes &&
test "$ac_cv_header_sqlite3_h" = yes; then
PROSQLITE_TARGETS="prosqlite.$SO"
PROSQLITE_PLTARGETS="prolog/prosqlite.pl"
else
echo "ERROR: Cannot find odbc library or the header sql.h"
echo "ERROR: Cannot find sqlite3 library and/or the header sqlite3.h"
echo "WARNING: PROSQLITE interface will not be built"
PROSQLITE_TARGETS=""
fi