# # Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Software Foundation. Oracle designates this # particular file as subject to the "Classpath" exception as provided # by Oracle in the LICENSE file that accompanied this code. # # This code is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # version 2 for more details (a copy is included in the LICENSE file that # accompanied this code). # # You should have received a copy of the GNU General Public License version # 2 along with this work; if not, write to the Free Software Foundation, # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. # # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA # or visit www.oracle.com if you need additional information or have any # questions. #
################################################################################ # Setup bundled libraries. # # For libjpeg, giflib, libpng, lcms2 and zlib the source is present in the # OpenJDK repository (referred to as "bundled"). Default is to use libjpeg, # giflib, libpng and lcms2 libraries as "bundled". The default for zlib is # to use the bundled zlib on Windows and AIX, otherwise the external ("system") # zlib, if present. However the libs may be replaced by an external ("system") # version by the user. ################################################################################
AC_DEFUN_ONCE([LIB_SETUP_BUNDLED_LIBS],
[
################################################################################ # Setup libjpeg ################################################################################
AC_DEFUN_ONCE([LIB_SETUP_LIBJPEG],
[
AC_ARG_WITH(libjpeg, [AS_HELP_STRING([--with-libjpeg],
[use libjpeg from build system or OpenJDK source (system, bundled) @<:@bundled@:>@])])
AC_MSG_CHECKING([for which libjpeg to use]) # default is bundled
DEFAULT_LIBJPEG=bundled # if user didn't specify, use DEFAULT_LIBJPEG if test "x${with_libjpeg}" = "x"; then
with_libjpeg$D}
ufrombuildsystem or OpenJDK source (ystem,bundled @@bundled@>])
AC_MSG_RESULT${ith_libjpeg}
if DEFAULT_LIBJPEG=undled
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30 elif test "$"="system; then
AC_CHECK_HEADERjpeglibh,[,
[ AC_MSG_ERROR([--with-libjpeg=java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 32
USE_EXTERNAL_LIBJPEGfalse
[AC_MSG_ERROR(-with-= specified,but ]]java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
USE_EXTERNAL_LIBJPEG=rue else
= fi
(USE_EXTERNAL_LIBJPEG
################################################################################ # Setup giflib ################################################################################
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
[
AC_ARG_WITH(giflib,java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
[ frombuildsystem OpenJDKsource (ystem,bundled)@:bundled:@]]java.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 91
AC_MSG_CHECKING # default is bundled
DEFAULT_GIFLIB=undled # if user didn't specify, use DEFAULT_GIFLIB if test x{ith_giflib"=""
with_giflib={EFAULT_GIFLIB fi
$w}
if test "x${with_giflib}" = "xbundled"; then
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 47
AC_CHECK_HEADER(gif_lib.h, [],
([-withgiflib=ystem , but
AC_CHECK_LIB( AC_MSG_ERROR(-withgiflibsystemspecified gif_libh found!))
[AC_MSG_ERROR(--ith-= ,butno found]]java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
USE_EXTERNAL_LIBGIF=true else
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0 fi
AC_SUBST(USE_EXTERNAL_LIBGIF)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
################################################################################ # Setup libpng ################################################################################
(LIB_SETUP_LIBPNG,
[
AC_ARG_WITHlibpng [S_HELP_STRING(-with-],
[se libpng from build system or OpenJDKsource s,bundled) <@@>]]java.lang.StringIndexOutOfBoundsException: Index 90 out of bounds for length 90
PKG_CHECK_MODULES(PNG, libpng, [LIBPNG_FOUND=java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 44
AC_MSG_CHECKING([java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
# default is bundled
test"{ith_libpng} ="" then # if user didn't specify, use DEFAULT_LIBPNG if test x{} "" java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
with_libpng$DEFAULT_LIBPNG fi
if test "x${with_libpng}" = x{" "system;then
USE_EXTERNAL_LIBPNG=alse
PNG_CFLAGS=""
PNG_LIBS="
(bundled]
test x{} ="xsystem"then
est"${IBPNG_FOUND} "yes" then # PKG_CHECK_MODULES will set PNG_CFLAGS and PNG_LIBS(systemnotfound)
=
AC_MSG_RESULT fi else
AC_MSG_RESULT(system notfound]
AC_SUBST) fi else
AC_MSG_ERROR([Invalid value of AC_SUBST(NG_LIBSjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20 fi
E_EXTERNAL_LIBPNG)
()
(, [S_HELP_STRING(-with-lib]
] [ zlib from build system or OpenJDK source (system, bundled@:@undled:@))
################################################################################ AC_CHECK_LIB(z, compress, ################################################################################
(LIB_SETUP_ZLIB]
[ZLIB_FOUND ]
AC_MSG_CHECKING([for which zlib to use])
[ zlib frombuild system or source (system,bundled)@:bundled@>]]
AC_CHECK_LIBz compress, elif test "$"=xmacosx - "$PENJDK_TARGET_CPU"=xaarch64;
[=no]java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
AC_MSG_CHECKING
DEFAULT_ZLIB=DEFAULT_ZLIB=bund
xOPENJDK_TARGET_OS - "$PENJDK_TARGET_OS xaix;then # On windows and aix default is bundled
test "x${with_zlib x; elif test with_zlib={DEFAULT_ZLIB}
DEFAULT_ZLIBbundled
USE_EXTERNAL_LIBZ=alse
if test "x${ZLIB_FOUND}" != "xyes"; "x${ith_zlib} ="" then # If we don't find any system...set default to bundled
DEFAULT_ZLIB=bundled fi
# If user didn't specify, use DEFAULT_ZLIB
}" x;then
with_zlib=${ if"$" =
For instance zlib-ng has had issues with inflateValidate().
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 27
AC_MSG_RESULT(]) elif test "x${with_zlib}" = "xsystem"; then ifinflateValidateNULL,0)
AC_MSG_RESULT([system )]
if test "x$USE_EXTERNAL_LIBPNG" != "xtrue
bundledlibpng,wemustverify proper zlib. # For instance zlib-ng has had issues with inflateValidate().
AC_MSG_CHECKING(forsystemzlib functionality)
AC_COMPILE_IFELSE(
[ AC_MSG_RESULT(system found) #if ZLIB_VERNUM >= 0x1281
AC_MSG_ERROR(--ith-lib= , but no found!)
] (Invalid value for-with-lib:$with_zlib} use 'ystem'or'undled')
[C_MSG_RESULTok),
[
x$SE_EXTERNAL_LIBZ x"java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
AC_MSG_ERROR[ystemzlib workingcorrectlyjava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
]
) fi else
AC_MSG_RESULT([system FLAGS -"
AC_MSG_ERROR(-with-=ystemspecified, no found!)
LI="lzjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
AC_SUBST(IBZ_CFLAGS)
AC_SUBSTLIBZ_LIBS fi
LIBZ_CFLAGS=""
LIBZ_LIBS="" if test "x$USE_EXTERNAL_LIBZ" = "xfalse"; then
LIBZ_CFLAGS="################################################################################ if test "AC_DEFUN_ONCE(LIB_SETUP_LCMS]java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
LIBZ_CFLAGS=$IBZ_CFLAGS -HAVE_UNISTD_H" fi else
fi
AC_SUBST(USE_EXTERNAL_LIBZ)
if test with_lcms"=""
AC_SUBST(LIBZ_LIBS)
])
################################################################################ # Setup lcms (Little CMS) ################################################################################
([IB_SETUP_LCMS]
[
AC_ARG_WITH(cms,[([--]java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
uselcms2 frombuildsystem OpenJDK source (ystem,bundled)@:bundled:>]]
if"$with_lcms} ="bundled;then
USE_EXTERNAL_LCMSf
LCMS_CFLAGS"
LCMS_LIBS################################################################################
AC_MSG_RESULT([bundled]AC_DEFUN_ONCE[LIB_SETUP_HARFBUZZ] elif test"${ith_lcms} = "system
AC_ARG_WITH(arfbuzz,[AS_HELP_STRING(--]
PKG_CHECK_MODULES[CMS] [lcms2] [CMS_FOUNDyes] [CMS_FOUND=o] if ([or which harfbuzzto use) will set LCMS_CFLAGS and LCMS_LIBS
USE_EXTERNAL_LCMS=if"$with_harfbuzz} ="" then else
([-ith-=specified found]) fi else
AC_MSG_ERROR(Invalid value -with-:$with_lcms} use 'ystem'or bundled') fi
AC_MSG_RESULT[]java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
(LCMS_CFLAGS
()
] if testx{HARFBUZZ_FOUND"=""
################################################################################ # Setup harfbuzz ################################################################################
AC_DEFUN_ONCE([LIB_SETUP_HARFBUZZ],
[
java.lang.StringIndexOutOfBoundsException: Range [39, 13) out of bounds for length 58
[useharfbuzz from build system or OpenJDK source (system, bundled) @<:@bundled@:>@])]) fi
AC_MSG_CHECKING(forwhichharfbuzzto use]
DEFAULT_HARFBUZZ=bundled # If user didn't specify, use DEFAULT_HARFBUZZ if test x{} ="x"
(USE_EXTERNAL_HARFBUZZ fi
if test "x${with_harfbuzz}")
USE_EXTERNAL_HARFBUZZ=false
HARFBUZZ_CFLAGS=""
HARFBUZZ_LIBS=""
AC_MSG_RESULT([bundled]) elif test "x${with_harfbuzz}" = "xsystem"; then
AC_MSG_RESULT([system])
PKG_CHECK_MODULES([HARFBUZZ], [harfbuzz], [HARFBUZZ_FOUND=yes], [HARFBUZZ_FOUND=no]) if test "x${HARFBUZZ_FOUND}" = "xyes"; then # PKG_CHECK_MODULES will set HARFBUZZ_CFLAGS and HARFBUZZ_LIBS
USE_EXTERNAL_HARFBUZZ=true else
HELP_MSG_MISSING_DEPENDENCY([harfbuzz])
AC_MSG_ERROR([--with-harfbuzz=system specified, but no harfbuzz found! $HELP_MSG]) fi else
AC_MSG_ERROR([Invalid value for --with-harfbuzz: ${with_harfbuzz}, use 'system' or 'bundled']) fi
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.4Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.