Seeding from the 1.2 tree.
This commit is contained in:
12
macros/check_declaration.m4
Normal file
12
macros/check_declaration.m4
Normal file
@@ -0,0 +1,12 @@
|
||||
dnl AC_CHKDECL(pretty, unpretty, regexp, header)
|
||||
dnl Copyright (c) David Walluck 2000
|
||||
dnl All rights reserved.
|
||||
|
||||
AC_DEFUN(AC_CHECK_DECLARATION, [
|
||||
AC_CACHE_CHECK(for $1 in $4, ac_cv_$2_declared, [
|
||||
AC_EGREP_HEADER($3, $4, ac_cv_$2_declared="yes", ac_cv_$2_declared="no",)
|
||||
])
|
||||
if test x"$ac_cv_$2_declared" = x"yes"; then
|
||||
AC_DEFINE($5, 1, Define this if $2 is declared in $4.)
|
||||
fi
|
||||
])
|
||||
Reference in New Issue
Block a user