]> git.ipfire.org Git - thirdparty/squid.git/commit
Add SQUID_MODULE macro (#2124) auto
authorAmos Jeffries <yadij@users.noreply.github.com>
Sat, 16 Aug 2025 14:34:50 +0000 (14:34 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 16 Aug 2025 14:36:17 +0000 (14:36 +0000)
commita819ec880b3ebc523bd2c0929c9927c48110e13a
tree1de2d9e183ad4a9ba986e2cfbb01348287749e6c
parent5750e4fc76b55f7bc27ae8b8953e491991a91e55
Add SQUID_MODULE macro (#2124)

To perform the logic AC_ARG_ENABLE and following checks
for Squid features which have a configurable 'modules'
implementing different behaviours.

Example usage:
```
SQUID_MODULE(foo, [bar baz], [BA variants],[
  Variants of libba*.la to link Squid with.
  Code for these libraries is found in src/foo/
  with one subdirectory per module.
])
```

will define:
 * Makefile.am conditionals;
   ```ENABLE_FOO```, ```ENABLE_FOO_BAR``` and ```ENABLE_FOO_BAZ```

 * Makefile.am variables;
   ```$(FOO_MODULES)``` subdirs that make should recurse into, and
   ```$(FOO_MODULES_LIBS)``` listing the .la files built.

 * C/C++ macros;
   ```USE_FOO```, ```USE_FOO_BAR``` and ```USE_FOO_BAZ```
acinclude/squid-module.m4 [new file with mode: 0644]