logo

utils-std

Collection of commonly available Unix tools
commit: a29304e9950e334393bbc20c937d9e33c61c6a03
parent 0efe8a4766cce7ff0a1229308a1e3aac985514d8
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 24 May 2024 00:40:41 +0200

configure: drop pkg-config

Diffstat:

Mconfigure17-----------------
1 file changed, 0 insertions(+), 17 deletions(-)

diff --git a/configure b/configure @@ -2,8 +2,6 @@ # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me> # SPDX-License-Identifier: MPL-2.0 -DEPS="" - usage() { cat <<END Usage: [variables] configure [variables] @@ -15,7 +13,6 @@ Variables: PERLDIR=DIR MANDIR=DIR - PKGCONFIG=BIN MSGFMT=BIN CC=BIN YACC=BIN @@ -54,12 +51,6 @@ or_die() { is_ok || exit 1 } -pkg_config_check() { - printf 'Checking: %s %s ...' "${PKGCONFIG}" "$*" - "${PKGCONFIG}" "$@" - is_ok -} - gen_targets() { printf 'EXE = ' printf '%s\n ' cmd/*.c cmd/*.y | grep -v -F -f target_filter | sed -e 's;\.c$;;' -e 's;\.y$;;' | tr -d '\n' @@ -118,7 +109,6 @@ set -o pipefail # defaults PREFIX="${PREFIX:-/usr/local}" -PKGCONFIG="${PKGCONFIG:-pkg-config}" MSGFMT="${MSGFMT:-msgfmt}" CC="${CC:-cc}" YACC="${YACC:-yacc}" @@ -176,12 +166,6 @@ check_cmd YACC "$YACC" || exit 1 check_cmd MAKE "$MAKE" || exit 1 check_cmd M4 "$M4" || exit 1 -if ! check_cmd PKGCONFIG "$PKGCONFIG" -then - echo 'Notice: Looking for extra libraries via pkg-config disabled' - PKGCONFIG="false" -fi - if ! check_cmd GCOV "$GCOV" then echo 'Notice: "coverage" target will fail' @@ -257,7 +241,6 @@ SHELLDIR = ${SHELLDIR} PERLDIR = ${PERLDIR} MANDIR = ${MANDIR} -PKGCONFIG = ${PKGCONFIG} CC = ${CC} YACC = ${YACC} MAKE = ${MAKE}