diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-09-24 20:34:52 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-09-24 20:34:52 +0000 |
commit | add121705310acbff522a0eb747c4bf1146fcc4f (patch) | |
tree | a46f2b93168517b670c4e768f77ec7ae5c13992c | |
parent | Include config.h before system headers (bug #338560). (diff) | |
download | eselect-python-add121705310acbff522a0eb747c4bf1146fcc4f.tar.gz eselect-python-add121705310acbff522a0eb747c4bf1146fcc4f.tar.bz2 eselect-python-add121705310acbff522a0eb747c4bf1146fcc4f.zip |
Use AC_LANG_SOURCE for compatibility with Autoconf 2.68.
-rw-r--r-- | configure.ac | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 9f9d305..67b8580 100644 --- a/configure.ac +++ b/configure.ac @@ -17,13 +17,12 @@ AC_CHECK_FUNCS([setenv strtok_r]) AC_MSG_CHECKING([for strndup]) old_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} -Wall -Werror -Wextra" -AC_LINK_IFELSE( -[#include <string.h> +AC_LINK_IFELSE([AC_LANG_SOURCE([[#include <string.h> int main() { strndup("", 0); return 0; -}], [have_strndup="1"], [have_strndup="0"]) +}]])], [have_strndup="1"], [have_strndup="0"]) if test "${have_strndup}" = "1"; then AC_MSG_RESULT([yes]) AC_DEFINE([HAVE_STRNDUP], [1], [Define to 1 if you have the 'strndup' function.]) |