diff --git a/ChangeLog b/ChangeLog index 03a459f42..84b8fba0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ v0.3.7-dev, 2011-11-12 Version 0.3.7 (under dev!) -------------------------- +* core: fix compilation under OpenBSD 5.0 (lib utf8 not needed any more) + (bug #34727) * core: add new option weechat.completion.base_word_until_cursor: allow completion in middle of words (enabled by default) (task #9771) * core: add option "jump_last_buffer_displayed" for command /input diff --git a/configure.in b/configure.in index 9bb9e1956..64f1f15b1 100644 --- a/configure.in +++ b/configure.in @@ -70,11 +70,6 @@ AC_CHECK_LIB(ncursesw, initscr, LIBNCURSESW_FOUND=1, LIBNCURSESW_FOUND=0) AC_HEADER_STDC AC_CHECK_HEADERS([arpa/inet.h libintl.h limits.h locale.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h sys/types.h unistd.h pwd.h errno.h regex.h wchar.h sys/file.h]) -if echo "$host_os" | grep "^openbsd" 1>/dev/null 2>&1 ; then - AC_CHECK_HEADER(utf8/wchar.h, LDFLAGS="$LDFLAGS -lutf8", [AC_MSG_ERROR([ -*** on OpenBSD systems, package libutf8 must be installed to compile WeeChat])]) -fi - # Checks for typedefs, structures, and compiler characteristics AC_HEADER_TIME AC_STRUCT_TM diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5b1ec5c9b..9fe2d9f53 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -40,9 +40,6 @@ CHECK_INCLUDE_FILES("pwd.h" HAVE_PWD_H) CHECK_INCLUDE_FILES("errno.h" HAVE_ERRNO_H) CHECK_INCLUDE_FILES("wchar.h" HAVE_WCHAR_H) CHECK_INCLUDE_FILES("langinfo.h" HAVE_LANGINFO_CODESET) -IF(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") - CHECK_INCLUDE_FILES("utf8/wchar.h" HAVE_UTF8_WCHAR_H) -ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") CHECK_FUNCTION_EXISTS(gethostbyname HAVE_GETHOSTBYNAME) CHECK_FUNCTION_EXISTS(gethostname HAVE_GETHOSTNAME) diff --git a/src/core/wee-string.c b/src/core/wee-string.c index 679c0c21a..6207040d0 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -32,12 +32,7 @@ #include #include #include - -#if defined(__OpenBSD__) -#include -#else #include -#endif #ifdef HAVE_ICONV #include diff --git a/src/core/wee-utf8.h b/src/core/wee-utf8.h index 07080a3c2..d62b099f3 100644 --- a/src/core/wee-utf8.h +++ b/src/core/wee-utf8.h @@ -24,11 +24,7 @@ #define __USE_XOPEN #endif -#if defined(__OpenBSD__) -#include -#else #include -#endif extern int local_utf8; diff --git a/src/gui/curses/CMakeLists.txt b/src/gui/curses/CMakeLists.txt index 2630201db..a27c92409 100644 --- a/src/gui/curses/CMakeLists.txt +++ b/src/gui/curses/CMakeLists.txt @@ -51,10 +51,6 @@ IF(NCURSES_FOUND) LIST(APPEND EXTRA_LIBS ${NCURSES_LIBRARY}) ENDIF(NCURSES_FOUND) -IF(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") - LIST(APPEND EXTRA_LIBS "utf8") -ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") - IF(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") IF(HAVE_BACKTRACE) LIST(APPEND EXTRA_LIBS "execinfo")