You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

279 lines
7.2 KiB

  1. diff -u --recursive vips-7.28.9-vanilla/configure.in vips-7.28.9/configure.in
  2. --- vips-7.28.9-vanilla/configure.in 2012-07-14 22:35:08.209029299 -0500
  3. +++ vips-7.28.9/configure.in 2012-07-14 22:36:25.634927858 -0500
  4. @@ -182,7 +182,6 @@
  5. AC_PROG_AWK
  6. AC_PROG_CC
  7. AC_PROG_CC_STDC
  8. -AC_PROG_CXX
  9. AC_C_CONST
  10. AC_C_RESTRICT
  11. AC_PROG_RANLIB
  12. @@ -190,45 +189,6 @@
  13. AC_PROG_LN_S
  14. AM_WITH_DMALLOC
  15. -# vips_PROG_CXX_WORKS
  16. -# Check whether the C++ compiler works.
  17. -AC_DEFUN([vips_PROG_CXX_WORKS],
  18. - [AC_REQUIRE([AC_PROG_CXX])dnl
  19. - AC_CACHE_CHECK([whether the C++ compiler works],
  20. - [vips_cv_prog_cxx_works],
  21. - [AC_LANG_PUSH([C++])
  22. - AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
  23. - [vips_cv_prog_cxx_works=yes],
  24. - [vips_cv_prog_cxx_works=no])
  25. - AC_LANG_POP([C++])])
  26. -])
  27. -
  28. -# option to build without C++
  29. -# handy for some embedded applications
  30. -# also, including C++ source causes link problems on some
  31. -# platforms, so have an option to disable it
  32. -AC_ARG_ENABLE(cxx,
  33. - AS_HELP_STRING([--enable-cxx], [build C++ components (default: test)]))
  34. -
  35. -if test x"$enable_cxx" != x"no"; then
  36. - vips_PROG_CXX_WORKS
  37. - if test x"$vips_cv_prog_cxx_works" = x"yes"; then
  38. - AC_DEFINE(ENABLE_CXX,1,[build C++ components])
  39. - AM_CONDITIONAL(ENABLE_CXX, true)
  40. - # need -lstdc++ for (eg.) the C++ format loaders
  41. - # this gets added to vips-7.xx.pc to help mingw and friends link programs
  42. - # using libvips
  43. - VIPS_CXX_LIBS="-lstdc++"
  44. - enable_cxx=yes
  45. - fi
  46. -fi
  47. -
  48. -if test x"$enable_cxx" != x"yes"; then
  49. - AM_CONDITIONAL(ENABLE_CXX, false)
  50. - VIPS_CXX_LIBS=""
  51. - enable_cxx=no
  52. -fi
  53. -
  54. # we need a fully expanded version of $libdir
  55. # without this we get something like
  56. # define VIPS_LIBDIR ${exec_prefix}/lib
  57. @@ -681,7 +641,6 @@
  58. AC_SUBST(VIPS_CFLAGS)
  59. AC_SUBST(VIPS_INCLUDES)
  60. AC_SUBST(VIPS_LIBS)
  61. -AC_SUBST(VIPS_CXX_LIBS)
  62. AC_SUBST(PACKAGES_USED)
  63. # you'd think we could have
  64. @@ -689,14 +648,12 @@
  65. # in AC_OUTPUT, but that seems to break for some combinations of sh/m4
  66. AC_OUTPUT([
  67. vips-7.28.pc
  68. - vipsCC-7.28.pc
  69. Makefile
  70. libvips/include/vips/version.h
  71. libvips/include/Makefile
  72. libvips/include/vips/Makefile
  73. libvips/Makefile
  74. libvips/arithmetic/Makefile
  75. - libvips/cimg/Makefile
  76. libvips/colour/Makefile
  77. libvips/conversion/Makefile
  78. libvips/convolution/Makefile
  79. @@ -711,9 +668,6 @@
  80. libvips/other/Makefile
  81. libvips/resample/Makefile
  82. libvips/video/Makefile
  83. - libvipsCC/include/Makefile
  84. - libvipsCC/include/vips/Makefile
  85. - libvipsCC/Makefile
  86. tools/Makefile
  87. tools/batch_crop
  88. tools/batch_image_convert
  89. @@ -721,7 +675,6 @@
  90. tools/light_correct
  91. tools/shrink_width
  92. swig/Makefile
  93. - swig/vipsCC/Makefile
  94. swig/python/setup.py
  95. man/Makefile
  96. doc/Makefile
  97. diff -u --recursive vips-7.28.9-vanilla/libvips/Makefile.am vips-7.28.9/libvips/Makefile.am
  98. --- vips-7.28.9-vanilla/libvips/Makefile.am 2012-07-14 22:35:08.206029420 -0500
  99. +++ vips-7.28.9/libvips/Makefile.am 2012-07-14 22:37:24.446571912 -0500
  100. @@ -1,14 +1,4 @@
  101. # only build in the cimg dir if C++ is enabled
  102. -if ENABLE_CXX
  103. -C_COMPILE_DIR = cimg
  104. -C_DIST_DIR =
  105. -C_LIB = cimg/libcimg.la
  106. -else
  107. -C_COMPILE_DIR =
  108. -C_DIST_DIR = cimg
  109. -C_LIB =
  110. -endif
  111. -
  112. SUBDIRS = \
  113. include \
  114. foreign \
  115. @@ -18,7 +8,6 @@
  116. conversion \
  117. deprecated \
  118. convolution \
  119. - $(C_COMPILE_DIR) \
  120. freq_filt \
  121. histograms_lut \
  122. inplace \
  123. @@ -34,14 +23,6 @@
  124. # empty means default to C linking
  125. libvips_la_SOURCES =
  126. -# if we have C++ components enabled, make sure we link the top-level with c++
  127. -#
  128. -# sadly the if/endif isn't enough to stop automake detecting a c++ link even
  129. -# when c++ is disabled ... comment out this line if you have linking problems
  130. -if ENABLE_CXX
  131. -nodist_EXTRA_libvips_la_SOURCES = cimg/dummy2.cc
  132. -endif
  133. -
  134. # DLLs need dependant libs there too ... put @VIPS_LIBS@ at the end
  135. libvips_la_LIBADD = \
  136. resample/libresample.la \
  137. @@ -50,7 +31,6 @@
  138. conversion/libconversion.la \
  139. convolution/libconvolution.la \
  140. deprecated/libdeprecated.la \
  141. - $(C_LIB) \
  142. foreign/libforeign.la \
  143. freq_filt/libfreq_filt.la \
  144. histograms_lut/libhistograms_lut.la \
  145. @@ -62,17 +42,10 @@
  146. video/libvideo.la \
  147. @VIPS_LIBS@
  148. -if ENABLE_CXX
  149. -libvips_la_LIBADD += @VIPS_CXX_LIBS@
  150. -endif
  151. -
  152. libvips_la_LDFLAGS = \
  153. -no-undefined \
  154. -version-info @LIBRARY_CURRENT@:@LIBRARY_REVISION@:@LIBRARY_AGE@
  155. -EXTRA_DIST = \
  156. - $(C_DIST_DIR)
  157. -
  158. CLEANFILES =
  159. -include $(INTROSPECTION_MAKEFILE)
  160. diff -u --recursive vips-7.28.9-vanilla/libvips/resample/Makefile.am vips-7.28.9/libvips/resample/Makefile.am
  161. --- vips-7.28.9-vanilla/libvips/resample/Makefile.am 2012-07-14 22:35:08.191030020 -0500
  162. +++ vips-7.28.9/libvips/resample/Makefile.am 2012-07-14 22:37:49.470569578 -0500
  163. @@ -2,22 +2,6 @@
  164. # you'd think we could just define a couple of variables, but that seems to
  165. # confuse libtool and make it link the library with g++
  166. # instead, have two completely different paths
  167. -if ENABLE_CXX
  168. -
  169. -libresample_la_SOURCES = \
  170. - im_affine.c \
  171. - interpolate.c \
  172. - im_shrink.c \
  173. - im_rightshift_size.c \
  174. - transform.c \
  175. - resample_dispatch.c \
  176. - bicubic.cpp \
  177. - lbb.cpp \
  178. - nohalo.cpp \
  179. - vsqbs.cpp \
  180. - templates.h
  181. -
  182. -else
  183. libresample_la_SOURCES = \
  184. im_affine.c \
  185. @@ -27,15 +11,6 @@
  186. transform.c \
  187. resample_dispatch.c
  188. -EXTRA_DIST = \
  189. - bicubic.cpp \
  190. - lbb.cpp \
  191. - nohalo.cpp \
  192. - vsqbs.cpp \
  193. - templates.h
  194. -
  195. -endif
  196. -
  197. noinst_LTLIBRARIES = libresample.la
  198. INCLUDES = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
  199. diff -u --recursive vips-7.28.9-vanilla/Makefile.am vips-7.28.9/Makefile.am
  200. --- vips-7.28.9-vanilla/Makefile.am 2012-07-14 22:35:08.220028859 -0500
  201. +++ vips-7.28.9/Makefile.am 2012-07-14 22:38:43.217417048 -0500
  202. @@ -1,43 +1,17 @@
  203. -
  204. -# turn off libvipsCC if C++ is disabled
  205. -if ENABLE_CXX
  206. -C_COMPILE_DIR = libvipsCC
  207. -C_DIST_DIR =
  208. -C_PKGCONFIG = vipsCC-7.${VIPS_MINOR_VERSION}.pc
  209. -
  210. -# turn on Python if we can (requires C++)
  211. -if HAVE_PYTHON
  212. -P_COMPILE_DIR = swig
  213. -P_DIST_DIR =
  214. -endif
  215. -
  216. -else
  217. -C_COMPILE_DIR =
  218. -C_DIST_DIR = libvipsCC
  219. -C_PKGCONFIG =
  220. -P_COMPILE_DIR =
  221. -P_DIST_DIR = swig
  222. -endif
  223. -
  224. SUBDIRS = \
  225. libvips \
  226. tools \
  227. po \
  228. man \
  229. - doc \
  230. - $(C_COMPILE_DIR) \
  231. - $(P_COMPILE_DIR)
  232. + doc
  233. EXTRA_DIST = \
  234. m4 \
  235. benchmark \
  236. bootstrap.sh \
  237. vips-7.${VIPS_MINOR_VERSION}.pc.in \
  238. - vipsCC-7.${VIPS_MINOR_VERSION}.pc.in \
  239. acinclude.m4 \
  240. - depcomp \
  241. - $(C_DIST_DIR) \
  242. - $(P_DIST_DIR)
  243. + depcomp
  244. pkgconfigdir = $(libdir)/pkgconfig
  245. pkgconfig_DATA = vips-7.${VIPS_MINOR_VERSION}.pc $(C_PKGCONFIG)
  246. diff -u --recursive vips-7.28.9-vanilla/tools/Makefile.am vips-7.28.9/tools/Makefile.am
  247. --- vips-7.28.9-vanilla/tools/Makefile.am 2012-07-14 22:35:08.221028819 -0500
  248. +++ vips-7.28.9/tools/Makefile.am 2012-07-14 22:40:51.397283833 -0500
  249. @@ -16,9 +16,6 @@
  250. INCLUDES = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
  251. AM_LDFLAGS = @LDFLAGS@
  252. LDADD = @VIPS_CFLAGS@ ${top_builddir}/libvips/libvips.la @VIPS_LIBS@
  253. -if ENABLE_CXX
  254. -LDADD += @VIPS_CXX_LIBS@
  255. -endif
  256. bin_SCRIPTS = \
  257. light_correct \
  258. diff -u --recursive vips-7.28.9-vanilla/vips-7.28.pc.in vips-7.28.9/vips-7.28.pc.in
  259. --- vips-7.28.9-vanilla/vips-7.28.pc.in 2012-07-14 22:35:08.208029340 -0500
  260. +++ vips-7.28.9/vips-7.28.pc.in 2012-07-14 22:41:03.591795535 -0500
  261. @@ -7,5 +7,5 @@
  262. Description: Image processing library
  263. Version: @VERSION@
  264. Requires: @PACKAGES_USED@
  265. -Libs: -L${libdir} -lvips @VIPS_LIBS@ @VIPS_CXX_LIBS@
  266. +Libs: -L${libdir} -lvips @VIPS_LIBS@
  267. Cflags: -I${includedir}