configure.in 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745
  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_PREREQ(2.54)
  3. # Making releases:
  4. # GIMP_MICRO_VERSION += 1;
  5. # GIMP_INTERFACE_AGE += 1;
  6. m4_define([gimp_major_version], [2])
  7. m4_define([gimp_minor_version], [3])
  8. m4_define([gimp_micro_version], [0])
  9. m4_define([gimp_real_version],
  10. [gimp_major_version.gimp_minor_version.gimp_micro_version])
  11. m4_define([gimp_version], [gimp_real_version])
  12. m4_define([gimp_interface_age], [0])
  13. m4_define([gimp_binary_age],
  14. [m4_eval(100 * gimp_minor_version + gimp_micro_version)])
  15. # For overriding the version string. Comment out if not needed.
  16. # m4_define([gimp_version], [2.2.0])
  17. # This is the X.Y used in -lgimp-X.Y
  18. m4_define([gimp_api_version], [2.0])
  19. # Versions used for apps, plugins, tools, pkg-config files, and data,
  20. # as well as global and user prefs
  21. m4_define([gimp_app_version], [2.3])
  22. m4_define([gimp_plugin_version], [2.0])
  23. m4_define([gimp_tool_version], [2.0])
  24. m4_define([gimp_pkgconfig_version], [2.0])
  25. m4_define([gimp_data_version], [2.0])
  26. m4_define([gimp_sysconf_version], [2.0])
  27. m4_define([gimp_user_version], [2.3])
  28. m4_define([gimp_unstable],
  29. m4_if(m4_eval(gimp_minor_version % 2), [1], [yes], [no]))
  30. m4_define([gimp_stable],
  31. m4_if(m4_eval(gimp_minor_version % 2), [0], [yes], [no]))
  32. m4_define([gimp_full_name], [The GIMP])
  33. # required versions of other packages
  34. m4_define([glib_required_version], [2.6.0])
  35. m4_define([gtk_required_version], [2.6.0])
  36. m4_define([gdk_pixbuf_required_version], [gtk_required_version])
  37. m4_define([pangoft2_required_version], [1.8.0])
  38. m4_define([fontconfig_required_version], [2.2.0])
  39. m4_define([gtkdoc_required_version], [1.0])
  40. m4_define([gtkhtml2_required_version], [2.0.0])
  41. m4_define([gimpprint_required_version], [4.2.0])
  42. m4_define([gimpprint_suggested_version], [4.2.6])
  43. m4_define([gimpprint_toonew_version], [4.3.0])
  44. m4_define([alsa_required_version], [1.0.0])
  45. m4_define([rsvg_required_version], [2.2.0])
  46. m4_define([wmf_required_version], [0.2.8])
  47. m4_define([pygtk_required_version], [1.99.15])
  48. AC_INIT([GIMP], [gimp_version],
  49. [http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP],
  50. [gimp])
  51. AC_CONFIG_SRCDIR([app/core/gimp.c])
  52. AM_INIT_AUTOMAKE(no-define)
  53. AM_CONFIG_HEADER(config.h)
  54. GIMP_MAJOR_VERSION=gimp_major_version
  55. GIMP_MINOR_VERSION=gimp_minor_version
  56. GIMP_MICRO_VERSION=gimp_micro_version
  57. GIMP_INTERFACE_AGE=gimp_interface_age
  58. GIMP_BINARY_AGE=gimp_binary_age
  59. GIMP_VERSION=gimp_version
  60. GIMP_REAL_VERSION=gimp_real_version
  61. GIMP_API_VERSION=gimp_api_version
  62. GIMP_APP_VERSION=gimp_app_version
  63. GIMP_PLUGIN_VERSION=gimp_plugin_version
  64. GIMP_TOOL_VERSION=gimp_tool_version
  65. GIMP_PKGCONFIG_VERSION=gimp_pkgconfig_version
  66. GIMP_DATA_VERSION=gimp_data_version
  67. GIMP_SYSCONF_VERSION=gimp_sysconf_version
  68. GIMP_USER_VERSION=gimp_user_version
  69. GIMP_UNSTABLE=gimp_unstable
  70. GIMP_FULL_NAME="gimp_full_name"
  71. AC_SUBST(GIMP_MAJOR_VERSION)
  72. AC_SUBST(GIMP_MINOR_VERSION)
  73. AC_SUBST(GIMP_MICRO_VERSION)
  74. AC_SUBST(GIMP_INTERFACE_AGE)
  75. AC_SUBST(GIMP_BINARY_AGE)
  76. AC_SUBST(GIMP_API_VERSION)
  77. AC_SUBST(GIMP_VERSION)
  78. AC_SUBST(GIMP_REAL_VERSION)
  79. AC_SUBST(GIMP_API_VERSION)
  80. AC_SUBST(GIMP_APP_VERSION)
  81. AC_SUBST(GIMP_PLUGIN_VERSION)
  82. AC_SUBST(GIMP_TOOL_VERSION)
  83. AC_SUBST(GIMP_PKGCONFIG_VERSION)
  84. AC_SUBST(GIMP_DATA_VERSION)
  85. AC_SUBST(GIMP_SYSCONF_VERSION)
  86. AC_SUBST(GIMP_USER_VERSION)
  87. AC_SUBST(GIMP_UNSTABLE)
  88. AC_SUBST(GIMP_FULL_NAME)
  89. dnl The symbol GIMP_UNSTABLE is defined above for substitution in
  90. dnl Makefiles and conditionally defined here as a preprocessor symbol
  91. dnl and automake conditional.
  92. if test "x$GIMP_UNSTABLE" = "xyes"; then
  93. AC_DEFINE(GIMP_UNSTABLE,1,
  94. [Define to 1 if this is an unstable version of the GIMP])
  95. fi
  96. AM_CONDITIONAL(GIMP_UNSTABLE, test "x$GIMP_UNSTABLE" = "xyes")
  97. dnl Choose a desktop icon
  98. if test "x$GIMP_UNSTABLE" = "xyes"; then
  99. GIMP_DESKTOP_ICON="wilber-devel-icon.png"
  100. else
  101. GIMP_DESKTOP_ICON="wilber-icon.png"
  102. fi
  103. AC_SUBST(GIMP_DESKTOP_ICON)
  104. # libtool versioning
  105. m4_define([lt_current], [m4_eval(100 * gimp_minor_version + gimp_micro_version - gimp_interface_age)])
  106. m4_define([lt_revision], [gimp_interface_age])
  107. m4_define([lt_age], [m4_eval(gimp_binary_age - gimp_interface_age)])
  108. LT_VERSION_INFO="lt_current:lt_revision:lt_age"
  109. LT_CURRENT_MINUS_AGE=m4_eval(lt_current - lt_age)
  110. AC_SUBST(LT_VERSION_INFO)
  111. AC_SUBST(LT_CURRENT_MINUS_AGE)
  112. GLIB_REQUIRED_VERSION=glib_required_version
  113. GTK_REQUIRED_VERSION=gtk_required_version
  114. GDK_PIXBUF_REQUIRED_VERSION=gdk_pixbuf_required_version
  115. PANGOFT2_REQUIRED_VERSION=pangoft2_required_version
  116. FONTCONFIG_REQUIRED_VERSION=fontconfig_required_version
  117. GTKDOC_REQUIRED_VERSION=gtkdoc_required_version
  118. GTKHTML2_REQUIRED_VERSION=gtkhtml2_required_version
  119. GIMPPRINT_REQUIRED_VERSION=gimpprint_required_version
  120. GIMPPRINT_TOONEW_VERSION=gimpprint_toonew_version
  121. RSVG_REQUIRED_VERSION=rsvg_required_version
  122. WMF_REQUIRED_VERSION=wmf_required_version
  123. AC_SUBST(GLIB_REQUIRED_VERSION)
  124. AC_SUBST(GTK_REQUIRED_VERSION)
  125. AC_SUBST(GDK_PIXBUF_REQUIRED_VERSION)
  126. AC_SUBST(PANGOFT2_REQUIRED_VERSION)
  127. AC_SUBST(FONTCONFIG_REQUIRED_VERSION)
  128. AC_SUBST(GTKDOC_REQUIRED_VERSION)
  129. AC_SUBST(GTKHTML2_REQUIRED_VERSION)
  130. AC_SUBST(GIMPPRINT_REQUIRED_VERSION)
  131. AC_SUBST(GIMPPRINT_TOONEW_VERSION)
  132. AC_SUBST(RSVG_REQUIRED_VERSION)
  133. AC_SUBST(WMF_REQUIRED_VERSION)
  134. GETTEXT_PACKAGE=gimp20
  135. AC_SUBST(GETTEXT_PACKAGE)
  136. AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
  137. [The prefix for our gettext translation domains.])
  138. dnl Initialize libtool
  139. AC_PROG_CC
  140. AM_DISABLE_STATIC
  141. AC_LIBTOOL_WIN32_DLL
  142. AM_PROG_LIBTOOL
  143. AM_PROG_AS
  144. dnl Initialize maintainer mode
  145. AM_MAINTAINER_MODE
  146. ###########################
  147. # Check target architecture
  148. ###########################
  149. AC_MSG_CHECKING([for target architecture])
  150. case x"$target" in
  151. xNONE | x)
  152. target_or_host="$host" ;;
  153. *)
  154. target_or_host="$target" ;;
  155. esac
  156. AC_MSG_RESULT([$target_or_host])
  157. case "$target_or_host" in
  158. i*86-*-*)
  159. have_x86=yes
  160. AC_DEFINE(ARCH_X86, 1, [Define to 1 if you are compiling for ix86.])
  161. ;;
  162. x86_64-*-*)
  163. have_x86=yes
  164. AC_DEFINE(ARCH_X86, 1, [Define to 1 if you are compiling for ix86.])
  165. AC_DEFINE(ARCH_X86_64, 1, [Define to 1 if you are compiling for amd64.])
  166. ;;
  167. ppc-*-* | powerpc-*)
  168. have_ppc=yes
  169. AC_DEFINE(ARCH_PPC, 1, [Define to 1 if you are compiling for PowerPC.])
  170. ;;
  171. ppc64-*-* | powerpc64-*)
  172. have_ppc=yes
  173. AC_DEFINE(ARCH_PPC, 1, [Define to 1 if you are compiling for PowerPC.])
  174. AC_DEFINE(ARCH_PPC64, 1, [Define to 1 if you are compiling for PowerPC64.])
  175. ;;
  176. *)
  177. ;;
  178. esac
  179. #################
  180. # Check for Win32
  181. #################
  182. AC_MSG_CHECKING([for some Win32 platform])
  183. case "$target_or_host" in
  184. *-*-mingw* | *-*-cygwin*)
  185. platform_win32=yes
  186. ;;
  187. *)
  188. platform_win32=no
  189. ;;
  190. esac
  191. AC_MSG_RESULT([$platform_win32])
  192. AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
  193. AC_MSG_CHECKING([for native Win32])
  194. case "$target_or_host" in
  195. *-*-mingw*)
  196. os_win32=yes
  197. PATHSEP=';'
  198. ;;
  199. *)
  200. os_win32=no
  201. PATHSEP=':'
  202. ;;
  203. esac
  204. AC_MSG_RESULT([$os_win32])
  205. AC_SUBST(PATHSEP)
  206. AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
  207. AM_CONDITIONAL(OS_UNIX, test "$os_win32" != "yes")
  208. if test "$os_win32" = "yes"; then
  209. AC_CHECK_PROG(ms_librarian, lib.exe, yes, no)
  210. AC_CHECK_TOOL(WINDRES, windres, :)
  211. else
  212. WINDRES=":"
  213. fi
  214. AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes)
  215. AM_CONDITIONAL(HAVE_WINDRES, test "x$WINDRES" != "x:")
  216. AC_SUBST(WINDRES)
  217. ###############
  218. # Generic stuff
  219. ###############
  220. dnl Checks for programs.
  221. AC_ISC_POSIX
  222. AM_PROG_CC_STDC
  223. AC_PROG_INSTALL
  224. AC_PROG_MAKE_SET
  225. dnl Large file support for the swap file
  226. AC_SYS_LARGEFILE
  227. AC_MSG_CHECKING([whether to turn on debugging])
  228. AC_ARG_ENABLE(debug,
  229. [ --enable-debug turn on debugging (default=no)],
  230. if eval "test x$enable_debug = xyes"; then
  231. DEBUGFLAG="-g"
  232. fi)
  233. if test -n "$DEBUGFLAG"; then
  234. AC_MSG_RESULT([yes])
  235. CFLAGS="$DEBUGFLAG $CFLAGS"
  236. else
  237. AC_MSG_RESULT([no])
  238. fi
  239. AC_MSG_CHECKING([whether to turn on profiling])
  240. AC_ARG_ENABLE(profile,
  241. [ --enable-profile turn on profiling (default=no)],
  242. if eval "test x$enable_profile = xyes"; then
  243. PROFFLAG="-pg"
  244. fi)
  245. if test -n "$PROFFLAG"; then
  246. AC_MSG_RESULT([yes])
  247. CFLAGS="$PROFFLAG $CFLAGS"
  248. else
  249. AC_MSG_RESULT([no])
  250. fi
  251. AC_ARG_ENABLE(ansi,
  252. [ --enable-ansi turn on strict ansi (default=no)],,
  253. enable_ansi=no)
  254. changequote(,)dnl
  255. if eval "test x$GCC = xyes"; then
  256. case " $CFLAGS " in
  257. *[\ \ ]-Wall[\ \ ]*) ;;
  258. *) CFLAGS="$CFLAGS -Wall" ;;
  259. esac
  260. if test "x$enable_ansi" = "xyes"; then
  261. case " $CFLAGS " in
  262. *[\ \ ]-ansi[\ \ ]*) ;;
  263. *) CFLAGS="$CFLAGS -ansi" ;;
  264. esac
  265. case " $CFLAGS " in
  266. *[\ \ ]-pedantic[\ \ ]*) ;;
  267. *) CFLAGS="$CFLAGS -pedantic" ;;
  268. esac
  269. fi
  270. fi
  271. changequote([,])dnl
  272. # Ensure MSVC-compatible struct packing convention is used when
  273. # compiling for Win32 with gcc.
  274. # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
  275. # gcc2 uses "-fnative-struct".
  276. if test x"$os_win32" = xyes; then
  277. if test x"$GCC" = xyes; then
  278. msnative_struct=''
  279. AC_MSG_CHECKING([how to get MSVC-compatible struct packing])
  280. if test -z "$ac_cv_prog_CC"; then
  281. our_gcc="$CC"
  282. else
  283. our_gcc="$ac_cv_prog_CC"
  284. fi
  285. case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
  286. 2.)
  287. if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
  288. msnative_struct='-fnative-struct'
  289. fi
  290. ;;
  291. *)
  292. if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
  293. msnative_struct='-mms-bitfields'
  294. fi
  295. ;;
  296. esac
  297. if test x"$msnative_struct" = x ; then
  298. AC_MSG_RESULT([no way])
  299. AC_MSG_WARN([build will be incompatible with GTK+ DLLs])
  300. else
  301. CFLAGS="$CFLAGS $msnative_struct"
  302. AC_MSG_RESULT([${msnative_struct}])
  303. fi
  304. fi
  305. fi
  306. # Honor aclocal flags
  307. ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
  308. AC_HEADER_DIRENT
  309. AC_HEADER_STDC
  310. AC_HEADER_SYS_WAIT
  311. AC_HEADER_TIME
  312. AC_CHECK_HEADERS(sys/param.h sys/time.h sys/times.h sys/wait.h unistd.h)
  313. AC_TYPE_PID_T
  314. AC_TYPE_SIGNAL
  315. AC_FUNC_VPRINTF
  316. AC_FUNC_ALLOCA
  317. dnl check some more funcs
  318. AC_CHECK_FUNCS(difftime putenv mmap)
  319. ######################
  320. # Internationalisation
  321. ######################
  322. dnl Note to translators: you MUST have .po files in all 4 directories: po,
  323. dnl po-libgimp, po-plug-ins, and po-script-fu before adding you language
  324. dnl code to ALL_LINGUAS
  325. ALL_LINGUAS="bg ca cs da de el en_CA en_GB es eu fi fr ga gl he hu hr id it ja ko lt mk ms nb nl no pa pl pt pt_BR ro ru sk sr sr@Latn sv tr uk vi yi zh_CN zh_TW"
  326. AC_PROG_INTLTOOL
  327. AM_GLIB_GNU_GETTEXT
  328. ###############################
  329. # Checks for required libraries
  330. ###############################
  331. AM_PATH_GLIB_2_0(glib_required_version, :,
  332. AC_MSG_ERROR(Test for GLIB failed. See the file 'INSTALL' for help.),
  333. gobject)
  334. PKG_CHECK_MODULES(GMODULE, gmodule-2.0 gobject-2.0)
  335. AC_MSG_CHECKING([if GLib is version 2.7.0 or newer])
  336. if $PKG_CONFIG --atleast-version=2.7.0 glib-2.0; then
  337. have_glib_2_7=yes
  338. else
  339. have_glib_2_7=no
  340. fi
  341. AC_MSG_RESULT($have_glib_2_7)
  342. dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
  343. gimp_save_LIBS=$LIBS
  344. LIBS="$LIBS $GLIB_LIBS"
  345. AC_CHECK_FUNCS(bind_textdomain_codeset)
  346. LIBS=$gimp_save_LIBS
  347. AC_PATH_XTRA
  348. AM_PATH_GTK_2_0(gtk_required_version, :,
  349. AC_MSG_ERROR(Test for GTK+ failed. See the file 'INSTALL' for help.))
  350. AC_MSG_CHECKING([if GTK+ is version 2.7.0 or newer])
  351. if $PKG_CONFIG --atleast-version=2.7.0 gtk+-2.0; then
  352. have_gtk_2_7=yes
  353. else
  354. have_gtk_2_7=no
  355. fi
  356. AC_MSG_RESULT($have_gtk_2_7)
  357. PKG_CHECK_MODULES(GDK_PIXBUF, gdk-pixbuf-2.0 >= gdk_pixbuf_required_version)
  358. AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no)
  359. if test x$GDK_PIXBUF_CSOURCE = xno; then
  360. AC_MSG_ERROR(Could not find gdk-pixbuf-csource in your PATH)
  361. fi
  362. PKG_CHECK_MODULES(LIBART, libart-2.0)
  363. PKG_CHECK_MODULES(FONTCONFIG, fontconfig >= fontconfig_required_version)
  364. PKG_CHECK_MODULES(PANGOFT2, pangoft2 >= pangoft2_required_version, :,
  365. AC_MSG_ERROR([Test for PangoFT2 failed.
  366. *** We require Pango with the optional support for FreeType2 compiled in.
  367. *** See the file 'INSTALL' for more help.]))
  368. AC_MSG_CHECKING([if Pango is version 1.9.0 or newer])
  369. if $PKG_CONFIG --atleast-version=1.9.0 pango; then
  370. have_pango_1_9=yes
  371. else
  372. have_pango_1_9=no
  373. fi
  374. AC_MSG_RESULT($have_pango_1_9)
  375. gimp_save_CFLAGS=$CFLAGS
  376. CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
  377. AC_MSG_CHECKING([if Pango is built with a recent fontconfig])
  378. AC_TRY_COMPILE([#include <fontconfig/fontconfig.h>],
  379. [FcObjectSet *os; os = FcObjectSetBuild (FC_FAMILY, FC_WIDTH);],
  380. fontconfig_ok=yes, fontconfig_ok=no)
  381. AC_MSG_RESULT($fontconfig_ok)
  382. CFLAGS=$gimp_save_CFLAGS
  383. if test "x$fontconfig_ok" = xno; then
  384. AC_MSG_ERROR([
  385. *** You have a fontconfig >= fontconfig_required_version installed on your system, but your
  386. *** PangoFT2 is using an older version. This old version is probably in
  387. *** /usr/X11R6. Look at the above output, and note that the result for
  388. *** FONTCONFIG_CFLAGS is not in the result for PANGOFT2_CFLAGS, and that
  389. *** there is likely an extra -I line, other than the ones for GLIB,
  390. *** Freetype, and Pango itself. That's where your old fontconfig files are.
  391. *** Rebuild pango, and make sure that it uses the newer fontconfig. The
  392. *** easiest way be sure of this is to simply get rid of the old fontconfig.
  393. *** When you rebuild pango, make sure the result for FONTCONFIG_CFLAGS is
  394. *** the same as the result here.])
  395. fi
  396. AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
  397. if test "x$FREETYPE_CONFIG" != "xno" ; then
  398. AC_MSG_CHECKING([for freetype libraries])
  399. FREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
  400. AC_MSG_RESULT($FREETYPE_LIBS)
  401. fi
  402. AC_SUBST(FREETYPE_LIBS)
  403. ##########################################
  404. # Check for some special functions we need
  405. ##########################################
  406. AC_CHECK_HEADERS(math.h ieeefp.h)
  407. dnl DU4 native cc currently needs -std1 for ANSI mode (instead of K&R)
  408. AC_MSG_CHECKING([for extra flags to get ANSI library prototypes])
  409. gimp_save_LIBS=$LIBS
  410. LIBS="$LIBS -lm"
  411. AC_TRY_RUN([#include <math.h>
  412. int main (void) { return (log(1) != log(1.)); }],
  413. AC_MSG_RESULT(none needed),
  414. gimp_save_CFLAGS=$CFLAGS
  415. CFLAGS="$CFLAGS -std1"
  416. AC_TRY_RUN([#include <math.h>
  417. int main (void) { return (log(1) != log(1.)); }],
  418. AC_MSG_RESULT(-std1),
  419. AC_MSG_RESULT()
  420. CFLAGS=$gimp_save_CFLAGS
  421. AC_MSG_WARN([No ANSI prototypes found in library. (-std1 didn't work.)]),
  422. AC_MSG_RESULT),
  423. AC_MSG_RESULT())
  424. dnl Check for finite or isfinite
  425. AC_CHECK_FUNCS(finite, , [
  426. AC_MSG_CHECKING(for finite in <math.h>)
  427. AC_TRY_LINK([#include <math.h>], [double f = 0.0; finite (f)], [
  428. AC_DEFINE(HAVE_FINITE, 1)
  429. AC_MSG_RESULT(yes)], [
  430. AC_MSG_RESULT(no)
  431. AC_MSG_CHECKING(for isfinite in <math.h>)
  432. AC_TRY_LINK([#include <math.h>], [float f = 0.0; isfinite(f)], [
  433. AC_DEFINE(HAVE_ISFINITE, 1,
  434. [Define to 1 if you have the isfinite function.])
  435. AC_MSG_RESULT(yes)], AC_MSG_RESULT(no))])])
  436. AC_SUBST(HAVE_FINITE)
  437. AC_SUBST(HAVE_ISFINITE)
  438. LIBS=$gimp_save_LIBS
  439. dnl NeXTStep cc seems to need this
  440. AC_MSG_CHECKING([for extra flags for POSIX compliance])
  441. AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
  442. AC_MSG_RESULT(none needed),
  443. gimp_save_CFLAGS=$CFLAGS
  444. CFLAGS="$CFLAGS -posix"
  445. AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
  446. AC_MSG_RESULT(-posix),
  447. AC_MSG_RESULT()
  448. CFLAGS=$gimp_save_CFLAGS
  449. AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)])))
  450. dnl check for rint
  451. AC_CHECK_FUNC(rint, AC_DEFINE(HAVE_RINT, 1,
  452. [Define to 1 if you have the rint function.]), [
  453. AC_CHECK_LIB(m, rint, [
  454. AC_DEFINE(HAVE_RINT)])])
  455. ######################################################
  456. # Check for extra libs needed for inet_ntoa and socket
  457. ######################################################
  458. gimp_save_LIBS=$LIBS
  459. LIBS=""
  460. AC_CHECK_FUNCS(inet_ntoa, , AC_CHECK_LIB(nsl, inet_ntoa))
  461. AC_CHECK_LIB(socket, socket)
  462. SOCKET_LIBS="$LIBS"
  463. LIBS=$gimp_save_LIBS
  464. AC_SUBST(SOCKET_LIBS)
  465. ########################
  466. # Check for MMX assembly
  467. ########################
  468. AC_ARG_ENABLE(mmx,
  469. [ --enable-mmx enable MMX support (default=auto)],,
  470. enable_mmx=$have_x86)
  471. AC_ARG_ENABLE(sse,
  472. [ --enable-sse enable SSE support (default=auto)],,
  473. enable_sse=$enable_mmx)
  474. if test "x$enable_mmx" = xyes; then
  475. AC_MSG_CHECKING(whether we can compile MMX code)
  476. AC_COMPILE_IFELSE([asm ("movq 0, %mm0");],
  477. AC_DEFINE(USE_MMX, 1, [Define to 1 if MMX assembly is available.])
  478. AC_MSG_RESULT(yes)
  479. if test "x$enable_sse" = xyes; then
  480. AC_MSG_CHECKING(whether we can compile SSE code)
  481. AC_COMPILE_IFELSE([asm ("movntps %xmm0, 0");],
  482. AC_DEFINE(USE_SSE, 1, [Define to 1 if SSE assembly is available.])
  483. AC_MSG_RESULT(yes)
  484. ,
  485. enable_sse=no
  486. AC_MSG_RESULT(no)
  487. AC_MSG_WARN([The assembler does not support the SSE command set.])
  488. )
  489. fi
  490. ,
  491. enable_mmx=no
  492. AC_MSG_RESULT(no)
  493. AC_MSG_WARN([The assembler does not support the MMX command set.])
  494. )
  495. fi
  496. ############################
  497. # Check for AltiVec assembly
  498. ############################
  499. AC_ARG_ENABLE(altivec,
  500. [ --enable-altivec enable AltiVec support (default=auto)],,
  501. enable_altivec=$have_ppc)
  502. if test "x$enable_altivec" = xyes; then
  503. altivec_flag=
  504. for flag in '-faltivec' '-maltivec -mabi=altivec'; do
  505. if test -z "$altivec_flag"; then
  506. altivec_save_CFLAGS="$CFLAGS"
  507. CFLAGS="$altivec_save_CFLAGS $flag"
  508. AC_MSG_CHECKING([whether [$]CC understands [$]flag])
  509. AC_TRY_COMPILE([], [], [altivec_flag_works=yes], [altivec_flag_works=no])
  510. AC_MSG_RESULT($altivec_flag_works)
  511. CFLAGS="$altivec_save_CFLAGS"
  512. if test "x$altivec_flag_works" = "xyes"; then
  513. altivec_flag="$flag"
  514. fi
  515. fi
  516. done
  517. ALTIVEC_EXTRA_CFLAGS=
  518. case "$altivec_flag" in
  519. -maltivec*)
  520. altivec_save_CPPFLAGS="$CPPFLAGS"
  521. CPPFLAGS="$altivec_save_CPPFLAGS $altivec_flag"
  522. AC_CHECK_HEADERS(altivec.h, [ALTIVEC_EXTRA_CFLAGS="$altivec_flag"])
  523. CPPFLAGS="$altivec_save_CPPFLAGS"
  524. ;;
  525. *)
  526. ALTIVEC_EXTRA_CFLAGS="$altivec_flag"
  527. ;;
  528. esac
  529. AC_SUBST(ALTIVEC_EXTRA_CFLAGS)
  530. AC_MSG_CHECKING(whether we can compile AltiVec code)
  531. can_use_altivec=no
  532. if test -z "$ALTIVEC_EXTRA_CFLAGS"; then
  533. AC_MSG_RESULT(no)
  534. AC_MSG_WARN([The compiler does not support the AltiVec command set.])
  535. else
  536. case "$target_or_host" in
  537. *-*-darwin*)
  538. can_use_altivec=yes
  539. AC_DEFINE(HAVE_ALTIVEC_SYSCTL, 1,
  540. [Define to 1 if the altivec runtime test should use a sysctl.])
  541. ;;
  542. *)
  543. AC_COMPILE_IFELSE([asm ("vand %v0, %v0, %v0");],
  544. can_use_altivec=yes, can_use_altivec=no)
  545. ;;
  546. esac
  547. AC_MSG_RESULT($can_use_altivec)
  548. if test "x$can_use_altivec" = "xyes"; then
  549. AC_DEFINE(USE_ALTIVEC, 1, [Define to 1 if AltiVec support is available.])
  550. else
  551. enable_altivec=no
  552. AC_MSG_WARN([The assembler does not support the AltiVec command set.])
  553. fi
  554. fi
  555. enable_altivec="$can_use_altivec"
  556. fi
  557. ###################################
  558. # Checks for shared memory handling
  559. ###################################
  560. dnl MacOS X has broken SysV shm
  561. case "$target_or_host" in
  562. *-*-darwin* | *-*-rhapsody* | *-*-machten*)
  563. shmdefault=posix
  564. ;;
  565. *)
  566. shmdefault=sysv
  567. ;;
  568. esac
  569. shmtype=auto
  570. AC_ARG_WITH(shm, [ --with-shm=none|sysv|posix|auto shared memory transport type (default=auto)], shmtype=$with_shm)
  571. case $shmtype in
  572. none|sysv|posix) ;;
  573. auto) shmtype=$shmdefault ;;
  574. *) AC_MSG_ERROR([Invalid shared memory transport type: use none, sysv, posix, or auto.]);;
  575. esac
  576. if test "x$platform_win32" = "xyes"; then
  577. shmtype=win32
  578. elif test "x$shmtype" = "xsysv"; then
  579. AC_CHECK_HEADER(sys/ipc.h,
  580. [AC_DEFINE(HAVE_IPC_H, 1,
  581. [Define to 1 if you have the <sys/ipc.h> header file.])],
  582. no_sys_ipc=yes)
  583. AC_CHECK_HEADER(sys/shm.h,
  584. [AC_DEFINE(HAVE_SHM_H, 1,
  585. [Define to 1 if you have the <sys/shm.h> header file.])],
  586. no_sys_shm=yes)
  587. if test "$ac_cv_header_sys_shm_h" = "yes"; then
  588. AC_MSG_CHECKING(whether shmctl IPC_RMID allowes subsequent attaches)
  589. AC_TRY_RUN([
  590. #include <sys/types.h>
  591. #include <sys/ipc.h>
  592. #include <sys/shm.h>
  593. int main()
  594. {
  595. int id;
  596. char *shmaddr;
  597. id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
  598. if (id == -1)
  599. exit (2);
  600. shmaddr = shmat (id, 0, 0);
  601. shmctl (id, IPC_RMID, 0);
  602. if ((char*) shmat (id, 0, 0) == (char*) -1)
  603. {
  604. shmdt (shmaddr);
  605. exit (1);
  606. }
  607. shmdt (shmaddr);
  608. shmdt (shmaddr);
  609. exit (0);
  610. }
  611. ],
  612. AC_DEFINE(IPC_RMID_DEFERRED_RELEASE, 1,
  613. [Define to 1 if shared memory segments are released deferred.])
  614. AC_MSG_RESULT(yes),
  615. AC_MSG_RESULT(no),
  616. AC_MSG_RESULT(assuming no))
  617. AC_DEFINE(USE_SYSV_SHM, 1, [Define to 1 to use SYSV shared memory])
  618. else
  619. shmtype=none
  620. fi
  621. elif test "x$shmtype" = "xposix"; then
  622. have_shm_open=no
  623. AC_CHECK_FUNC(shm_open, have_shm_open=yes)
  624. RT_LIBS=
  625. if test "$have_shm_open" != "yes"; then
  626. AC_CHECK_LIB(rt, shm_open, RT_LIBS="-lrt" have_shm_open=yes)
  627. fi
  628. AC_SUBST(RT_LIBS)
  629. AC_CHECK_HEADER(sys/mman.h,
  630. [AC_DEFINE(HAVE_MMAN_H, 1,
  631. [Define to 1 if you have the <sys/mman.h> header file.])],
  632. no_sys_mman=yes)
  633. if test "$ac_cv_func_mmap" = "yes" &&
  634. test "$ac_cv_header_sys_mman_h" = "yes" &&
  635. test "$have_shm_open" = "yes"; then
  636. AC_DEFINE(USE_POSIX_SHM, 1, [Define to 1 to use POSIX shared memory])
  637. else
  638. shmtype=none
  639. fi
  640. fi
  641. AC_MSG_CHECKING(for shared memory transport type)
  642. AC_MSG_RESULT($shmtype)
  643. ########################
  644. # Define a symbol prefix
  645. ########################
  646. AC_MSG_CHECKING([whether symbols are prefixed])
  647. case "$host_os" in
  648. mingw*)
  649. SYMPREFIX='_'
  650. ;;
  651. darwin* | rhapsody* | machten*)
  652. SYMPREFIX='_'
  653. ;;
  654. *)
  655. ;;
  656. esac
  657. if test -n "$SYMPREFIX"; then
  658. AC_MSG_RESULT([yes, with a $SYMPREFIX])
  659. else
  660. AC_MSG_RESULT(no)
  661. fi
  662. AC_SUBST(SYMPREFIX)
  663. ##################################
  664. # Check for regex support in glibc
  665. ##################################
  666. AC_MSG_CHECKING(checking for regex in glibc)
  667. AC_TRY_RUN([
  668. #include <features.h>
  669. #include <stdio.h>
  670. #include <regex.h>
  671. int main()
  672. {
  673. #if __GLIBC__ >= 2
  674. return (0);
  675. #else
  676. return (1);
  677. #endif
  678. }], AC_DEFINE(HAVE_GLIBC_REGEX, 1,
  679. [Define to 1 if glibc has regex support.])
  680. have_glibc_regex=yes
  681. AC_MSG_RESULT(yes),
  682. AC_MSG_RESULT(no),
  683. AC_MSG_RESULT(assuming no))
  684. AM_CONDITIONAL(HAVE_GLIBC_REGEX, test x$have_glibc_regex = xyes)
  685. AC_SUBST(HAVE_GLIBC_REGEX)
  686. ############################
  687. # Check for select and fdset
  688. ############################
  689. AC_MSG_CHECKING([fd_set and sys/select])
  690. AC_TRY_COMPILE([#include <sys/types.h>],
  691. [fd_set readMask, writeMask;], gimp_ok=yes, gimp_ok=no)
  692. if test $gimp_ok = no; then
  693. AC_EGREP_HEADER(fd_mask, sys/select.h, gimp_ok=yes)
  694. if test $gimp_ok = yes; then
  695. AC_DEFINE(HAVE_SYS_SELECT_H, 1,
  696. [Define to 1 if you have the <sys/select.h> header.])
  697. fi
  698. fi
  699. AC_MSG_RESULT($gimp_ok)
  700. if test $gimp_ok = no; then
  701. AC_DEFINE(NO_FD_SET, 1,
  702. [Define to 1 if you don't have the fd_set function.])
  703. fi
  704. #############################
  705. # Threads and multi processor
  706. #############################
  707. AC_ARG_ENABLE(mp, [ --disable-mp disable support for multiple processors])
  708. if test "x$enable_mp" != "xno"; then
  709. PKG_CHECK_MODULES(GTHREAD, gthread-2.0,
  710. [AC_DEFINE(ENABLE_MP, 1,
  711. [Define to 1 to enable support for multiple processors.])]
  712. )
  713. fi
  714. if test "x$GIMP_UNSTABLE" = "xyes"; then
  715. AC_ARG_ENABLE(threaded-tile-swapper, [ --enable-threaded-tile-swapper (experimental)])
  716. if test "x$enable_threaded_tile_swapper" = "xyes"; then
  717. PKG_CHECK_MODULES(GTHREAD, gthread-2.0,
  718. [AC_DEFINE(ENABLE_THREADED_TILE_SWAPPER, 1,
  719. [Define to 1 to enable the experimental threaded tile-swapper.])]
  720. )
  721. fi
  722. fi
  723. ################################
  724. # Some plug-ins are X11 specific
  725. ################################
  726. dnl Check if building for GTK+-X11
  727. gdk_target=`$PKG_CONFIG --variable=target gtk+-2.0`
  728. if test "$gdk_target" = x11; then
  729. dnl Test for Xmu
  730. if test -z "$LIBXMU"; then
  731. gimp_save_CFLAGS="$CFLAGS"
  732. gimp_save_LDFLAGS="$LDFLAGS"
  733. CFLAGS="$CFLAGS $GTK_CFLAGS"
  734. LDFLAGS="$LDFLAGS $X_LIBS"
  735. AC_CHECK_LIB(Xmu, XmuClientWindow,
  736. [AC_CHECK_HEADERS(X11/Xmu/WinUtil.h,
  737. GIMP_REMOTE='gimp-remote-gimp_app_version$(EXEEXT)';
  738. have_libxmu=yes
  739. LIBXMU="$X_LIBS $X_PRE_LIBS -lX11 -lXmu -lXt",
  740. [AC_MSG_WARN(*** gimp-remote will not be built (XMU header file not found) ***)],[#include <gdk/gdkx.h>])],
  741. [AC_MSG_WARN(*** gimp-remote will not be built (XMU library not found) ***)], -lXt -lX11)
  742. CFLAGS="$gimp_save_CFLAGS"
  743. LDFLAGS="$gimp_save_LDFLAGS"
  744. fi
  745. dnl screenshot plug-in needs to link to X11 explicitely
  746. LIBSCREENSHOT="$X_LIBS -lX11"
  747. fi
  748. AC_SUBST(LIBXMU)
  749. AC_SUBST(LIBSCREENSHOT)
  750. AC_SUBST(GIMP_REMOTE)
  751. ###################
  752. # Check for libtiff
  753. ###################
  754. AC_ARG_WITH(libtiff, [ --without-libtiff build without TIFF support])
  755. if test x$with_libtiff != xno && test -z "$LIBTIFF"; then
  756. AC_CHECK_LIB(tiff, TIFFReadScanline,
  757. [AC_CHECK_HEADER(tiffio.h,
  758. TIFF='tiff$(EXEEXT)'; LIBTIFF='-ltiff',
  759. [AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF header files not found) ***)])],
  760. [AC_CHECK_LIB(tiff, TIFFWriteScanline,
  761. [AC_CHECK_HEADER(tiffio.h,
  762. TIFF='tiff$(EXEEXT)'; LIBTIFF='-ltiff -ljpeg -lz',
  763. [AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF header files not found) ***)])],
  764. [AC_CHECK_LIB(tiff34, TIFFFlushData,
  765. [AC_CHECK_HEADER(tiffio.h,
  766. TIFF='tiff$(EXEEXT)'; LIBTIFF='-ltiff34 -ljpeg -lz',
  767. [AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF header files not found) ***)])],
  768. [AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF library not found) ***)], -ljpeg -lz -lm)], -ljpeg -lz -lm)], -lm)
  769. fi
  770. if test x$with_libtiff != xno && test -z "$LIBTIFF"; then
  771. AC_MSG_ERROR([
  772. *** Checks for TIFF libary failed. You can build without it by passing
  773. *** --without-libtiff to configure but you won't be able to use TIFFs then.])
  774. fi
  775. AC_SUBST(TIFF)
  776. AC_SUBST(LIBTIFF)
  777. ###################
  778. # Check for libjpeg
  779. ###################
  780. AC_ARG_WITH(libjpeg, [ --without-libjpeg build without JPEG support])
  781. if test x$with_libjpeg != xno && test -z "$LIBJPEG"; then
  782. AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
  783. jpeg_ok=yes,
  784. [jpeg_ok=no
  785. AC_MSG_WARN(*** JPEG plug-in will not be built (JPEG library not found) ***)
  786. AC_MSG_WARN(*** XJT plug-in will not be built (JPEG library not found) ***)])
  787. if test "$jpeg_ok" = yes; then
  788. AC_MSG_CHECKING([for jpeglib.h])
  789. AC_TRY_CPP([
  790. #include <stdio.h>
  791. #undef HAVE_STDDEF_H
  792. #undef HAVE_STDLIB_H
  793. #undef PACKAGE
  794. #undef VERSION
  795. #include <jpeglib.h>],
  796. jpeg_ok=yes,
  797. jpeg_ok=no)
  798. AC_MSG_RESULT($jpeg_ok)
  799. if test "$jpeg_ok" = yes; then
  800. JPEG='jpeg$(EXEEXT)'; LIBJPEG='-ljpeg'
  801. AC_CHECK_LIB(jpeg, jpeg_simple_progression,
  802. AC_DEFINE(HAVE_PROGRESSIVE_JPEG, 1,
  803. [Define to 1 if jpeglib supports progressive JPEG.]),
  804. AC_MSG_WARN(JPEG library does not support progressive saving.))
  805. else
  806. AC_MSG_WARN(*** JPEG plug-in will not be built (JPEG header file not found) ***)
  807. AC_MSG_WARN(*** XJT plug-in will not be built (JPEG header file not found) ***)
  808. fi
  809. fi
  810. fi
  811. if test x$with_libjpeg != xno && test -z "$LIBJPEG"; then
  812. AC_MSG_ERROR([
  813. *** Checks for JPEG library failed. You can build without it by passing
  814. *** --without-libjpeg to configure but you won't be able to use JPEGs then.])
  815. fi
  816. AC_SUBST(JPEG)
  817. AC_SUBST(LIBJPEG)
  818. ## xjt does build, but it is more confusing than useful on Win32,
  819. ## as it wants to run tar, mv and bzip2, which seldom are available
  820. AM_CONDITIONAL(BUILD_XJT, test x$jpeg_ok = xyes && test x"$os_win32" = xno)
  821. ################
  822. # Check for libz
  823. ################
  824. if test -z "$LIBZ"; then
  825. AC_CHECK_LIB(z, gzsetparams,
  826. [AC_CHECK_HEADER(zlib.h,
  827. PSP='psp$(EXEEXT)'; LIBZ='-lz',
  828. [AC_MSG_WARN(*** PSP and PNG plug-ins will not be built (ZLIB header files not found) ***)])],
  829. [AC_MSG_WARN(*** PSP and PNG plug-ins will not be built (ZLIB library not found) ***)])
  830. fi
  831. AC_SUBST(LIBZ)
  832. AC_SUBST(PSP)
  833. ##################
  834. # Check for libpng
  835. ##################
  836. AC_ARG_WITH(libpng, [ --without-libpng build without PNG support])
  837. if test x$with_libpng != xno && test -z "$LIBPNG" && test -n "$LIBZ"; then
  838. AC_CHECK_LIB(png, png_read_info,
  839. [AC_CHECK_HEADER(png.h,
  840. png_ok=yes,
  841. png_ok=no)],
  842. [AC_MSG_WARN(*** PNG plug-in will not be built (PNG library not found) ***)], -lz -lm)
  843. if test "$png_ok" = yes; then
  844. AC_MSG_CHECKING([for png_structp in png.h])
  845. AC_TRY_COMPILE([#include <png.h>],
  846. [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
  847. png_ok=yes,
  848. png_ok=no)
  849. AC_MSG_RESULT($png_ok)
  850. if test "$png_ok" = yes; then
  851. PNG='png$(EXEEXT)'; LIBPNG="-lpng $LIBZ"
  852. else
  853. AC_MSG_WARN(*** PNG plug-in will not be built (PNG library is too old) ***)
  854. fi
  855. else
  856. AC_MSG_WARN(*** PNG plug-in will not be built (PNG header file not found) ***)
  857. fi
  858. fi
  859. if test x$with_libpng != xno && test -z "$LIBPNG"; then
  860. AC_MSG_ERROR([
  861. *** Checks for PNG library failed. You can build without it by passing
  862. *** --without-libpng to configure but you won't be able to use PNGs then.])
  863. fi
  864. AC_SUBST(PNG)
  865. AC_SUBST(LIBPNG)
  866. ##################
  867. # Check for libmng
  868. ##################
  869. AC_ARG_WITH(libmng, [ --without-libmng build without MNG support])
  870. if test x$with_libmng != xno && test -z "$LIBMNG" &&
  871. test -n "$LIBPNG" && test -n "$LIBJPEG" && test -n "$LIBZ"; then
  872. AC_CHECK_LIB(mng, mng_create,
  873. [AC_CHECK_HEADER(libmng.h, mng_ok=yes)],
  874. [AC_MSG_WARN(*** MNG plug-in will not be built (MNG library not found) ***)], -lz -lm)
  875. if test "$mng_ok" = yes; then
  876. MNG='mng$(EXEEXT)'; LIBMNG="-lmng $LIBJPEG $LIBPNG"
  877. else
  878. AC_MSG_WARN(*** MNG plug-in will not be built (MNG header file not found) ***)
  879. fi
  880. fi
  881. AC_SUBST(MNG)
  882. AC_SUBST(LIBMNG)
  883. ############################################################
  884. # libexif: Library to allow exif tags to be read from, and
  885. # saved to, jpeg files. Currently, this permits exif data to
  886. # avoid destruction, but no data modification is performed.
  887. ############################################################
  888. AC_ARG_WITH(libexif, [ --without-libexif build without EXIF support])
  889. if test x$with_libexif != xno && test -z "$LIBEXIF" && test -n "$LIBJPEG"; then
  890. PKG_CHECK_MODULES(EXIF, libexif,
  891. AC_DEFINE(HAVE_EXIF, 1, "Define to 1 if libexif is available"),
  892. AC_MSG_WARN([libexif not found!
  893. EXIF support will not be built into the JPEG plug-in.
  894. libexif is available from http://www.sourceforge.net/projects/libexif]))
  895. AC_MSG_CHECKING([if libexif is version 0.6.0 or newer])
  896. if $PKG_CONFIG --atleast-version=0.6.0 libexif; then
  897. have_exif_0_6=yes
  898. else
  899. have_exif_0_6=no
  900. fi
  901. AC_MSG_RESULT($have_exif_0_6)
  902. if test x$have_exif_0_6 == xyes; then
  903. AC_DEFINE(HAVE_EXIF_0_6, 1, "Define to 1 if libexif is at least version 0.6.0")
  904. fi
  905. fi
  906. AC_SUBST(EXIF_CFLAGS)
  907. AC_SUBST(EXIF_LIBS)
  908. #################
  909. # Check for libaa
  910. #################
  911. AC_ARG_WITH(aa, [ --without-aa do not build the AA plug-in])
  912. if test x$with_aa != xno && test -z "$LIBAA"; then
  913. AC_CHECK_LIB(aa, aa_printf,
  914. [AC_CHECK_HEADER(aalib.h,
  915. AA='aa$(EXEEXT)'; LIBAA='-laa',
  916. [AC_MSG_WARN(*** AA plug-in will not be built (AA header file not found) ***)])],
  917. [AC_MSG_WARN(*** AA plug-in will not be built (AA library not found) ***)])
  918. fi
  919. AC_SUBST(AA)
  920. AC_SUBST(LIBAA)
  921. ##################
  922. # Check for libxpm
  923. ##################
  924. gimp_save_CFLAGS="$CFLAGS"
  925. CFLAGS="$CFLAGS $X_CFLAGS"
  926. gimp_save_LDFLAGS="$LDFLAGS"
  927. LDFLAGS="$LDFLAGS $X_LIBS"
  928. if test "$gdk_target" = x11; then
  929. lib_X11=-lX11
  930. fi
  931. if test -z "$LIBXPM"; then
  932. AC_CHECK_LIB(Xpm, XpmReadFileToXpmImage,
  933. [AC_CHECK_HEADER(X11/xpm.h,
  934. XPM='xpm$(EXEEXT)'; LIBXPM="$X_LIBS $X_PRE_LIBS $lib_X11 -lXpm",
  935. [AC_MSG_WARN(*** XPM plug-in will not be built (XPM header file not found) ***)])],
  936. [AC_MSG_WARN(*** XPM plug-in will not be built (XPM library not found) ***)], $X_PRE_LIBS $lib_X11)
  937. fi
  938. CFLAGS="$gimp_save_CFLAGS"
  939. LDFLAGS="$gimp_save_LDFLAGS"
  940. AC_SUBST(XPM)
  941. AC_SUBST(LIBXPM)
  942. ####################
  943. # Check for gtkhtml2
  944. ####################
  945. PKG_CHECK_MODULES(GTKHTML2, libgtkhtml-2.0 >= gtkhtml2_required_version,
  946. have_gtkhtml2=yes,
  947. AC_MSG_WARN([*** Help browser plug-in will not be built (GtkHtml2 not found) ***]))
  948. AM_CONDITIONAL(BUILD_HELPBROWSER, test x$have_gtkhtml2 = xyes)
  949. ###################
  950. # Check for librsvg
  951. ###################
  952. PKG_CHECK_MODULES(SVG, librsvg-2.0 >= rsvg_required_version,
  953. SVG='svg$(EXEEXT)'
  954. LIBSVG=$SVG_LIBS,
  955. AC_MSG_WARN([*** SVG import plug-in will not be built (librsvg not found) ***]))
  956. AC_SUBST(SVG)
  957. AC_SUBST(LIBSVG)
  958. #####################
  959. # Check for gnome-vfs
  960. #####################
  961. PKG_CHECK_MODULES(GNOMEVFS, gnome-vfs-2.0,
  962. have_gnomevfs=yes,
  963. AC_MSG_WARN([*** URI plug-in will be built without gnome-vfs support (gnome-vfs-2.0 not found) ***]))
  964. AM_CONDITIONAL(HAVE_GNOMEVFS, test x$have_gnomevfs = xyes)
  965. ######################
  966. # Check for gimp-print
  967. ######################
  968. AC_ARG_ENABLE(print, [ --disable-print build without print support (requires libgimpprint)])
  969. have_gimp_print=no
  970. if test "x$enable_print" != "xno"; then
  971. AM_PATH_GIMPPRINT(gimpprint_required_version,
  972. [print_version=`$GIMPPRINT_CONFIG --version`
  973. if expr $print_version \>= gimpprint_toonew_version >/dev/null; then
  974. AC_MSG_WARN([
  975. *** libgimpprint version $print_version is too new.
  976. *** It is likely an unstable development version.
  977. *** You need a version before gimpprint_toonew_version.])
  978. else
  979. have_gimp_print=yes
  980. dnl sanity check to avoid bug #125283
  981. if expr $print_version \< gimpprint_suggested_version >/dev/null; then
  982. AC_MSG_WARN([
  983. *** libgimpprint version $print_version causes problems under certain locales.
  984. *** We strongly suggest you upgrade to version gimpprint_suggested_version.])
  985. fi
  986. fi
  987. ])
  988. fi
  989. if test x$enable_print != xno && test x$have_gimp_print != xyes; then
  990. AC_MSG_ERROR([
  991. *** Check for libgimpprint failed. You can download it from
  992. *** http://gimp-print.sourceforge.net/ or you can build without it by passing
  993. *** --disable-print to configure (but you won't be able to print then).])
  994. fi
  995. AC_SUBST(PRINT_LIBS)
  996. AC_SUBST(PRINT_CFLAGS)
  997. AM_CONDITIONAL(BUILD_PRINT,
  998. test x$enable_print != xno && test x$have_gimp_print = xyes)
  999. ###################
  1000. # Check for libwmf2
  1001. ###################
  1002. AC_PATH_PROG(WMF_CONFIG, libwmf-config, no)
  1003. if test "x$WMF_CONFIG" != "xno" ; then
  1004. AC_MSG_CHECKING(for libwmf >= wmf_required_version)
  1005. wmf_version=`$WMF_CONFIG --version`
  1006. if expr $wmf_version \>= wmf_required_version >/dev/null; then
  1007. AC_MSG_RESULT([yes (version $wmf_version)])
  1008. WMF='wmf$(EXEEXT)'
  1009. LIBWMF=`$WMF_CONFIG --libs`
  1010. WMF_CFLAGS=`$WMF_CONFIG --cflags`
  1011. else
  1012. AC_MSG_WARN([*** WMF plug-in will not be built (libwmf is too old)])
  1013. fi
  1014. else
  1015. AC_MSG_WARN([*** WMF plug-in will not be built (libwmf not found) ***])
  1016. fi
  1017. AC_SUBST(LIBWMF)
  1018. AC_SUBST(WMF_CFLAGS)
  1019. ################
  1020. # Check for lcms
  1021. ################
  1022. have_lcms=no
  1023. AC_CHECK_LIB(lcms, cmsCreate_sRGBProfile, [
  1024. AC_CHECK_HEADER(lcms.h,
  1025. have_lcms=yes, [
  1026. AC_CHECK_HEADER(lcms/lcms.h,
  1027. have_lcms=yes
  1028. AC_DEFINE(HAVE_LCMS_LCMS_H, 1,
  1029. [Define to 1 if the lcms header must be included as lcms/lcms.h]))
  1030. ])
  1031. ])
  1032. if test $have_lcms = yes; then
  1033. LCMS_LIBS="-llcms"
  1034. else
  1035. AC_MSG_WARN([*** color proof module will not be built (lcms not found or unuseable) ***])
  1036. fi
  1037. AC_SUBST(LCMS_LIBS)
  1038. AM_CONDITIONAL(HAVE_LCMS, test $have_lcms = yes)
  1039. ################
  1040. # Check for alsa
  1041. ################
  1042. AM_PATH_ALSA(alsa_required_version,
  1043. AC_DEFINE(HAVE_ALSA, 1, [Define to 1 if alsa is available]),
  1044. AC_MSG_WARN([*** midi input controller will be built without alsa support (alsa not found or unuseable) ***]))
  1045. #######################
  1046. # Check for linux input
  1047. #######################
  1048. AC_ARG_WITH(linux-input,
  1049. [ --without-linux-input don't build linux input event controller module])
  1050. have_linux_input=no
  1051. if test "x$with_linux_input" != "xno"; then
  1052. AC_CHECK_HEADER(linux/input.h, have_linux_input=yes)
  1053. fi
  1054. AM_CONDITIONAL(HAVE_LINUX_INPUT, test $have_linux_input = yes)
  1055. ############################################################
  1056. # GIF compression: Allow builder to specify at compile time
  1057. # which compression style she wants to use for GIFs.
  1058. # LZW: Unisys patented Lempel-Ziff encoding.
  1059. # RLE: Runlength encoding (produces files about twice as big
  1060. # as the LZW compressed equivalent).
  1061. # None: Raw data.
  1062. ############################################################
  1063. AC_ARG_WITH(gif-compression,
  1064. [ --with-gif-compression=lzw|rle|none GIF compression style (default=lzw)])
  1065. case x"$with_gif_compression" in
  1066. xnone)
  1067. AC_DEFINE(GIF_UN, 1, [Define to 1 for no GIF compression]) ;;
  1068. xrle)
  1069. AC_DEFINE(GIF_RLE, 1, [Define to 1 for RLE GIF compression]) ;;
  1070. esac
  1071. ####################
  1072. # Check for sendmail
  1073. ####################
  1074. AC_ARG_WITH(sendmail,[ --with-sendmail=DIR set sendmail command location])
  1075. if test "x$with_sendmail" != "x"; then
  1076. sendmail_path=$with_sendmail
  1077. else
  1078. sendmail_path=$PATH:/usr/sbin:/usr/lib
  1079. fi
  1080. AC_PATH_PROG(SENDMAIL, sendmail, , $sendmail_path)
  1081. if test "x$SENDMAIL" != "x"; then
  1082. AC_DEFINE_UNQUOTED(SENDMAIL, "$SENDMAIL",
  1083. [The MTA used by the mail plug-in.])
  1084. fi
  1085. ################
  1086. # Check for perl
  1087. ################
  1088. AC_PATH_PROGS(PERL,perl5 perl perl5.005 perl5.004,perl)
  1089. AC_ARG_WITH(pdbgen,
  1090. [ --with-pdbgen use 'pdbgen' code generation tool],,
  1091. with_pdbgen=$enable_maintainer_mode)
  1092. AM_CONDITIONAL(WITH_PDBGEN, test x$with_pdbgen = xyes)
  1093. ##################
  1094. # Check for python
  1095. ##################
  1096. dnl Pygimp configure stuff ...
  1097. AC_ARG_ENABLE(python,
  1098. AC_HELP_STRING([--enable-python],
  1099. [build python extension (by default disabled)]),,
  1100. [enable_python=no])
  1101. if test "x$enable_python" != xno; then
  1102. dnl check for Python
  1103. AM_PATH_PYTHON(2.2)
  1104. AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
  1105. dnl check for PyGTK
  1106. PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= pygtk_required_version)
  1107. dnl enable -fno-strict-aliasing if compiler supports it
  1108. PYGIMP_EXTRA_CFLAGS=
  1109. case " $CFLAGS " in
  1110. *@<:@\ \ @:>@-fno-strict-aliasing@<:@\ \ @:>@*)
  1111. ;;
  1112. *)
  1113. pygimp_save_CFLAGS="$CFLAGS"
  1114. CFLAGS="$CFLAGS -fno-strict-aliasing"
  1115. AC_MSG_CHECKING([whether [$]CC understands -fno-strict-aliasing])
  1116. AC_TRY_COMPILE([], [], [pygimp_has_option=yes], [pygimp_has_option=no])
  1117. AC_MSG_RESULT($pygimp_has_option)
  1118. CFLAGS="$pygimp_save_CFLAGS"
  1119. if test "x$pygimp_has_option" = "xyes"; then
  1120. PYGIMP_EXTRA_CFLAGS="-fno-strict-aliasing"
  1121. fi
  1122. ;;
  1123. esac
  1124. AC_SUBST(PYGIMP_EXTRA_CFLAGS)
  1125. fi
  1126. AM_CONDITIONAL(BUILD_PYTHON, test "x$enable_python" != xno)
  1127. ###########################################################
  1128. # Some plug-ins don't build on Win32, others are Win32-only
  1129. ###########################################################
  1130. if test x"$os_win32" = xyes; then
  1131. WINCLIPBOARD='winclipboard$(EXEEXT)'
  1132. WINPRINT='winprint$(EXEEXT)'
  1133. else
  1134. MAIL='mail$(EXEEXT)'
  1135. SCREENSHOT='screenshot$(EXEEXT)'
  1136. fi
  1137. AC_SUBST(MAIL)
  1138. AC_SUBST(SCREENSHOT)
  1139. AC_SUBST(WINCLIPBOARD)
  1140. AC_SUBST(WINPRINT)
  1141. AC_SUBST(WMF)
  1142. ############################################################
  1143. # Check for Mac OS X TWAIN framework (can't build on Darwin)
  1144. ############################################################
  1145. AC_MSG_CHECKING([checking for Mac OS X TWAIN support])
  1146. AC_TRY_CPP([
  1147. #include <Carbon/Carbon.h>
  1148. #include <TWAIN/TWAIN.h>
  1149. ],
  1150. twain_ok=yes,
  1151. twain_ok=no)
  1152. AC_MSG_RESULT($twain_ok)
  1153. AM_CONDITIONAL(HAVE_MAC_TWAIN, test x$twain_ok = xyes)
  1154. ##########################################################
  1155. # Determine where to install the desktop & mime info files
  1156. ##########################################################
  1157. AC_ARG_WITH(desktop-dir, [ --with-desktop-dir=PATH where to install desktop files (default=PREFIX/share)])
  1158. if test "x$with_desktop_dir" != x; then
  1159. DESKTOP_DATADIR=$with_desktop_dir
  1160. else
  1161. DESKTOP_DATADIR="$datadir"
  1162. fi
  1163. AM_CONDITIONAL(DESKTOP_DATADIR, test "x$with_desktop_dir" != xno)
  1164. AC_SUBST(DESKTOP_DATADIR)
  1165. #####################
  1166. # Check for XML tools
  1167. #####################
  1168. AC_PATH_PROG(XMLLINT, xmllint, no)
  1169. AM_CONDITIONAL(HAVE_XMLLINT, test "x$XMLLINT" != "xno")
  1170. AC_PATH_PROG(XSLTPROC, xsltproc, no)
  1171. AM_CONDITIONAL(HAVE_XSLTPROC, test "x$XSLTPROC" != "xno")
  1172. ######################################
  1173. # Checks for gtk-doc and docbook-tools
  1174. ######################################
  1175. GTK_DOC_CHECK([1.0])
  1176. dnl NOTE: We need to use a separate automake conditional for this
  1177. dnl to make this work with the tarballs.
  1178. AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
  1179. #########################################
  1180. # Allow to configure the gimp environment
  1181. #########################################
  1182. AC_ARG_ENABLE(default-binary, [ --enable-default-binary install this as the default gimp binary (default=gimp_stable)], , enable_default_binary=gimp_stable)
  1183. AM_CONDITIONAL(DEFAULT_BINARY, test x$enable_default_binary = xyes)
  1184. AC_ARG_ENABLE(gimp-console, [ --enable-gimp-console build a console-only binary which does not link GTK+], , enable_gimp_console=no)
  1185. AM_CONDITIONAL(ENABLE_GIMP_CONSOLE, test x$enable_gimp_console = xyes)
  1186. dnl Possibly change default gimpdir from .gimp-major.minor
  1187. gimpdir=.gimp-gimp_user_version
  1188. AC_ARG_WITH(gimpdir, [ --with-gimpdir=DIR change default gimpdir from .gimp-gimp_user_version to DIR],
  1189. if eval "test x$with_gimpdir != x"; then
  1190. if eval "test x$with_gimpdir != xyes"; then
  1191. gimpdir=$with_gimpdir
  1192. fi
  1193. fi)
  1194. gimpdatadir="$datadir/$PACKAGE/gimp_data_version"
  1195. gimpplugindir="$libdir/$PACKAGE/gimp_plugin_version"
  1196. gimpsysconfdir="$sysconfdir/$PACKAGE/gimp_sysconf_version"
  1197. localedir="$datadir/locale"
  1198. AC_SUBST(gimpdir)
  1199. AC_SUBST(gimpdatadir)
  1200. AC_SUBST(gimpplugindir)
  1201. AC_SUBST(gimpsysconfdir)
  1202. AC_SUBST(localedir)
  1203. ############################
  1204. # Some defines for the build
  1205. ############################
  1206. GIMPINSTALL=
  1207. if test "$INSTALL" = "$ac_install_sh"; then
  1208. GIMPINSTALL="gimpinstall-gimp_tool_version"
  1209. fi
  1210. AC_SUBST(GIMPINSTALL)
  1211. AM_CONDITIONAL(STATICLIBS, test x$enable_static = xyes)
  1212. dnl a tuned version of glib-mkenums
  1213. GIMP_MKENUMS="\$(PERL) \$(top_srcdir)/tools/gimp-mkenums"
  1214. AC_SUBST(GIMP_MKENUMS)
  1215. #############################
  1216. # Disable deprecated GIMP API
  1217. #############################
  1218. CPPFLAGS="${CPPFLAGS} -DGIMP_DISABLE_DEPRECATED"
  1219. ##############################################################
  1220. # Default to disable deprecated GTK+ stuff for 2.4.x and 2.6.x
  1221. ##############################################################
  1222. if test "x$have_glib_2_7" != "xyes"; then
  1223. CPPFLAGS="${CPPFLAGS} -DG_DISABLE_DEPRECATED"
  1224. fi
  1225. if test "x$have_gtk_2_7" != "xyes"; then
  1226. CPPFLAGS="${CPPFLAGS} -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
  1227. fi
  1228. if test "x$have_pango_1_9" != "xyes"; then
  1229. CPPFLAGS="${CPPFLAGS} -DPANGO_DISABLE_DEPRECATED"
  1230. fi
  1231. ############################
  1232. # Require multihead safe API
  1233. ############################
  1234. CPPFLAGS="${CPPFLAGS} -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE"
  1235. ##################
  1236. # configure output
  1237. ##################
  1238. dnl easy way to skip the plug-in build
  1239. GIMP_PLUGINS=plug-ins
  1240. GIMP_MODULES=modules
  1241. AC_SUBST(GIMP_PLUGINS)
  1242. AC_SUBST(GIMP_MODULES)
  1243. AC_CONFIG_COMMANDS([libgimpbase/gimpversion.h], [
  1244. outfile=gimpversion.h-tmp
  1245. cat > $outfile <<\_______EOF
  1246. /* gimpversion.h
  1247. *
  1248. * This is a generated file. Please modify 'configure.in'
  1249. */
  1250. #ifndef __GIMP_VERSION_H__
  1251. #define __GIMP_VERSION_H__
  1252. G_BEGIN_DECLS
  1253. _______EOF
  1254. cat >>$outfile <<_______EOF
  1255. #define GIMP_MAJOR_VERSION ($gimp_major_ver)
  1256. #define GIMP_MINOR_VERSION ($gimp_minor_ver)
  1257. #define GIMP_MICRO_VERSION ($gimp_micro_ver)
  1258. #define GIMP_VERSION "$gimp_ver"
  1259. #define GIMP_API_VERSION "$gimp_api_ver"
  1260. _______EOF
  1261. cat >>$outfile <<\_______EOF
  1262. #define GIMP_CHECK_VERSION(major, minor, micro) \
  1263. (GIMP_MAJOR_VERSION > (major) || \
  1264. (GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION > (minor)) || \
  1265. (GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION == (minor) && \
  1266. GIMP_MICRO_VERSION >= (micro)))
  1267. G_END_DECLS
  1268. #endif /* __GIMP_VERSION_H__ */
  1269. _______EOF
  1270. if cmp -s $outfile libgimpbase/gimpversion.h; then
  1271. AC_MSG_NOTICE([libgimpbase/gimpversion.h is unchanged])
  1272. rm -f $outfile
  1273. else
  1274. mv $outfile libgimpbase/gimpversion.h
  1275. fi
  1276. ],[
  1277. gimp_major_ver=gimp_major_version
  1278. gimp_minor_ver=gimp_minor_version
  1279. gimp_micro_ver=gimp_micro_version
  1280. gimp_ver=gimp_version
  1281. gimp_api_ver=gimp_api_version
  1282. ])
  1283. AC_CONFIG_FILES([
  1284. gimptool-win32.c
  1285. tools/Makefile
  1286. tools/pdbgen/Makefile
  1287. regexrepl/Makefile
  1288. libgimp/Makefile
  1289. libgimpbase/Makefile
  1290. libgimpconfig/Makefile
  1291. libgimpcolor/Makefile
  1292. libgimpmath/Makefile
  1293. libgimpmodule/Makefile
  1294. libgimpthumb/Makefile
  1295. libgimpwidgets/Makefile
  1296. app/Makefile
  1297. app/actions/Makefile
  1298. app/base/Makefile
  1299. app/config/Makefile
  1300. app/core/Makefile
  1301. app/dialogs/Makefile
  1302. app/display/Makefile
  1303. app/file/Makefile
  1304. app/gui/Makefile
  1305. app/menus/Makefile
  1306. app/paint/Makefile
  1307. app/paint-funcs/Makefile
  1308. app/composite/Makefile
  1309. app/pdb/Makefile
  1310. app/plug-in/Makefile
  1311. app/text/Makefile
  1312. app/tools/Makefile
  1313. app/vectors/Makefile
  1314. app/widgets/Makefile
  1315. app/xcf/Makefile
  1316. plug-ins/Makefile
  1317. plug-ins/dbbrowser/Makefile
  1318. plug-ins/script-fu/Makefile
  1319. plug-ins/script-fu/siod/Makefile
  1320. plug-ins/script-fu/scripts/Makefile
  1321. plug-ins/script-fu/scripts/images/Makefile
  1322. plug-ins/xjt/Makefile
  1323. plug-ins/FractalExplorer/Makefile
  1324. plug-ins/FractalExplorer/examples/Makefile
  1325. plug-ins/Lighting/Makefile
  1326. plug-ins/Lighting/images/Makefile
  1327. plug-ins/MapObject/Makefile
  1328. plug-ins/bmp/Makefile
  1329. plug-ins/common/Makefile
  1330. plug-ins/faxg3/Makefile
  1331. plug-ins/fits/Makefile
  1332. plug-ins/flame/Makefile
  1333. plug-ins/gfig/Makefile
  1334. plug-ins/gfig/gfig-examples/Makefile
  1335. plug-ins/gfig/images/Makefile
  1336. plug-ins/gflare/Makefile
  1337. plug-ins/gflare/gflares/Makefile
  1338. plug-ins/gfli/Makefile
  1339. plug-ins/gimpressionist/Makefile
  1340. plug-ins/gimpressionist/Brushes/Makefile
  1341. plug-ins/gimpressionist/Paper/Makefile
  1342. plug-ins/gimpressionist/Presets/Makefile
  1343. plug-ins/help/Makefile
  1344. plug-ins/helpbrowser/Makefile
  1345. plug-ins/ifscompose/Makefile
  1346. plug-ins/imagemap/Makefile
  1347. plug-ins/imagemap/images/Makefile
  1348. plug-ins/jpeg/Makefile
  1349. plug-ins/maze/Makefile
  1350. plug-ins/metadata/Makefile
  1351. plug-ins/pagecurl/Makefile
  1352. plug-ins/print/Makefile
  1353. plug-ins/pygimp/Makefile
  1354. plug-ins/pygimp/doc/Makefile
  1355. plug-ins/pygimp/plug-ins/Makefile
  1356. plug-ins/rcm/Makefile
  1357. plug-ins/rcm/images/Makefile
  1358. plug-ins/sel2path/Makefile
  1359. plug-ins/sgi/Makefile
  1360. plug-ins/twain/Makefile
  1361. plug-ins/uri/Makefile
  1362. plug-ins/winicon/Makefile
  1363. plug-ins/winsnap/Makefile
  1364. modules/Makefile
  1365. devel-docs/Makefile
  1366. devel-docs/app/Makefile
  1367. devel-docs/app/version
  1368. devel-docs/libgimp/Makefile
  1369. devel-docs/libgimp/version
  1370. devel-docs/libgimpbase/Makefile
  1371. devel-docs/libgimpbase/version
  1372. devel-docs/libgimpconfig/Makefile
  1373. devel-docs/libgimpconfig/version
  1374. devel-docs/libgimpcolor/Makefile
  1375. devel-docs/libgimpcolor/version
  1376. devel-docs/libgimpmath/Makefile
  1377. devel-docs/libgimpmath/version
  1378. devel-docs/libgimpmodule/Makefile
  1379. devel-docs/libgimpmodule/version
  1380. devel-docs/libgimpthumb/Makefile
  1381. devel-docs/libgimpthumb/version
  1382. devel-docs/libgimpwidgets/Makefile
  1383. devel-docs/libgimpwidgets/version
  1384. docs/Makefile
  1385. menus/Makefile
  1386. tips/Makefile
  1387. cursors/Makefile
  1388. themes/Makefile
  1389. themes/Default/Makefile
  1390. themes/Default/images/Makefile
  1391. themes/Default/images/preferences/Makefile
  1392. themes/Small/Makefile
  1393. data/Makefile
  1394. data/interpreters/Makefile
  1395. data/environ/Makefile
  1396. data/misc/Makefile
  1397. data/misc/gimp.desktop.in
  1398. data/misc/gimp.keys
  1399. data/misc/gimp.applications
  1400. data/images/Makefile
  1401. data/brushes/Makefile
  1402. data/gradients/Makefile
  1403. data/palettes/Makefile
  1404. data/patterns/Makefile
  1405. etc/Makefile
  1406. m4macros/Makefile
  1407. po/Makefile.in
  1408. po-libgimp/Makefile.in
  1409. po-plug-ins/Makefile.in
  1410. po-script-fu/Makefile.in
  1411. gimp-zip
  1412. Makefile
  1413. ])
  1414. dnl Files with versions in their names
  1415. AC_CONFIG_FILES(
  1416. docs/gimp-gimp_app_version.1:docs/gimp.1.in
  1417. docs/gimprc-gimp_app_version.5:docs/gimprc.5.in
  1418. docs/gimptool-gimp_tool_version.1:docs/gimptool.1.in
  1419. docs/gimp-remote-gimp_app_version.1:docs/gimp-remote.1.in
  1420. gimptool-gimp_tool_version:gimptool-2.0.in
  1421. gimp-gimp_pkgconfig_version.pc:gimp.pc.in
  1422. gimpthumb-gimp_pkgconfig_version.pc:gimpthumb.pc.in
  1423. gimpui-gimp_pkgconfig_version.pc:gimpui.pc.in
  1424. )
  1425. AC_CONFIG_COMMANDS([chmod-scripts],
  1426. [chmod +x gimptool-gimp_tool_version])
  1427. AC_CONFIG_COMMANDS([sed-po-makefiles],
  1428. [sed -e "/POTFILES =/r po-libgimp/POTFILES" po-libgimp/Makefile.in > po-libgimp/Makefile
  1429. sed -e "/POTFILES =/r po-plug-ins/POTFILES" po-plug-ins/Makefile.in > po-plug-ins/Makefile
  1430. sed -e "/POTFILES =/r po-script-fu/POTFILES" po-script-fu/Makefile.in > po-script-fu/Makefile])
  1431. AC_OUTPUT