Skip to content

Commit

Permalink
Export boolean HAVE_PKGCONFIG variable
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed May 12, 2024
1 parent 8612320 commit afae286
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/acr-sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (C) 2005-2023
# Copyright (C) 2005-2024
# pancake <[email protected]>
#
# acr is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -1361,6 +1361,7 @@ use_pkgconfig() {
SCRIPT=`cat <<EOF
${SCRIPT}
ochof "checking for pkg-config... "
ENVWORDS="${S}{ENVWORDS} HAVE_PKGCONFIG"
if [ -n "${S}PKGCONFIG" ]; then
if [ -x "${S}PKGCONFIG" ]; then
_HAVE_PKGCONFIG="${S}{PKGCONFIG}"
Expand All @@ -1384,7 +1385,9 @@ else
fi
if [ -n "${S}{PKGCONFIG}" ]; then
ocho ${S}{PKGCONFIG}
HAVE_PKGCONFIG=1
else
HAVE_PKGCONFIG=0
EOF
`
if [ "${_REQUIRED}" = 1 ]; then
Expand Down

0 comments on commit afae286

Please sign in to comment.