Fix compilation of included libiconv with autoconf

This commit is contained in:
Jean-Marc Lasgouttes 2020-11-19 13:40:26 +01:00
parent 031720b66a
commit b5d1f2f300
2 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,7 @@ EXTRA_DIST = \
1.15/libcharset/lib/ref-add.sin \
1.15/libcharset/lib/ref-del.sin
AM_CPPFLAGS += -I$(srcdir)/1.15/srclib -DLIBDIR=""
AM_CPPFLAGS += -I$(srcdir)/1.15/srclib -DLIBDIR=\"\"
# The two relocatable.c files confuse automake < 1.14, where we do not use
# subdir-objects. Therefore we cannot put both in liblyxiconv_a_SOURCES

View File

@ -535,6 +535,9 @@ AC_DEFUN([LYX_USE_INCLUDED_ICONV],[
if test x$lyx_cv_with_included_iconv = xyes ; then
lyx_included_libs="$lyx_included_libs iconv"
dnl This is hardcoded to make it compile
AC_DEFINE([HAVE_WORKING_O_NOFOLLOW], 0, [Define to 1 if O_NOFOLLOW works.])
dnl Some bits from libiconv configure.ac to avoid a nested configure call:
AC_EILSEQ
AC_TYPE_MBSTATE_T