]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acfunctions.m4 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_ONSTACK): Use
authorAkim Demaille <akim@epita.fr>
Sat, 3 Feb 2001 13:22:26 +0000 (13:22 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 3 Feb 2001 13:22:26 +0000 (13:22 +0000)
AC_LIBSOURCES.

ChangeLog
acfunctions.m4
lib/autoconf/functions.m4

index 4a69c98a6e5c21f9470d6f10268890a7427d2d25..7b8bd24ff86bac55abb87ff59ae723166ae55315 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-02-03  Akim Demaille  <akim@epita.fr>
+
+       * acfunctions.m4 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_ONSTACK): Use
+       AC_LIBSOURCES.
+
+       
 2001-02-03  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (AC_LIBOBJ_DECL): Remove.
index c50172cf21b7a3fd589e8a63ab4609f38448da70..6f4fb0219c463586d4efb94c4dcc7e4fd7aaef7e 100644 (file)
@@ -324,10 +324,11 @@ fi
 # 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 @@ AU_ALIAS([AC_MMAP], [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([@%:@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([@%:@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
index c50172cf21b7a3fd589e8a63ab4609f38448da70..6f4fb0219c463586d4efb94c4dcc7e4fd7aaef7e 100644 (file)
@@ -324,10 +324,11 @@ fi
 # 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 @@ AU_ALIAS([AC_MMAP], [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([@%:@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([@%:@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