From a983cdadfe9740a8973fc7fa613fa295a77a4324 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 29 Jan 2023 17:38:04 +0100 Subject: [PATCH] acinclude: move HAVE_UCLIBC handling to configure.ac; fix handling Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/9f51d73d1049d27e0d90f6799a73e415b4f33113 Author: vanhofen Date: 2023-01-29 (Sun, 29 Jan 2023) Origin message was: ------------------ - acinclude: move HAVE_UCLIBC handling to configure.ac; fix handling ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- acinclude.m4 | 3 --- configure.ac | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 102e67034..5ea2bf00f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -480,9 +480,6 @@ elif test "$BOXTYPE" = "mipsbox"; then AC_DEFINE(HAVE_MIPS_HARDWARE, 1, [building for an mipsbox]) fi -# uclibc -AM_CONDITIONAL(HAVE_UCLIBC, test "$targetlibdir/ld-uClibc.so.0") - # generic if test "$BOXMODEL" = "generic"; then AC_DEFINE(BOXMODEL_GENERIC, 1, [generic pc]) diff --git a/configure.ac b/configure.ac index 150a9d050..72cede424 100644 --- a/configure.ac +++ b/configure.ac @@ -516,6 +516,9 @@ else HWLIB_CFLAGS="$HWLIB_CFLAGS "'-I$(top_srcdir)/lib/hardware/coolstream' fi +# uclibc +AM_CONDITIONAL(HAVE_UCLIBC, $CC --version | grep -q "uclibc") + # hack, so that framebuffer.h does not need to be included everywhere... AC_DEFINE(fb_pixel_t, uint32_t, [hack, so that framebuffer.h does not need to be included everywhere...])