aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-12-15 10:49:33 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-12-15 10:49:33 +0000
commit0a7e2619912b08ed381f830bd814f54fbbe9ca84 (patch)
treeacba99325798db6c7ed8cf20c670ec8d740e6e8e
parent3822c8bc213cbc24366f506931a79c47a1afbde7 (diff)
downloadanubis-0a7e2619912b08ed381f830bd814f54fbbe9ca84.tar.gz
anubis-0a7e2619912b08ed381f830bd814f54fbbe9ca84.tar.bz2
Bail out if required SQL libraries are not found.
Strictly control arguments to --with-postgres/--with-mysql
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8ecd1e5..206400b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -220,9 +220,12 @@ MU_CHECK_GSASL(0.0.2, [
WITH_SQL=1
LIBS="$LIBS $anubis_cv_lib_mysqlclient"
AC_MSG_RESULT([Enabling MySQL support...])
+ else
+ AC_MSG_FAILURE([Required MySQL libraries not found])
fi
;;
no) ;;
+ *) AC_MSG_FAILURE([Unexpected option argument $withval. Please use either --with-mysql or --without-mysql]);;
esac])
AC_ARG_WITH(postgres,
@@ -243,9 +246,12 @@ MU_CHECK_GSASL(0.0.2, [
WITH_SQL=1
LIBS="$LIBS $anubis_cv_lib_pq"
AC_MSG_RESULT([Enabling PostgreSQL support...])
+ else
+ AC_MSG_FAILURE([Required PostgreSQL libraries not found])
fi
;;
no) ;;
+ *) AC_MSG_FAILURE([Unexpected option argument $withval. Please use either --with-postgres or --without-postgres]);;
esac])
if test "$WITH_SQL" = "1"; then

Return to:

Send suggestions and report system problems to the System administrator.