This commit is contained in:
parent
6525f1b28e
commit
3012a2de6b
|
@ -435,18 +435,20 @@ LIBMAGIC="-lmagic"
|
||||||
else
|
else
|
||||||
USE_LIB_MAGIC="0"
|
USE_LIB_MAGIC="0"
|
||||||
LIBMAGIC=""; fi
|
LIBMAGIC=""; fi
|
||||||
|
if [ "$WITH_CAPSTONE" = "1" ]; then
|
||||||
[ -z "${PKGCONFIG}" ] && PKGCONFIG=pkg-config
|
[ -z "${PKGCONFIG}" ] && PKGCONFIG=pkg-config
|
||||||
type ${PKGCONFIG} > /dev/null 2>&1 || echo "ERROR: Cannot find PKGCONFIG ${PKGCONFIG}"
|
type ${PKGCONFIG} > /dev/null 2>&1 || echo "ERROR: Cannot find PKGCONFIG ${PKGCONFIG}"
|
||||||
echo 'Using PKGCONFIG: '${PKGCONFIG}
|
echo 'Using PKGCONFIG: '${PKGCONFIG}
|
||||||
printf 'checking pkg-config flags for capstone... '
|
printf 'checking pkg-config flags for capstone... '
|
||||||
tmp=`${PKGCONFIG} --cflags capstone 2>/dev/null`
|
tmp=`${PKGCONFIG} --cflags capstone 2>/dev/null`
|
||||||
if [ $? != 0 ]; then echo no ; HAVE_PKGCFG_CAPSTONE=0;
|
if [ $? != 0 ]; then echo no ; HAVE_PKGCFG_CAPSTONE=0;
|
||||||
|
CAPSTONE_CFLAGS='';CAPSTONE_LDFLAGS='';
|
||||||
else
|
else
|
||||||
CAPSTONE_CFLAGS=$tmp;
|
CAPSTONE_CFLAGS=$tmp;
|
||||||
tmp=`${PKGCONFIG} --libs capstone 2>/dev/null`
|
tmp=`${PKGCONFIG} --libs capstone 2>/dev/null`
|
||||||
if [ $? = 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
echo yes; HAVE_PKGCFG_CAPSTONE=1;
|
echo yes; HAVE_PKGCFG_CAPSTONE=1;
|
||||||
CAPSTONE_LDFLAGS=$tmp; fi; fi
|
CAPSTONE_LDFLAGS=$tmp; fi; fi; fi
|
||||||
if [ 11 = "$WITH_CAPSTONE$HAVE_PKGCFG_CAPSTONE" ]; then
|
if [ 11 = "$WITH_CAPSTONE$HAVE_PKGCFG_CAPSTONE" ]; then
|
||||||
|
|
||||||
USE_CAPSTONE="1"
|
USE_CAPSTONE="1"
|
||||||
|
@ -501,6 +503,7 @@ check_library HAVE_LIB_SSL ssl 0
|
||||||
printf 'checking pkg-config flags for openssl... '
|
printf 'checking pkg-config flags for openssl... '
|
||||||
tmp=`${PKGCONFIG} --cflags openssl 2>/dev/null`
|
tmp=`${PKGCONFIG} --cflags openssl 2>/dev/null`
|
||||||
if [ $? != 0 ]; then echo no ; HAVE_PKGCFG_OPENSSL=0;
|
if [ $? != 0 ]; then echo no ; HAVE_PKGCFG_OPENSSL=0;
|
||||||
|
SSL_CFLAGS='';SSL_LDFLAGS='';
|
||||||
else
|
else
|
||||||
SSL_CFLAGS=$tmp;
|
SSL_CFLAGS=$tmp;
|
||||||
tmp=`${PKGCONFIG} --libs openssl 2>/dev/null`
|
tmp=`${PKGCONFIG} --libs openssl 2>/dev/null`
|
||||||
|
@ -524,6 +527,7 @@ check_library HAVE_LIB_LIBUV libuv 0
|
||||||
printf 'checking pkg-config flags for libuv... '
|
printf 'checking pkg-config flags for libuv... '
|
||||||
tmp=`${PKGCONFIG} --cflags libuv 2>/dev/null`
|
tmp=`${PKGCONFIG} --cflags libuv 2>/dev/null`
|
||||||
if [ $? != 0 ]; then echo no ; HAVE_PKGCFG_LIBUV=0;
|
if [ $? != 0 ]; then echo no ; HAVE_PKGCFG_LIBUV=0;
|
||||||
|
LIBUV_CFLAGS='';LIBUV_LDFLAGS='';
|
||||||
else
|
else
|
||||||
LIBUV_CFLAGS=$tmp;
|
LIBUV_CFLAGS=$tmp;
|
||||||
tmp=`${PKGCONFIG} --libs libuv 2>/dev/null`
|
tmp=`${PKGCONFIG} --libs libuv 2>/dev/null`
|
||||||
|
|
|
@ -29,7 +29,9 @@ ARG_WITHOUT HAVE_FORK fork disable fork ;
|
||||||
ARG_WITH WITH_LIBR libr build libr.a and libr.dylib ;
|
ARG_WITH WITH_LIBR libr build libr.a and libr.dylib ;
|
||||||
|
|
||||||
ARG_WITH WITH_CAPSTONE syscapstone force to use system-wide capstone ;
|
ARG_WITH WITH_CAPSTONE syscapstone force to use system-wide capstone ;
|
||||||
PKGCFG CAPSTONE_CFLAGS CAPSTONE_LDFLAGS capstone
|
IF WITH_CAPSTONE {
|
||||||
|
PKGCFG CAPSTONE_CFLAGS CAPSTONE_LDFLAGS capstone
|
||||||
|
}
|
||||||
IFAND WITH_CAPSTONE HAVE_PKGCFG_CAPSTONE {
|
IFAND WITH_CAPSTONE HAVE_PKGCFG_CAPSTONE {
|
||||||
USE_CAPSTONE = 1 ;
|
USE_CAPSTONE = 1 ;
|
||||||
}{
|
}{
|
||||||
|
|
Loading…
Reference in New Issue