From: Alan T. DeKok Date: Sat, 9 Mar 2013 18:11:59 +0000 (-0500) Subject: Remove RADIUSD_NEED_DECLARATION X-Git-Tag: release_3_0_0_beta1~779 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c1c4fdfd5b2564cb414f0c63b350932f7eff6f1;p=thirdparty%2Ffreeradius-server.git Remove RADIUSD_NEED_DECLARATION --- diff --git a/acinclude.m4 b/acinclude.m4 index d0e9200e2be..aae2edcdb6f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1,77 +1,3 @@ -dnl See whether we need a declaration for a function. -dnl RADIUSD_NEED_DECLARATION(FUNCTION [, EXTRA-HEADER-FILES]) -AC_DEFUN([RADIUSD_NEED_DECLARATION], -[AC_MSG_CHECKING([whether $1 must be declared]) -AC_CACHE_VAL(radius_cv_decl_needed_$1, -[AC_TRY_COMPILE([ -#include -#include -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_CRYPT_H -#include -#endif -#ifdef HAVE_ERRNO_H -#include -#endif -#ifdef HAVE_RESOURCE_H -#include -#endif -#ifdef HAVE_GETOPT_H -#include -#endif -#ifdef HAVE_MALLOC_H -#include -#endif -#ifdef HAVE_UTMP_H -#include -#endif -#ifdef HAVE_UTMPX_H -#include -#endif -#ifdef HAVE_SYS_SELECT_H -#include -#endif -#ifdef HAVE_DLFCN_H -#include -#endif -#ifdef HAVE_REGEX_H -#include -#endif -#ifdef HAVE_SYSLOG_H -#include -#endif -#ifdef HAVE_INTTYPES_H -#include -#endif -#ifdef HAVE_STDINT_H -#include -#endif -#ifdef HAVE_ARPA_INET_H -#include -#endif -$2], -[char *(*pfn) = (char *(*)) $1], -eval "radius_cv_decl_needed_$1=no", eval "radius_cv_decl_needed_$1=yes")]) -if eval "test \"`echo '$radius_cv_decl_needed_'$1`\" = yes"; then - AC_MSG_RESULT(yes) - radius_tr_decl=NEED_DECLARATION_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - AC_DEFINE_UNQUOTED($radius_tr_decl) -else - AC_MSG_RESULT(no) -fi -])dnl - -dnl Check multiple functions to see whether each needs a declaration. -dnl RADIUSD_NEED_DECLARATIONS(FUNCTION... [, EXTRA-HEADER-FILES]) -AC_DEFUN([RADIUSD_NEED_DECLARATIONS], -[for ac_func in $1 -do -RADIUSD_NEED_DECLARATION($ac_func, $2) -done -]) - dnl Checks to see if this is SUNPro we're building with dnl Usage: dnl AC_PROG_CC_SUNPRO