configure.in
来自「非常好的dns解析软件」· IN 代码 · 共 2,640 行 · 第 1/5 页
IN
2,640 行
#include <netdb.h>void endprotoent_r(struct protoent_data *);],,[PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"PROTO_R_ENT_ARGS="#define PROTO_R_ENT_ARGS struct protoent_data *proto_data"PROTO_R_ENT_UNUSED="#define PROTO_R_ENT_UNUSED UNUSED(proto_data)"],AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>int endprotoent_r(struct protoent_data *);],,[PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) return(0)"PROTO_R_END_RETURN="#define PROTO_R_END_RETURN int"PROTO_R_ENT_ARGS="#define PROTO_R_ENT_ARGS struct protoent_data *proto_data"PROTO_R_ENT_UNUSED="#define PROTO_R_ENT_UNUSED UNUSED(proto_data)"],))),PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS /*empty*/"PROTO_R_ENT_UNUSED="#undef PROTO_R_ENT_UNUSED")esacAC_SUBST(PROTO_R_END_RESULT)AC_SUBST(PROTO_R_END_RETURN)AC_SUBST(PROTO_R_ENT_ARGS)AC_SUBST(PROTO_R_ENT_UNUSED)case $host inia64-hp-hpux11.*);;*)AC_CHECK_FUNC(setprotoent_r,AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>void setprotoent_r __P((int));],[],PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT"PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void",AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>int setprotoent_r (int, struct protoent_data *);],[],PROTO_R_SET_RESULT="#define PROTO_R_SET_RESULT (0)"PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN int",)),PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT"PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void")esacAC_SUBST(PROTO_R_SET_RESULT)AC_SUBST(PROTO_R_SET_RETURN)AC_CHECK_FUNC(getpwent_r,AC_TRY_COMPILE([#include <sys/types.h>#include <pwd.h>struct passwd *getpwent_r(struct passwd *pwptr, char *buf, int buflen) {}],[],PASS_R_ARGS="#define PASS_R_ARGS char *buf, int buflen"PASS_R_BAD="#define PASS_R_BAD NULL"PASS_R_COPY="#define PASS_R_COPY buf, buflen"PASS_R_COPY_ARGS="#define PASS_R_COPY_ARGS PASS_R_ARGS"PASS_R_OK="#define PASS_R_OK pwptr"PASS_R_RETURN="#define PASS_R_RETURN struct passwd *",),PASS_R_ARGS="#define PASS_R_ARGS char *buf, int buflen"PASS_R_BAD="#define PASS_R_BAD NULL"PASS_R_COPY="#define PASS_R_COPY buf, buflen"PASS_R_COPY_ARGS="#define PASS_R_COPY_ARGS PASS_R_ARGS"PASS_R_OK="#define PASS_R_OK pwptr"PASS_R_RETURN="#define PASS_R_RETURN struct passwd *"AC_DEFINE(NEED_GETPWENT_R))AC_SUBST(PASS_R_ARGS)AC_SUBST(PASS_R_BAD)AC_SUBST(PASS_R_COPY)AC_SUBST(PASS_R_COPY_ARGS)AC_SUBST(PASS_R_OK)AC_SUBST(PASS_R_RETURN)AC_CHECK_FUNC(endpwent_r,AC_TRY_COMPILE([#include <pwd.h>void endpwent_r(FILE **pwfp);], ,PASS_R_END_RESULT="#define PASS_R_END_RESULT(x) /*empty*/"PASS_R_END_RETURN="#define PASS_R_END_RETURN void"PASS_R_ENT_ARGS="#define PASS_R_ENT_ARGS FILE **pwptr",),PASS_R_END_RESULT="#define PASS_R_END_RESULT(x) /*empty*/"PASS_R_END_RETURN="#define PASS_R_END_RETURN void"PASS_R_ENT_ARGS="#undef PASS_R_ENT_ARGS"AC_DEFINE(NEED_ENDPWENT_R))AC_SUBST(PASS_R_END_RESULT)AC_SUBST(PASS_R_END_RETURN)AC_SUBST(PASS_R_ENT_ARGS)AC_CHECK_FUNC(setpassent_r,,AC_DEFINE(NEED_SETPASSENT_R))AC_CHECK_FUNC(setpassent,,AC_DEFINE(NEED_SETPASSENT))AC_CHECK_FUNC(setpwent_r,AC_TRY_COMPILE([#include <pwd.h>void setpwent_r(FILE **pwfp);], ,PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /* empty */"PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int",AC_TRY_COMPILE([#include <pwd.h>int setpwent_r(FILE **pwfp);], ,PASS_R_SET_RESULT="#define PASS_R_SET_RESULT 0"PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int",)),PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /*empty*/"PASS_R_SET_RETURN="#define PASS_R_SET_RETURN void"AC_DEFINE(NEED_SETPWENT_R))AC_SUBST(PASS_R_SET_RESULT)AC_SUBST(PASS_R_SET_RETURN)AC_CHECK_FUNC(getpwnam_r,,AC_DEFINE(NEED_GETPWNAM_R))AC_CHECK_FUNC(getpwuid_r,,AC_DEFINE(NEED_GETPWUID_R))case $host inia64-hp-hpux11.*);;*)AC_CHECK_FUNC(getservent_r,AC_TRY_COMPILE([#undef __USE_MISC#define __USE_MISC#include <netdb.h>struct servent *getservent_r(struct servent *result, char *buffer, int buflen) {}],[return (0);],[SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"SERV_R_BAD="#define SERV_R_BAD NULL"SERV_R_COPY="#define SERV_R_COPY buf, buflen"SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS"SERV_R_OK="#define SERV_R_OK sptr"SERV_R_SETANSWER="#undef SERV_R_SETANSWER"SERV_R_RETURN="#define SERV_R_RETURN struct servent *"],AC_TRY_COMPILE([#undef __USE_MISC#define __USE_MISC#include <netdb.h>intgetservent_r (struct servent *, char *, size_t, struct servent **);],[return (0);],[SERV_R_ARGS="#define SERV_R_ARGS char *buf, size_t buflen, struct servent **answerp"SERV_R_BAD="#define SERV_R_BAD ERANGE"SERV_R_COPY="#define SERV_R_COPY buf, buflen"SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS char *buf, size_t buflen"SERV_R_OK="#define SERV_R_OK (0)"SERV_R_SETANSWER="#define SERV_R_SETANSWER 1"SERV_R_RETURN="#define SERV_R_RETURN int"],AC_TRY_COMPILE([#undef __USE_MISC#define __USE_MISC#include <netdb.h>intgetservent_r (struct servent *, struct servent_data *serv_data);],[return (0);],[SERV_R_ARGS="#define SERV_R_ARGS struct servent_data *serv_data"SERV_R_BAD="#define SERV_R_BAD (-1)"SERV_R_COPY="#define SERV_R_COPY serv_data"SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS struct servent_data *sdptr"SERV_R_OK="#define SERV_R_OK (0)"SERV_R_SETANSWER="#undef SERV_R_SETANSWER"SERV_R_RETURN="#define SERV_R_RETURN int"SERVENT_DATA="#define SERVENT_DATA 1"],))),SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"SERV_R_BAD="#define SERV_R_BAD NULL"SERV_R_COPY="#define SERV_R_COPY buf, buflen"SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS"SERV_R_OK="#define SERV_R_OK sptr"SERV_R_SETANSWER="#undef SERV_R_SETANSWER"SERV_R_RETURN="#define SERV_R_RETURN struct servent *")esacAC_SUBST(SERV_R_ARGS)AC_SUBST(SERV_R_BAD)AC_SUBST(SERV_R_COPY)AC_SUBST(SERV_R_COPY_ARGS)AC_SUBST(SERV_R_OK)AC_SUBST(SERV_R_SETANSWER)AC_SUBST(SERV_R_RETURN)AC_SUBST(SERVENT_DATA)case $host inia64-hp-hpux11.*);;*)AC_CHECK_FUNC(endservent_r,AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>void endservent_r(void);],,[SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"SERV_R_END_RETURN="#define SERV_R_END_RETURN void "SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/"SERV_R_ENT_UNUSED="#undef SERV_R_ENT_UNUSED /*empty*/"],AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>void endservent_r(struct servent_data *serv_data);],,[SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"SERV_R_END_RETURN="#define SERV_R_END_RETURN void "SERV_R_ENT_ARGS="#define SERV_R_ENT_ARGS struct servent_data *serv_data"SERV_R_ENT_UNUSED="#define SERV_R_ENT_UNUSED UNUSED(serv_data)"],AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>int endservent_r(struct servent_data *serv_data);],,[SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) return(x)"SERV_R_END_RETURN="#define SERV_R_END_RETURN int "SERV_R_ENT_ARGS="#define SERV_R_ENT_ARGS struct servent_data *serv_data"SERV_R_ENT_UNUSED="#define SERV_R_ENT_UNUSED UNUSED(serv_data)"],))),SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"SERV_R_END_RETURN="#define SERV_R_END_RETURN void "SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/"SERV_R_ENT_UNUSED="#undef SERV_R_ENT_UNUSED /*empty*/")esacAC_SUBST(SERV_R_END_RESULT)AC_SUBST(SERV_R_END_RETURN)AC_SUBST(SERV_R_ENT_ARGS)AC_SUBST(SERV_R_ENT_UNUSED)case $host inia64-hp-hpux11.*);;*)AC_CHECK_FUNC(setservent_r,AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>void setservent_r(int);],,[SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT"SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void"],AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>int setservent_r(int, struct servent_data *);],,[SERV_R_SET_RESULT="#define SERV_R_SET_RESULT (0)"SERV_R_SET_RETURN="#define SERV_R_SET_RETURN int"],)),SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT"SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void")esacAC_SUBST(SERV_R_SET_RESULT)AC_SUBST(SERV_R_SET_RETURN)AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <unistd.h>#include <netdb.h>int innetgr(const char *netgroup, const char *host, const char *user, const char *domain);],,[INNETGR_ARGS="#undef INNETGR_ARGS"],AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <unistd.h>#include <netdb.h>int innetgr(char *netgroup, char *host, char *user, char *domain);],,[INNETGR_ARGS="#define INNETGR_ARGS char *netgroup, char *host, char *user, char *domain"],))AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <unistd.h>#include <netdb.h>void setnetgrent(const char *);],,[SETNETGRENT_ARGS="#undef SETNETGRENT_ARGS"],AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <unistd.h>#include <netdb.h>void setnetgrent(char *);],,[SETNETGRENT_ARGS="#define SETNETGRENT_ARGS char *netgroup"],))AC_SUBST(SETNETGRENT_ARGS)AC_SUBST(INNETGR_ARGS)## Random remaining OS-specific issues involving compiler warnings.# XXXDCL print messages to indicate some compensation is being done?#BROKEN_IN6ADDR_INIT_MACROS="#undef BROKEN_IN6ADDR_INIT_MACROS"case "$host" in *-aix5.1.*) hack_shutup_pthreadmutexinit=yes hack_shutup_in6addr_init_macros=yes ;; *-aix5.[[23]].*) hack_shutup_in6addr_init_macros=yes ;; *-bsdi3.1*) hack_shutup_sputaux=yes ;; *-bsdi4.0*) hack_shutup_sigwait=yes hack_shutup_sputaux=yes hack_shutup_in6addr_init_macros=yes ;; *-bsdi4.1*) hack_shutup_stdargcast=yes ;; *-hpux11.11) hack_shutup_in6addr_init_macros=yes ;; *-osf5.1|*-osf5.1b) hack_shutup_in6addr_init_macros=yes ;; *-solaris2.8) hack_shutup_in6addr_init_macros=yes ;; *-solaris2.9) hack_shutup_in6addr_init_macros=yes ;; *-solaris2.10) hack_shutup_in6addr_init_macros=yes ;;esaccase "$hack_shutup_pthreadmutexinit" in yes) # # Shut up PTHREAD_MUTEX_INITIALIZER unbraced # initializer warnings. # AC_DEFINE(SHUTUP_MUTEX_INITIALIZER) ;;esaccase "$hack_shutup_sigwait" in yes) # # Shut up a -Wmissing-prototypes warning for sigwait(). # AC_DEFINE(SHUTUP_SIGWAIT) ;;esaccase "$hack_shutup_sputaux" in yes) # # Shut up a -Wmissing-prototypes warning from <stdio.h>. # AC_DEFINE(SHUTUP_SPUTAUX) ;;esaccase "$hack_shutup_stdargcast" in yes) # # Shut up a -Wcast-qual warning from va_start(). # AC_DEFINE(SHUTUP_STDARG_CAST) ;;esaccase "$hack_shutup_in6addr_init_macros" in yes) AC_DEFINE(BROKEN_IN6ADDR_INIT_MACROS, 1, [Defined if IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT need to be redefined.] ) ;;esac## Substitutions#AC_SUBST(BIND9_TOP_BUILDDIR)BIND9_TOP_BUILDDIR=`pwd`AC_SUBST_FILE(BIND9_INCLUDES)BIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includesAC_SUBST_FILE(BIND9_MAKE_RULES)BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?