1*7304104dSAndroid Build Coastguard Workerdnl -*- Autoconf -*- test for either zlib or bzlib. 2*7304104dSAndroid Build Coastguard Workerdnl Defines --with-$1 argument, $2 automake conditional, 3*7304104dSAndroid Build Coastguard Workerdnl and sets AC_DEFINE(USE_$2) and LIBS. 4*7304104dSAndroid Build Coastguard Worker 5*7304104dSAndroid Build Coastguard WorkerAC_DEFUN([eu_ZIPLIB], [dnl 6*7304104dSAndroid Build Coastguard WorkerAC_ARG_WITH([[$1]], 7*7304104dSAndroid Build Coastguard WorkerAS_HELP_STRING([--with-[$1]], [support [$1] compression in libdwfl]),, 8*7304104dSAndroid Build Coastguard Worker [with_[$1]=default]) 9*7304104dSAndroid Build Coastguard Workerif test $with_[$1] != no; then 10*7304104dSAndroid Build Coastguard Worker AC_SEARCH_LIBS([$4], [$3], [with_[$1]=yes], 11*7304104dSAndroid Build Coastguard Worker [test $with_[$1] = default || 12*7304104dSAndroid Build Coastguard Worker AC_MSG_ERROR([missing -l[$3] for --with-[$1]])]) 13*7304104dSAndroid Build Coastguard Workerfi 14*7304104dSAndroid Build Coastguard WorkerAM_CONDITIONAL([$2], test $with_[$1] = yes) 15*7304104dSAndroid Build Coastguard Workerif test $with_[$1] = yes; then 16*7304104dSAndroid Build Coastguard Worker AC_DEFINE(USE_[$2]) 17*7304104dSAndroid Build Coastguard Workerelse 18*7304104dSAndroid Build Coastguard Worker with_[$1]=no 19*7304104dSAndroid Build Coastguard Workerfi 20*7304104dSAndroid Build Coastguard WorkerAH_TEMPLATE(USE_[$2], [Support $5 decompression via -l$3.])]) 21