File tree Expand file tree Collapse file tree 6 files changed +108
-374
lines changed Expand file tree Collapse file tree 6 files changed +108
-374
lines changed Original file line number Diff line number Diff line change @@ -667,7 +667,7 @@ BUILD_LIBINTL_FALSE
667667BUILD_LIBINTL_TRUE
668668USE_NLS_FALSE
669669USE_NLS_TRUE
670- XTRA_INTL_CPPFLAGS
670+ LIBINTL_PKGS
671671POSUB
672672LTLIBINTL
673673LIBINTL
@@ -63696,7 +63696,9 @@ printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
6369663696
6369763697
6369863698 if test -n "$INTL_MACOSX_LIBS"; then
63699- XTRA_INTL_CPPFLAGS=-I/System/Library/Frameworks/CoreFoundation.framework/Headers
63699+ LIBINTL_PKGS =
63700+ else
63701+ LIBINTL_PKGS = $(LIBINTL)
6370063702 fi
6370163703 echo "Finished configuring src/extra/intl directory"
6370263704 echo
Original file line number Diff line number Diff line change @@ -2926,14 +2926,21 @@ if test "${USE_NLS}" = "yes"; then
29262926 AM_GNU_GETTEXT_VERSION(0.16.1)
29272927 AM_GNU_GETTEXT([ no-libtool] , [ need-ngettext] , [ ../extra/intl] )
29282928 if test -n "$INTL_MACOSX_LIBS"; then
2929- XTRA_INTL_CPPFLAGS=-I/System/Library/Frameworks/CoreFoundation.framework/Headers
2929+ dnl This is no longer valid (if it ever was)
2930+ dnl XTRA_INTL_CPPFLAGS=-I/System/Library/Frameworks/CoreFoundation.framework/Headers
2931+ dnl On a macOS build which uses static libraries, libintk_dgettext
2932+ dnl etc are provided by libR.dylib
2933+ LIBINTL_PKGS =
2934+ else
2935+ LIBINTL_PKGS = $(LIBINTL)
29302936 fi
29312937 echo "Finished configuring src/extra/intl directory"
29322938 echo
29332939else
29342940 USE_INCLUDED_LIBINTL=no
29352941fi
2936- AC_SUBST ( XTRA_INTL_CPPFLAGS )
2942+ dnl AC_SUBST(XTRA_INTL_CPPFLAGS)
2943+ AC_SUBST ( LIBINTL_PKGS )
29372944
29382945AM_CONDITIONAL(USE_NLS, [ test "x${USE_NLS}" = xyes] )
29392946AM_CONDITIONAL(BUILD_LIBINTL, [ test "x${USE_INCLUDED_LIBINTL}" = xyes] )
Original file line number Diff line number Diff line change @@ -92,12 +92,15 @@ JAVA_LIBS = @JAVA_LIBS0@
9292JAVA_LD_LIBRARY_PATH = @JAVA_LD_LIBRARY_PATH@
9393LAPACK_LIBS = @LAPACK_LIBS@
9494LDFLAGS = @LDFLAGS@
95- # # we only need this is if it is external, as otherwise link to R
96- LIBINTL = @LIBINTL@
95+ # # We only need this is if it is external, as otherwise link to R
96+ # # Oo macOS, where libintl is static and so compiled in, can still link to R
97+ LIBINTL = @LIBINTL_PKGS@
9798LIBM = @LIBM@
9899LIBR0 = @LIBR0@
99100LIBR1 = @LIBR1@
100101LIBR = @LIBR0@ @LIBR1@
102+ # # FIXME: LIBS is approporiate for building R,
103+ # # but not for packages if static libse are used.
101104LIBS = @LIBS@
102105# # needed by R CMD config
103106LIBnn = @LIBnn@
You can’t perform that action at this time.
0 commit comments