Navigation Menu

Skip to content

Commit

Permalink
Add hack for OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Feb 24, 2016
1 parent 2685f88 commit 10a455b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions configure.ac
Expand Up @@ -20,6 +20,12 @@ AC_ARG_ENABLE(ncurses, [AC_HELP_STRING([--enable-ncurses], [use ncurses (switch
AC_HEADER_DIRENT AC_HEADER_DIRENT
AC_HEADER_STDC AC_HEADER_STDC


if test "`uname`" = "OpenBSD"
then
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
LDFLAGS="$LDFLAGS -L/usr/local/lib"
fi

AC_ARG_ENABLE(unicode, [AC_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes") AC_ARG_ENABLE(unicode, [AC_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes")
if test "x$enable_unicode" = xyes; then if test "x$enable_unicode" = xyes; then
AC_CHECK_LIB([ncursesw6], [refresh], [ AC_CHECK_LIB([ncursesw6], [refresh], [
Expand All @@ -40,9 +46,11 @@ if test "x$enable_unicode" = xyes; then
[AC_CHECK_HEADERS([ncurses/curses.h],[:], [AC_CHECK_HEADERS([ncurses/curses.h],[:],
[AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])])
AC_CHECK_LIB([iconv], [iconv], [], [ AC_CHECK_LIB([iconv], [iconv], [], [
AC_CHECK_LIB([c], [iconv], [], [ AC_CHECK_LIB([iconv], [libiconv], [], [
missing_libraries="$missing_libraries libiconv" AC_CHECK_LIB([c], [iconv], [], [
AC_MSG_ERROR([You may want to use --disable-unicode or install libiconv.]) missing_libraries="$missing_libraries libiconv"
AC_MSG_ERROR([You may want to use --disable-unicode or install libiconv.])
])
]) ])
]) ])
else else
Expand Down

0 comments on commit 10a455b

Please sign in to comment.