diff options
| -rw-r--r-- | configure.ac | 8 | ||||
| -rw-r--r-- | extras/Makefile.am | 2 | 
2 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index c4896b56fc9..8ad8eb6af8d 100644 --- a/configure.ac +++ b/configure.ac @@ -588,7 +588,13 @@ AC_SUBST(SYNCDAEMON_COMPILE)  AC_SUBST(SYNCDAEMON_SUBDIR)  # end SYNCDAEMON section -# CDC xlator - check if libz is present if so enable HAVE_LIB_Z  +# only install scripts from extras/geo-rep when enabled +if test "x$enable_georeplication" != "xno"; then +  GEOREP_EXTRAS_SUBDIR=geo-rep +fi +AC_SUBST(GEOREP_EXTRAS_SUBDIR) + +# CDC xlator - check if libz is present if so enable HAVE_LIB_Z  BUILD_CDC=yes  PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.0],,                    [AC_CHECK_LIB([z], [deflate], [ZLIB_LIBS="-lz"], diff --git a/extras/Makefile.am b/extras/Makefile.am index b6cdb90434f..a163b1ae3a2 100644 --- a/extras/Makefile.am +++ b/extras/Makefile.am @@ -2,7 +2,7 @@ EditorModedir = $(docdir)  EditorMode_DATA = glusterfs-mode.el glusterfs.vim  SUBDIRS = init.d systemd benchmarking hook-scripts $(OCF_SUBDIR) LinuxRPM \ -          geo-rep +          $(GEOREP_EXTRAS_SUBDIR)  confdir = $(sysconfdir)/glusterfs  conf_DATA = glusterfs-logrotate gluster-rsyslog-7.2.conf gluster-rsyslog-5.8.conf \  | 
