freebsd-ports/textproc/sablotron/files/patch-configure
Tijl Coosemans b8d9710e93 - Patch configure so it prefers libc iconv over libiconv.
- Remove CHECK_LEAKS option and associated perl command from post-patch.
  It doesn't do anything on FreeBSD.
- Remove ICONV_TYPECAST option and associated patch.  Whether iconv
  requires a cast depends on the system.  It isn't a user option.  Just
  let configure auto-detect this.
- Make the perl dependency conditional on the DOCS option.
- USES=libtool.  This removes another perl command from post-patch.
- Replace remaining perl command in post-patch with REINPLACE_CMD.
2014-02-24 18:51:19 +00:00

21 lines
705 B
Text

--- configure.orig
+++ configure
@@ -22091,14 +22091,13 @@
if test ! x$silent = xyes; then
exec 6>&1
fi
- #standalone library rules over libc
- if test $iconv_in_iconv = 1 -o $libiconv_in_iconv = 1; then
+ if test $iconv_in_libc = 1; then
+ echo "$as_me:$LINENO: result: libc" >&5
+echo "${ECHO_T}libc" >&6
+ elif test $iconv_in_iconv = 1 -o $libiconv_in_iconv = 1; then
echo "$as_me:$LINENO: result: libiconv" >&5
echo "${ECHO_T}libiconv" >&6
ICONV_LIB=-liconv
- elif test $iconv_in_libc = 1; then
- echo "$as_me:$LINENO: result: libc" >&5
-echo "${ECHO_T}libc" >&6
else
echo "$as_me:$LINENO: result: not found (panic)" >&5
echo "${ECHO_T}not found (panic)" >&6