250 # An SFW package seems to be installed!
251 CUPS_FOUND=yes
252 CUPS_CFLAGS="-I/opt/sfw/cups/include"
253 elif test -s /opt/csw/include/cups/cups.h; then
254 # A CSW package seems to be installed!
255 CUPS_FOUND=yes
256 CUPS_CFLAGS="-I/opt/csw/include"
257 fi
258 AC_MSG_RESULT([$CUPS_FOUND])
259 fi
260 if test "x$CUPS_FOUND" = xno; then
261 HELP_MSG_MISSING_DEPENDENCY([cups])
262 AC_MSG_ERROR([Could not find cups! $HELP_MSG ])
263 fi
264 fi
265
266 AC_SUBST(CUPS_CFLAGS)
267
268 ])
269
270 AC_DEFUN_ONCE([LIB_SETUP_FREETYPE],
271 [
272
273 ###############################################################################
274 #
275 # The ubiquitous freetype2 library is used to render fonts.
276 #
277 AC_ARG_WITH(freetype, [AS_HELP_STRING([--with-freetype],
278 [specify prefix directory for the freetype2 package
279 (expecting the libraries under PATH/lib and the headers under PATH/include)])])
280
281 # If we are using the OS installed system lib for freetype, then we do not need to copy it to the build tree
282 USING_SYSTEM_FT_LIB=false
283
284 if test "x$FREETYPE2_NOT_NEEDED" = xyes; then
285 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
286 AC_MSG_WARN([freetype not used, so --with-freetype is ignored])
287 fi
288 FREETYPE2_CFLAGS=
289 FREETYPE2_LIBS=
|
250 # An SFW package seems to be installed!
251 CUPS_FOUND=yes
252 CUPS_CFLAGS="-I/opt/sfw/cups/include"
253 elif test -s /opt/csw/include/cups/cups.h; then
254 # A CSW package seems to be installed!
255 CUPS_FOUND=yes
256 CUPS_CFLAGS="-I/opt/csw/include"
257 fi
258 AC_MSG_RESULT([$CUPS_FOUND])
259 fi
260 if test "x$CUPS_FOUND" = xno; then
261 HELP_MSG_MISSING_DEPENDENCY([cups])
262 AC_MSG_ERROR([Could not find cups! $HELP_MSG ])
263 fi
264 fi
265
266 AC_SUBST(CUPS_CFLAGS)
267
268 ])
269
270 AC_DEFUN_ONCE([LIB_SETUP_ICU],
271 [
272
273 ###############################################################################
274 #
275 # The ICU LayoutEngine library is used to select the best glyphs to display
276 #
277
278 AC_ARG_WITH(icu-le, [AS_HELP_STRING([--with-icu-le],
279 [use icu-le from build system or OpenJDK source (system, bundled) @<:@bundled@:>@])])
280
281 # default is bundled
282 DEFAULT_ICU_LE=bundled
283
284 AC_MSG_CHECKING([for which icu-le to use])
285
286 #
287 # if user didn't specify, use DEFAULT_ICU_LE
288 #
289
290 if test "x${with_icu_le}" = "x"; then
291 with_icu_le=${DEFAULT_ICU_LE}
292 fi
293
294 AC_MSG_RESULT(${with_icu_le})
295
296 if test "x${with_icu_le}" = "xbundled"; then
297 USE_EXTERNAL_ICU_LE=false
298 else
299 PKG_CHECK_MODULES(ICU_LE, icu-le)
300 USE_EXTERNAL_ICU_LE=true
301 fi
302
303 AC_SUBST(USE_EXTERNAL_ICU_LE)
304 AC_SUBST(ICU_LE_CFLAGS)
305 AC_SUBST(ICU_LE_LIBS)
306
307 ])
308
309 AC_DEFUN_ONCE([LIB_SETUP_FREETYPE],
310 [
311
312 ###############################################################################
313 #
314 # The ubiquitous freetype2 library is used to render fonts.
315 #
316 AC_ARG_WITH(freetype, [AS_HELP_STRING([--with-freetype],
317 [specify prefix directory for the freetype2 package
318 (expecting the libraries under PATH/lib and the headers under PATH/include)])])
319
320 # If we are using the OS installed system lib for freetype, then we do not need to copy it to the build tree
321 USING_SYSTEM_FT_LIB=false
322
323 if test "x$FREETYPE2_NOT_NEEDED" = xyes; then
324 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
325 AC_MSG_WARN([freetype not used, so --with-freetype is ignored])
326 fi
327 FREETYPE2_CFLAGS=
328 FREETYPE2_LIBS=
|