configuration fix
This commit is contained in:
parent
1f1aa72e4a
commit
a7ae565a75
@ -21,16 +21,14 @@ m4_include([../ac_swi_c.m4])
|
|||||||
|
|
||||||
yap_cv_prosqlite=yes
|
yap_cv_prosqlite=yes
|
||||||
|
|
||||||
yap_cv_prosqlite=yes
|
|
||||||
AC_ARG_WITH(prosqlite,
|
AC_ARG_WITH(prosqlite,
|
||||||
[ --with-prosqlite(=location) interface to sqlite],
|
[ --with-prosqlite(=location) interface to sqlite],
|
||||||
if test "$withval" = yes; then
|
if test "$withval" = yes; then
|
||||||
PROSQLITE_DIR=/usr
|
PROSQLITE_DIR=/usr
|
||||||
elif test "$withval" = no; then
|
elif test "$withval" = no; then
|
||||||
yap_cv_prosqlite=no
|
yap_cv_prosqlite=no
|
||||||
|
|
||||||
else
|
else
|
||||||
PROSQLITE_DIR=$withval
|
PROSQLITE_DIR="$withval"
|
||||||
fi,
|
fi,
|
||||||
[PROSQLITE_DIR=/usr ])
|
[PROSQLITE_DIR=/usr ])
|
||||||
|
|
||||||
@ -46,7 +44,6 @@ if test $yap_cv_prosqlite = yes; then
|
|||||||
PROSQLITE_CPPFLAGS="-I${PROSQLITE_DIR}/include"
|
PROSQLITE_CPPFLAGS="-I${PROSQLITE_DIR}/include"
|
||||||
PROSQLITE_LDFLAGS="-L${PROSQLITE_DIR}/lib"
|
PROSQLITE_LDFLAGS="-L${PROSQLITE_DIR}/lib"
|
||||||
CPPFLAGS="-I${PROSQLITE_DIR}/include ${CPPFLAGS}"
|
CPPFLAGS="-I${PROSQLITE_DIR}/include ${CPPFLAGS}"
|
||||||
CPPFLAGS="-I${PROSQLITE_DIR}/include ${CPPFLAGS}"
|
|
||||||
CIFLAGS="-I${PROSQLITE_DIR}/include ${CIFLAGS}"
|
CIFLAGS="-I${PROSQLITE_DIR}/include ${CIFLAGS}"
|
||||||
LDFLAGS="-L${PROSQLITE_DIR}/lib ${LDFLAGS}"
|
LDFLAGS="-L${PROSQLITE_DIR}/lib ${LDFLAGS}"
|
||||||
fi
|
fi
|
||||||
@ -64,13 +61,13 @@ if test $yap_cv_prosqlite = yes; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$yap_cv_prosqlite" != no &&
|
||||||
if test "$havelib" = yes &&
|
test "$havelib" = yes &&
|
||||||
test "$ac_cv_header_sqlite3_h" = yes; then
|
test "$ac_cv_header_sqlite3_h" = yes; then
|
||||||
PROSQLITE_TARGETS="prosqlite.$SO"
|
PROSQLITE_TARGETS="prosqlite.$SO"
|
||||||
PROSQLITE_PLTARGETS="prolog/prosqlite.pl"
|
PROSQLITE_PLTARGETS="prolog/prosqlite.pl"
|
||||||
else
|
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"
|
echo "WARNING: PROSQLITE interface will not be built"
|
||||||
PROSQLITE_TARGETS=""
|
PROSQLITE_TARGETS=""
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user