Skip to content

Commit

Permalink
On Linux, iconv is included in the libc.
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Feb 17, 2016
1 parent 5a285c1 commit 9a76ff4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H

/* Define to 1 if you have the `c' library (-lc). */
#undef HAVE_LIBC

/* Define to 1 if you have the `iconv' library (-liconv). */
#undef HAVE_LIBICONV

Expand Down
6 changes: 4 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ if test "x$enable_unicode" = xyes; then
[AC_CHECK_HEADERS([ncurses/curses.h],[:],
[AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])])
AC_CHECK_LIB([iconv], [iconv], [], [
missing_libraries="$missing_libraries libiconv"
AC_MSG_ERROR([You may want to use --disable-unicode or install libiconv.])
AC_CHECK_LIB([c], [iconv], [], [
missing_libraries="$missing_libraries libiconv"
AC_MSG_ERROR([You may want to use --disable-unicode or install libiconv.])
])
])
else
AC_CHECK_LIB([ncurses], [refresh], [], [missing_libraries="$missing_libraries libncurses"])
Expand Down

0 comments on commit 9a76ff4

Please sign in to comment.