[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
32-use-ac-libsources.patch
From: |
Akim Demaille |
Subject: |
32-use-ac-libsources.patch |
Date: |
02 Feb 2001 18:50:44 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake) |
Index: ChangeLog
from Akim Demaille <address@hidden>
* acfunctions.m4 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_ONSTACK): Use
AC_LIBSOURCES.
Index: acfunctions.m4
--- acfunctions.m4 Thu, 01 Feb 2001 20:35:31 +0100 akim (ace/b/37_acfunction
1.16 644)
+++ acfunctions.m4 Thu, 01 Feb 2001 22:00:25 +0100 akim (ace/b/37_acfunction
1.16 644)
@@ -324,10 +324,11 @@ AC_DEFUN([AC_FUNC_CLOSEDIR_VOID],
# AC_FUNC_ERROR_AT_LINE
# ---------------------
AC_DEFUN([AC_FUNC_ERROR_AT_LINE],
-[AC_CACHE_CHECK([for error_at_line], ac_cv_lib_error_at_line,
+[AC_LIBSOURCES([error.h, error.c])dnl
+AC_CACHE_CHECK([for error_at_line], ac_cv_lib_error_at_line,
[AC_TRY_LINK([],[error_at_line (0, 0, "", 0, "");],
- ac_cv_lib_error_at_line=yes,
- ac_cv_lib_error_at_line=no)])
+ [ac_cv_lib_error_at_line=yes],
+ [ac_cv_lib_error_at_line=no])])
if test $ac_cv_lib_error_at_line = no; then
AC_LIBOBJ(error)
fi
@@ -1090,11 +1091,12 @@ AC_DEFUN([AC_FUNC_MMAP],
# ---------------
# Ensure obstack support. Yeah, this is not exactly a `FUNC' check.
AC_DEFUN([AC_FUNC_OBSTACK],
-[AC_CACHE_CHECK([for obstacks], ac_cv_func_obstack,
- [AC_TRY_LINK(address@hidden:@include "obstack.h"],
- [struct obstack *mem;obstack_free(mem,(char *) 0)],
- ac_cv_func_obstack=yes,
- ac_cv_func_obstack=no)])
+[AC_LIBSOURCES([obstack.h, obstack.c])dnl
+AC_CACHE_CHECK([for obstacks], ac_cv_func_obstack,
+[AC_TRY_LINK(address@hidden:@include "obstack.h"],
+ [struct obstack *mem; obstack_free(mem,(char *) 0)],
+ [ac_cv_func_obstack=yes],
+ [ac_cv_func_obstack=no])])
if test $ac_cv_func_obstack = yes; then
AC_DEFINE(HAVE_OBSTACK, 1, [Define if libc includes obstacks.])
else
- 32-use-ac-libsources.patch,
Akim Demaille <=