configure.ac 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034
  1. dnl -*- Autoconf -*-
  2. dnl Tag Image File Format (TIFF) Software
  3. dnl
  4. dnl Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
  5. dnl
  6. dnl Permission to use, copy, modify, distribute, and sell this software and
  7. dnl its documentation for any purpose is hereby granted without fee, provided
  8. dnl that (i) the above copyright notices and this permission notice appear in
  9. dnl all copies of the software and related documentation, and (ii) the names of
  10. dnl Sam Leffler and Silicon Graphics may not be used in any advertising or
  11. dnl publicity relating to the software without the specific, prior written
  12. dnl permission of Sam Leffler and Silicon Graphics.
  13. dnl
  14. dnl THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
  15. dnl EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
  16. dnl WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  17. dnl
  18. dnl IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  19. dnl ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  20. dnl OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. dnl WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
  22. dnl LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  23. dnl OF THIS SOFTWARE.
  24. dnl Process this file with autoconf to produce a configure script.
  25. AC_PREREQ(2.59)
  26. AC_INIT([LibTIFF Software],[4.0.2],[tiff@lists.maptools.org],[tiff])
  27. AC_CONFIG_AUX_DIR(config)
  28. AC_CONFIG_MACRO_DIR(m4)
  29. AC_LANG(C)
  30. AC_PROG_LIBTOOL
  31. m4_include(m4/acinclude.m4)
  32. CFLAGS="$CFLAGS $CONFIGURE_CFLAGS"
  33. CXXFLAGS="$CXXFLAGS $CONFIGURE_CXXFLAGS"
  34. LDFLAGS="$LDFLAGS $CONFIGURE_LDFLAGS"
  35. dnl Compute the canonical host (run-time) system type variable
  36. AC_CANONICAL_HOST
  37. AM_INIT_AUTOMAKE
  38. dnl Do not rebuild generated files every time
  39. AM_MAINTAINER_MODE
  40. dnl Versioning.
  41. dnl Don't fill the ALPHA_VERSION field, if not applicable.
  42. LIBTIFF_MAJOR_VERSION=4
  43. LIBTIFF_MINOR_VERSION=0
  44. LIBTIFF_MICRO_VERSION=2
  45. LIBTIFF_ALPHA_VERSION=
  46. LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
  47. dnl This will be used with the 'make release' target
  48. LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"`
  49. dnl Libtool library revision control info
  50. dnl See the libtool documentation under the heading "Libtool's versioning
  51. dnl system" in order to understand the meaning of these fields
  52. dnl
  53. dnl current
  54. dnl The most recent interface number that this library implements.
  55. dnl revision
  56. dnl The implementation number of the current interface.
  57. dnl age
  58. dnl The difference between the newest and oldest interfaces that
  59. dnl this library implements. In other words, the library implements
  60. dnl all the interface numbers in the range from number current -
  61. dnl age to current.
  62. dnl
  63. dnl Here are a set of rules to help you update your library version
  64. dnl information:
  65. dnl
  66. dnl 1. Start with version information of `0:0:0' for each libtool library.
  67. dnl 2. Update the version information only immediately before a public
  68. dnl release of your software. More frequent updates are unnecessary, and
  69. dnl only guarantee that the current interface number gets larger faster.
  70. dnl 3. If the library source code has changed at all since the last update,
  71. dnl then increment revision (`c:r:a' becomes `c:r+1:a').
  72. dnl 4. If any interfaces have been added, removed, or changed since the last
  73. dnl update, increment current, and set revision to 0.
  74. dnl 5. If any interfaces have been added since the last public release, then
  75. dnl increment age.
  76. dnl 6. If any interfaces have been removed since the last public release,
  77. dnl then set age to 0.
  78. LIBTIFF_CURRENT=6
  79. LIBTIFF_REVISION=0
  80. LIBTIFF_AGE=1
  81. LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE
  82. # This is a special hack for OpenBSD and MirOS systems. The dynamic linker
  83. # in OpenBSD uses some special semantics for shared libraries. Their soname
  84. # contains only two numbers, major and minor.
  85. # See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details.
  86. #case "$host_os" in
  87. # openbsd* | mirbsd*)
  88. # LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0
  89. # ;;
  90. # *)
  91. # LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION
  92. # ;;
  93. #esac
  94. AC_SUBST(LIBTIFF_MAJOR_VERSION)
  95. AC_SUBST(LIBTIFF_MINOR_VERSION)
  96. AC_SUBST(LIBTIFF_MICRO_VERSION)
  97. AC_SUBST(LIBTIFF_ALPHA_VERSION)
  98. AC_SUBST(LIBTIFF_VERSION)
  99. AC_SUBST(LIBTIFF_VERSION_INFO)
  100. AC_SUBST(LIBTIFF_RELEASE_DATE)
  101. dnl Checks for programs.
  102. AC_PROG_CC
  103. AC_PROG_CXX
  104. AM_PROG_CC_C_O
  105. dnl We want warnings. As many warnings as possible.
  106. VL_PROG_CC_WARNINGS()
  107. AC_PROG_INSTALL
  108. AC_PROG_LN_S
  109. # Check if LD supports linker scripts, and define automake conditional
  110. # HAVE_LD_VERSION_SCRIPT if so. This functionality is currently
  111. # constrained to compilers using GNU ld on ELF systems or systems
  112. # which provide an adequate emulation thereof.
  113. AC_ARG_ENABLE([ld-version-script],
  114. AS_HELP_STRING([--enable-ld-version-script],
  115. [enable linker version script (default is disabled)]),
  116. [have_ld_version_script=$enableval], [have_ld_version_script=no])
  117. if test "$have_ld_version_script" != no; then
  118. AC_MSG_CHECKING([if LD -Wl,--version-script works])
  119. save_LDFLAGS="$LDFLAGS"
  120. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  121. cat > conftest.map <<EOF
  122. VERS_1 {
  123. global: sym;
  124. };
  125. VERS_2 {
  126. global: sym;
  127. } VERS_1;
  128. EOF
  129. AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
  130. [have_ld_version_script=yes], [have_ld_version_script=no])
  131. rm -f conftest.map
  132. LDFLAGS="$save_LDFLAGS"
  133. AC_MSG_RESULT($have_ld_version_script)
  134. fi
  135. AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes")
  136. dnl Tests for Windows
  137. #AC_EXEEXT
  138. #AC_OBJEXT
  139. dnl initialize libtool
  140. #LT_INIT([win32-dll])
  141. #LT_LANG([C++])
  142. # Enable support for silent build rules
  143. #AM_SILENT_RULES
  144. dnl Checks for libraries.
  145. AC_CHECK_LIB([c], [main])
  146. dnl We don't need to add math library to all targets
  147. case "${host_os}" in
  148. cygwin* | mingw32* | beos* | darwin*)
  149. ;;
  150. *)
  151. AC_CHECK_LIB(m,sin,,,)
  152. ;;
  153. esac
  154. tiff_libs_private=
  155. AC_SUBST(tiff_libs_private)
  156. dnl Checks for header files.
  157. AC_CHECK_HEADERS([assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h])
  158. dnl Checks for typedefs, structures, and compiler characteristics.
  159. AC_C_CONST
  160. AC_C_INLINE
  161. AC_C_BIGENDIAN
  162. AC_TYPE_OFF_T
  163. AC_TYPE_SIZE_T
  164. AC_HEADER_TIME
  165. AC_STRUCT_TM
  166. dnl ---------------------------------------------------------------------------
  167. dnl Compute sized types for current CPU and compiler options
  168. dnl ---------------------------------------------------------------------------
  169. # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
  170. AC_CHECK_SIZEOF(signed short)
  171. # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
  172. AC_CHECK_SIZEOF(unsigned short)
  173. # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
  174. AC_CHECK_SIZEOF(signed int)
  175. # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
  176. AC_CHECK_SIZEOF(unsigned int)
  177. # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
  178. AC_CHECK_SIZEOF(signed long)
  179. # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
  180. AC_CHECK_SIZEOF(unsigned long)
  181. # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.
  182. # If 'long long' is not supported then the value defined is zero.
  183. AC_CHECK_SIZEOF(signed long long)
  184. # Obtain size of a 'unsigned long long' and define as
  185. # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
  186. # supported then the value defined is zero.
  187. AC_CHECK_SIZEOF(unsigned long long)
  188. # Obtain the size of an 'unsigned char *' and define as
  189. # SIZEOF_UNSIGNED_CHAR_P. Result is available in
  190. # ac_cv_sizeof_unsigned_char_p.
  191. AC_CHECK_SIZEOF(unsigned char *)
  192. AC_MSG_CHECKING(for signed 8-bit type)
  193. INT8_T='signed char'
  194. AC_MSG_RESULT($INT8_T)
  195. AC_DEFINE_UNQUOTED(TIFF_INT8_T,$INT8_T,[Signed 8-bit type])
  196. AC_MSG_CHECKING(for unsigned 8-bit type)
  197. UINT8_T='unsigned char'
  198. AC_MSG_RESULT($UINT8_T)
  199. AC_DEFINE_UNQUOTED(TIFF_UINT8_T,$UINT8_T,[Unsigned 8-bit type])
  200. AC_MSG_CHECKING(for signed 16-bit type)
  201. INT16_T='signed short'
  202. AC_MSG_RESULT($INT16_T)
  203. AC_DEFINE_UNQUOTED(TIFF_INT16_T,$INT16_T,[Signed 16-bit type])
  204. AC_MSG_CHECKING(for unsigned 16-bit type)
  205. UINT16_T='unsigned short'
  206. AC_MSG_RESULT($UINT16_T)
  207. AC_DEFINE_UNQUOTED(TIFF_UINT16_T,$UINT16_T,[Unsigned 16-bit type])
  208. AC_MSG_CHECKING(for signed 32-bit type)
  209. INT32_T='none'
  210. INT32_FORMAT='none'
  211. if test $ac_cv_sizeof_signed_int -eq 4
  212. then
  213. INT32_T='signed int'
  214. INT32_FORMAT='"%d"'
  215. elif test $ac_cv_sizeof_signed_long -eq 4
  216. then
  217. INT32_T='signed long'
  218. INT32_FORMAT='"%ld"'
  219. fi
  220. AC_MSG_RESULT($INT32_T)
  221. AC_DEFINE_UNQUOTED(TIFF_INT32_T,$INT32_T,[Signed 32-bit type])
  222. AC_DEFINE_UNQUOTED(TIFF_INT32_FORMAT,$INT32_FORMAT,[Signed 32-bit type formatter])
  223. AC_MSG_CHECKING(for unsigned 32-bit type)
  224. UINT32_T='none'
  225. UINT32_FORMAT='none'
  226. if test $ac_cv_sizeof_unsigned_int -eq 4
  227. then
  228. UINT32_T='unsigned int'
  229. UINT32_FORMAT='"%u"'
  230. elif test $ac_cv_sizeof_unsigned_long -eq 4
  231. then
  232. UINT32_T='unsigned long'
  233. UINT32_FORMAT='"%lu"'
  234. fi
  235. AC_MSG_RESULT($UINT32_T)
  236. AC_DEFINE_UNQUOTED(TIFF_UINT32_T,$UINT32_T,[Unsigned 32-bit type])
  237. AC_DEFINE_UNQUOTED(TIFF_UINT32_FORMAT,$UINT32_FORMAT,[Unsigned 32-bit type formatter])
  238. AC_MSG_CHECKING(for signed 64-bit type)
  239. INT64_T='none'
  240. INT64_FORMAT='none'
  241. if test $ac_cv_sizeof_signed_long -eq 8
  242. then
  243. INT64_T='signed long'
  244. INT64_FORMAT='"%ld"'
  245. elif test $ac_cv_sizeof_signed_long_long -eq 8
  246. then
  247. INT64_T='signed long long'
  248. case "${host_os}" in
  249. mingw32*)
  250. # MinGW32 understands 'long long', but uses printf from WIN32 CRT
  251. INT64_FORMAT='"%I64d"'
  252. ;;
  253. *)
  254. INT64_FORMAT='"%lld"'
  255. ;;
  256. esac
  257. fi
  258. AC_MSG_RESULT($INT64_T)
  259. AC_DEFINE_UNQUOTED(TIFF_INT64_T,$INT64_T,[Signed 64-bit type])
  260. AC_DEFINE_UNQUOTED(TIFF_INT64_FORMAT,$INT64_FORMAT,[Signed 64-bit type formatter])
  261. AC_MSG_CHECKING(for unsigned 64-bit type)
  262. UINT64_T='none'
  263. UINT64_FORMAT='none'
  264. if test $ac_cv_sizeof_unsigned_long -eq 8
  265. then
  266. UINT64_T='unsigned long'
  267. UINT64_FORMAT='"%lu"'
  268. elif test $ac_cv_sizeof_unsigned_long_long -eq 8
  269. then
  270. UINT64_T='unsigned long long'
  271. case "${host_os}" in
  272. mingw32*)
  273. # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT
  274. UINT64_FORMAT='"%I64u"'
  275. ;;
  276. *)
  277. UINT64_FORMAT='"%llu"'
  278. ;;
  279. esac
  280. fi
  281. AC_MSG_RESULT($UINT64_T)
  282. AC_DEFINE_UNQUOTED(TIFF_UINT64_T,$UINT64_T,[Unsigned 64-bit type])
  283. AC_DEFINE_UNQUOTED(TIFF_UINT64_FORMAT,$UINT64_FORMAT,[Unsigned 64-bit type formatter])
  284. # Determine TIFF equivalent of ssize_t
  285. AC_MSG_CHECKING(for signed size type)
  286. SSIZE_T='unknown'
  287. SSIZE_FORMAT='unknown'
  288. if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p
  289. then
  290. SSIZE_T='signed long'
  291. SSIZE_FORMAT='"%ld"'
  292. elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
  293. then
  294. SSIZE_T='signed long long'
  295. SSIZE_FORMAT='"%lld"'
  296. fi
  297. AC_MSG_RESULT($SSIZE_T)
  298. AC_DEFINE_UNQUOTED(TIFF_SSIZE_T,$SSIZE_T,[Signed size type])
  299. AC_DEFINE_UNQUOTED(TIFF_SSIZE_FORMAT,$SSIZE_FORMAT,[Signed size type formatter])
  300. # Determine the type to use for the difference between two pointers.
  301. # We will default to the POSIX ptrdiff_t if it is available, but will
  302. # be prepared for the case when it is not.
  303. PTRDIFF_T='unknown'
  304. PTRDIFF_FORMAT='"%ld"'
  305. AC_CHECK_TYPE(ptrdiff_t,[PTRDIFF_T=ptrdiff_t])
  306. if test $PTRDIFF_T = unknown
  307. then
  308. PTRDIFF_T=$SSIZE_T
  309. PTRDIFF_FORMAT=$SSIZE_FORMAT
  310. fi
  311. AC_MSG_CHECKING(for pointer difference type)
  312. AC_MSG_RESULT($PTRDIFF_T)
  313. AC_DEFINE_UNQUOTED(TIFF_PTRDIFF_T,$PTRDIFF_T,[Pointer difference type])
  314. AC_DEFINE_UNQUOTED(TIFF_PTRDIFF_FORMAT,$PTRDIFF_FORMAT,[Pointer difference type formatter])
  315. dnl Some compilers (IBM VisualAge) has these types defined, so check it here:
  316. AC_CHECK_TYPES([int8, int16, int32],,,
  317. [
  318. #if HAVE_INTTYPES_H
  319. # include <inttypes.h>
  320. #endif
  321. ])
  322. dnl Checks for library functions.
  323. AC_CHECK_FUNCS([floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull])
  324. dnl Will use local replacements for unavailable functions
  325. AC_REPLACE_FUNCS(getopt)
  326. AC_REPLACE_FUNCS(strcasecmp)
  327. AC_REPLACE_FUNCS(strtoul)
  328. AC_REPLACE_FUNCS(strtoull)
  329. AC_REPLACE_FUNCS(lfind)
  330. dnl ---------------------------------------------------------------------------
  331. dnl Check the native cpu bit order.
  332. dnl ---------------------------------------------------------------------------
  333. AC_MSG_CHECKING([native cpu bit order])
  334. case "$host_cpu" in
  335. i*86*|x86_64*)
  336. HOST_FILLORDER=FILLORDER_LSB2MSB
  337. AC_MSG_RESULT([lsb2msb])
  338. ;;
  339. *)
  340. HOST_FILLORDER=FILLORDER_MSB2LSB
  341. AC_MSG_RESULT([msb2lsb])
  342. ;;
  343. esac
  344. AC_DEFINE_UNQUOTED(HOST_FILLORDER, $HOST_FILLORDER, [Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB)])
  345. dnl ---------------------------------------------------------------------------
  346. dnl Configure legacy tifconf.h HOST_BIGENDIAN.
  347. dnl ---------------------------------------------------------------------------
  348. if test "$ac_cv_c_bigendian" = yes ; then
  349. HOST_BIGENDIAN=1
  350. else
  351. HOST_BIGENDIAN=0
  352. fi
  353. AC_DEFINE_UNQUOTED(HOST_BIGENDIAN,$HOST_BIGENDIAN,[Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian (Intel)])
  354. dnl ---------------------------------------------------------------------------
  355. dnl Make the POSIX.2 features available.
  356. dnl ---------------------------------------------------------------------------
  357. #_POSIX_C_SOURCE=2
  358. #AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.])
  359. dnl ---------------------------------------------------------------------------
  360. dnl Set the floating point format.
  361. dnl FIXME: write appropriate test.
  362. dnl ---------------------------------------------------------------------------
  363. HAVE_IEEEFP=1
  364. AC_DEFINE_UNQUOTED(HAVE_IEEEFP, $HAVE_IEEEFP, [Define as 0 or 1 according to the floating point format suported by the machine])
  365. dnl ---------------------------------------------------------------------------
  366. dnl Enable run-time paths to libraries usage.
  367. dnl ---------------------------------------------------------------------------
  368. AC_ARG_ENABLE(rpath,
  369. AS_HELP_STRING([--enable-rpath],
  370. [Enable runtime linker paths (-R libtool option)]),
  371. [HAVE_RPATH=$enableval], [HAVE_RPATH=no])
  372. AM_CONDITIONAL(HAVE_RPATH, test "$HAVE_RPATH" = "yes")
  373. dnl ---------------------------------------------------------------------------
  374. dnl Support large files.
  375. dnl ---------------------------------------------------------------------------
  376. AC_SYS_LARGEFILE
  377. dnl ---------------------------------------------------------------------------
  378. dnl Point to path where we should install documentation.
  379. dnl ---------------------------------------------------------------------------
  380. LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
  381. AC_ARG_WITH(docdir,
  382. AS_HELP_STRING([--with-docdir=DIR],
  383. [directory where documentation should be installed]),,)
  384. if test "x$with_docdir" != "x" ; then
  385. LIBTIFF_DOCDIR=$with_docdir
  386. fi
  387. AC_SUBST(LIBTIFF_DOCDIR)
  388. dnl ---------------------------------------------------------------------------
  389. dnl Switch on/off internal codecs.
  390. dnl ---------------------------------------------------------------------------
  391. AC_ARG_ENABLE(ccitt,
  392. AS_HELP_STRING([--disable-ccitt],
  393. [disable support for CCITT Group 3 & 4 algorithms]),
  394. [HAVE_CCITT=$enableval], [HAVE_CCITT=yes])
  395. if test "$HAVE_CCITT" = "yes" ; then
  396. AC_DEFINE(CCITT_SUPPORT,1,[Support CCITT Group 3 & 4 algorithms])
  397. fi
  398. AC_ARG_ENABLE(packbits,
  399. AS_HELP_STRING([--disable-packbits],
  400. [disable support for Macintosh PackBits algorithm]),
  401. [HAVE_PACKBITS=$enableval], [HAVE_PACKBITS=yes])
  402. if test "$HAVE_PACKBITS" = "yes" ; then
  403. AC_DEFINE(PACKBITS_SUPPORT,1,[Support Macintosh PackBits algorithm])
  404. fi
  405. AC_ARG_ENABLE(lzw,
  406. AS_HELP_STRING([--disable-lzw],
  407. [disable support for LZW algorithm]),
  408. [HAVE_LZW=$enableval], [HAVE_LZW=yes])
  409. if test "$HAVE_LZW" = "yes" ; then
  410. AC_DEFINE(LZW_SUPPORT,1,[Support LZW algorithm])
  411. fi
  412. AC_ARG_ENABLE(thunder,
  413. AS_HELP_STRING([--disable-thunder],
  414. [disable support for ThunderScan 4-bit RLE algorithm]),
  415. [HAVE_THUNDER=$enableval], [HAVE_THUNDER=yes])
  416. if test "$HAVE_THUNDER" = "yes" ; then
  417. AC_DEFINE(THUNDER_SUPPORT,1,[Support ThunderScan 4-bit RLE algorithm])
  418. fi
  419. HAVE_NEXT=yes
  420. AC_ARG_ENABLE(next,
  421. AS_HELP_STRING([--disable-next],
  422. [disable support for NeXT 2-bit RLE algorithm]),
  423. [HAVE_NEXT=$enableval], [HAVE_NEXT=yes])
  424. if test "$HAVE_NEXT" = "yes" ; then
  425. AC_DEFINE(NEXT_SUPPORT,1,[Support NeXT 2-bit RLE algorithm])
  426. fi
  427. AC_ARG_ENABLE(logluv,
  428. AS_HELP_STRING([--disable-logluv],
  429. [disable support for LogLuv high dynamic range encoding]),
  430. [HAVE_LOGLUV=$enableval], [HAVE_LOGLUV=yes])
  431. if test "$HAVE_LOGLUV" = "yes" ; then
  432. AC_DEFINE(LOGLUV_SUPPORT,1,[Support LogLuv high dynamic range encoding])
  433. fi
  434. dnl ---------------------------------------------------------------------------
  435. dnl Switch on/off support for Microsoft Document Imaging
  436. dnl ---------------------------------------------------------------------------
  437. AC_ARG_ENABLE(mdi,
  438. AS_HELP_STRING([--disable-mdi],
  439. [disable support for Microsoft Document Imaging]),
  440. [HAVE_MDI=$enableval], [HAVE_MDI=yes])
  441. if test "$HAVE_MDI" = "yes" ; then
  442. AC_DEFINE(MDI_SUPPORT,1,[Support Microsoft Document Imaging format])
  443. fi
  444. dnl ---------------------------------------------------------------------------
  445. dnl Check for ZLIB.
  446. dnl ---------------------------------------------------------------------------
  447. HAVE_ZLIB=no
  448. AC_ARG_ENABLE(zlib,
  449. AS_HELP_STRING([--disable-zlib],
  450. [disable Zlib usage (required for Deflate compression, enabled by default)]),,)
  451. AC_ARG_WITH(zlib-include-dir,
  452. AS_HELP_STRING([--with-zlib-include-dir=DIR],
  453. [location of Zlib headers]),,)
  454. AC_ARG_WITH(zlib-lib-dir,
  455. AS_HELP_STRING([--with-zlib-lib-dir=DIR],
  456. [location of Zlib library binary]),,)
  457. if test "x$enable_zlib" != "xno" ; then
  458. if test "x$with_zlib_lib_dir" != "x" ; then
  459. LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
  460. fi
  461. AC_CHECK_LIB(z, inflateEnd, [zlib_lib=yes], [zlib_lib=no],)
  462. if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then
  463. AC_MSG_ERROR([Zlib library not found at $with_zlib_lib_dir])
  464. fi
  465. if test "x$with_zlib_include_dir" != "x" ; then
  466. CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
  467. fi
  468. AC_CHECK_HEADER(zlib.h, [zlib_h=yes], [zlib_h=no])
  469. if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then
  470. AC_MSG_ERROR([Zlib headers not found at $with_zlib_include_dir])
  471. fi
  472. if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
  473. HAVE_ZLIB=yes
  474. fi
  475. fi
  476. if test "$HAVE_ZLIB" = "yes" ; then
  477. AC_DEFINE(ZIP_SUPPORT,1,[Support Deflate compression])
  478. LIBS="-lz $LIBS"
  479. tiff_libs_private="-lz ${tiff_libs_private}"
  480. if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then
  481. LIBDIR="-R $with_zlib_lib_dir $LIBDIR"
  482. fi
  483. fi
  484. dnl ---------------------------------------------------------------------------
  485. dnl Check for Pixar log-format algorithm.
  486. dnl ---------------------------------------------------------------------------
  487. AC_ARG_ENABLE(pixarlog,
  488. AS_HELP_STRING([--disable-pixarlog],
  489. [disable support for Pixar log-format algorithm (requires Zlib)]),
  490. [HAVE_PIXARLOG=$enableval], [HAVE_PIXARLOG=yes])
  491. if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
  492. AC_DEFINE(PIXARLOG_SUPPORT, 1,
  493. [Support Pixar log-format algorithm (requires Zlib)])
  494. else
  495. HAVE_PIXARLOG=no
  496. fi
  497. dnl ---------------------------------------------------------------------------
  498. dnl Check for JPEG.
  499. dnl ---------------------------------------------------------------------------
  500. HAVE_JPEG=no
  501. AC_ARG_ENABLE(jpeg,
  502. AS_HELP_STRING([--disable-jpeg],
  503. [disable IJG JPEG library usage (required for JPEG compression, enabled by default)]),,)
  504. AC_ARG_WITH(jpeg-include-dir,
  505. AS_HELP_STRING([--with-jpeg-include-dir=DIR],
  506. [location of IJG JPEG library headers]),,)
  507. AC_ARG_WITH(jpeg-lib-dir,
  508. AS_HELP_STRING([--with-jpeg-lib-dir=DIR],
  509. [location of IJG JPEG library binary]),,)
  510. if test "x$enable_jpeg" != "xno" ; then
  511. if test "x$with_jpeg_lib_dir" != "x" ; then
  512. LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
  513. fi
  514. AC_CHECK_LIB(jpeg, jpeg_read_scanlines, [jpeg_lib=yes], [jpeg_lib=no],)
  515. if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then
  516. AC_MSG_ERROR([IJG JPEG library not found at $with_jpeg_lib_dir])
  517. fi
  518. if test "x$with_jpeg_include_dir" != "x" ; then
  519. CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
  520. fi
  521. AC_CHECK_HEADER(jpeglib.h, [jpeg_h=yes], [jpeg_h=no])
  522. if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then
  523. AC_MSG_ERROR([IJG JPEG library headers not found at $with_jpeg_include_dir])
  524. fi
  525. if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
  526. HAVE_JPEG=yes
  527. fi
  528. fi
  529. if test "$HAVE_JPEG" = "yes" ; then
  530. AC_DEFINE(JPEG_SUPPORT,1,[Support JPEG compression (requires IJG JPEG library)])
  531. LIBS="-ljpeg $LIBS"
  532. tiff_libs_private="-ljpeg ${tiff_libs_private}"
  533. if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then
  534. LIBDIR="-R $with_jpeg_lib_dir $LIBDIR"
  535. fi
  536. fi
  537. dnl ---------------------------------------------------------------------------
  538. dnl Check for Old JPEG.
  539. dnl ---------------------------------------------------------------------------
  540. AC_ARG_ENABLE(old-jpeg,
  541. AS_HELP_STRING([--disable-old-jpeg],
  542. [disable support for Old JPEG compresson (read-only, enabled by default)]),
  543. [HAVE_OJPEG=${enableval}], [HAVE_OJPEG=yes])
  544. if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
  545. AC_DEFINE(OJPEG_SUPPORT, 1,
  546. [Support Old JPEG compresson (read-only)])
  547. else
  548. HAVE_OJPEG=no
  549. fi
  550. dnl ---------------------------------------------------------------------------
  551. dnl Check for JBIG-KIT.
  552. dnl ---------------------------------------------------------------------------
  553. HAVE_JBIG=no
  554. AC_ARG_ENABLE(jbig,
  555. AS_HELP_STRING([--disable-jbig],
  556. [disable JBIG-KIT usage (required for ISO JBIG compression, enabled by default)]),,)
  557. AC_ARG_WITH(jbig-include-dir,
  558. AS_HELP_STRING([--with-jbig-include-dir=DIR],
  559. [location of JBIG-KIT headers]),,)
  560. AC_ARG_WITH(jbig-lib-dir,
  561. AS_HELP_STRING([--with-jbig-lib-dir=DIR],
  562. [location of JBIG-KIT library binary]),,)
  563. if test "x$enable_jbig" != "xno" ; then
  564. if test "x$with_jbig_lib_dir" != "x" ; then
  565. LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS"
  566. fi
  567. AC_CHECK_LIB(jbig, jbg_dec_init, [jbig_lib=yes], [jbig_lib=no],)
  568. if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then
  569. AC_MSG_ERROR([JBIG-KIT library not found at $with_jbig_lib_dir])
  570. fi
  571. if test "x$with_jbig_include_dir" != "x" ; then
  572. CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS"
  573. fi
  574. AC_CHECK_HEADER(jbig.h, [jbig_h=yes], [jbig_h=no])
  575. if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then
  576. AC_MSG_ERROR([JBIG-KIT library headers not found at $with_jbig_include_dir])
  577. fi
  578. if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then
  579. HAVE_JBIG=yes
  580. fi
  581. fi
  582. if test "$HAVE_JBIG" = "yes" ; then
  583. AC_DEFINE(JBIG_SUPPORT,1,[Support ISO JBIG compression (requires JBIG-KIT library)])
  584. LIBS="-ljbig $LIBS"
  585. tiff_libs_private="-ljbig ${tiff_libs_private}"
  586. if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then
  587. LIBDIR="-R $with_jbig_lib_dir $LIBDIR"
  588. fi
  589. # Older versions of jbigkit lack jbg_newlen
  590. AC_CHECK_FUNCS([jbg_newlen])
  591. fi
  592. dnl ---------------------------------------------------------------------------
  593. dnl Check for liblzma2.
  594. dnl ---------------------------------------------------------------------------
  595. HAVE_LZMA=no
  596. AC_ARG_ENABLE(lzma,
  597. AS_HELP_STRING([--disable-lzma],
  598. [disable liblzma usage (required for LZMA2 compression, enabled by default)]),,)
  599. AC_ARG_WITH(lzma-include-dir,
  600. AS_HELP_STRING([--with-lzma-include-dir=DIR],
  601. [location of liblzma headers]),,)
  602. AC_ARG_WITH(lzma-lib-dir,
  603. AS_HELP_STRING([--with-lzma-lib-dir=DIR],
  604. [location of liblzma library binary]),,)
  605. if test "x$enable_lzma" != "xno" ; then
  606. if test "x$with_lzma_lib_dir" != "x" ; then
  607. LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS"
  608. fi
  609. AC_CHECK_LIB(lzma, lzma_code, [lzma_lib=yes], [lzma_lib=no],)
  610. if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then
  611. AC_MSG_ERROR([lzma library not found at $with_lzma_lib_dir])
  612. fi
  613. if test "x$with_lzma_include_dir" != "x" ; then
  614. CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS"
  615. fi
  616. AC_CHECK_HEADER(lzma.h, [lzma_h=yes], [lzma_h=no])
  617. if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then
  618. AC_MSG_ERROR([Liblzma headers not found at $with_lzma_include_dir])
  619. fi
  620. if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then
  621. HAVE_LZMA=yes
  622. fi
  623. fi
  624. if test "$HAVE_LZMA" = "yes" ; then
  625. AC_DEFINE(LZMA_SUPPORT,1,[Support LZMA2 compression])
  626. LIBS="-llzma $LIBS"
  627. tiff_libs_private="-llzma ${tiff_libs_private}"
  628. if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then
  629. LIBDIR="-R $with_lzma_lib_dir $LIBDIR"
  630. fi
  631. fi
  632. dnl ---------------------------------------------------------------------------
  633. dnl Should 8/12 bit jpeg mode be enabled?
  634. dnl ---------------------------------------------------------------------------
  635. HAVE_JPEG12=no
  636. AC_ARG_ENABLE(jpeg12,
  637. AS_HELP_STRING([--enable-jpeg12],
  638. [enable libjpeg 8/12bit dual mode]),,)
  639. AC_ARG_WITH(jpeg12-include-dir,
  640. AS_HELP_STRING([--with-jpeg12-include-dir=DIR],
  641. [location of libjpeg 12bit headers]),,)
  642. AC_ARG_WITH(jpeg12-lib,
  643. AS_HELP_STRING([--with-jpeg12-lib=LIBRARY],
  644. [path to libjpeg 12bit library]),,)
  645. if test "x$enable_jpeg12" = "xyes" ; then
  646. if test "x$with_jpeg12_lib" != "x" ; then
  647. LIBS="$with_jpeg12_lib $LIBS"
  648. fi
  649. HAVE_JPEG12=yes
  650. AC_DEFINE(JPEG_DUAL_MODE_8_12,1,[8/12 bit libjpeg dual mode enabled])
  651. if test "x$with_jpeg12_include_dir" != "x" ; then
  652. AC_DEFINE_UNQUOTED(LIBJPEG_12_PATH,"$with_jpeg12_include_dir/jpeglib.h",[12bit libjpeg primary include file with path])
  653. fi
  654. fi
  655. dnl ---------------------------------------------------------------------------
  656. dnl Check for C++.
  657. dnl ---------------------------------------------------------------------------
  658. AC_ARG_ENABLE(cxx,
  659. AS_HELP_STRING([--enable-cxx],
  660. [enable C++ stream API building (requires C++ compiler)]),
  661. [HAVE_CXX=$enableval], [HAVE_CXX=yes])
  662. if test "$HAVE_CXX" = "yes" ; then
  663. AC_DEFINE(CXX_SUPPORT, 1, [Support C++ stream API (requires C++ compiler)])
  664. else
  665. HAVE_CXX=no
  666. fi
  667. AM_CONDITIONAL(HAVE_CXX, test "$HAVE_CXX" = "yes")
  668. dnl ---------------------------------------------------------------------------
  669. dnl Check for OpenGL and GLUT.
  670. dnl ---------------------------------------------------------------------------
  671. HAVE_OPENGL=no
  672. AC_PATH_XTRA
  673. AX_CHECK_GL
  674. AX_CHECK_GLU
  675. AX_CHECK_GLUT
  676. if test "$no_x" != "yes" -a "$no_gl" != "yes" \
  677. -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
  678. HAVE_OPENGL=yes
  679. fi
  680. AM_CONDITIONAL(HAVE_OPENGL, test "$HAVE_OPENGL" = "yes")
  681. dnl ---------------------------------------------------------------------------
  682. dnl Check for Win32 IO: make sure we have windows.h but not cygwin
  683. dnl this must be after the ogl test, since that looks for windows.h and we
  684. dnl test it
  685. dnl ---------------------------------------------------------------------------
  686. win32_io_ok=no
  687. case "${host_os}" in
  688. cygwin*)
  689. ;;
  690. *)
  691. if test x"$ac_cv_header_windows_h" = xyes; then
  692. win32_io_ok=yes
  693. AC_DEFINE(USE_WIN32_FILEIO,1,[define to use win32 IO system])
  694. fi
  695. ;;
  696. esac
  697. AM_CONDITIONAL([WIN32_IO], [test "$win32_io_ok" = yes])
  698. dnl ---------------------------------------------------------------------------
  699. dnl Check for X Athena Widgets
  700. dnl ---------------------------------------------------------------------------
  701. dnl HAVE_XAW=no
  702. dnl ICE_FIND_ATHENA
  703. dnl if test "$no_xaw" != "yes" ; then
  704. dnl HAVE_XAW=yes
  705. dnl fi
  706. dnl AM_CONDITIONAL(HAVE_XAW, test "$HAVE_XAW" = "yes")
  707. dnl ===========================================================================
  708. dnl ``Orthogonal Features''
  709. dnl ===========================================================================
  710. dnl ---------------------------------------------------------------------------
  711. dnl Default handling of strip chopping support.
  712. dnl ---------------------------------------------------------------------------
  713. AC_ARG_ENABLE(strip-chopping,
  714. AS_HELP_STRING([--disable-strip-chopping],
  715. [disable support for strip chopping (whether or not to convert single-strip uncompressed images to mutiple strips of specified size to reduce memory usage)]),
  716. [HAVE_STRIPCHOP=$enableval], [HAVE_STRIPCHOP=yes])
  717. AC_ARG_WITH(default-strip-size,
  718. AS_HELP_STRING([--with-default-strip-size=SIZE],
  719. [default size of the strip in bytes (when strip chopping enabled) [[default=8192]]]),,)
  720. if test "$HAVE_STRIPCHOP" = "yes" \
  721. -a "x$with_default_strip_size" != "xno"; then
  722. AC_DEFINE(STRIPCHOP_DEFAULT,TIFF_STRIPCHOP,[Support strip chopping (whether or not to convert single-strip uncompressed images to mutiple strips of specified size to reduce memory usage)])
  723. if test "x$with_default_strip_size" = "x" \
  724. -o "x$with_default_strip_size" = "xyes"; then
  725. with_default_strip_size="8192"
  726. fi
  727. AC_DEFINE_UNQUOTED(STRIP_SIZE_DEFAULT,$with_default_strip_size,[Default size of the strip in bytes (when strip chopping enabled)])
  728. fi
  729. dnl ---------------------------------------------------------------------------
  730. dnl Should we try to defer loading of strip/tile offsets and sizes to
  731. dnl optimize directory scanning? These is an experimental feature for
  732. dnl libtiff 4.0.
  733. dnl ---------------------------------------------------------------------------
  734. AC_ARG_ENABLE(defer-strile-load,
  735. AS_HELP_STRING([--enable-defer-strile-load],
  736. [enable deferred strip/tile offset/size loading (experimental)]),
  737. [HAVE_DEFER_STRILE_LOAD=$enableval], [HAVE_DEFER_STRILE_LOAD=no])
  738. if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then
  739. AC_DEFINE(DEFER_STRILE_LOAD,1,[enable deferred strip/tile offset/size loading (experimental)])
  740. fi
  741. dnl ---------------------------------------------------------------------------
  742. dnl Check for support of CHUNKY_STRIP_READ_SUPPORT, a mechanism to allowing
  743. dnl reading large strips (usually one strip files) in chunks when using
  744. dnl TIFFReadScanline(). This is an experimental feature in libtiff 4.0.
  745. dnl ---------------------------------------------------------------------------
  746. AC_ARG_ENABLE(chunky-strip-read,
  747. AS_HELP_STRING([--enable-chunky-strip-read],
  748. [enable reading large strips in chunks for TIFFReadScanline() (experimental)]),
  749. [HAVE_CHUNKY_STRIP_READ=$enableval], [HAVE_CHUNKY_STRIP_READ=no])
  750. if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then
  751. AC_DEFINE(CHUNKY_STRIP_READ_SUPPORT,1,[enable partial strip reading for large strips (experimental)])
  752. fi
  753. dnl ---------------------------------------------------------------------------
  754. dnl Default subifd support.
  755. dnl ---------------------------------------------------------------------------
  756. AC_DEFINE(SUBIFD_SUPPORT,1,[Enable SubIFD tag (330) support])
  757. dnl ---------------------------------------------------------------------------
  758. dnl Default handling of ASSOCALPHA support.
  759. dnl ---------------------------------------------------------------------------
  760. AC_ARG_ENABLE(extrasample-as-alpha,
  761. AS_HELP_STRING([--disable-extrasample-as-alpha],
  762. [the RGBA interface will treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many packages produce RGBA files but don't mark the alpha properly]),
  763. [HAVE_EXTRASAMPLE_AS_ALPHA=$enableval],
  764. [HAVE_EXTRASAMPLE_AS_ALPHA=yes])
  765. if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
  766. AC_DEFINE(DEFAULT_EXTRASAMPLE_AS_ALPHA, 1,
  767. [Treat extra sample as alpha (default enabled). The RGBA interface will treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many packages produce RGBA files but don't mark the alpha properly.])
  768. fi
  769. dnl ---------------------------------------------------------------------------
  770. dnl Default handling of YCbCr subsampling support.
  771. dnl See Bug 168 in Bugzilla, and JPEGFixupTestSubsampling() for details.
  772. dnl ---------------------------------------------------------------------------
  773. AC_ARG_ENABLE(check-ycbcr-subsampling,
  774. AS_HELP_STRING([--disable-check-ycbcr-subsampling],
  775. [disable picking up YCbCr subsampling info from the JPEG data stream to support files lacking the tag]),
  776. [CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval],
  777. [CHECK_JPEG_YCBCR_SUBSAMPLING=yes])
  778. if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
  779. AC_DEFINE(CHECK_JPEG_YCBCR_SUBSAMPLING, 1,
  780. [Pick up YCbCr subsampling info from the JPEG data stream to support files lacking the tag (default enabled).])
  781. fi
  782. dnl ---------------------------------------------------------------------------
  783. AC_SUBST(LIBDIR)
  784. AC_CONFIG_HEADERS([libtiff/tif_config.h libtiff/tiffconf.h])
  785. AC_CONFIG_FILES([Makefile \
  786. build/Makefile \
  787. contrib/Makefile \
  788. contrib/addtiffo/Makefile \
  789. contrib/dbs/Makefile \
  790. contrib/dbs/xtiff/Makefile \
  791. contrib/iptcutil/Makefile \
  792. contrib/mfs/Makefile \
  793. contrib/pds/Makefile \
  794. contrib/ras/Makefile \
  795. contrib/stream/Makefile \
  796. contrib/tags/Makefile \
  797. contrib/win_dib/Makefile \
  798. html/Makefile \
  799. html/images/Makefile \
  800. html/man/Makefile \
  801. libtiff-4.pc \
  802. libtiff/Makefile \
  803. man/Makefile \
  804. port/Makefile \
  805. test/Makefile \
  806. tools/Makefile])
  807. AC_OUTPUT
  808. dnl ---------------------------------------------------------------------------
  809. dnl Display configuration status
  810. dnl ---------------------------------------------------------------------------
  811. LOC_MSG()
  812. LOC_MSG([Libtiff is now configured for ${host}])
  813. LOC_MSG()
  814. LOC_MSG([ Installation directory: ${prefix}])
  815. LOC_MSG([ Documentation directory: ${LIBTIFF_DOCDIR}])
  816. LOC_MSG([ C compiler: ${CC} ${CFLAGS}])
  817. LOC_MSG([ C++ compiler: ${CXX} ${CXXFLAGS}])
  818. LOC_MSG([ Enable runtime linker paths: ${HAVE_RPATH}])
  819. LOC_MSG([ Enable linker symbol versioning: ${have_ld_version_script}])
  820. LOC_MSG([ Support Microsoft Document Imaging: ${HAVE_MDI}])
  821. LOC_MSG([ Use win32 IO: ${win32_io_ok}])
  822. LOC_MSG()
  823. LOC_MSG([ Support for internal codecs:])
  824. LOC_MSG([ CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}])
  825. LOC_MSG([ Macintosh PackBits algorithm: ${HAVE_PACKBITS}])
  826. LOC_MSG([ LZW algorithm: ${HAVE_LZW}])
  827. LOC_MSG([ ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}])
  828. LOC_MSG([ NeXT 2-bit RLE algorithm: ${HAVE_NEXT}])
  829. LOC_MSG([ LogLuv high dynamic range encoding: ${HAVE_LOGLUV}])
  830. LOC_MSG()
  831. LOC_MSG([ Support for external codecs:])
  832. LOC_MSG([ ZLIB support: ${HAVE_ZLIB}])
  833. LOC_MSG([ Pixar log-format algorithm: ${HAVE_PIXARLOG}])
  834. LOC_MSG([ JPEG support: ${HAVE_JPEG}])
  835. LOC_MSG([ Old JPEG support: ${HAVE_OJPEG}])
  836. LOC_MSG([ JPEG 8/12 bit dual mode: ${HAVE_JPEG12}])
  837. LOC_MSG([ ISO JBIG support: ${HAVE_JBIG}])
  838. LOC_MSG([ LZMA2 support: ${HAVE_LZMA}])
  839. LOC_MSG()
  840. LOC_MSG([ C++ support: ${HAVE_CXX}])
  841. LOC_MSG()
  842. dnl LOC_MSG([ X Athena Widgets support: ${HAVE_XAW}])
  843. LOC_MSG([ OpenGL support: ${HAVE_OPENGL}])
  844. LOC_MSG()