From: "Maxin B. John"
This patch fixes a case where it find crypt defined in libc (musl) but
not in specified libraries then it ends up assigning
LIBCRYPT="-l" which then goes into makefile cause all sort of problems
e.g.
ld: cannot find -l-m32
| collect2: error: ld
From: "Maxin B. John"
Define strndupa if not available in libc. Also fix headers to explicitly
needed include files which glibc was including indirectly
Signed-off-by: Khem Raj
Signed-off-by: Maxin B. John
---
From: "Maxin B. John"
In order to support alternative libc on linux ( musl, bioninc) etc we need
to check for glibc-only features and provide alternatives. In this list
strndupa is first one. When configure detects that its not included
in system C library then the