Revision e90739d6 configure.ac

b/configure.ac
297 297

  
298 298
AC_SUBST(SOCAT_USE_ESCAPE)
299 299

  
300
SOCAT_USE_COMPRESS=
301
AC_ARG_ENABLE([socat-compress],
302
  [AS_HELP_STRING([--enable-socat-compress],
303
    [use OpenSSL compression option available in patched socat builds
304
     (see INSTALL for details; default: detect automatically)])],
305
  [[if test "$enableval" = yes; then
306
      SOCAT_USE_COMPRESS=True
307
    else
308
      SOCAT_USE_COMPRESS=False
309
    fi
310
  ]])
311

  
312
if test -z "$SOCAT_USE_COMPRESS"
313
then
314
  if $SOCAT -hhh | grep -w -q openssl-compress; then
315
    SOCAT_USE_COMPRESS=True
316
  else
317
    SOCAT_USE_COMPRESS=False
318
  fi
319
fi
320

  
321
AC_SUBST(SOCAT_USE_COMPRESS)
322

  
300 323
if man --help | grep -q -e --warnings
301 324
then
302 325
  MAN_HAS_WARNINGS=1

Also available in: Unified diff