OSDN Git Service

Add a check on the existence of libiconv
authorHabu <habu@users.sourceforge.jp>
Mon, 3 Mar 2014 03:48:28 +0000 (12:48 +0900)
committerHabu <habu@users.sourceforge.jp>
Mon, 3 Mar 2014 03:48:28 +0000 (12:48 +0900)
glibcにiconv関数が統合されていない環境を考慮し、libiconvが存在する場合は
gccのオプションに-liconvが付加されるようにした。

configure.ac

index f37cc0f..e7fc640 100644 (file)
@@ -67,6 +67,8 @@ if test "$ac_cv_lib_ncursesw_initscr" != yes; then
   fi
 fi
 
+AC_CHECK_LIB(iconv, iconv_open)
+
 dnl Checks for header files.
 AC_PATH_XTRA
 if test "$have_x" = yes; then