aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-03-16 17:25:17 +0000
committerRob Austein <sra@hactrn.net>2014-03-16 17:25:17 +0000
commit7e56d5b54e0ce45929d414de791b3e87d8d088db (patch)
tree74a38e69f546524d77e9278f066b8abc29e4179f /configure
parent41b8c99a3c8228c6ebf779b52314371088928582 (diff)
Add --disable-runtime-dependencies to turn off enforcement in
build-time checks of runtime dependencies (ie, we still whine, but ./configure keeps going rather than exiting with an error). svn path=/trunk/; revision=5704
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure38
1 files changed, 32 insertions, 6 deletions
diff --git a/configure b/configure
index 56198a2a..c0d6ffcc 100755
--- a/configure
+++ b/configure
@@ -726,6 +726,7 @@ enable_target_installation
enable_wsgi_daemon_mode
enable_python_install_layout
enable_wsgi_python_egg_cache
+enable_runtime_dependencies
enable_python
enable_django
enable_rpki_rtr
@@ -1366,6 +1367,8 @@ Optional Features:
Specify Python --install-layout
--enable-wsgi-python-egg-cache=dir[:user]
Set up PYTHON_EGG_CACHE in wsgi wrapper
+ --disable-runtime-dependencies
+ Don't enforce runtime dependencies
--disable-python (Obsolete, do not use)
--disable-django (Obsolete, do not use)
--disable-rpki-rtr (Obsolete, do not use)
@@ -2474,6 +2477,13 @@ else
enable_wsgi_python_egg_cache=auto
fi
+# Check whether --enable-runtime_dependencies was given.
+if test "${enable_runtime_dependencies+set}" = set; then :
+ enableval=$enable_runtime_dependencies;
+else
+ enable_runtime_dependencies=yes
+fi
+
@@ -4233,6 +4243,20 @@ fi
+# See whether we need to check for dependencies that we only need at
+# runtime. We do this by default when compiling from source to avoid
+# surprises after installation, but this just adds pain when building
+# binary packages within a platform framework which already handles
+# all the dependencies for us, so we need a way to turn it off.
+
+case $enable_runtime_dependencies in
+ yes|no)
+ ;;
+ *)
+ as_fn_error $? "Unrecognized value for --enable-runtime-dependencies: $enable_runtime_dependencies" "$LINENO" 5
+ ;;
+esac
+
# Figure out whether we need to build our own OpenSSL library or can
# use the system libraries. We're looking for two recent features:
# CMS and RFC 3779 support. We also have to check whether the user
@@ -4528,11 +4552,7 @@ fi
# Check whether to do "final target installation". This means actions
# that can only be done when installing a package, as opposed to when
-# building a package. On FreeBSD this is sort of irrelevant, because
-# of the way package installs work when building from source, but on
-# Debian and Ubuntu, for example, there's a strict separation between
-# things that are done during package build and things that are done
-# by the binary package's {pre,post}inst scripts.
+# building a package.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do final target installation on \"make install\"" >&5
$as_echo_n "checking whether to do final target installation on \"make install\"... " >&6; }
@@ -4858,7 +4878,13 @@ fi
if test $ok = no
then
- as_fn_error $? "Please correct the problems above then re-run this configuration script." "$LINENO" 5
+ if test $enable_runtime_dependencies = yes
+ then
+ as_fn_error $? "Please correct the problems above then re-run this configuration script." "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Runtime dependency enforcement disabled, proceeding (at your own risk)" >&5
+$as_echo "$as_me: WARNING: Runtime dependency enforcement disabled, proceeding (at your own risk)" >&2;}
+ fi
fi
# Figure out whether we are on a Debian-derived system where we need