patch-configure_ac 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. $OpenBSD: patch-configure_ac,v 1.16 2017/02/02 12:04:43 danj Exp $
  2. --- configure.ac.orig Sun Nov 6 07:01:27 2016
  3. +++ configure.ac Thu Feb 2 06:50:26 2017
  4. @@ -156,7 +156,7 @@ AM_CONDITIONAL(CYGWIN, test x"$env_cygwin" = x"yes")
  5. if test "$GCC" = "yes"
  6. then
  7. - CFLAGS="$CFLAGS -Wno-unused-function"
  8. + CFLAGS="$CFLAGS -Wall"
  9. #CFLAGS="-g -Wall -Wno-unused-function"
  10. fi
  11. @@ -497,6 +497,8 @@ dnl password encryption
  12. OLDLIBS=$LIBS
  13. LIBS=
  14. case $host_os in
  15. + *openbsd*)
  16. + ;;
  17. *dragonfly*)
  18. AC_SEARCH_LIBS(encrypt, cipher, [], AC_MSG_ERROR(['encrypt'-function not found.]))
  19. ;;
  20. @@ -781,6 +783,7 @@ if test x"$enable_alternate_addressbook" = xno; then
  21. AC_CHECK_LIB(resolv, res_query, LDAP_LIBS="$LDAP_LIBS -lresolv")
  22. AC_CHECK_LIB(socket, bind, LDAP_LIBS="$LDAP_LIBS -lsocket")
  23. AC_CHECK_LIB(nsl, gethostbyaddr, LDAP_LIBS="$LDAP_LIBS -lnsl")
  24. + AC_CHECK_LIB(sasl2, sasl_version, LDAP_LIBS="$LDAP_LIBS -lsasl2")
  25. AC_CHECK_LIB(lber, ber_get_tag, LDAP_LIBS="$LDAP_LIBS -llber",,
  26. $LDAP_LIBS)
  27. @@ -853,7 +856,7 @@ if test x"$enable_alternate_addressbook" = xno; then
  28. AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.) ])
  29. fi
  30. - AC_CHECK_LIB(pisock, unpack_Address, [JPILOT_LIBS="-lpisock"], [JPILOT_LIBS="" enable_jpilot="no"])
  31. + AC_CHECK_LIB(pisock, unpack_Address, [JPILOT_LIBS="-lpisock -pthread"], [JPILOT_LIBS="" enable_jpilot="no"], -pthread)
  32. if test x"$enable_jpilot" = xyes; then
  33. AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.)
  34. else