diff options
| author | Nakidai <nakidai@disroot.org> | 2024-11-29 10:37:47 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2024-11-29 10:37:47 +0300 |
| commit | 9f5f94a729ecbd99a8d2adac29b107afa80574c6 (patch) | |
| tree | 49798529314b60c31070b9cffe122cf0331565d3 /configure | |
| parent | 2502543936a8523a24b630ca49b3185ebfd724d5 (diff) | |
| download | libhttpc-9f5f94a729ecbd99a8d2adac29b107afa80574c6.tar.gz libhttpc-9f5f94a729ecbd99a8d2adac29b107afa80574c6.zip | |
Add LibHTTPC_SOCK compile-time flag
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/configure b/configure index fab6a12..0dc8210 100755 --- a/configure +++ b/configure @@ -6,7 +6,8 @@ usage() CC - compiler (default: cc) CFLAGS - flags for compiler LDFLAGS - flags for linker - DESTDIR - path to make install (default: /usr/local)" + DESTDIR - path to make install (default: /usr/local) + NOSOCK - set to cut part of libhttpc that works with sockets" exit 1 } @@ -29,8 +30,14 @@ echo "Configuration: Compiler: $CC CFLAGS: $CFLAGS LDFLAGS: $LDFLAGS - DESTDIR: $DESTDIR" + DESTDIR: $DESTDIR + NOSOCK: ${NOSOCK:-not set}" echo " DESTDIR=$DESTDIR " > config.mk + +echo > include/config.h +if [ -z "$NOSOCK" ]; then + echo "#define LibHTTPC_SOCK" > include/config.h +fi |