Check for res_ndestroy.
This commit is contained in:
parent
8af66a155c
commit
ec3e12b62a
18 changed files with 72 additions and 0 deletions
|
@ -8,6 +8,7 @@ aclocal.m4
|
|||
autom4te.cache
|
||||
build
|
||||
buildsys.mk
|
||||
config.h.in
|
||||
config.log
|
||||
config.status
|
||||
configure
|
||||
|
|
|
@ -416,6 +416,7 @@
|
|||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = HAVE_RES_NDESTROY;
|
||||
GCC_VERSION = 4.2;
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
OTHER_LDFLAGS = (
|
||||
|
@ -439,6 +440,7 @@
|
|||
FRAMEWORK_VERSION = A;
|
||||
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = HAVE_RES_NDESTROY;
|
||||
GCC_VERSION = 4.2;
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
OTHER_LDFLAGS = (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#!/bin/sh
|
||||
aclocal -I m4 || exit 1
|
||||
autoconf || exit 1
|
||||
autoheader || exit 1
|
||||
|
|
13
configure.ac
13
configure.ac
|
@ -64,6 +64,18 @@ AC_TRY_LINK([#include <sys/types.h>
|
|||
[AC_MSG_RESULT([in -lbind])],
|
||||
[AC_MSG_ERROR(not found)])])])])
|
||||
|
||||
AC_MSG_CHECKING([for res_ndestroy])
|
||||
AC_TRY_LINK([
|
||||
#include <resolv.h>
|
||||
], [
|
||||
res_ndestroy(&_res)
|
||||
], [
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_RES_NDESTROY, 1, [Whether we have res_ndestroy])
|
||||
], [
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
|
||||
AC_CHECK_LIB(objopenssl, main, [
|
||||
LIBS="$LIBS -lobjopenssl -lcrypto"
|
||||
], [
|
||||
|
@ -92,4 +104,5 @@ AC_SUBST(CPPFLAGS)
|
|||
|
||||
AC_SUBST(PACKAGE, ObjXMPP)
|
||||
AC_CONFIG_FILES([buildsys.mk extra.mk])
|
||||
AC_CONFIG_HEADERS(config.h)
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -25,4 +25,5 @@ INCLUDES = ${SRCS:.m=.h} \
|
|||
|
||||
include ../buildsys.mk
|
||||
|
||||
CPPFLAGS += -I.. -DHAVE_CONFIG_H
|
||||
LD = ${OBJC}
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#import "XMPPAuthenticator.h"
|
||||
|
||||
@implementation XMPPAuthenticator
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define XMPP_CONNECTION_M
|
||||
|
||||
#include <assert.h>
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#import "XMPPExceptions.h"
|
||||
|
||||
@implementation XMPPException
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#import "namespaces.h"
|
||||
#import "XMPPIQ.h"
|
||||
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stringprep.h>
|
||||
|
||||
#import "XMPPJID.h"
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#import "XMPPMessage.h"
|
||||
#import "namespaces.h"
|
||||
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#import "XMPPPLAINAuth.h"
|
||||
#import "XMPPExceptions.h"
|
||||
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#import "XMPPPresence.h"
|
||||
#import "namespaces.h"
|
||||
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#import "XMPPRoster.h"
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#import "XMPPRosterItem.h"
|
||||
|
||||
@implementation XMPPRosterItem
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <assert.h>
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
|
@ -239,7 +243,9 @@
|
|||
}
|
||||
} @finally {
|
||||
[self freeMemory: answer];
|
||||
#ifdef HAVE_RES_NDESTROY
|
||||
res_ndestroy(&resState);
|
||||
#endif
|
||||
}
|
||||
|
||||
[pool release];
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#import "XMPPStanza.h"
|
||||
#import "XMPPJID.h"
|
||||
#import "namespaces.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue