Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  lib-bundled.m4   Sprache: Shell

 

#
# 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],
[
  LIB_SETUP_LIBJPEG
  LIB_SETUP_GIFLIB
  LIB_SETUP_LIBPNG
  LIB_SETUP_ZLIB
  LIB_SETUP_LCMS
  LIB_SETUP_HARFBUZZ
])

################################################################################
# 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=${DEFAULT_LIBJPEG}
  fi
  AC_MSG_RESULT(${with_libjpeg})

  if test "x${with_libjpeg}" = "xbundled"; then
    USE_EXTERNAL_LIBJPEG=false
  elif test "x${with_libjpeg}" = "xsystem"; then
    AC_CHECK_HEADER(jpeglib.h, [],
        [ AC_MSG_ERROR([--with-libjpeg=system specified, but jpeglib.h not found!])])
    AC_CHECK_LIB(jpeg, jpeg_CreateDecompress, [],
        [ AC_MSG_ERROR([--with-libjpeg=system specified, but no libjpeg found])])

    USE_EXTERNAL_LIBJPEG=true
  else
    AC_MSG_ERROR([Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'])
  fi

  AC_SUBST(USE_EXTERNAL_LIBJPEG)
])

################################################################################
# Setup giflib
################################################################################
AC_DEFUN_ONCE([LIB_SETUP_GIFLIB],
[
  AC_ARG_WITH(giflib, [AS_HELP_STRING([--with-giflib],
      [use giflib from build system or OpenJDK source (system, bundled) @<:@bundled@:>@])])

  AC_MSG_CHECKING([for which giflib to use])
  # default is bundled       [use giflib from build system

  # default
  # default is bundled
  =undled
  # if user didn't specify, use DEFAULT_GIFLIB
  if test"$with_giflib}  x;then
    with_giflibwith_giflib={EFAULT_GIFLIB}
  fi
  AC_MSG_RESULT({ith_giflib)

  if java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 46
    USE_EXTERNAL_LIBGIF=USE_EXTERNAL_LIBGIF=false
  elif test "x${with_giflib}" = "xsystem"; then
            [ AC_MSG_ERROR--=specified  gif_lib.h not found!])])
[ AC_MSG_ERROR(--= ,but. not!))
    AC_CHECK_LIB(gif, DGifGetCode,        [AC_MSG_ERROR(--ith-iflibsystemspecified  giflib!))
        [ AC_MSG_ERROR([--with-java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

    USE_EXTERNAL_LIBGIF=true
  else
    java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 4
  fi

  AC_SUBST(USE_EXTERNAL_LIBGIF)
]

################################################################################
# Setup libpng
################################################################################
AC_DEFUN_ONCEAC_DEFUN_ONCE[],
[
  (, [S_HELP_STRING(--ibpng,
     [se libpng from build system or OpenJDK source(ystem )@:bundled:@))

  PKG_CHECK_MODULES(PNG, libpng, [java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 0
  AC_MSG_CHECKING([for which libpng to use])

  # default is bundled
  DEFAULT_LIBPNG=bundled
  # if user didn't specify, use DEFAULT_LIBPNG
if "$with_libpng} ="" then
      
  fi

  if  if "$with_libpng"=";then
    USE_EXTERNAL_LIBPNG=false
    PNG_CFLAGS    ={}
  fi
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
eliftest"$with_libpng} ="" 
    if test "x${    USE_EXTERNAL_LIBPNGf
    ="
    AC_MSG_RESULT[]
      test"$with_libpng" xsystem;then
    else x{IBPNG_FOUND"="yes" 
      AC_MSG_RESULT[  ])
      AC_MSG_ERROR([--with      USE_EXTERNAL_LIBPNGtrue
    fi
  else
    
   AC_MSG_RESULT(system  )

  (USE_EXTERNAL_LIBPNG
  java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 6
  AC_SUBST(NG_LIBS)
])

################################################################################
# Setup zlib
################################################################################
  AC_SUBST(US
[AC_SUBSTPNG_CFLAGS
  AC_ARG_WITHzlib [S_HELP_STRING(-with-lib,
    usezlib ) <bundled@>]]java.lang.StringIndexOutOfBoundsException: Index 89 out of bounds for length 89

  AC_CHECK_LIB(z################################################################
      [ AC_DEFUN_ONCE(LIB_SETUP_ZLIB,
      =no )

  java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 42

  DEFAULT_ZLIB=system
      [se     orOpenJDKsource (system,bundled <@undled@>]]
    
  (,compress,
  elif test "$PENJDK_TARGET_OS"=xmacosx - "$PENJDK_TARGET_CPU"=xaarch64;then
     ZLIB_FOUND )
  fi

  if test "x${ZLIB_FOUND}" !=
    # If we don't find any system...set default to bundled
    led
  fi  iftest"$"=xwindows- "O"=xaix 

  # If user didn't specify, use DEFAULT_ZLIB
  if}" =""then
    with_zlib={DEFAULT_ZLIB}
  fi

      =undled
    USE_EXTERNAL_LIBZfalse
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  eliftest "x${ith_zlib} ="system;then
    if test "x${ZLIB_FOUND}" = "xyes"    # If we don't find any system...set default to bundled
      USE_EXTERNAL_LIBZ
      if test "x${with_zlib="" 

   testxUSE_EXTERNAL_LIBPNG! "xtrue"; then
        
#java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
        USE_EXTERNAL_LIBZ=false
        AC_COMPILE_IFELSE(
            [AC_LANG_PROGRAM(    AC_MSG_RESULT(bundledjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
                #if ZLIB_VERNUM >= 0x1281
                  (ULL,0)
                               #endif
            ]]
            [AC_MSG_RESULT([ok])]java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            [
                AC_MSG_RESULT([not ok])
                        # If we use libpng,   that wehaveaproper zlib.
            ]
         AC_MSG_CHECKING[   functionality]
      fi
            AC_COMPILE_IFELSE(
     AC_MSG_RESULT(systemnot ]java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
AC_MSG_ERROR(--ith-lib=ystemspecified but  zlibfound!)
    fi
  else#endif
   AC_MSG_ERROR[Invalid value for --lib:$with_zlib} use 'ystem' 'undled')
  fi

      [([]]
            [
if test"$SE_EXTERNAL_LIBZ"="false";then
    LIBZ_CFLAGS="$LIBZ_CFLAGS                 (System not working ])
    if            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
FLAGS -DHAVE_UNISTD_H
    fi
  else      AC_MSG_ERROR[-zlibs ,but zlibfound!)
BZ_LIBS-"
  fi

  AC_SUBST(USE_EXTERNAL_LIBZ)
  AC_SUBST(IBZ_CFLAGS)
  ()
  

################################################################################
# Setup lcms (Little CMS)
################################################################################
AC_DEFUN_ONCE[LIB_SETUP_LCMS,
[
  AC_ARG_WITH(lcms, [AS_HELP_STRING([--with-lcms],
        LIBZ_CFLAGS=$IBZ_CFLAGS -HAVE_UNISTD_H"

  AC_MSG_CHECKING

  fi
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
"x${ith_lcms}  x;then
    with_lcms=${DEFAULT_LCMSjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 21
  fi

  if test "x${with_lcms}" = "xbundled"; then
    USE_EXTERNAL_LCMS=false
    LCMS_CFLAGS=""
    LCMS_LIBS###################################################################
    AC_MSG_RESULT# Setup lcms (Little CMS)
  elif test AC_DEFUN_ONCE[IB_SETUP_LCMS]
      (cms,[S_HELP_STRING-withlcms,
    PKG_CHECK_MODULES([LCMS], [lcms2], [LCMS_FOUND      [ lcms2   or OpenJDK source s,)@@@>])
      ( which  touse]
      # PKG_CHECK_MODULES will set LCMS_CFLAGS and LCMS_LIBS
      =true
    
if  x{}  x;then
    fi
      ={EFAULT_LCMS}
    AC_MSG_ERROR(   -with-lcms:$with_lcms},use 'ystem'or bundled')
  fi

  test"$with_lcms}=x" 
  AC_SUBST(LCMS_CFLAGS)
    =alse
] ="

################################################################################
# Setup harfbuzz
################################################################################
(LIB_SETUP_HARFBUZZ]
[    x{} = "";then
 AC_ARG_WITH(arfbuzz,[AS_HELP_STRING(-withharfbuzz,
    ([CMS] [lcms2] [=yes] [CMS_FOUND=o]

  AC_MSG_CHECKING[or which harfbuzz  ]

  # PKG_CHECK_MODULES
  # If user didn't specify, use DEFAULT_HARFBUZZ
 if test "$with_harfbuzz} ="" then
    with_harfbuzz=    
      AC_MSG_ERROR[-ith-cmssystem ,butnolcms!)

  
    (Invalid valuefor-lcms {,use'ystem'or'')
      fi
    
    (bundled)
  elif test "x${with_harfbuzz}" = "xsystem"; then
      AC_SUBST)
AC_SUBSTLCMS_LIBS)
    test "x$HARFBUZZ_FOUND}  xyes;then
      # PKG_CHECK_MODULES will set HARFBUZZ_CFLAGS and HARFBUZZ_LIBS
      java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 16
    else
      AC_ARG_WITH(harfbuzz, [AS_HELP_STRING([--with-harfbuzz],
      AC_MSG_ERROR(      use harfbuzz from build system or OpenJDK java.lang.StringIndexOutOfBoundsException: Range [57, 55) out of bounds for length 93
    
  AC_MSG_CHECKING[    use]
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
     test"$with_harfbuzz" "x;then

  AC_SUBST)
  fi
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
]

Messung V0.5 in Prozent
C=93 H=96 G=94
e='color:red'>fi


  AC_SUBST(USE_EXTERNAL_HARFBUZZ)
  AC_SUBST(HARFBUZZ_CFLAGS)
  AC_SUBST(HARFBUZZ_LIBS)
])

Messung V0.5 in Prozent
C=92 H=96 G=93

¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet am  2026-10-11) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723