Skip to content

Commit 2b9f7d3

Browse files
author
Jean-Louis Martineau
committed
* config/amanda/libs.m4: Do not link with libcurl if no se device or
no server * config/amanda/s3-device.m4: Re-order git-svn-id: https://svn.code.sf.net/p/amanda/code/amanda/trunk@6890 a8d146d6-cc15-0410-8900-af154a0219e0
1 parent 4237f78 commit 2b9f7d3

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2016-10-19 Jean-Louis Martineau <JMartineau@carbonite.com>
2+
* config/amanda/libs.m4: Do not link with libcurl if no se device or
3+
no server
4+
* config/amanda/s3-device.m4: Re-order
5+
16
2016-10-19 Jean-Louis Martineau <JMartineau@carbonite.com>
27
* perl/Makefile.am: Amanda::FetchDump::*, Amanda::Recovery::* and
38
Amanda::Amservice are for client or server

config/amanda/libs.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
235235
[look for the curl library in PREFIX/lib and headers in PREFIX/include]),
236236
[_libcurl_with=$withval],[_libcurl_with=ifelse([$1],,[yes],[$1])])
237237
238-
if test "$_libcurl_with" != "no" ; then
238+
if test "$_libcurl_with" != "no" -a x"$WANT_S3_DEVICE" != x"no" -a x"$WANT_SERVER" = x"true"; then
239239
240240
AC_PROG_AWK
241241

config/amanda/s3-device.m4

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@
77
# Perform the necessary checks for the S3 Device. If the S3 device should be built,
88
# WANT_S3_DEVICE is DEFINEd and set up as an AM_CONDITIONAL.
99
#
10+
AC_DEFUN([AMANDA_S3_DEVICE_OPTION], [
11+
AC_ARG_ENABLE([s3-device],
12+
AS_HELP_STRING([--disable-s3-device],
13+
[disable the S3 device]),
14+
[ WANT_S3_DEVICE=$enableval ], [ WANT_S3_DEVICE=maybe ])
15+
])
16+
1017
AC_DEFUN([AMANDA_S3_DEVICE], [
18+
AC_REQUIRE([AMANDA_S3_DEVICE_OPTION])
1119
AC_REQUIRE([AMANDA_CHECK_LIBCURL])
1220
AC_REQUIRE([AMANDA_CHECK_HMAC])
1321

0 commit comments

Comments
 (0)