+dnl Allow extra x86-disassembler library
+AC_ARG_WITH(udis86,
+ AS_HELP_STRING([--with-udis86=<path>],
+ [Use udis86 external x86 disassembler library]),
+ [
+ AC_SUBST(USE_UDIS86, [1])
+ case "$withval" in
+ /usr/lib|yes) ;;
+ *) LDFLAGS="$LDFLAGS -L${withval}" ;;
+ esac
+ AC_CHECK_LIB(udis86, ud_init, [], [
+ echo "Error! You need to have libudis86 around."
+ exit -1
+ ])
+ ],
+ AC_SUBST(USE_UDIS86, [0]))
+AC_DEFINE_UNQUOTED([USE_UDIS86],$USE_UDIS86,
+ [Define if use udis86 library])
+