pkgsrc/textproc/chasen-base/patches/patch-am
taca 3f93792c99 Update chasen to 2.4.4:
----------------------------------------------------------------------
ChaSen 2.4.4 (2008/07/24)
----------------------------------------------------------------------
- perl module is updated.
  (Changed to BSD License)
- chmod +x tests/*.sh

----------------------------------------------------------------------
ChaSen 2.4.3 (2008/05/31)
----------------------------------------------------------------------
- bug fix
  http://sourceforge.jp/tracker/index.php?func=detail&aid=12464&group_id=2619&atid=9708
  please use darts-0.32 or higher.
2008-08-03 15:24:05 +00:00

28 lines
969 B
Text

$NetBSD: patch-am,v 1.3 2008/08/03 15:24:05 taca Exp $
--- configure.in.orig 2008-07-23 13:15:36.000000000 +0900
+++ configure.in
@@ -32,7 +32,7 @@ dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h sys/param.h unistd.h])
AC_CHECK_HEADERS([sys/param.h sys/types.h netinet/in.h])
-AC_CHECK_HEADERS([io.h windows.h])
+AC_CHECK_HEADERS([io.h windows.h iconv.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
@@ -77,8 +77,12 @@ AC_ARG_WITH(libiconv,
AC_SUBST(ICONV_CFLAGS)
fi])
-AC_CHECK_LIB(iconv, iconv, [], [
- AC_CHECK_HEADER(iconv.h, [], AC_MSG_ERROR([ChaSen needs iconv]))])
+save_libs="$LIBS"
+LIBS="$LIBS -liconv"
+ac_cv_lib_iconv_iconv=no
+AC_TRY_LINK([#include <iconv.h>], [iconv(0, 0, 0, 0, 0)],
+ [ac_cv_lib_iconv_iconv=yes], [AC_MSG_ERROR([ChaSen needs iconv])])
+AC_MSG_RESULT($ac_cv_lib_iconv_iconv)
AC_DEFUN(cl_VAR_ICONV_ARG, [
for CODE in $2; do