From: Sven Hartge Date: Tue, 2 Jun 2020 12:56:52 +0000 (+0200) Subject: Add ./configure code to check for and enable/disable S3 support X-Git-Tag: Release-9.6.4~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d423b4d22fb51330cdee8751cd5fcb2ccc76da1;p=thirdparty%2Fbacula.git Add ./configure code to check for and enable/disable S3 support --- diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index 020ffffe8..97003261e 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -1938,6 +1938,20 @@ AC_DEFINE_UNQUOTED([STREAM_CLOEXEC], "$ac_cv_feature_stream_cloexec_flag", [fope AC_CHECK_FUNC(accept4, [AC_DEFINE(HAVE_ACCEPT4, 1, [Define to 1 if you have the 'accept4' function.])]) +dnl --------------------------------------------------- +dnl Check for S3 support/directory (default on) +dnl --------------------------------------------------- +dnl this allows you to turn it completely off + +AC_ARG_ENABLE(s3, + AC_HELP_STRING([--disable-s3], [disable S3 support @<:@default=yes@:>@]), + [ + if test x$enableval = xno; then + support_s3=no + fi + ] +) + S3_INC= S3_LIBS= S3_LDFLAGS= @@ -3718,6 +3732,7 @@ Configuration on `date`: Encryption support: ${support_crypto} ZLIB support: ${have_zlib} LZO support: ${have_lzo} + S3 support: ${have_libs3} enable-smartalloc: ${support_smartalloc} enable-lockmgr: ${support_lockmgr} bat support: ${support_bat}