fix testing for db program

This commit is contained in:
Brandon Invergo 2013-05-19 15:16:37 +02:00
parent 0a2eecf881
commit f16f93be3f
2 changed files with 6 additions and 5 deletions

3
configure vendored
View File

@ -2436,10 +2436,11 @@ $as_echo "no" >&6; }
fi fi
if [ "x$SQLITE" = "x" && "x$POSTGRES" = "x" ]; then if test "x$SQLITE" = x -a "x$POSTGRES" = "x"; then :
as_fn_error $? "SQLite or PostgreSQL is required" "$LINENO" 5 as_fn_error $? "SQLite or PostgreSQL is required" "$LINENO" 5
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python prefix" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python prefix" >&5
$as_echo_n "checking for Python prefix... " >&6; } $as_echo_n "checking for Python prefix... " >&6; }
if ${pc_cv_python_prefix+:} false; then : if ${pc_cv_python_prefix+:} false; then :

View File

@ -143,9 +143,9 @@ AC_PROG_INSTALL
# Check for a supported database program # Check for a supported database program
AC_PATH_PROG([SQLITE], [sqlite3]) AC_PATH_PROG([SQLITE], [sqlite3])
AC_PATH_PROG([POSTGRES], [postgres]) AC_PATH_PROG([POSTGRES], [postgres])
if [[ "x$SQLITE" = "x" && "x$POSTGRES" = "x" ]]; then AS_IF([test "x$SQLITE" = x -a "x$POSTGRES" = "x"],
AC_MSG_ERROR([SQLite or PostgreSQL is required]) [AC_MSG_ERROR([SQLite or PostgreSQL is required])])
fi
dnl--PC_PYTHON_SITE_PACKAGE_DIR--------------------------------------- dnl--PC_PYTHON_SITE_PACKAGE_DIR---------------------------------------
dnl This uses PYTHON_SITE_DIR to construct a directory for this dnl This uses PYTHON_SITE_DIR to construct a directory for this