]> mj.ucw.cz Git - libucw.git/blob - free/libs/default.cfg
Merge branch 'master' into dev-lib
[libucw.git] / free / libs / default.cfg
1 # Default configuration of Sherlock libraries (see sherlock/default.cfg for an explanation)
2
3 # Do we want shared or static libraries?
4 Set("CONFIG_SHARED");
5
6 # We want the public API
7 Set("CONFIG_INSTALL_API");
8
9 # Libucw should support files >2GB and threading
10 Set("CONFIG_LARGE_FILES");
11 Set("CONFIG_UCW_THREADS" => 1);
12
13 # Libucw extensions
14 Set("CONFIG_UCW_PERL" => 1);
15 Set("CONFIG_UCW_PERL_MODULES" => 1);
16 Set("CONFIG_UCW_SHELL_UTILS" => 1);
17 Set("CONFIG_UCW_UTILS" => 1);
18
19 if(!IsSet("CONFIG_UCW_ONLY")) {
20         # Libsh settings
21         Set("CONFIG_BUCKET_SHIFT" => 6);
22         Set("CONFIG_SHERLOCK_LIB");
23
24         if(!IsGiven("CONFIG_CHARSET") || IsSet("CONFIG_CHARSET")) {
25                 # Liblang settings
26                 Set("CONFIG_LIBLANG");
27                 Set("MAX_WORD_CHARS" => 64);
28                 Set("MAX_WORD_BYTES" => 192);
29         }
30
31         # Libimages settings
32         Set("CONFIG_IMAGES");
33         Set("CONFIG_IMAGES_LIBJPEG");
34         Set("CONFIG_IMAGES_LIBPNG");
35         Set("CONFIG_IMAGES_LIBUNGIF");
36         UnSet("CONFIG_IMAGES_LIBGIF");
37         UnSet("CONFIG_IMAGES_LIBMAGICK");
38
39         Set("CONFIG_CHARSET");
40 }
41
42 # Return success
43 1;