From ae714a97af8f0a899147e7ffd7a38a8a8da365f7 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 26 Jul 2007 11:05:33 +0200 Subject: [PATCH] The separate library distribution now compiles. --- free/libs/Makefile | 5 ++++- free/libs/configure | 3 ++- free/libs/defconfig | 29 ++++++++++++++++------------- 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/free/libs/Makefile b/free/libs/Makefile index 07745f67..b283efc4 100644 --- a/free/libs/Makefile +++ b/free/libs/Makefile @@ -2,7 +2,7 @@ # (c) 2007 Martin Mares # The default target -all: runtree libs +all: runtree libs api programs extras configs # Include configuration s=. @@ -13,6 +13,9 @@ obj/config.mk: # We will use the libucw build system include $(s)/build/Maketop +# Install config files +CONFIGS+=sherlock local + # Set up names of common libraries (to avoid forward references in rules) LIBLANG=$(o)/lang/liblang.pc LIBCHARSET=$(o)/charset/libcharset.pc diff --git a/free/libs/configure b/free/libs/configure index 0313d745..769eaac6 100755 --- a/free/libs/configure +++ b/free/libs/configure @@ -22,7 +22,8 @@ BEGIN { } Init($srcdir, "defconfig"); ## FIXME: Shouldn't we use default.cfg everywhere? -Include "sherlock/default.cfg"; +# FIXME! +Set("SHERLOCK_VERSION" => "0.0"); Log "### Configuring Sherlock Libraries " . Get("SHERLOCK_VERSION") . " with configuration " . Get("CONFIG") . "\n"; Include Get("CONFIG"); Include "lib/autoconf.cfg"; diff --git a/free/libs/defconfig b/free/libs/defconfig index 24d9eb75..9a9de22f 100644 --- a/free/libs/defconfig +++ b/free/libs/defconfig @@ -1,13 +1,22 @@ -# Default configuration of Sherlock libraries +# Default configuration of Sherlock libraries (see sherlock/default.cfg for an explanation) -# Version string used by all Sherlock libraries -# FIXME! -Set("SHERLOCK_VERSION" => "0.0"); +# Do we want shared or static libraries? +Set("CONFIG_SHARED"); -UnSet("CONFIG_LARGE_FILES"); +# We want the public API +Set("CONFIG_INSTALL_API"); -# We want to build all libraries shared -Set("CONFIG_SHARED"); +# Libucw should support files >2GB and threading +Set("CONFIG_LARGE_FILES"); +Set("CONFIG_UCW_THREADS" => 1); + +# Libucw extensions +Set("CONFIG_UCW_PERL" => 1); +Set("CONFIG_UCW_PERL_MODULES" => 1); +Set("CONFIG_UCW_SHELL_UTILS" => 1); + +# Libsh settings +Set("CONFIG_BUCKET_SHIFT" => 6); # Liblang settings Set("CONFIG_LANG"); @@ -21,11 +30,5 @@ Set("CONFIG_IMAGES_LIBUNGIF"); UnSet("CONFIG_IMAGES_LIBGIF"); UnSet("CONFIG_IMAGES_LIBMAGICK"); -# We want the public API -Set("CONFIG_INSTALL_API"); - -# FIXME -Set("DEFAULT_CONFIG" => "cf/library"); - # Return success 1; -- 2.39.2