summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-08-24 07:05:35 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-08-24 07:05:35 +0100
commitd209b03915e4d12ce445d72ac09bb4fe664ba664 (patch)
treecdffabf2b248ac1bf8f35b9ad9f075ecd11da17f
parent12c051d5c673d79c16a3a1478c0977799484ca95 (diff)
configure: Add guards for os.h redefines
os.h redefines a few common libc functions, so check if the host provides them first and inform os.h if that is the case. Suggested-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9146d074..4f1cff71 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,6 +62,9 @@ AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_SYS_LARGEFILE
+# Check for common libc routines redefined by os.h
+AC_CHECK_FUNCS([strlcpy strlcat strndup], [], [])
+
# Platform specific settings
case $host_os in
*linux*)