Blame m4/zip.m4

Packit 032894
dnl -*- Autoconf -*- test for either zlib or bzlib.
Packit 032894
dnl Defines --with-$1 argument, $2 automake conditional,
Packit 032894
dnl and sets AC_DEFINE(USE_$2) and LIBS.
Packit 032894
Packit 032894
AC_DEFUN([eu_ZIPLIB], [dnl
Packit 032894
AC_ARG_WITH([[$1]],
Packit 032894
AC_HELP_STRING([--with-[$1]], [support [$1] compression in libdwfl]),,
Packit 032894
	    [with_[$1]=default])
Packit 032894
if test $with_[$1] != no; then
Packit 032894
  AC_SEARCH_LIBS([$4], [$3], [with_[$1]=yes],
Packit 032894
  	         [test $with_[$1] = default ||
Packit 032894
		  AC_MSG_ERROR([missing -l[$3] for --with-[$1]])])
Packit 032894
fi
Packit 032894
AM_CONDITIONAL([$2], test $with_[$1] = yes)
Packit 032894
if test $with_[$1] = yes; then
Packit 032894
  AC_DEFINE(USE_[$2])
Packit 032894
else
Packit 032894
  with_[$1]=no
Packit 032894
fi
Packit 032894
AH_TEMPLATE(USE_[$2], [Support $5 decompression via -l$3.])])