Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions qemu_mode/build_qemu_support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,16 @@ if [ ! -f "../afl-showmap" ]; then
fi


DEPENDENCY_ERR=false

for i in libtool wget python automake autoconf sha384sum bison iconv; do

T=`which "$i" 2>/dev/null`

if [ "$T" = "" ]; then

echo "[-] Error: '$i' not found, please install first."
exit 1
DEPENDENCY_ERR=true

fi

Expand All @@ -78,17 +80,24 @@ done
if [ ! -d "/usr/include/glib-2.0/" -a ! -d "/usr/local/include/glib-2.0/" ]; then

echo "[-] Error: devel version of 'glib2' not found, please install first."
exit 1
DEPENDENCY_ERR=true

fi

if [ "$DEPENDENCY_ERR" = true ]; then

echo "[-] Error: dependencies missing. Please install them and try again!"
exit 1

fi

if echo "$CC" | grep -qF /afl-; then

echo "[-] Error: do not use afl-gcc or afl-clang to compile this tool."
exit 1

fi


echo "[+] All checks passed!"

ARCHIVE="`basename -- "$QEMU_URL"`"
Expand Down