From 1bfff16a59f3792292df465ab2b6ca75c6b709be Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 1 Jul 2006 12:40:07 +0200 Subject: [PATCH] configure.in: use specialize REPLACE_FUNCS The standard AC_REPLACE_FUNCS calls AC_LIBSOURCE, but our replacement files are not where autoconf expects them to be. --- dist/configure.in | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/dist/configure.in b/dist/configure.in index c6dc2219..ba290506 100644 --- a/dist/configure.in +++ b/dist/configure.in @@ -229,6 +229,11 @@ if test "$no_x" != yes; then fi fi +AC_DEFUN([VI_CV_REPLACE_FUNCS], +[AC_FOREACH([AC_Func], [$1], [])dnl +AC_CHECK_FUNCS([$1], , [_AC_LIBOBJ($ac_func)]) +]) + dnl Check if the user wants widechar support. AC_MSG_CHECKING(if --enable-widechar option specified) AC_ARG_ENABLE(widechar, @@ -243,7 +248,7 @@ dnl Check whether we can use iconv AC_CHECK_HEADER(langinfo.h, [ AC_CHECK_HEADER(iconv.h, [ AC_DEFINE(USE_ICONV) - AC_REPLACE_FUNCS(iswblank) + VI_CV_REPLACE_FUNCS(iswblank) ]) ]) @@ -587,12 +592,9 @@ AC_TYPE_SIZE_T AC_STRUCT_TM dnl Checks for library functions. - AC_CHECK_FUNCS(bsearch gethostname memchr memset) -AC_REPLACE_FUNCS(bsearch gethostname memchr memset) - AC_CHECK_FUNCS(mkstemp mmap strdup strpbrk) -AC_REPLACE_FUNCS(mkstemp mmap strdup strpbrk) - AC_CHECK_FUNCS(snprintf vsnprintf) -AC_REPLACE_FUNCS(snprintf vsnprintf) +VI_CV_REPLACE_FUNCS(bsearch gethostname memchr memset) +VI_CV_REPLACE_FUNCS(mkstemp mmap strdup strpbrk) +VI_CV_REPLACE_FUNCS(snprintf vsnprintf) AC_CHECK_FUNCS(select) AC_CHECK_FUNCS(setenv, [need_env=no], [need_env=yes]) -- 2.11.4.GIT