change for incorrect handling of TURN_NO_TLS environment variable (#1663)

In version 4.5.1.3, there was a handling of TURN_NO_TLS environment
variable and the TURN_xxx environment variables can be set in the
following manner:
      **export TURN_NO_TLS=1**
      export TURN_NO_PQ=1
      export TURN_NO_MYSQL=1
      export TURN_NO_MONGO=1
      export TURN_NO_SQLITE=1
      ./configure


In versions 4.5.2 and later, handling of TURN_NO_TLS was removed, and
with this TURN_NO_TLS is set as-is OSCFLAGS:

831b7245aa/configure (L1021)
And now, to set no-tls properly during compile time, we have to do the
following:
      **export TURN_NO_TLS=-DTURN_NO_TLS**
      export TURN_NO_PQ=1
      export TURN_NO_GCM=1

Otherwise, if leave previous approach, it obviously causes an error
during compile time:
```
    cc: error: 1: linker input file not found: No such file or directory
```

With this PR i would like to restore consistency of environment
variables that used for ./configure
This commit is contained in:
Leonid Gorbachev 2025-03-30 22:16:28 +02:00 committed by GitHub
parent 791e4c9f7a
commit beaed33e90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

8
configure vendored
View File

@ -1014,6 +1014,14 @@ else
TURN_NO_SCTP="-DTURN_NO_SCTP"
fi
###############################
# TLS
###############################
if [ -n "${TURN_NO_TLS}" ]; then
TURN_NO_TLS="-DTURN_NO_TLS"
fi
###############################
# So, what we have now:
###############################