Skip to content

Commit

Permalink
Remove external Libbsc option.
Browse files Browse the repository at this point in the history
  • Loading branch information
moinakg committed Nov 30, 2013
1 parent fb25e53 commit 5a49252
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 46 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -11,3 +11,5 @@ test/datafiles
*~
core.*
*.kate-swp
bsc/bsc
*.a
25 changes: 1 addition & 24 deletions INSTALL
Expand Up @@ -96,11 +96,6 @@ is not the usual GNU Autoconf script.
This at present shows some info related to Dedupe
efficiency.

--with-libbsc=<path_to_libbsc_source>
Enable support for libbsc (See: libbsc.com). Full
path to the libbsc source tree must be provided. It
links the library statically.

--with-zlib=<path to zlib installation tree> (Default: System)
Enable building against an alternate Zlib installation.

Expand All @@ -117,24 +112,6 @@ is not the usual GNU Autoconf script.

--help Display the help message.

Steps for building with libbsc support
======================================
1) Download libbsc source from: http://libbsc.com/ . Click on the
"Download TAR Ball" button. Downloading the 3.1.0 release from the
Github project download page will Not work.

2) Extract the gzippped tarball. It will create a directory for example:
IlyaGrebnov-libbsc-0b12f29

3) Now cd into the pcompress directory and execute the config script
with the full path to the libbsc source directory. For example:

./config --with-libbsc=/full/path/to/IlyaGrebnov-libbsc-0b12f29

4) Now run make in the pcompress directory. This will also run make in
the libbsc source directory to build it.

5) Additional compilation flags can be passed to make like this:
Additional compilation flags can be passed to make like this:
make EXTRA_CPPFLAGS=<...> EXTRA_LDFLAGS=<...>


4 changes: 0 additions & 4 deletions README.md
Expand Up @@ -92,10 +92,6 @@ Usage
compressed output goes to stdout. If this argument is omitted then
source filename is used with the extension '.pz' appended.

NOTE: The option "libbsc" uses Ilya Grebnov's block sorting compression library
from http://libbsc.com/ . It is only available if pcompress in built with
that library. See INSTALL file for details.

To decompress a file compressed using above command:
pcompress -d <compressed file> <target file>
Expand Down
18 changes: 0 additions & 18 deletions config
Expand Up @@ -31,9 +31,6 @@ ${prog} [<options>]
--enable-debug Enable debug mode compilation (default: disabled).
--disable-allocator Disable use of internal memory allocator mechanism (default: enabled).
--enable-debug-stats Enable printing of some verbose debug info (default: disabled).
--with-libbsc=<path to libbsc source> (Default: Internal copy)
Full path to external libbsc source tree can be provided. It links the
library statically.
--with-openssl=<path to OpenSSL installation tree> (Default: System)
This defaults to the system's OpenSSL library. You can use this option
if you want to use an alternate OpenSSL installation.
Expand Down Expand Up @@ -151,21 +148,6 @@ do
pval=`echo ${arg1} | cut -f2 -d"="`
prefix=$pval
;;
--with-libbsc=*)
path=`echo ${arg1} | cut -f2 -d"="`
if [ -f ${path}/bsc.cpp -a -f ${path}/libbsc/libbsc.h ]
then
libbsc_dir="${path}"
libbsc_lib="${path}/libbsc.a"
libbsclflags='\$\(LIBBSCLFLAGS\)'
libbscwrapobj='\$\(LIBBSCWRAPOBJ\)'
libbscgenopt='\$\(LIBBSCGEN_OPT\)'
libbsccppflags='\$\(LIBBSCCPPFLAGS\)'
else
echo "Libbsc not found in ${path}.\n"
exit 1
fi
;;
--with-openssl=*)
openssl_prefix=`echo ${arg1} | cut -f2 -d"="`
;;
Expand Down

0 comments on commit 5a49252

Please sign in to comment.