summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-11 15:18:42 +0000
committermidipix <writeonce@midipix.org>2021-06-12 10:45:05 +0000
commite50c3b9e930110c284851b4c26a2af4187b2b72f (patch)
tree06efcf4d60fb1db0380c73a643b7f73f51b87f42 /configure
parent5f5ee7b159e9d041c59c70d58e7f7ec7627fa1cd (diff)
downloadntcon-e50c3b9e930110c284851b4c26a2af4187b2b72f.tar.bz2
ntcon-e50c3b9e930110c284851b4c26a2af4187b2b72f.tar.xz
build system: configure, ccenv: added --pkgconf[if] support and integration.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure32
1 files changed, 32 insertions, 0 deletions
diff --git a/configure b/configure
index bc7f9f7..d2283e0 100755
--- a/configure
+++ b/configure
@@ -186,6 +186,24 @@ init_vars()
mb_makefile='Makefile'
fi
+ # pkgconf (host)
+ if [ -z "${PKGCONF}" ]; then
+ PKGCONF="$mb_pkgconf"
+ fi
+
+ if [ -z "${PKGCONF}" ]; then
+ PKGCONF="${PKGCONFIG}"
+ fi
+
+ # pkgconf (native)
+ if [ -z "${NATIVE_PKGCONF}" ]; then
+ NATIVE_PKGCONF="$mb_native_pkgconf"
+ fi
+
+ if [ -z "${NATIVE_PKGCONF}" ]; then
+ NATIVE_PKGCONF="${NATIVE_PKGCONFIG}"
+ fi
+
# project-specific initialization
if [ _$mb_use_custom_cfginit = _yes ]; then
. "$mb_project_dir/project/config/cfginit.sh"
@@ -259,6 +277,9 @@ init_vars()
mb_cross_compile=$CROSS_COMPILE
mb_shell=$SHELL
+ # pkgconf
+ mb_pkgconf=$PKGCONF
+
# switches
mb_cflags=$CFLAGS
mb_cflags_debug=$CFLAGS_DEBUG
@@ -303,6 +324,8 @@ init_vars()
mb_native_cflags=$NATIVE_CFLAGS
mb_native_ldflags=$NATIVE_LDFLAGS
+ mb_native_pkgconf=$NATIVE_PKGCONF
+
mb_native_pe_subsystem=$NATIVE_PE_SUBSYSTEM
mb_native_pe_image_base=$NATIVE_PE_IMAGE_BASE
@@ -1107,6 +1130,15 @@ for arg ; do
mb_makemode=${arg#*=}
;;
+ #pkgconf[ig]
+ --pkgconf=*)
+ mb_pkgconf=${arg#*=}
+ ;;
+
+ --pkgconfig=*)
+ mb_pkgconf=${arg#*=}
+ ;;
+
# build
--build=*)
mb_build=${arg#*=}