From c13d63ce49185e788f0dcdb1e8208721fa942475 Mon Sep 17 00:00:00 2001 From: Bruno Lima Date: Tue, 5 Jun 2012 14:27:49 -0300 Subject: [PATCH] build: Added snprintf and strdup to AC_CHECK_FUNCS in order to compile with OS X. --- config.h.in | 6 ++++++ configure.in | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config.h.in b/config.h.in index 04f5dc5..19725c3 100644 --- a/config.h.in +++ b/config.h.in @@ -29,6 +29,9 @@ and to 0 otherwise. */ #undef HAVE_REALLOC +/* Define to 1 if you have the `snprintf' function. */ +#undef HAVE_SNPRINTF + /* Define to 1 if you have the header file. */ #undef HAVE_STDARG_H @@ -38,6 +41,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H +/* Define to 1 if you have the `strdup' function. */ +#undef HAVE_STRDUP + /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR diff --git a/configure.in b/configure.in index b2c3cbe..53f99df 100644 --- a/configure.in +++ b/configure.in @@ -27,7 +27,7 @@ AC_FUNC_VPRINTF AC_FUNC_MEMCMP AC_FUNC_MALLOC AC_FUNC_REALLOC -AC_CHECK_FUNCS(strndup strerror vsnprintf vasprintf open vsyslog strncasecmp) +AC_CHECK_FUNCS(strndup strdup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp) AM_PROG_LIBTOOL