Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current popt build system tests the existence of <glob.h>, and then assumes that if __GLIBC__ is defined, then glob_pattern_p() must be available. Unfortunately, that's not true with uClibc: <glob.h> may be installed, but not necessarily the GNU glob extensions... and uClibc defines __GLIBC__. This is causing build issues with certain uClibc toolchains that do not have GNU glob extensions enabled. To fix this, this patch adds an AC_CHECK_FUNCS() test for glob_pattern_p, and uses that to find out whether glob_pattern_p() is available or not. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Retrieved (and slightly updated) from: https://git.buildroot.net/buildroot/tree/package/popt/0003-glob-detection.patch] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
- Loading branch information