diff options
| author | Nakidai <nakidai@disroot.org> | 2024-12-15 01:08:33 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2024-12-15 01:08:33 +0300 |
| commit | c15062a60b10e1847dac8def31cb43abb116dc02 (patch) | |
| tree | 46c11b3081b0a793a869020cf984e791aa504e80 | |
| parent | 0e8ee9387620ba232003d297a1a2f7f21000e63f (diff) | |
| download | libhttpc-c15062a60b10e1847dac8def31cb43abb116dc02.tar.gz libhttpc-c15062a60b10e1847dac8def31cb43abb116dc02.zip | |
Make configure script more convenitn
Now you can set NOSOCK to even nothing to make libhttpc be built without socket support
| -rwxr-xr-x | configure | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/configure b/configure index b29b9f1..8e2801f 100755 --- a/configure +++ b/configure @@ -30,8 +30,12 @@ echo "Configuration: Compiler: $CC CFLAGS: $CFLAGS LDFLAGS: $LDFLAGS - DESTDIR: $DESTDIR - NOSOCK: ${NOSOCK:-not set}" + DESTDIR: $DESTDIR" +if [ -z "${NOSOCK+x}" ]; then + echo " Will be built with sockets" +else + echo " Will be built without sockets" +fi echo " CFLAGS=$CFLAGS @@ -43,7 +47,7 @@ echo "#ifndef __LIBHTTPC_CONFIG_H__ #define __LIBHTTPC_CONFIG_H__ " > include/config.h -if [ -z "$NOSOCK" ]; then +if [ -z "${NOSOCK+x}" ]; then echo "#define LibHTTPC_SOCK" >> include/config.h fi echo " |