75 lines
2.6 KiB
Plaintext
75 lines
2.6 KiB
Plaintext
$OpenBSD: patch-configure,v 1.4 2011/08/21 09:21:02 ajacoutot Exp $
|
|
--- configure.orig Thu Aug 4 10:23:23 2011
|
|
+++ configure Sun Aug 21 11:06:23 2011
|
|
@@ -558,6 +558,9 @@ ac_unique_file="src/zabbix_server/server.c"
|
|
# Factoring default headers for most tests.
|
|
ac_includes_default="\
|
|
#include <stdio.h>
|
|
+#include <sys/socket.h>
|
|
+#include <sys/param.h>
|
|
+#include <netinet/in.h>
|
|
#ifdef HAVE_SYS_TYPES_H
|
|
# include <sys/types.h>
|
|
#endif
|
|
@@ -5810,6 +5813,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$
|
|
$as_echo_n "checking for field ss_family in struct sockaddr_storage... " >&6; }
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
+#include <stdio.h>
|
|
#include <sys/socket.h>
|
|
int
|
|
main ()
|
|
@@ -8262,7 +8266,7 @@ $as_echo "yes" >&6; }
|
|
|
|
JABBER_INCDIR=$IKSEMEL_CPPFLAGS
|
|
JABBER_LIBDIR=$IKSEMEL_LIBS
|
|
- JABBER_LIBS="-liksemel"
|
|
+ JABBER_LIBS="-liksemel -pthread"
|
|
|
|
fi
|
|
else
|
|
@@ -8272,7 +8276,7 @@ $as_echo_n "checking for iksemel support... " >&6; }
|
|
if test -f $_libiksemel_with/include/iksemel.h; then
|
|
JABBER_INCDIR=-I$_libiksemel_with/include
|
|
JABBER_LIBDIR=-L$_libiksemel_with/lib
|
|
- JABBER_LIBS="-liksemel"
|
|
+ JABBER_LIBS="-liksemel -pthread"
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
else
|
|
@@ -10011,7 +10015,7 @@ $as_echo "no" >&6; }
|
|
if test "x$found_ldap" != "xno" ; then
|
|
|
|
if test "x$enable_static" = "xyes"; then
|
|
- LDAP_LIBS=" -lgnutls -lpthread -lsasl2 $LDAP_LIBS"
|
|
+ LDAP_LIBS=" -lgnutls -pthread -lsasl2 $LDAP_LIBS"
|
|
fi
|
|
|
|
LDAP_CPPFLAGS=-I$LDAP_INCDIR
|
|
@@ -10071,13 +10075,13 @@ else
|
|
as_fn_error $? "Not found GnuTLS library" "$LINENO" 5
|
|
fi
|
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
|
|
-$as_echo_n "checking for main in -lpthread... " >&6; }
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -pthread" >&5
|
|
+$as_echo_n "checking for main in -pthread... " >&6; }
|
|
if test "${ac_cv_lib_pthread_main+set}" = set; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
-LIBS="-lpthread $LIBS"
|
|
+LIBS="-pthread $LIBS"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
@@ -10106,7 +10110,7 @@ if test "x$ac_cv_lib_pthread_main" = x""yes; then :
|
|
#define HAVE_LIBPTHREAD 1
|
|
_ACEOF
|
|
|
|
- LIBS="-lpthread $LIBS"
|
|
+ LIBS="-pthread $LIBS"
|
|
|
|
else
|
|
as_fn_error $? "Not found Pthread library" "$LINENO" 5
|