Changeset 107813 in vbox for trunk/src/libs
- Timestamp:
- Jan 16, 2025 1:09:46 PM (2 months ago)
- svn:sync-xref-src-repo-rev:
- 166977
- Location:
- trunk/src/libs/libpng-1.6.45
- Files:
-
- 94 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/libpng-1.6.45/ANNOUNCE
r105469 r107813 1 libpng 1.6.4 3 - February 23, 20242 =============================== ==1 libpng 1.6.45 - January 7, 2025 2 =============================== 3 3 4 4 This is a public release of libpng, intended for use in production code. … … 10 10 Source files with LF line endings (for Unix/Linux): 11 11 12 * libpng-1.6.4 3.tar.xz (LZMA-compressed, recommended)13 * libpng-1.6.4 3.tar.gz (deflate-compressed)12 * libpng-1.6.45.tar.xz (LZMA-compressed, recommended) 13 * libpng-1.6.45.tar.gz (deflate-compressed) 14 14 15 15 Source files with CRLF line endings (for Windows): 16 16 17 * lpng164 3.7z (LZMA-compressed, recommended)18 * lpng164 3.zip (deflate-compressed)17 * lpng1645.7z (LZMA-compressed, recommended) 18 * lpng1645.zip (deflate-compressed) 19 19 20 20 Other information: … … 26 26 27 27 28 Changes from version 1.6.4 2 to version 1.6.4328 Changes from version 1.6.44 to version 1.6.45 29 29 --------------------------------------------- 30 30 31 * Fixed the row width check in png_check_IHDR(). 32 This corrected a bug that was specific to the 16-bit platforms, 33 and removed a spurious compiler warning from the 64-bit builds. 34 (Reported by Jacek Caban; fixed by John Bowler) 35 * Added eXIf chunk support to the push-mode reader in pngpread.c. 36 (Contributed by Chris Blume) 37 * Added contrib/pngexif for the benefit of the users who would like 38 to inspect the content of eXIf chunks. 39 * Added contrib/conftest/basic.dfa, a basic build-time configuration. 31 * Added support for the cICP chunk. 32 (Contributed by Lucas Chollet and John Bowler) 33 * Adjusted and improved various checks in colorspace calculations. 40 34 (Contributed by John Bowler) 41 * Fixed a preprocessor condition in pngread.c that broke build-time42 configurations like contrib/conftest/pngcp.dfa.35 * Rearranged the write order of colorspace chunks for better conformance 36 with the PNG v3 draft specification. 43 37 (Contributed by John Bowler) 44 * Added CMake build support for LoongArch LSX. 45 (Contributed by GuXiWei) 46 * Fixed a CMake build error that occurred under a peculiar state of the 47 dependency tree. This was a regression introduced in libpng-1.6.41. 48 (Contributed by Dan Rosser) 49 * Marked the installed libpng headers as system headers in CMake. 50 (Contributed by Benjamin Buch) 51 * Updated the build support for RISCOS. 52 (Contributed by Cameron Cawley) 53 * Updated the makefiles to allow cross-platform builds to initialize 54 conventional make variables like AR and ARFLAGS. 55 * Added various improvements to the CI scripts in areas like version 56 consistency verification and text linting. 57 * Added version consistency verification to pngtest.c also. 38 * Raised the minimum required CMake version from 3.6 to 3.14. 39 * Forked off a development branch for libpng version 1.8. 58 40 59 41 -
trunk/src/libs/libpng-1.6.45/AUTHORS
r105469 r107813 18 18 * John Bowler 19 19 * Kevin Bracey 20 * Lucas Chollet 20 21 * Magnus Holmgren 21 22 * Mandar Sahastrabuddhe -
trunk/src/libs/libpng-1.6.45/CHANGES
r105469 r107813 6197 6197 Added version consistency verification to pngtest.c also. 6198 6198 6199 Version 1.6.44 [September 12, 2024] 6200 Hardened calculations in chroma handling to prevent overflows, and 6201 relaxed a constraint in cHRM validation to accomodate the standard 6202 ACES AP1 set of color primaries. 6203 (Contributed by John Bowler) 6204 Removed the ASM implementation of ARM Neon optimizations and updated 6205 the build accordingly. Only the remaining C implementation shall be 6206 used from now on, thus ensuring the support of the PAC/BTI security 6207 features on ARM64. 6208 (Contributed by Ross Burton and John Bowler) 6209 Fixed the pickup of the PNG_HARDWARE_OPTIMIZATIONS option in the 6210 CMake build on FreeBSD/amd64. This is an important performance fix 6211 on this platform. 6212 Applied various fixes and improvements to the CMake build. 6213 (Contributed by Eric Riff, Benjamin Buch and Erik Scholz) 6214 Added fuzzing targets for the simplified read API. 6215 (Contributed by Mikhail Khachayants) 6216 Fixed a build error involving pngtest.c under a custom config. 6217 This was a regression introduced in a code cleanup in libpng-1.6.43. 6218 (Contributed by Ben Wagner) 6219 Fixed and improved the config files for AppVeyor CI and Travis CI. 6220 6221 Version 1.6.45 [January 7, 2025] 6222 Added support for the cICP chunk. 6223 (Contributed by Lucas Chollet and John Bowler) 6224 Adjusted and improved various checks in colorspace calculations. 6225 (Contributed by John Bowler) 6226 Rearranged the write order of colorspace chunks for better conformance 6227 with the PNG v3 draft specification. 6228 (Contributed by John Bowler) 6229 Raised the minimum required CMake version from 3.6 to 3.14. 6230 Forked off a development branch for libpng version 1.8. 6231 6199 6232 Send comments/corrections/commendations to png-mng-implement at lists.sf.net. 6200 6233 Subscription is required; visit -
trunk/src/libs/libpng-1.6.45/CMakeLists.txt
r105469 r107813 1 2 1 # CMakeLists.txt - CMake lists for libpng 3 2 # 4 # Copyright (c) 2018-202 4 Cosmin Truta.5 # Copyright (c) 2007-2018 Glenn Randers-Pehrson .6 # Originally written by Christian Ehrlicher, 2007 .3 # Copyright (c) 2018-2025 Cosmin Truta 4 # Copyright (c) 2007-2018 Glenn Randers-Pehrson 5 # Originally written by Christian Ehrlicher, 2007 7 6 # 8 7 # Use, modification and distribution are subject to … … 16 15 # SPDX-License-Identifier: libpng-2.0 17 16 18 cmake_minimum_required(VERSION 3. 6)17 cmake_minimum_required(VERSION 3.14) 19 18 20 19 set(PNGLIB_MAJOR 1) 21 20 set(PNGLIB_MINOR 6) 22 set(PNGLIB_REVISION 4 3)21 set(PNGLIB_REVISION 45) 23 22 set(PNGLIB_SUBREVISION 0) 24 23 #set(PNGLIB_SUBREVISION "git") … … 30 29 VERSION ${PNGLIB_VERSION} 31 30 LANGUAGES C ASM) 32 33 if(POLICY CMP0074)34 # Allow find_package() to use the ZLIB_ROOT variable, if available.35 cmake_policy(SET CMP0074 NEW)36 endif()37 31 38 32 include(CheckCSourceCompiles) … … 70 64 # Although these tools are targetted at development environments only, 71 65 # the users are allowed to override the option to build by default. 72 if 66 if(ANDROID OR IOS) 73 67 option(PNG_TOOLS "Build the libpng tools" OFF) 74 68 else() … … 91 85 option(PNG_HARDWARE_OPTIMIZATIONS "Enable hardware optimizations" ON) 92 86 87 # Initialize and show the target architecture variable PNG_TARGET_ARCHITECTURE. 88 # 89 # NOTE: 90 # On macOS, CMake sets CMAKE_SYSTEM_PROCESSOR to either "x86_64" or "arm64", 91 # based upon the OS architecture, not the target architecture. As such, we need 92 # to check CMAKE_OSX_ARCHITECTURES to identify which hardware-specific flags to 93 # enable. Note that this will fail if you attempt to build a universal binary 94 # in a single CMake invocation. 95 if(APPLE AND CMAKE_OSX_ARCHITECTURES) 96 string(TOLOWER "${CMAKE_OSX_ARCHITECTURES}" PNG_TARGET_ARCHITECTURE) 97 else() 98 string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" PNG_TARGET_ARCHITECTURE) 99 endif() 100 message(STATUS "Building for target architecture: ${PNG_TARGET_ARCHITECTURE}") 101 93 102 # Allow the users to specify a custom location of zlib. 94 # This option is deprecated, and no longer needed with CMake 3.12 and newer. 95 # Under the CMake policy CMP0074, if zlib is being built alongside libpng as a 96 # subproject, its location can be passed on to CMake via the ZLIB_ROOT variable. 97 option(PNG_BUILD_ZLIB "Custom zlib location, else find_package is used" OFF) 98 if(NOT PNG_BUILD_ZLIB) 99 find_package(ZLIB REQUIRED) 100 elseif(POLICY CMP0074) 103 # With CMake 3.12 and newer, this option is no longer necessary. 104 option(PNG_BUILD_ZLIB "[Deprecated; please use ZLIB_ROOT]" OFF) 105 if(PNG_BUILD_ZLIB) 101 106 if("x${ZLIB_ROOT}" STREQUAL "x") 102 message(DEPRECATION 103 "The option PNG_BUILD_ZLIB has been deprecated; please use ZLIB_ROOT instead") 107 message(SEND_ERROR 108 "The option PNG_BUILD_ZLIB=${PNG_BUILD_ZLIB} is no longer supported; " 109 "please use ZLIB_ROOT instead") 104 110 else() 105 111 message(SEND_ERROR 106 "The option PNG_BUILD_ZLIB=${PNG_BUILD_ZLIB} and " 107 "the variable ZLIB_ROOT=\"${ZLIB_ROOT}\" are mutually exclusive") 108 endif() 109 endif() 110 111 if(UNIX AND NOT APPLE AND NOT BEOS AND NOT HAIKU AND NOT EMSCRIPTEN) 112 "The option PNG_BUILD_ZLIB=${PNG_BUILD_ZLIB} is no longer supported; " 113 "using ZLIB_ROOT=\"${ZLIB_ROOT}\"") 114 endif() 115 endif() 116 117 find_package(ZLIB REQUIRED) 118 119 if(UNIX 120 AND NOT (APPLE OR BEOS OR HAIKU) 121 AND NOT EMSCRIPTEN) 112 122 find_library(M_LIBRARY m) 113 123 if(M_LIBRARY) … … 120 130 endif() 121 131 122 # CMake currently sets CMAKE_SYSTEM_PROCESSOR to one of x86_64 or arm64 on macOS,123 # based upon the OS architecture, not the target architecture. As such, we need124 # to check CMAKE_OSX_ARCHITECTURES to identify which hardware-specific flags to125 # enable. Note that this will fail if you attempt to build a universal binary in126 # a single CMake invocation.127 if (APPLE AND CMAKE_OSX_ARCHITECTURES)128 set(TARGET_ARCH ${CMAKE_OSX_ARCHITECTURES})129 else()130 set(TARGET_ARCH ${CMAKE_SYSTEM_PROCESSOR})131 endif()132 133 132 if(PNG_HARDWARE_OPTIMIZATIONS) 134 133 135 # Set definitions and sources for ARM. 136 if(TARGET_ARCH MATCHES "^(ARM|arm|aarch)") 137 if(TARGET_ARCH MATCHES "^(ARM64|arm64|aarch64)") 138 set(PNG_ARM_NEON_POSSIBLE_VALUES on off) 139 set(PNG_ARM_NEON "on" 140 CACHE STRING "Enable ARM NEON optimizations: on|off; on is default") 141 else() 142 set(PNG_ARM_NEON_POSSIBLE_VALUES check on off) 143 set(PNG_ARM_NEON "off" 144 CACHE STRING "Enable ARM NEON optimizations: check|on|off; off is default") 145 endif() 146 set_property(CACHE PNG_ARM_NEON 147 PROPERTY STRINGS ${PNG_ARM_NEON_POSSIBLE_VALUES}) 148 list(FIND PNG_ARM_NEON_POSSIBLE_VALUES ${PNG_ARM_NEON} index) 149 if(index EQUAL -1) 150 message(FATAL_ERROR "PNG_ARM_NEON must be one of [${PNG_ARM_NEON_POSSIBLE_VALUES}]") 151 elseif(NOT PNG_ARM_NEON STREQUAL "off") 152 set(libpng_arm_sources 153 arm/arm_init.c 154 arm/filter_neon_intrinsics.c 155 arm/palette_neon_intrinsics.c) 156 if(NOT MSVC) 157 list(APPEND libpng_arm_sources arm/filter_neon.S) 158 endif() 159 if(PNG_ARM_NEON STREQUAL "on") 160 add_definitions(-DPNG_ARM_NEON_OPT=2) 161 elseif(PNG_ARM_NEON STREQUAL "check") 162 add_definitions(-DPNG_ARM_NEON_CHECK_SUPPORTED) 163 endif() 164 else() 134 # Set definitions and sources for ARM. 135 if(PNG_TARGET_ARCHITECTURE MATCHES "^(arm|aarch)") 136 if(PNG_TARGET_ARCHITECTURE MATCHES "^(arm64|aarch64)") 137 set(PNG_ARM_NEON_POSSIBLE_VALUES on off) 138 set(PNG_ARM_NEON "on" 139 CACHE STRING "Enable ARM NEON optimizations: on|off; on is default") 140 else() 141 set(PNG_ARM_NEON_POSSIBLE_VALUES check on off) 142 set(PNG_ARM_NEON "off" 143 CACHE STRING "Enable ARM NEON optimizations: check|on|off; off is default") 144 endif() 145 set_property(CACHE PNG_ARM_NEON 146 PROPERTY STRINGS ${PNG_ARM_NEON_POSSIBLE_VALUES}) 147 list(FIND PNG_ARM_NEON_POSSIBLE_VALUES ${PNG_ARM_NEON} index) 148 if(index EQUAL -1) 149 message(FATAL_ERROR "PNG_ARM_NEON must be one of [${PNG_ARM_NEON_POSSIBLE_VALUES}]") 150 elseif(NOT PNG_ARM_NEON STREQUAL "off") 151 set(libpng_arm_sources 152 arm/arm_init.c 153 arm/filter_neon_intrinsics.c 154 arm/palette_neon_intrinsics.c) 155 if(PNG_ARM_NEON STREQUAL "on") 156 add_definitions(-DPNG_ARM_NEON_OPT=2) 157 elseif(PNG_ARM_NEON STREQUAL "check") 158 add_definitions(-DPNG_ARM_NEON_CHECK_SUPPORTED) 159 endif() 160 else() 161 add_definitions(-DPNG_ARM_NEON_OPT=0) 162 endif() 163 endif() 164 165 # Set definitions and sources for PowerPC. 166 if(PNG_TARGET_ARCHITECTURE MATCHES "^(powerpc|ppc64)") 167 set(PNG_POWERPC_VSX_POSSIBLE_VALUES on off) 168 set(PNG_POWERPC_VSX "on" 169 CACHE STRING "Enable POWERPC VSX optimizations: on|off; on is default") 170 set_property(CACHE PNG_POWERPC_VSX 171 PROPERTY STRINGS ${PNG_POWERPC_VSX_POSSIBLE_VALUES}) 172 list(FIND PNG_POWERPC_VSX_POSSIBLE_VALUES ${PNG_POWERPC_VSX} index) 173 if(index EQUAL -1) 174 message(FATAL_ERROR "PNG_POWERPC_VSX must be one of [${PNG_POWERPC_VSX_POSSIBLE_VALUES}]") 175 elseif(NOT PNG_POWERPC_VSX STREQUAL "off") 176 set(libpng_powerpc_sources 177 powerpc/powerpc_init.c 178 powerpc/filter_vsx_intrinsics.c) 179 if(PNG_POWERPC_VSX STREQUAL "on") 180 add_definitions(-DPNG_POWERPC_VSX_OPT=2) 181 endif() 182 else() 183 add_definitions(-DPNG_POWERPC_VSX_OPT=0) 184 endif() 185 endif() 186 187 # Set definitions and sources for Intel. 188 if(PNG_TARGET_ARCHITECTURE MATCHES "^(i[3-6]86|x86|amd64)") 189 set(PNG_INTEL_SSE_POSSIBLE_VALUES on off) 190 set(PNG_INTEL_SSE "on" 191 CACHE STRING "Enable INTEL_SSE optimizations: on|off; on is default") 192 set_property(CACHE PNG_INTEL_SSE 193 PROPERTY STRINGS ${PNG_INTEL_SSE_POSSIBLE_VALUES}) 194 list(FIND PNG_INTEL_SSE_POSSIBLE_VALUES ${PNG_INTEL_SSE} index) 195 if(index EQUAL -1) 196 message(FATAL_ERROR "PNG_INTEL_SSE must be one of [${PNG_INTEL_SSE_POSSIBLE_VALUES}]") 197 elseif(NOT PNG_INTEL_SSE STREQUAL "off") 198 set(libpng_intel_sources 199 intel/intel_init.c 200 intel/filter_sse2_intrinsics.c) 201 if(PNG_INTEL_SSE STREQUAL "on") 202 add_definitions(-DPNG_INTEL_SSE_OPT=1) 203 endif() 204 else() 205 add_definitions(-DPNG_INTEL_SSE_OPT=0) 206 endif() 207 endif() 208 209 # Set definitions and sources for MIPS. 210 if(PNG_TARGET_ARCHITECTURE MATCHES "^(mipsel|mips64el)") 211 set(PNG_MIPS_MSA_POSSIBLE_VALUES on off) 212 set(PNG_MIPS_MSA "on" 213 CACHE STRING "Enable MIPS_MSA optimizations: on|off; on is default") 214 set_property(CACHE PNG_MIPS_MSA 215 PROPERTY STRINGS ${PNG_MIPS_MSA_POSSIBLE_VALUES}) 216 list(FIND PNG_MIPS_MSA_POSSIBLE_VALUES ${PNG_MIPS_MSA} index_msa) 217 if(index_msa EQUAL -1) 218 message(FATAL_ERROR "PNG_MIPS_MSA must be one of [${PNG_MIPS_MSA_POSSIBLE_VALUES}]") 219 endif() 220 221 set(PNG_MIPS_MMI_POSSIBLE_VALUES on off) 222 set(PNG_MIPS_MMI "on" 223 CACHE STRING "Enable MIPS_MMI optimizations: on|off; on is default") 224 set_property(CACHE PNG_MIPS_MMI 225 PROPERTY STRINGS ${PNG_MIPS_MMI_POSSIBLE_VALUES}) 226 list(FIND PNG_MIPS_MMI_POSSIBLE_VALUES ${PNG_MIPS_MMI} index_mmi) 227 if(index_mmi EQUAL -1) 228 message(FATAL_ERROR "PNG_MIPS_MMI must be one of [${PNG_MIPS_MMI_POSSIBLE_VALUES}]") 229 endif() 230 231 if(PNG_MIPS_MSA STREQUAL "on" AND PNG_MIPS_MMI STREQUAL "on") 232 set(libpng_mips_sources 233 mips/mips_init.c 234 mips/filter_msa_intrinsics.c 235 mips/filter_mmi_inline_assembly.c) 236 add_definitions(-DPNG_MIPS_MSA_OPT=2) 237 add_definitions(-DPNG_MIPS_MMI_OPT=1) 238 elseif(PNG_MIPS_MSA STREQUAL "on") 239 set(libpng_mips_sources 240 mips/mips_init.c 241 mips/filter_msa_intrinsics.c) 242 add_definitions(-DPNG_MIPS_MSA_OPT=2) 243 add_definitions(-DPNG_MIPS_MMI_OPT=0) 244 elseif(PNG_MIPS_MMI STREQUAL "on") 245 set(libpng_mips_sources 246 mips/mips_init.c 247 mips/filter_mmi_inline_assembly.c) 248 add_definitions(-DPNG_MIPS_MSA_OPT=0) 249 add_definitions(-DPNG_MIPS_MMI_OPT=1) 250 else() 251 add_definitions(-DPNG_MIPS_MSA_OPT=0) 252 add_definitions(-DPNG_MIPS_MMI_OPT=0) 253 endif() 254 endif() 255 256 # Set definitions and sources for LoongArch. 257 if(PNG_TARGET_ARCHITECTURE MATCHES "^(loongarch)") 258 include(CheckCCompilerFlag) 259 set(PNG_LOONGARCH_LSX_POSSIBLE_VALUES on off) 260 set(PNG_LOONGARCH_LSX "on" 261 CACHE STRING "Enable LOONGARCH_LSX optimizations: on|off; on is default") 262 set_property(CACHE PNG_LOONGARCH_LSX 263 PROPERTY STRINGS ${PNG_LOONGARCH_LSX_POSSIBLE_VALUES}) 264 list(FIND PNG_LOONGARCH_LSX_POSSIBLE_VALUES ${PNG_LOONGARCH_LSX} index) 265 if(index EQUAL -1) 266 message(FATAL_ERROR "PNG_LOONGARCH_LSX must be one of [${PNG_LOONGARCH_LSX_POSSIBLE_VALUES}]") 267 elseif(NOT PNG_LOONGARCH_LSX STREQUAL "off") 268 CHECK_C_COMPILER_FLAG("-mlsx" COMPILER_SUPPORTS_LSX) 269 if(COMPILER_SUPPORTS_LSX) 270 set(libpng_loongarch_sources 271 loongarch/loongarch_lsx_init.c 272 loongarch/filter_lsx_intrinsics.c) 273 set_source_files_properties(${libpng_loongarch_sources} 274 PROPERTIES 275 COMPILE_FLAGS "-mlsx") 276 add_definitions(-DPNG_LOONGARCH_LSX_OPT=1) 277 else() 278 message(FATAL_ERROR "Compiler does not support -mlsx option") 279 endif() 280 else() 281 add_definitions(-DPNG_LOONGARCH_LSX_OPT=0) 282 endif() 283 endif() 284 285 else(PNG_HARDWARE_OPTIMIZATIONS) 286 287 # Set definitions and sources for ARM. 288 if(PNG_TARGET_ARCHITECTURE MATCHES "^(arm|aarch)") 165 289 add_definitions(-DPNG_ARM_NEON_OPT=0) 166 290 endif() 167 endif() 168 169 # Set definitions and sources for PowerPC. 170 if(TARGET_ARCH MATCHES "^(powerpc|ppc64)") 171 set(PNG_POWERPC_VSX_POSSIBLE_VALUES on off) 172 set(PNG_POWERPC_VSX "on" 173 CACHE STRING "Enable POWERPC VSX optimizations: on|off; on is default") 174 set_property(CACHE PNG_POWERPC_VSX 175 PROPERTY STRINGS ${PNG_POWERPC_VSX_POSSIBLE_VALUES}) 176 list(FIND PNG_POWERPC_VSX_POSSIBLE_VALUES ${PNG_POWERPC_VSX} index) 177 if(index EQUAL -1) 178 message(FATAL_ERROR "PNG_POWERPC_VSX must be one of [${PNG_POWERPC_VSX_POSSIBLE_VALUES}]") 179 elseif(NOT PNG_POWERPC_VSX STREQUAL "off") 180 set(libpng_powerpc_sources 181 powerpc/powerpc_init.c 182 powerpc/filter_vsx_intrinsics.c) 183 if(PNG_POWERPC_VSX STREQUAL "on") 184 add_definitions(-DPNG_POWERPC_VSX_OPT=2) 185 endif() 186 else() 291 292 # Set definitions and sources for PowerPC. 293 if(PNG_TARGET_ARCHITECTURE MATCHES "^(powerpc|ppc64)") 187 294 add_definitions(-DPNG_POWERPC_VSX_OPT=0) 188 295 endif() 189 endif() 190 191 # Set definitions and sources for Intel. 192 if(TARGET_ARCH MATCHES "^(i[3-6]86|x86|AMD64)") 193 set(PNG_INTEL_SSE_POSSIBLE_VALUES on off) 194 set(PNG_INTEL_SSE "on" 195 CACHE STRING "Enable INTEL_SSE optimizations: on|off; on is default") 196 set_property(CACHE PNG_INTEL_SSE 197 PROPERTY STRINGS ${PNG_INTEL_SSE_POSSIBLE_VALUES}) 198 list(FIND PNG_INTEL_SSE_POSSIBLE_VALUES ${PNG_INTEL_SSE} index) 199 if(index EQUAL -1) 200 message(FATAL_ERROR "PNG_INTEL_SSE must be one of [${PNG_INTEL_SSE_POSSIBLE_VALUES}]") 201 elseif(NOT PNG_INTEL_SSE STREQUAL "off") 202 set(libpng_intel_sources 203 intel/intel_init.c 204 intel/filter_sse2_intrinsics.c) 205 if(PNG_INTEL_SSE STREQUAL "on") 206 add_definitions(-DPNG_INTEL_SSE_OPT=1) 207 endif() 208 else() 296 297 # Set definitions and sources for Intel. 298 if(PNG_TARGET_ARCHITECTURE MATCHES "^(i[3-6]86|x86|amd64)") 209 299 add_definitions(-DPNG_INTEL_SSE_OPT=0) 210 300 endif() 211 endif() 212 213 # Set definitions and sources for MIPS. 214 if(TARGET_ARCH MATCHES "^(mipsel|mips64el)") 215 set(PNG_MIPS_MSA_POSSIBLE_VALUES on off) 216 set(PNG_MIPS_MSA "on" 217 CACHE STRING "Enable MIPS_MSA optimizations: on|off; on is default") 218 set_property(CACHE PNG_MIPS_MSA 219 PROPERTY STRINGS ${PNG_MIPS_MSA_POSSIBLE_VALUES}) 220 list(FIND PNG_MIPS_MSA_POSSIBLE_VALUES ${PNG_MIPS_MSA} index_msa) 221 if(index_msa EQUAL -1) 222 message(FATAL_ERROR "PNG_MIPS_MSA must be one of [${PNG_MIPS_MSA_POSSIBLE_VALUES}]") 223 endif() 224 225 set(PNG_MIPS_MMI_POSSIBLE_VALUES on off) 226 set(PNG_MIPS_MMI "on" 227 CACHE STRING "Enable MIPS_MMI optimizations: on|off; on is default") 228 set_property(CACHE PNG_MIPS_MMI 229 PROPERTY STRINGS ${PNG_MIPS_MMI_POSSIBLE_VALUES}) 230 list(FIND PNG_MIPS_MMI_POSSIBLE_VALUES ${PNG_MIPS_MMI} index_mmi) 231 if(index_mmi EQUAL -1) 232 message(FATAL_ERROR "PNG_MIPS_MMI must be one of [${PNG_MIPS_MMI_POSSIBLE_VALUES}]") 233 endif() 234 235 if(PNG_MIPS_MSA STREQUAL "on" AND PNG_MIPS_MMI STREQUAL "on") 236 set(libpng_mips_sources 237 mips/mips_init.c 238 mips/filter_msa_intrinsics.c 239 mips/filter_mmi_inline_assembly.c) 240 add_definitions(-DPNG_MIPS_MSA_OPT=2) 241 add_definitions(-DPNG_MIPS_MMI_OPT=1) 242 elseif(PNG_MIPS_MSA STREQUAL "on") 243 set(libpng_mips_sources 244 mips/mips_init.c 245 mips/filter_msa_intrinsics.c) 246 add_definitions(-DPNG_MIPS_MSA_OPT=2) 247 add_definitions(-DPNG_MIPS_MMI_OPT=0) 248 elseif(PNG_MIPS_MMI STREQUAL "on") 249 set(libpng_mips_sources 250 mips/mips_init.c 251 mips/filter_mmi_inline_assembly.c) 301 302 # Set definitions and sources for MIPS. 303 if(PNG_TARGET_ARCHITECTURE MATCHES "^(mipsel|mips64el)") 252 304 add_definitions(-DPNG_MIPS_MSA_OPT=0) 253 add_definitions(-DPNG_MIPS_MMI_OPT=1) 254 else() 255 add_definitions(-DPNG_MIPS_MSA_OPT=0) 256 add_definitions(-DPNG_MIPS_MMI_OPT=0) 257 endif() 258 endif() 259 260 # Set definitions and sources for LoongArch. 261 if(TARGET_ARCH MATCHES "^(loongarch)") 262 include(CheckCCompilerFlag) 263 set(PNG_LOONGARCH_LSX_POSSIBLE_VALUES on off) 264 set(PNG_LOONGARCH_LSX "on" 265 CACHE STRING "Enable LOONGARCH_LSX optimizations: on|off; on is default") 266 set_property(CACHE PNG_LOONGARCH_LSX 267 PROPERTY STRINGS ${PNG_LOONGARCH_LSX_POSSIBLE_VALUES}) 268 list(FIND PNG_LOONGARCH_LSX_POSSIBLE_VALUES ${PNG_LOONGARCH_LSX} index) 269 if(index EQUAL -1) 270 message(FATAL_ERROR "PNG_LOONGARCH_LSX must be one of [${PNG_LOONGARCH_LSX_POSSIBLE_VALUES}]") 271 elseif(NOT PNG_LOONGARCH_LSX STREQUAL "off") 272 CHECK_C_COMPILER_FLAG("-mlsx" COMPILER_SUPPORTS_LSX) 273 if(COMPILER_SUPPORTS_LSX) 274 set(libpng_loongarch_sources 275 loongarch/loongarch_lsx_init.c 276 loongarch/filter_lsx_intrinsics.c) 277 set_source_files_properties(${libpng_loongarch_sources} 278 PROPERTIES 279 COMPILE_FLAGS "-mlsx") 280 add_definitions(-DPNG_LOONGARCH_LSX_OPT=1) 281 else() 282 message(FATAL_ERROR "Compiler does not support -mlsx option") 283 endif() 284 else() 305 endif() 306 307 # Set definitions and sources for LoongArch. 308 if(PNG_TARGET_ARCHITECTURE MATCHES "^(loongarch)") 285 309 add_definitions(-DPNG_LOONGARCH_LSX_OPT=0) 286 310 endif() 287 endif()288 289 else(PNG_HARDWARE_OPTIMIZATIONS)290 291 # Set definitions and sources for ARM.292 if(TARGET_ARCH MATCHES "^(ARM|arm|aarch)")293 add_definitions(-DPNG_ARM_NEON_OPT=0)294 endif()295 296 # Set definitions and sources for PowerPC.297 if(TARGET_ARCH MATCHES "^(powerpc|ppc64)")298 add_definitions(-DPNG_POWERPC_VSX_OPT=0)299 endif()300 301 # Set definitions and sources for Intel.302 if(TARGET_ARCH MATCHES "^(i[3-6]86|x86|AMD64)")303 add_definitions(-DPNG_INTEL_SSE_OPT=0)304 endif()305 306 # Set definitions and sources for MIPS.307 if(TARGET_ARCH MATCHES "^(mipsel|mips64el)")308 add_definitions(-DPNG_MIPS_MSA_OPT=0)309 endif()310 311 # Set definitions and sources for LoongArch.312 if(TARGET_ARCH MATCHES "^(loongarch)")313 add_definitions(-DPNG_LOONGARCH_LSX_OPT=0)314 endif()315 311 316 312 endif(PNG_HARDWARE_OPTIMIZATIONS) 317 313 318 314 option(ld-version-script "Enable linker version script" ON) 319 if(ld-version-script AND NOT ANDROID AND NOT APPLE)315 if(ld-version-script AND NOT (ANDROID OR APPLE)) 320 316 # Check if LD supports linker scripts. 321 317 file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/conftest.map" " … … 363 359 endif() 364 360 365 include_directories(${CMAKE_CURRENT_BINARY_DIR}) 366 367 if(NOT AWK OR ANDROID OR IOS) 361 if(NOT AWK OR (ANDROID OR IOS)) 368 362 # No awk available to generate sources; use pre-built pnglibconf.h 369 363 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/pnglibconf.h.prebuilt … … 371 365 add_custom_target(png_genfiles) 372 366 else() 367 # Include the internal module PNGGenConfig.cmake 368 include(${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/PNGGenConfig.cmake) 369 373 370 # Copy the awk scripts, converting their line endings to Unix (LF) 374 371 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/checksym.awk … … 384 381 @ONLY 385 382 NEWLINE_STYLE LF) 386 387 # Generate .chk from .out with awk:388 # generate_chk(INPUT inputfile OUTPUT outputfile [DEPENDS dep1 [dep2...]])389 function(generate_chk)390 set(options)391 set(oneValueArgs INPUT OUTPUT)392 set(multiValueArgs DEPENDS)393 cmake_parse_arguments(_GC "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})394 if(NOT _GC_INPUT)395 message(FATAL_ERROR "generate_chk: Missing INPUT argument")396 endif()397 if(NOT _GC_OUTPUT)398 message(FATAL_ERROR "generate_chk: Missing OUTPUT argument")399 endif()400 401 add_custom_command(OUTPUT "${_GC_OUTPUT}"402 COMMAND "${CMAKE_COMMAND}"403 "-DINPUT=${_GC_INPUT}"404 "-DOUTPUT=${_GC_OUTPUT}"405 -P "${CMAKE_CURRENT_BINARY_DIR}/scripts/cmake/genchk.cmake"406 DEPENDS "${_GC_INPUT}" ${_GC_DEPENDS}407 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")408 endfunction()409 410 # Generate .out from .c with awk411 # generate_out(INPUT inputfile OUTPUT outputfile [DEPENDS dep1 [dep2...]])412 function(generate_out)413 set(options)414 set(oneValueArgs INPUT OUTPUT)415 set(multiValueArgs DEPENDS)416 cmake_parse_arguments(_GO "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})417 if(NOT _GO_INPUT)418 message(FATAL_ERROR "generate_out: Missing INPUT argument")419 endif()420 if(NOT _GO_OUTPUT)421 message(FATAL_ERROR "generate_out: Missing OUTPUT argument")422 endif()423 424 add_custom_command(OUTPUT "${_GO_OUTPUT}"425 COMMAND "${CMAKE_COMMAND}"426 "-DINPUT=${_GO_INPUT}"427 "-DOUTPUT=${_GO_OUTPUT}"428 -P "${CMAKE_CURRENT_BINARY_DIR}/scripts/cmake/genout.cmake"429 DEPENDS "${_GO_INPUT}" ${_GO_DEPENDS}430 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")431 endfunction()432 433 # Generate specific source file with awk434 # generate_source(OUTPUT outputfile [DEPENDS dep1 [dep2...]])435 function(generate_source)436 set(options)437 set(oneValueArgs OUTPUT)438 set(multiValueArgs DEPENDS)439 cmake_parse_arguments(_GSO "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})440 if(NOT _GSO_OUTPUT)441 message(FATAL_ERROR "generate_source: Missing OUTPUT argument")442 endif()443 444 add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${_GSO_OUTPUT}"445 COMMAND "${CMAKE_COMMAND}"446 "-DOUTPUT=${_GSO_OUTPUT}"447 -P "${CMAKE_CURRENT_BINARY_DIR}/scripts/cmake/gensrc.cmake"448 DEPENDS ${_GSO_DEPENDS}449 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")450 endfunction()451 452 # Copy file453 # generate_copy(INPUT inputfile OUTPUT outputfile [DEPENDS dep1 [dep2...]])454 function(generate_copy)455 set(options)456 set(oneValueArgs INPUT OUTPUT)457 set(multiValueArgs DEPENDS)458 cmake_parse_arguments(_GCO "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})459 if(NOT _GCO_INPUT)460 message(FATAL_ERROR "generate_copy: Missing INPUT argument")461 endif()462 if(NOT _GCO_OUTPUT)463 message(FATAL_ERROR "generate_copy: Missing OUTPUT argument")464 endif()465 466 add_custom_command(OUTPUT "${_GCO_OUTPUT}"467 COMMAND "${CMAKE_COMMAND}"468 -E remove "${_GCO_OUTPUT}"469 COMMAND "${CMAKE_COMMAND}"470 -E copy "${_GCO_INPUT}" "${_GCO_OUTPUT}"471 DEPENDS "${source}" ${_GCO_DEPENDS})472 endfunction()473 383 474 384 # Generate scripts/pnglibconf.h … … 593 503 "${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.out" png_scripts_symbols_out 594 504 "${CMAKE_CURRENT_BINARY_DIR}/scripts/vers.out" png_scripts_vers_out) 595 endif(NOT AWK OR ANDROID OR IOS)505 endif(NOT AWK OR (ANDROID OR IOS)) 596 506 597 507 # List the source code files. … … 607 517 pngstruct.h 608 518 ) 609 if(AWK AND NOT ANDROID AND NOT IOS)519 if(AWK AND NOT (ANDROID OR IOS)) 610 520 list(APPEND libpng_private_hdrs "${CMAKE_CURRENT_BINARY_DIR}/pngprefix.h") 611 521 endif() … … 715 625 target_include_directories(png_shared 716 626 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) 627 target_include_directories(png_shared 628 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>) 717 629 target_include_directories(png_shared SYSTEM 718 630 INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/libpng${PNGLIB_ABI_VERSION}>) … … 729 641 target_include_directories(png_static 730 642 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) 643 target_include_directories(png_static 644 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>) 731 645 target_include_directories(png_static SYSTEM 732 646 INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/libpng${PNGLIB_ABI_VERSION}>) … … 758 672 target_include_directories(png_framework 759 673 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) 674 target_include_directories(png_framework 675 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>) 760 676 target_include_directories(png_framework SYSTEM 761 677 INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/libpng${PNGLIB_ABI_VERSION}>) … … 772 688 enable_testing() 773 689 774 function(png_add_test) 775 set(options) 776 set(oneValueArgs NAME COMMAND) 777 set(multiValueArgs OPTIONS FILES) 778 cmake_parse_arguments(_PAT "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) 779 if(NOT _PAT_NAME) 780 message(FATAL_ERROR "png_add_test: Missing NAME argument") 781 endif() 782 if(NOT _PAT_COMMAND) 783 message(FATAL_ERROR "png_add_test: Missing COMMAND argument") 784 endif() 785 786 set(TEST_OPTIONS "${_PAT_OPTIONS}") 787 set(TEST_FILES "${_PAT_FILES}") 788 789 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/test.cmake.in" 790 "${CMAKE_CURRENT_BINARY_DIR}/tests/${_PAT_NAME}.cmake" 791 @ONLY) 792 add_test(NAME "${_PAT_NAME}" 793 COMMAND "${CMAKE_COMMAND}" 794 "-DLIBPNG=$<TARGET_FILE:png_shared>" 795 "-DTEST_COMMAND=$<TARGET_FILE:${_PAT_COMMAND}>" 796 -P "${CMAKE_CURRENT_BINARY_DIR}/tests/${_PAT_NAME}.cmake") 797 endfunction() 690 # Include the internal module PNGTest.cmake 691 include(${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/PNGTest.cmake) 798 692 799 693 # Find test PNG files by globbing, but sort lists to ensure … … 803 697 file(GLOB TEST_PNGS "${CMAKE_CURRENT_SOURCE_DIR}/contrib/testpngs/*.png") 804 698 list(SORT TEST_PNGS) 699 file(GLOB TEST_PNG3_PNGS "${CMAKE_CURRENT_SOURCE_DIR}/contrib/testpngs/png-3/*.png") 700 list(SORT TEST_PNG3_PNGS) 805 701 806 702 set(PNGTEST_PNG "${CMAKE_CURRENT_SOURCE_DIR}/pngtest.png") … … 812 708 COMMAND pngtest 813 709 FILES "${PNGTEST_PNG}") 710 711 png_add_test(NAME pngtest-png-3 712 COMMAND pngtest 713 FILES "${TEST_PNG3_PNGS}") 814 714 815 715 add_executable(pngvalid ${pngvalid_sources}) … … 969 869 endif() 970 870 971 # Create a symlink from src to dest (if possible), or, alternatively, 972 # copy src to dest if different. 871 # Create a symlink that points to a target file (if symlinking is possible), 872 # or make a copy of the target file (if symlinking is not possible): 873 # create_symlink(<destfile> [FILE <file> | TARGET <target>]) 973 874 function(create_symlink DEST_FILE) 875 # TODO: 876 # Replace this implementation with CMake's built-in create_symlink function, 877 # which has been fully functional on all platforms, including Windows, since 878 # CMake version 3.13. 974 879 cmake_parse_arguments(_SYM "" "FILE;TARGET" "" ${ARGN}) 975 880 if(NOT _SYM_FILE AND NOT _SYM_TARGET) … … 1129 1034 endif() 1130 1035 1036 # Create a CMake Config File that can be used via find_package(PNG CONFIG) 1037 if(NOT SKIP_INSTALL_CONFIG_FILE AND NOT SKIP_INSTALL_ALL) 1038 install(TARGETS ${PNG_LIBRARY_TARGETS} 1039 EXPORT PNGTargets 1040 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} 1041 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} 1042 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} 1043 FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR}) 1044 1045 include(CMakePackageConfigHelpers) 1046 write_basic_package_version_file(PNGConfigVersion.cmake 1047 VERSION ${PNGLIB_VERSION} 1048 COMPATIBILITY SameMinorVersion) 1049 1050 install(EXPORT PNGTargets 1051 FILE PNGTargets.cmake 1052 NAMESPACE PNG:: 1053 DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/PNG) 1054 1055 install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/PNGConfig.cmake 1056 ${CMAKE_CURRENT_BINARY_DIR}/PNGConfigVersion.cmake 1057 DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/PNG) 1058 endif() 1059 1131 1060 # TODO: Create MSVC import lib for MinGW-compiled shared lib. 1132 1061 # pexports libpng.dll > libpng.def -
trunk/src/libs/libpng-1.6.45/INSTALL
r103316 r107813 1 2 1 Installing libpng 3 2 -
trunk/src/libs/libpng-1.6.45/LICENSE
r103316 r107813 5 5 --------------------------------------- 6 6 7 * Copyright (c) 1995-202 4The PNG Reference Library Authors.8 * Copyright (c) 2018-202 4Cosmin Truta.7 * Copyright (c) 1995-2025 The PNG Reference Library Authors. 8 * Copyright (c) 2018-2025 Cosmin Truta. 9 9 * Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson. 10 10 * Copyright (c) 1996-1997 Andreas Dilger. -
trunk/src/libs/libpng-1.6.45/Makefile.am
r103316 r107813 109 109 if PNG_ARM_NEON 110 110 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES += arm/arm_init.c\ 111 arm/filter_neon .S arm/filter_neon_intrinsics.c \111 arm/filter_neon_intrinsics.c \ 112 112 arm/palette_neon_intrinsics.c 113 113 endif -
trunk/src/libs/libpng-1.6.45/Makefile.in
r103316 r107813 1 # Makefile.in generated by automake 1.1 6.5from Makefile.am.1 # Makefile.in generated by automake 1.17 from Makefile.am. 2 2 # @configure_input@ 3 3 4 # Copyright (C) 1994-202 1Free Software Foundation, Inc.4 # Copyright (C) 1994-2024 Free Software Foundation, Inc. 5 5 6 6 # This Makefile.in is free software; the Free Software Foundation … … 84 84 am__make_dryrun = (target_option=n; $(am__make_running_with_option)) 85 85 am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) 86 am__rm_f = rm -f $(am__rm_f_notfound) 87 am__rm_rf = rm -rf $(am__rm_f_notfound) 86 88 pkgdatadir = $(datadir)/@PACKAGE@ 87 89 pkglibdir = $(libdir)/@PACKAGE@ … … 109 111 @ENABLE_TOOLS_TRUE@ png-fix-itxt$(EXEEXT) 110 112 @PNG_ARM_NEON_TRUE@am__append_2 = arm/arm_init.c\ 111 @PNG_ARM_NEON_TRUE@ arm/filter_neon .S arm/filter_neon_intrinsics.c \113 @PNG_ARM_NEON_TRUE@ arm/filter_neon_intrinsics.c \ 112 114 @PNG_ARM_NEON_TRUE@ arm/palette_neon_intrinsics.c 113 115 … … 178 180 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' 179 181 am__uninstall_files_from_dir = { \ 180 test -z "$$files" \ 181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ 182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ 183 $(am__cd) "$$dir" && rm -f $$files; }; \ 182 { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ 183 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ 184 $(am__cd) "$$dir" && echo $$files | $(am__xargs_n) 40 $(am__rm_f); }; \ 184 185 } 185 186 LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) … … 189 190 pngwtran.c pngwutil.c png.h pngconf.h pngdebug.h pnginfo.h \ 190 191 pngpriv.h pngstruct.h pngusr.dfa arm/arm_init.c \ 191 arm/filter_neon .S arm/filter_neon_intrinsics.c \192 arm/palette_neon_intrinsics.c mips/mips_init.c \193 mips/filter_m sa_intrinsics.c mips/filter_mmi_inline_assembly.c \194 intel/ intel_init.c intel/filter_sse2_intrinsics.c \195 powerpc/ powerpc_init.c powerpc/filter_vsx_intrinsics.c192 arm/filter_neon_intrinsics.c arm/palette_neon_intrinsics.c \ 193 mips/mips_init.c mips/filter_msa_intrinsics.c \ 194 mips/filter_mmi_inline_assembly.c intel/intel_init.c \ 195 intel/filter_sse2_intrinsics.c powerpc/powerpc_init.c \ 196 powerpc/filter_vsx_intrinsics.c 196 197 am__dirstamp = $(am__leading_dot)dirstamp 197 @PNG_ARM_NEON_TRUE@am__objects_1 = arm/arm_init.lo arm/filter_neon.lo\198 @PNG_ARM_NEON_TRUE@am__objects_1 = arm/arm_init.lo \ 198 199 @PNG_ARM_NEON_TRUE@ arm/filter_neon_intrinsics.lo \ 199 200 @PNG_ARM_NEON_TRUE@ arm/palette_neon_intrinsics.lo … … 313 314 ./$(DEPDIR)/pngwio.Plo ./$(DEPDIR)/pngwrite.Plo \ 314 315 ./$(DEPDIR)/pngwtran.Plo ./$(DEPDIR)/pngwutil.Plo \ 315 arm/$(DEPDIR)/arm_init.Plo arm/$(DEPDIR)/filter_neon.Plo\316 arm/$(DEPDIR)/arm_init.Plo \ 316 317 arm/$(DEPDIR)/filter_neon_intrinsics.Plo \ 317 318 arm/$(DEPDIR)/palette_neon_intrinsics.Plo \ … … 334 335 powerpc/$(DEPDIR)/powerpc_init.Plo 335 336 am__mv = mv -f 336 CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \337 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)338 LTCPPASCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \339 $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) \340 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \341 $(AM_CCASFLAGS) $(CCASFLAGS)342 AM_V_CPPAS = $(am__v_CPPAS_@AM_V@)343 am__v_CPPAS_ = $(am__v_CPPAS_@AM_DEFAULT_V@)344 am__v_CPPAS_0 = @echo " CPPAS " $@;345 am__v_CPPAS_1 =346 337 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 347 338 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) … … 514 505 am__common_driver_flags = \ 515 506 --color-tests "$$am__color_tests" \ 507 $$am__collect_skipped_logs \ 516 508 --enable-hard-errors "$$am__enable_hard_errors" \ 517 509 --expect-failure "$$am__expect_failure" … … 538 530 else dir="$(srcdir)/"; fi; \ 539 531 tst=$$dir$$f; log='$@'; \ 532 if test -n '$(IGNORE_SKIPPED_LOGS)'; then \ 533 am__collect_skipped_logs='--collect-skipped-logs no'; \ 534 else \ 535 am__collect_skipped_logs=''; \ 536 fi; \ 540 537 if test -n '$(DISABLE_HARD_ERRORS)'; then \ 541 538 am__enable_hard_errors=no; \ … … 593 590 am__remove_distdir = \ 594 591 if test -d "$(distdir)"; then \ 595 find "$(distdir)" -type d ! -perm - 200 -exec chmod u+w{} ';' \596 &&rm -rf "$(distdir)" \592 find "$(distdir)" -type d ! -perm -700 -exec chmod u+rwx {} ';' \ 593 ; rm -rf "$(distdir)" \ 597 594 || { sleep 5 && rm -rf "$(distdir)"; }; \ 598 595 else :; fi 599 596 am__post_remove_distdir = $(am__remove_distdir) 600 597 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.xz 601 GZIP_ENV = - -best598 GZIP_ENV = -9 602 599 DIST_TARGETS = dist-xz dist-gzip 603 600 # Exists only to be overridden by the user if desired. … … 606 603 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ 607 604 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' 608 distcleancheck_listfiles = find . -type f -print 605 distcleancheck_listfiles = \ 606 find . \( -type f -a \! \ 607 \( -name .nfs* -o -name .smb* -o -name .__afs* \) \) -print 609 608 610 609 #distribute headers in /usr/include/libpng/* … … 710 709 am__leading_dot = @am__leading_dot@ 711 710 am__quote = @am__quote@ 711 am__rm_f_notfound = @am__rm_f_notfound@ 712 712 am__tar = @am__tar@ 713 713 am__untar = @am__untar@ 714 am__xargs_n = @am__xargs_n@ 714 715 715 716 # generate the -config scripts if required … … 886 887 887 888 .SUFFIXES: 888 .SUFFIXES: .chk .out . S .c .lo .log .o .obj .test .test$(EXEEXT) .trs889 .SUFFIXES: .chk .out .c .lo .log .o .obj .test .test$(EXEEXT) .trs 889 890 am--refresh: Makefile 890 891 @: … … 926 927 927 928 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status 928 @rm -f stamp-h1929 cd $(top_builddir) && $(SHELL) ./config.status config.h929 $(AM_V_at)rm -f stamp-h1 930 $(AM_V_GEN)cd $(top_builddir) && $(SHELL) ./config.status config.h 930 931 $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) 931 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))932 rm -f stamp-h1933 touch $@932 $(AM_V_GEN)($(am__cd) $(top_srcdir) && $(AUTOHEADER)) 933 $(AM_V_at)rm -f stamp-h1 934 $(AM_V_at)touch $@ 934 935 935 936 distclean-hdr: … … 978 979 test -n "$$list" || exit 0; \ 979 980 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ 980 cd "$(DESTDIR)$(bindir)" && rm -f$$files981 cd "$(DESTDIR)$(bindir)" && $(am__rm_f) $$files 981 982 982 983 clean-binPROGRAMS: 983 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ 984 echo " rm -f" $$list; \ 985 rm -f $$list || exit $$?; \ 986 test -n "$(EXEEXT)" || exit 0; \ 987 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ 988 echo " rm -f" $$list; \ 989 rm -f $$list 984 $(am__rm_f) $(bin_PROGRAMS) 985 test -z "$(EXEEXT)" || $(am__rm_f) $(bin_PROGRAMS:$(EXEEXT)=) 990 986 991 987 clean-checkPROGRAMS: 992 @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ 993 echo " rm -f" $$list; \ 994 rm -f $$list || exit $$?; \ 995 test -n "$(EXEEXT)" || exit 0; \ 996 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ 997 echo " rm -f" $$list; \ 998 rm -f $$list 988 $(am__rm_f) $(check_PROGRAMS) 989 test -z "$(EXEEXT)" || $(am__rm_f) $(check_PROGRAMS:$(EXEEXT)=) 999 990 1000 991 install-libLTLIBRARIES: $(lib_LTLIBRARIES) … … 1023 1014 1024 1015 clean-libLTLIBRARIES: 1025 - test -z "$(lib_LTLIBRARIES)" || rm -f$(lib_LTLIBRARIES)1016 -$(am__rm_f) $(lib_LTLIBRARIES) 1026 1017 @list='$(lib_LTLIBRARIES)'; \ 1027 1018 locs=`for p in $$list; do echo $$p; done | \ 1028 1019 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ 1029 1020 sort -u`; \ 1030 test -z "$$locs" || { \ 1031 echo rm -f $${locs}; \ 1032 rm -f $${locs}; \ 1033 } 1021 echo rm -f $${locs}; \ 1022 $(am__rm_f) $${locs} 1034 1023 1035 1024 clean-noinstLTLIBRARIES: 1036 - test -z "$(noinst_LTLIBRARIES)" || rm -f$(noinst_LTLIBRARIES)1025 -$(am__rm_f) $(noinst_LTLIBRARIES) 1037 1026 @list='$(noinst_LTLIBRARIES)'; \ 1038 1027 locs=`for p in $$list; do echo $$p; done | \ 1039 1028 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ 1040 1029 sort -u`; \ 1041 test -z "$$locs" || { \ 1042 echo rm -f $${locs}; \ 1043 rm -f $${locs}; \ 1044 } 1030 echo rm -f $${locs}; \ 1031 $(am__rm_f) $${locs} 1045 1032 arm/$(am__dirstamp): 1046 1033 @$(MKDIR_P) arm 1047 @: > 1034 @: >>arm/$(am__dirstamp) 1048 1035 arm/$(DEPDIR)/$(am__dirstamp): 1049 1036 @$(MKDIR_P) arm/$(DEPDIR) 1050 @: > 1037 @: >>arm/$(DEPDIR)/$(am__dirstamp) 1051 1038 arm/arm_init.lo: arm/$(am__dirstamp) arm/$(DEPDIR)/$(am__dirstamp) 1052 arm/filter_neon.lo: arm/$(am__dirstamp) arm/$(DEPDIR)/$(am__dirstamp)1053 1039 arm/filter_neon_intrinsics.lo: arm/$(am__dirstamp) \ 1054 1040 arm/$(DEPDIR)/$(am__dirstamp) … … 1057 1043 mips/$(am__dirstamp): 1058 1044 @$(MKDIR_P) mips 1059 @: > 1045 @: >>mips/$(am__dirstamp) 1060 1046 mips/$(DEPDIR)/$(am__dirstamp): 1061 1047 @$(MKDIR_P) mips/$(DEPDIR) 1062 @: > 1048 @: >>mips/$(DEPDIR)/$(am__dirstamp) 1063 1049 mips/mips_init.lo: mips/$(am__dirstamp) mips/$(DEPDIR)/$(am__dirstamp) 1064 1050 mips/filter_msa_intrinsics.lo: mips/$(am__dirstamp) \ … … 1068 1054 intel/$(am__dirstamp): 1069 1055 @$(MKDIR_P) intel 1070 @: > 1056 @: >>intel/$(am__dirstamp) 1071 1057 intel/$(DEPDIR)/$(am__dirstamp): 1072 1058 @$(MKDIR_P) intel/$(DEPDIR) 1073 @: > 1059 @: >>intel/$(DEPDIR)/$(am__dirstamp) 1074 1060 intel/intel_init.lo: intel/$(am__dirstamp) \ 1075 1061 intel/$(DEPDIR)/$(am__dirstamp) … … 1078 1064 powerpc/$(am__dirstamp): 1079 1065 @$(MKDIR_P) powerpc 1080 @: > 1066 @: >>powerpc/$(am__dirstamp) 1081 1067 powerpc/$(DEPDIR)/$(am__dirstamp): 1082 1068 @$(MKDIR_P) powerpc/$(DEPDIR) 1083 @: > 1069 @: >>powerpc/$(DEPDIR)/$(am__dirstamp) 1084 1070 powerpc/powerpc_init.lo: powerpc/$(am__dirstamp) \ 1085 1071 powerpc/$(DEPDIR)/$(am__dirstamp) … … 1091 1077 loongarch/$(am__dirstamp): 1092 1078 @$(MKDIR_P) loongarch 1093 @: > 1079 @: >>loongarch/$(am__dirstamp) 1094 1080 loongarch/$(DEPDIR)/$(am__dirstamp): 1095 1081 @$(MKDIR_P) loongarch/$(DEPDIR) 1096 @: > 1082 @: >>loongarch/$(DEPDIR)/$(am__dirstamp) 1097 1083 loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.lo: \ 1098 1084 loongarch/$(am__dirstamp) loongarch/$(DEPDIR)/$(am__dirstamp) … … 1104 1090 contrib/tools/$(am__dirstamp): 1105 1091 @$(MKDIR_P) contrib/tools 1106 @: > 1092 @: >>contrib/tools/$(am__dirstamp) 1107 1093 contrib/tools/$(DEPDIR)/$(am__dirstamp): 1108 1094 @$(MKDIR_P) contrib/tools/$(DEPDIR) 1109 @: > 1095 @: >>contrib/tools/$(DEPDIR)/$(am__dirstamp) 1110 1096 contrib/tools/png-fix-itxt.$(OBJEXT): contrib/tools/$(am__dirstamp) \ 1111 1097 contrib/tools/$(DEPDIR)/$(am__dirstamp) … … 1128 1114 contrib/libtests/$(am__dirstamp): 1129 1115 @$(MKDIR_P) contrib/libtests 1130 @: > 1116 @: >>contrib/libtests/$(am__dirstamp) 1131 1117 contrib/libtests/$(DEPDIR)/$(am__dirstamp): 1132 1118 @$(MKDIR_P) contrib/libtests/$(DEPDIR) 1133 @: > 1119 @: >>contrib/libtests/$(DEPDIR)/$(am__dirstamp) 1134 1120 contrib/libtests/pngimage.$(OBJEXT): contrib/libtests/$(am__dirstamp) \ 1135 1121 contrib/libtests/$(DEPDIR)/$(am__dirstamp) … … 1238 1224 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pngwutil.Plo@am__quote@ # am--include-marker 1239 1225 @AMDEP_TRUE@@am__include@ @am__quote@arm/$(DEPDIR)/arm_init.Plo@am__quote@ # am--include-marker 1240 @AMDEP_TRUE@@am__include@ @am__quote@arm/$(DEPDIR)/filter_neon.Plo@am__quote@ # am--include-marker1241 1226 @AMDEP_TRUE@@am__include@ @am__quote@arm/$(DEPDIR)/filter_neon_intrinsics.Plo@am__quote@ # am--include-marker 1242 1227 @AMDEP_TRUE@@am__include@ @am__quote@arm/$(DEPDIR)/palette_neon_intrinsics.Plo@am__quote@ # am--include-marker … … 1261 1246 $(am__depfiles_remade): 1262 1247 @$(MKDIR_P) $(@D) 1263 @ echo '# dummy' >$@-t && $(am__mv) $@-t$@1248 @: >>$@ 1264 1249 1265 1250 am--depfiles: $(am__depfiles_remade) 1266 1267 .S.o:1268 @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\1269 @am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\1270 @am__fastdepCCAS_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po1271 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@1272 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@1273 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(CPPASCOMPILE) -c -o $@ $<1274 1275 .S.obj:1276 @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\1277 @am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\1278 @am__fastdepCCAS_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po1279 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@1280 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@1281 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`1282 1283 .S.lo:1284 @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\1285 @am__fastdepCCAS_TRUE@ $(LTCPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\1286 @am__fastdepCCAS_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo1287 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@1288 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@1289 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LTCPPASCOMPILE) -c -o $@ $<1290 1251 1291 1252 .c.o: … … 1562 1523 am--force-recheck: 1563 1524 @: 1564 1565 1525 $(TEST_SUITE_LOG): $(TEST_LOGS) 1566 1526 @$(am__set_TESTS_bases); \ … … 1638 1598 result_count $$1 "ERROR:" $$error "$$mgn"; \ 1639 1599 }; \ 1600 output_system_information () \ 1601 { \ 1602 echo; \ 1603 { uname -a | $(AWK) '{ \ 1604 printf "System information (uname -a):"; \ 1605 for (i = 1; i < NF; ++i) \ 1606 { \ 1607 if (i != 2) \ 1608 printf " %s", $$i; \ 1609 } \ 1610 printf "\n"; \ 1611 }'; } 2>&1; \ 1612 if test -r /etc/os-release; then \ 1613 echo "Distribution information (/etc/os-release):"; \ 1614 sed 8q /etc/os-release; \ 1615 elif test -r /etc/issue; then \ 1616 echo "Distribution information (/etc/issue):"; \ 1617 cat /etc/issue; \ 1618 fi; \ 1619 }; \ 1620 please_report () \ 1621 { \ 1622 echo "Some test(s) failed. Please report this to $(PACKAGE_BUGREPORT),"; \ 1623 echo "together with the test-suite.log file (gzipped) and your system"; \ 1624 echo "information. Thanks."; \ 1625 }; \ 1640 1626 { \ 1641 1627 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ 1642 1628 $(am__rst_title); \ 1643 1629 create_testsuite_report --no-color; \ 1630 output_system_information; \ 1644 1631 echo; \ 1645 1632 echo ".. contents:: :depth: 2"; \ … … 1661 1648 echo "$$col$$br$$std"; \ 1662 1649 if $$success; then :; else \ 1663 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG) $${std}";\1650 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG) for debugging.$${std}";\ 1664 1651 if test -n "$(PACKAGE_BUGREPORT)"; then \ 1665 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}";\1652 please_report | sed -e "s/^/$${col}/" -e s/'$$'/"$${std}"/; \ 1666 1653 fi; \ 1667 1654 echo "$$col$$br$$std"; \ … … 1670 1657 1671 1658 check-TESTS: $(check_PROGRAMS) 1672 @ list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list1673 @ list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list1674 @ test -z "$(TEST_SUITE_LOG)" || rm -f$(TEST_SUITE_LOG)1659 @$(am__rm_f) $(RECHECK_LOGS) 1660 @$(am__rm_f) $(RECHECK_LOGS:.log=.trs) 1661 @$(am__rm_f) $(TEST_SUITE_LOG) 1675 1662 @set +e; $(am__set_TESTS_bases); \ 1676 1663 log_list=`for i in $$bases; do echo $$i.log; done`; \ 1677 trs_list=`for i in $$bases; do echo $$i.trs; done`; \ 1678 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ 1664 log_list=`echo $$log_list`; \ 1679 1665 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ 1680 1666 exit $$?; 1681 1667 recheck: all $(check_PROGRAMS) 1682 @ test -z "$(TEST_SUITE_LOG)" || rm -f$(TEST_SUITE_LOG)1668 @$(am__rm_f) $(TEST_SUITE_LOG) 1683 1669 @set +e; $(am__set_TESTS_bases); \ 1684 1670 bases=`for i in $$bases; do echo $$i; done \ … … 1933 1919 distdir-am: $(DISTFILES) 1934 1920 $(am__remove_distdir) 1935 test -d "$(distdir)" || mkdir"$(distdir)"1921 $(AM_V_at)$(MKDIR_P) "$(distdir)" 1936 1922 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 1937 1923 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ … … 2021 2007 case '$(DIST_ARCHIVES)' in \ 2022 2008 *.tar.gz*) \ 2023 eval GZIP= gzip $(GZIP_ENV)-dc $(distdir).tar.gz | $(am__untar) ;;\2009 eval GZIP= gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ 2024 2010 *.tar.bz2*) \ 2025 2011 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ … … 2031 2017 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ 2032 2018 *.shar.gz*) \ 2033 eval GZIP= gzip $(GZIP_ENV)-dc $(distdir).shar.gz | unshar ;;\2019 eval GZIP= gzip -dc $(distdir).shar.gz | unshar ;;\ 2034 2020 *.zip*) \ 2035 2021 unzip $(distdir).zip ;;\ … … 2139 2125 fi 2140 2126 mostlyclean-generic: 2141 - test -z "$(TEST_LOGS)" || rm -f$(TEST_LOGS)2142 - test -z "$(TEST_LOGS:.log=.trs)" || rm -f$(TEST_LOGS:.log=.trs)2143 - test -z "$(TEST_SUITE_LOG)" || rm -f$(TEST_SUITE_LOG)2127 -$(am__rm_f) $(TEST_LOGS) 2128 -$(am__rm_f) $(TEST_LOGS:.log=.trs) 2129 -$(am__rm_f) $(TEST_SUITE_LOG) 2144 2130 2145 2131 clean-generic: 2146 - test -z "$(CLEANFILES)" || rm -f$(CLEANFILES)2132 -$(am__rm_f) $(CLEANFILES) 2147 2133 2148 2134 distclean-generic: 2149 - test -z "$(CONFIG_CLEAN_FILES)" || rm -f$(CONFIG_CLEAN_FILES)2150 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f$(CONFIG_CLEAN_VPATH_FILES)2151 - rm -farm/$(DEPDIR)/$(am__dirstamp)2152 - rm -farm/$(am__dirstamp)2153 - rm -fcontrib/libtests/$(DEPDIR)/$(am__dirstamp)2154 - rm -fcontrib/libtests/$(am__dirstamp)2155 - rm -fcontrib/tools/$(DEPDIR)/$(am__dirstamp)2156 - rm -fcontrib/tools/$(am__dirstamp)2157 - rm -fintel/$(DEPDIR)/$(am__dirstamp)2158 - rm -fintel/$(am__dirstamp)2159 - rm -floongarch/$(DEPDIR)/$(am__dirstamp)2160 - rm -floongarch/$(am__dirstamp)2161 - rm -fmips/$(DEPDIR)/$(am__dirstamp)2162 - rm -fmips/$(am__dirstamp)2163 - rm -fpowerpc/$(DEPDIR)/$(am__dirstamp)2164 - rm -fpowerpc/$(am__dirstamp)2135 -$(am__rm_f) $(CONFIG_CLEAN_FILES) 2136 -test . = "$(srcdir)" || $(am__rm_f) $(CONFIG_CLEAN_VPATH_FILES) 2137 -$(am__rm_f) arm/$(DEPDIR)/$(am__dirstamp) 2138 -$(am__rm_f) arm/$(am__dirstamp) 2139 -$(am__rm_f) contrib/libtests/$(DEPDIR)/$(am__dirstamp) 2140 -$(am__rm_f) contrib/libtests/$(am__dirstamp) 2141 -$(am__rm_f) contrib/tools/$(DEPDIR)/$(am__dirstamp) 2142 -$(am__rm_f) contrib/tools/$(am__dirstamp) 2143 -$(am__rm_f) intel/$(DEPDIR)/$(am__dirstamp) 2144 -$(am__rm_f) intel/$(am__dirstamp) 2145 -$(am__rm_f) loongarch/$(DEPDIR)/$(am__dirstamp) 2146 -$(am__rm_f) loongarch/$(am__dirstamp) 2147 -$(am__rm_f) mips/$(DEPDIR)/$(am__dirstamp) 2148 -$(am__rm_f) mips/$(am__dirstamp) 2149 -$(am__rm_f) powerpc/$(DEPDIR)/$(am__dirstamp) 2150 -$(am__rm_f) powerpc/$(am__dirstamp) 2165 2151 2166 2152 maintainer-clean-generic: 2167 2153 @echo "This command is intended for maintainers to use" 2168 2154 @echo "it deletes files that may require special tools to rebuild." 2169 - test -z "$(BUILT_SOURCES)" || rm -f$(BUILT_SOURCES)2170 - test -z "$(MAINTAINERCLEANFILES)" || rm -f$(MAINTAINERCLEANFILES)2155 -$(am__rm_f) $(BUILT_SOURCES) 2156 -$(am__rm_f) $(MAINTAINERCLEANFILES) 2171 2157 @DO_INSTALL_LIBPNG_CONFIG_FALSE@@DO_INSTALL_LINKS_FALSE@install-exec-hook: 2172 2158 @DO_INSTALL_LIBPNG_PC_FALSE@@DO_INSTALL_LINKS_FALSE@install-data-hook: … … 2180 2166 distclean: distclean-am 2181 2167 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 2182 2168 -rm -f ./$(DEPDIR)/png.Plo 2183 2169 -rm -f ./$(DEPDIR)/pngerror.Plo 2184 2170 -rm -f ./$(DEPDIR)/pngget.Plo … … 2197 2183 -rm -f ./$(DEPDIR)/pngwutil.Plo 2198 2184 -rm -f arm/$(DEPDIR)/arm_init.Plo 2199 -rm -f arm/$(DEPDIR)/filter_neon.Plo2200 2185 -rm -f arm/$(DEPDIR)/filter_neon_intrinsics.Plo 2201 2186 -rm -f arm/$(DEPDIR)/palette_neon_intrinsics.Plo … … 2268 2253 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 2269 2254 -rm -rf $(top_srcdir)/autom4te.cache 2270 2255 -rm -f ./$(DEPDIR)/png.Plo 2271 2256 -rm -f ./$(DEPDIR)/pngerror.Plo 2272 2257 -rm -f ./$(DEPDIR)/pngget.Plo … … 2285 2270 -rm -f ./$(DEPDIR)/pngwutil.Plo 2286 2271 -rm -f arm/$(DEPDIR)/arm_init.Plo 2287 -rm -f arm/$(DEPDIR)/filter_neon.Plo2288 2272 -rm -f arm/$(DEPDIR)/filter_neon_intrinsics.Plo 2289 2273 -rm -f arm/$(DEPDIR)/palette_neon_intrinsics.Plo … … 2549 2533 # Otherwise a system limit (for SysV at least) may be exceeded. 2550 2534 .NOEXPORT: 2535 2536 # Tell GNU make to disable its built-in pattern rules. 2537 %:: %,v 2538 %:: RCS/%,v 2539 %:: RCS/% 2540 %:: s.% 2541 %:: SCCS/s.% -
trunk/src/libs/libpng-1.6.45/README
r105469 r107813 1 README for libpng version 1.6.4 31 README for libpng version 1.6.45 2 2 ================================ 3 3 … … 158 158 O'Reilly, 1999 159 159 libtests/ => Test programs 160 oss-fuzz/ => Files used by the OSS-Fuzz project for fuzz-testing161 libpng162 160 pngexif/ => Program to inspect the EXIF information in PNG files 163 161 pngminim/ => Minimal decoder, encoder, and progressive decoder -
trunk/src/libs/libpng-1.6.45/TODO
r96425 r107813 1 TODO - list of things to do for libpng: 1 TODO list for libpng 2 -------------------- 2 3 3 * Fix all defects (duh!) 4 * Better C++ wrapper / full C++ implementation (?) 5 * Fix the problems with C++ and 'extern "C"'. 6 * cHRM transformation. 7 * Palette creation. 8 * "grayscale->palette" transformation and "palette->grayscale" detection. 9 * Improved dithering. 10 * Multi-lingual error and warning message support. 11 * Complete sRGB transformation. (Currently it simply uses gamma=0.45455.) 12 * Man pages for function calls. 13 * Better documentation. 14 * Better filter selection 15 (e.g., counting huffman bits/precompression; filter inertia; filter costs). 16 * Histogram creation. 17 * Text conversion between different code pages (e.g., Latin-1 -> Mac). 18 * Avoid building gamma tables whenever possible. 19 * Greater precision in changing to linear gamma for compositing against 20 background, and in doing rgb-to-gray transformations. 21 * Investigate pre-incremented loop counters and other loop constructions. 22 * Interpolated method of handling interlacing. 23 * More validations for libpng transformations. 4 * Fix all defects (duh!) 5 * cHRM transformation. 6 * Palette creation. 7 * "grayscale->palette" transformation and "palette->grayscale" detection. 8 * Improved dithering. 9 * Multi-lingual error and warning message support. 10 * Complete sRGB transformation. (Currently it simply uses gamma=0.45455.) 11 * Man pages for function calls. 12 * Better documentation. 13 * Better filter selection 14 (e.g., counting huffman bits/precompression; filter inertia; filter costs). 15 * Histogram creation. 16 * Text conversion between different code pages (e.g., Latin-1 to Mac). 17 * Avoid building gamma tables whenever possible. 18 * Greater precision in changing to linear gamma for compositing against 19 background, and in doing rgb-to-gray transformations. 20 * Investigate pre-incremented loop counters and other loop constructions. 21 * Interpolated method of handling interlacing. 22 * More validations for libpng transformations. -
trunk/src/libs/libpng-1.6.45/aclocal.m4
r103316 r107813 1 # generated automatically by aclocal 1.1 6.5-*- Autoconf -*-2 3 # Copyright (C) 1996-202 1Free Software Foundation, Inc.1 # generated automatically by aclocal 1.17 -*- Autoconf -*- 2 3 # Copyright (C) 1996-2024 Free Software Foundation, Inc. 4 4 5 5 # This file is free software; the Free Software Foundation … … 21 21 To do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22 22 23 # Copyright (C) 2002-202 1Free Software Foundation, Inc.23 # Copyright (C) 2002-2024 Free Software Foundation, Inc. 24 24 # 25 25 # This file is free software; the Free Software Foundation … … 33 33 # (This private macro should not be called outside this file.) 34 34 AC_DEFUN([AM_AUTOMAKE_VERSION], 35 [am__api_version='1.1 6'35 [am__api_version='1.17' 36 36 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 37 37 dnl require some minimum version. Point them to the right macro. 38 m4_if([$1], [1.1 6.5], [],38 m4_if([$1], [1.17], [], 39 39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 40 40 ]) … … 52 52 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 53 53 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 54 [AM_AUTOMAKE_VERSION([1.1 6.5])dnl54 [AM_AUTOMAKE_VERSION([1.17])dnl 55 55 m4_ifndef([AC_AUTOCONF_VERSION], 56 56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl … … 59 59 # Figure out how to run the assembler. -*- Autoconf -*- 60 60 61 # Copyright (C) 2001-202 1Free Software Foundation, Inc.61 # Copyright (C) 2001-2024 Free Software Foundation, Inc. 62 62 # 63 63 # This file is free software; the Free Software Foundation … … 79 79 # AM_AUX_DIR_EXPAND -*- Autoconf -*- 80 80 81 # Copyright (C) 2001-202 1Free Software Foundation, Inc.81 # Copyright (C) 2001-2024 Free Software Foundation, Inc. 82 82 # 83 83 # This file is free software; the Free Software Foundation … … 131 131 # AM_CONDITIONAL -*- Autoconf -*- 132 132 133 # Copyright (C) 1997-202 1Free Software Foundation, Inc.133 # Copyright (C) 1997-2024 Free Software Foundation, Inc. 134 134 # 135 135 # This file is free software; the Free Software Foundation … … 162 162 fi])]) 163 163 164 # Copyright (C) 1999-202 1Free Software Foundation, Inc.164 # Copyright (C) 1999-2024 Free Software Foundation, Inc. 165 165 # 166 166 # This file is free software; the Free Software Foundation … … 294 294 # or remarks (even with -Werror). So we grep stderr for any message 295 295 # that says an option was ignored or not supported. 296 # When given -MP, icc 7.0 and 7.1 complain thus ly:296 # When given -MP, icc 7.0 and 7.1 complain thus: 297 297 # icc: Command line warning: ignoring option '-M'; no argument required 298 298 # The diagnosis changed in icc 8.0: … … 353 353 # Generate code to set up dependency tracking. -*- Autoconf -*- 354 354 355 # Copyright (C) 1999-202 1Free Software Foundation, Inc.355 # Copyright (C) 1999-2024 Free Software Foundation, Inc. 356 356 # 357 357 # This file is free software; the Free Software Foundation … … 421 421 # Do all the work for Automake. -*- Autoconf -*- 422 422 423 # Copyright (C) 1996-202 1Free Software Foundation, Inc.423 # Copyright (C) 1996-2024 Free Software Foundation, Inc. 424 424 # 425 425 # This file is free software; the Free Software Foundation … … 555 555 AC_SUBST([CSCOPE]) 556 556 557 AC_REQUIRE([ AM_SILENT_RULES])dnl557 AC_REQUIRE([_AM_SILENT_RULES])dnl 558 558 dnl The testsuite driver may need to know about EXEEXT, so add the 559 559 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This … … 563 563 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 564 564 565 # POSIX will say in a future version that running "rm -f" with no argument 566 # is OK; and we want to be able to make that assumption in our Makefile 567 # recipes. So use an aggressive probe to check that the usage we want is 568 # actually supported "in the wild" to an acceptable degree. 569 # See automake bug#10828. 570 # To make any issue more visible, cause the running configure to be aborted 571 # by default if the 'rm' program in use doesn't match our expectations; the 572 # user can still override this though. 573 if rm -f && rm -fr && rm -rf; then : OK; else 574 cat >&2 <<'END' 575 Oops! 576 577 Your 'rm' program seems unable to run without file operands specified 578 on the command line, even when the '-f' option is present. This is contrary 579 to the behaviour of most rm programs out there, and not conforming with 580 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 581 582 Please tell [email protected] about your system, including the value 583 of your $PATH and any error possibly output before this message. This 584 can help us improve future automake versions. 585 586 END 587 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 588 echo 'Configuration will proceed anyway, since you have set the' >&2 589 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 590 echo >&2 591 else 592 cat >&2 <<'END' 593 Aborting the configuration process, to ensure you take notice of the issue. 594 595 You can download and install GNU coreutils to get an 'rm' implementation 596 that behaves properly: <https://www.gnu.org/software/coreutils/>. 597 598 If you want to complete the configuration process using your problematic 599 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 600 to "yes", and re-run configure. 601 602 END 603 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 604 fi 605 fi 565 AC_REQUIRE([_AM_PROG_RM_F]) 566 AC_REQUIRE([_AM_PROG_XARGS_N]) 567 606 568 dnl The trailing newline in this macro's definition is deliberate, for 607 569 dnl backward compatibility and to allow trailing 'dnl'-style comments … … 636 598 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 637 599 638 # Copyright (C) 2001-202 1Free Software Foundation, Inc.600 # Copyright (C) 2001-2024 Free Software Foundation, Inc. 639 601 # 640 602 # This file is free software; the Free Software Foundation … … 657 619 AC_SUBST([install_sh])]) 658 620 659 # Copyright (C) 2003-202 1Free Software Foundation, Inc.621 # Copyright (C) 2003-2024 Free Software Foundation, Inc. 660 622 # 661 623 # This file is free software; the Free Software Foundation … … 679 641 # From Jim Meyering 680 642 681 # Copyright (C) 1996-202 1Free Software Foundation, Inc.643 # Copyright (C) 1996-2024 Free Software Foundation, Inc. 682 644 # 683 645 # This file is free software; the Free Software Foundation … … 714 676 # Check to see how 'make' treats includes. -*- Autoconf -*- 715 677 716 # Copyright (C) 2001-202 1Free Software Foundation, Inc.678 # Copyright (C) 2001-2024 Free Software Foundation, Inc. 717 679 # 718 680 # This file is free software; the Free Software Foundation … … 757 719 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 758 720 759 # Copyright (C) 1997-202 1Free Software Foundation, Inc.721 # Copyright (C) 1997-2024 Free Software Foundation, Inc. 760 722 # 761 723 # This file is free software; the Free Software Foundation … … 791 753 # Helper functions for option handling. -*- Autoconf -*- 792 754 793 # Copyright (C) 2001-202 1Free Software Foundation, Inc.755 # Copyright (C) 2001-2024 Free Software Foundation, Inc. 794 756 # 795 757 # This file is free software; the Free Software Foundation … … 820 782 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 821 783 822 # Copyright (C) 1999-202 1Free Software Foundation, Inc.784 # Copyright (C) 1999-2024 Free Software Foundation, Inc. 823 785 # 824 786 # This file is free software; the Free Software Foundation … … 867 829 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 868 830 869 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 831 # Copyright (C) 2022-2024 Free Software Foundation, Inc. 832 # 833 # This file is free software; the Free Software Foundation 834 # gives unlimited permission to copy and/or distribute it, 835 # with or without modifications, as long as this notice is preserved. 836 837 # _AM_PROG_RM_F 838 # --------------- 839 # Check whether 'rm -f' without any arguments works. 840 # https://bugs.gnu.org/10828 841 AC_DEFUN([_AM_PROG_RM_F], 842 [am__rm_f_notfound= 843 AS_IF([(rm -f && rm -fr && rm -rf) 2>/dev/null], [], [am__rm_f_notfound='""']) 844 AC_SUBST(am__rm_f_notfound) 845 ]) 846 847 # Copyright (C) 2001-2024 Free Software Foundation, Inc. 870 848 # 871 849 # This file is free software; the Free Software Foundation … … 886 864 # Check to make sure that the build environment is sane. -*- Autoconf -*- 887 865 888 # Copyright (C) 1996-2021 Free Software Foundation, Inc. 889 # 890 # This file is free software; the Free Software Foundation 891 # gives unlimited permission to copy and/or distribute it, 892 # with or without modifications, as long as this notice is preserved. 866 # Copyright (C) 1996-2024 Free Software Foundation, Inc. 867 # 868 # This file is free software; the Free Software Foundation 869 # gives unlimited permission to copy and/or distribute it, 870 # with or without modifications, as long as this notice is preserved. 871 872 # _AM_SLEEP_FRACTIONAL_SECONDS 873 # ---------------------------- 874 AC_DEFUN([_AM_SLEEP_FRACTIONAL_SECONDS], [dnl 875 AC_CACHE_CHECK([whether sleep supports fractional seconds], 876 am_cv_sleep_fractional_seconds, [dnl 877 AS_IF([sleep 0.001 2>/dev/null], [am_cv_sleep_fractional_seconds=yes], 878 [am_cv_sleep_fractional_seconds=no]) 879 ])]) 880 881 # _AM_FILESYSTEM_TIMESTAMP_RESOLUTION 882 # ----------------------------------- 883 # Determine the filesystem's resolution for file modification 884 # timestamps. The coarsest we know of is FAT, with a resolution 885 # of only two seconds, even with the most recent "exFAT" extensions. 886 # The finest (e.g. ext4 with large inodes, XFS, ZFS) is one 887 # nanosecond, matching clock_gettime. However, it is probably not 888 # possible to delay execution of a shell script for less than one 889 # millisecond, due to process creation overhead and scheduling 890 # granularity, so we don't check for anything finer than that. (See below.) 891 AC_DEFUN([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION], [dnl 892 AC_REQUIRE([_AM_SLEEP_FRACTIONAL_SECONDS]) 893 AC_CACHE_CHECK([filesystem timestamp resolution], 894 am_cv_filesystem_timestamp_resolution, [dnl 895 # Default to the worst case. 896 am_cv_filesystem_timestamp_resolution=2 897 898 # Only try to go finer than 1 sec if sleep can do it. 899 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 900 # - 1 sec is not much of a win compared to 2 sec, and 901 # - it takes 2 seconds to perform the test whether 1 sec works. 902 # 903 # Instead, just use the default 2s on platforms that have 1s resolution, 904 # accept the extra 1s delay when using $sleep in the Automake tests, in 905 # exchange for not incurring the 2s delay for running the test for all 906 # packages. 907 # 908 am_try_resolutions= 909 if test "$am_cv_sleep_fractional_seconds" = yes; then 910 # Even a millisecond often causes a bunch of false positives, 911 # so just try a hundredth of a second. The time saved between .001 and 912 # .01 is not terribly consequential. 913 am_try_resolutions="0.01 0.1 $am_try_resolutions" 914 fi 915 916 # In order to catch current-generation FAT out, we must *modify* files 917 # that already exist; the *creation* timestamp is finer. Use names 918 # that make ls -t sort them differently when they have equal 919 # timestamps than when they have distinct timestamps, keeping 920 # in mind that ls -t prints the *newest* file first. 921 rm -f conftest.ts? 922 : > conftest.ts1 923 : > conftest.ts2 924 : > conftest.ts3 925 926 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 927 # clobber the current shell's arguments. (Outer-level square brackets 928 # are removed by m4; they're present so that m4 does not expand 929 # <dollar><star>; be careful, easy to get confused.) 930 if ( 931 set X `[ls -t conftest.ts[12]]` && 932 { 933 test "$[]*" != "X conftest.ts1 conftest.ts2" || 934 test "$[]*" != "X conftest.ts2 conftest.ts1"; 935 } 936 ); then :; else 937 # If neither matched, then we have a broken ls. This can happen 938 # if, for instance, CONFIG_SHELL is bash and it inherits a 939 # broken ls alias from the environment. This has actually 940 # happened. Such a system could not be considered "sane". 941 _AS_ECHO_UNQUOTED( 942 ["Bad output from ls -t: \"`[ls -t conftest.ts[12]]`\""], 943 [AS_MESSAGE_LOG_FD]) 944 AC_MSG_FAILURE([ls -t produces unexpected output. 945 Make sure there is not a broken ls alias in your environment.]) 946 fi 947 948 for am_try_res in $am_try_resolutions; do 949 # Any one fine-grained sleep might happen to cross the boundary 950 # between two values of a coarser actual resolution, but if we do 951 # two fine-grained sleeps in a row, at least one of them will fall 952 # entirely within a coarse interval. 953 echo alpha > conftest.ts1 954 sleep $am_try_res 955 echo beta > conftest.ts2 956 sleep $am_try_res 957 echo gamma > conftest.ts3 958 959 # We assume that 'ls -t' will make use of high-resolution 960 # timestamps if the operating system supports them at all. 961 if (set X `ls -t conftest.ts?` && 962 test "$[]2" = conftest.ts3 && 963 test "$[]3" = conftest.ts2 && 964 test "$[]4" = conftest.ts1); then 965 # 966 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 967 # because we don't need to test make. 968 make_ok=true 969 if test $am_try_res != 1; then 970 # But if we've succeeded so far with a subsecond resolution, we 971 # have one more thing to check: make. It can happen that 972 # everything else supports the subsecond mtimes, but make doesn't; 973 # notably on macOS, which ships make 3.81 from 2006 (the last one 974 # released under GPLv2). https://bugs.gnu.org/68808 975 # 976 # We test $MAKE if it is defined in the environment, else "make". 977 # It might get overridden later, but our hope is that in practice 978 # it does not matter: it is the system "make" which is (by far) 979 # the most likely to be broken, whereas if the user overrides it, 980 # probably they did so with a better, or at least not worse, make. 981 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 982 # 983 # Create a Makefile (real tab character here): 984 rm -f conftest.mk 985 echo 'conftest.ts1: conftest.ts2' >conftest.mk 986 echo ' touch conftest.ts2' >>conftest.mk 987 # 988 # Now, running 989 # touch conftest.ts1; touch conftest.ts2; make 990 # should touch ts1 because ts2 is newer. This could happen by luck, 991 # but most often, it will fail if make's support is insufficient. So 992 # test for several consecutive successes. 993 # 994 # (We reuse conftest.ts[12] because we still want to modify existing 995 # files, not create new ones, per above.) 996 n=0 997 make=${MAKE-make} 998 until test $n -eq 3; do 999 echo one > conftest.ts1 1000 sleep $am_try_res 1001 echo two > conftest.ts2 # ts2 should now be newer than ts1 1002 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 1003 make_ok=false 1004 break # out of $n loop 1005 fi 1006 n=`expr $n + 1` 1007 done 1008 fi 1009 # 1010 if $make_ok; then 1011 # Everything we know to check worked out, so call this resolution good. 1012 am_cv_filesystem_timestamp_resolution=$am_try_res 1013 break # out of $am_try_res loop 1014 fi 1015 # Otherwise, we'll go on to check the next resolution. 1016 fi 1017 done 1018 rm -f conftest.ts? 1019 # (end _am_filesystem_timestamp_resolution) 1020 ])]) 893 1021 894 1022 # AM_SANITY_CHECK 895 1023 # --------------- 896 1024 AC_DEFUN([AM_SANITY_CHECK], 897 [AC_MSG_CHECKING([whether build environment is sane]) 1025 [AC_REQUIRE([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION]) 1026 # This check should not be cached, as it may vary across builds of 1027 # different projects. 1028 AC_MSG_CHECKING([whether build environment is sane]) 898 1029 # Reject unsafe characters in $srcdir or the absolute working directory 899 1030 # name. Accept space and tab only in the latter. … … 914 1045 # (eg FreeBSD returns the mod time of the symlink's containing 915 1046 # directory). 916 if ( 917 am_has_slept=no 918 for am_try in 1 2; do 919 echo "timestamp, slept: $am_has_slept" > conftest.file 920 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 921 if test "$[*]" = "X"; then 922 # -L didn't work. 923 set X `ls -t "$srcdir/configure" conftest.file` 924 fi 925 if test "$[*]" != "X $srcdir/configure conftest.file" \ 926 && test "$[*]" != "X conftest.file $srcdir/configure"; then 927 928 # If neither matched, then we have a broken ls. This can happen 929 # if, for instance, CONFIG_SHELL is bash and it inherits a 930 # broken ls alias from the environment. This has actually 931 # happened. Such a system could not be considered "sane". 932 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 933 alias in your environment]) 934 fi 935 if test "$[2]" = conftest.file || test $am_try -eq 2; then 936 break 937 fi 938 # Just in case. 939 sleep 1 940 am_has_slept=yes 941 done 942 test "$[2]" = conftest.file 943 ) 944 then 945 # Ok. 946 : 947 else 948 AC_MSG_ERROR([newly created file is older than distributed files! 1047 am_build_env_is_sane=no 1048 am_has_slept=no 1049 rm -f conftest.file 1050 for am_try in 1 2; do 1051 echo "timestamp, slept: $am_has_slept" > conftest.file 1052 if ( 1053 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 1054 if test "$[]*" = "X"; then 1055 # -L didn't work. 1056 set X `ls -t "$srcdir/configure" conftest.file` 1057 fi 1058 test "$[]2" = conftest.file 1059 ); then 1060 am_build_env_is_sane=yes 1061 break 1062 fi 1063 # Just in case. 1064 sleep "$am_cv_filesystem_timestamp_resolution" 1065 am_has_slept=yes 1066 done 1067 1068 AC_MSG_RESULT([$am_build_env_is_sane]) 1069 if test "$am_build_env_is_sane" = no; then 1070 AC_MSG_ERROR([newly created file is older than distributed files! 949 1071 Check your system clock]) 950 1072 fi 951 AC_MSG_RESULT([yes]) 1073 952 1074 # If we didn't sleep, we still need to ensure time stamps of config.status and 953 1075 # generated files are strictly newer. 954 1076 am_sleep_pid= 955 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 956 ( sleep 1) &1077 AS_IF([test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1],, [dnl 1078 ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 957 1079 am_sleep_pid=$! 958 fi 1080 ]) 959 1081 AC_CONFIG_COMMANDS_PRE( 960 1082 [AC_MSG_CHECKING([that generated files are newer than configure]) … … 967 1089 ]) 968 1090 969 # Copyright (C) 2009-202 1Free Software Foundation, Inc.970 # 971 # This file is free software; the Free Software Foundation 972 # gives unlimited permission to copy and/or distribute it, 973 # with or without modifications, as long as this notice is preserved. 974 975 # AM_SILENT_RULES([DEFAULT])976 # ---------------- ----------977 # Enable less verbose build rules ; with the default set to DEFAULT978 # ("yes" being less verbose, "no" or empty being verbose). 979 AC_DEFUN([AM_SILENT_RULES], 980 [AC_ARG_ENABLE([silent-rules], [dnl1091 # Copyright (C) 2009-2024 Free Software Foundation, Inc. 1092 # 1093 # This file is free software; the Free Software Foundation 1094 # gives unlimited permission to copy and/or distribute it, 1095 # with or without modifications, as long as this notice is preserved. 1096 1097 # _AM_SILENT_RULES 1098 # ---------------- 1099 # Enable less verbose build rules support. 1100 AC_DEFUN([_AM_SILENT_RULES], 1101 [AM_DEFAULT_VERBOSITY=1 1102 AC_ARG_ENABLE([silent-rules], [dnl 981 1103 AS_HELP_STRING( 982 1104 [--enable-silent-rules], … … 986 1108 [verbose build output (undo: "make V=0")])dnl 987 1109 ]) 988 case $enable_silent_rules in @%:@ (((989 yes) AM_DEFAULT_VERBOSITY=0;;990 no) AM_DEFAULT_VERBOSITY=1;;991 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;992 esac993 1110 dnl 994 1111 dnl A few 'make' implementations (e.g., NonStop OS and NextStep) … … 1009 1126 am_cv_make_support_nested_variables=no 1010 1127 fi]) 1011 if test $am_cv_make_support_nested_variables = yes; then1012 dnl Using '$V' instead of '$(V)' breaks IRIX make.1013 AM_V='$(V)'1014 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'1015 else1016 AM_V=$AM_DEFAULT_VERBOSITY1017 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY1018 fi1019 1128 AC_SUBST([AM_V])dnl 1020 1129 AM_SUBST_NOTMAKE([AM_V])dnl … … 1025 1134 AC_SUBST([AM_BACKSLASH])dnl 1026 1135 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 1027 ]) 1028 1029 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 1136 dnl Delay evaluation of AM_DEFAULT_VERBOSITY to the end to allow multiple calls 1137 dnl to AM_SILENT_RULES to change the default value. 1138 AC_CONFIG_COMMANDS_PRE([dnl 1139 case $enable_silent_rules in @%:@ ((( 1140 yes) AM_DEFAULT_VERBOSITY=0;; 1141 no) AM_DEFAULT_VERBOSITY=1;; 1142 esac 1143 if test $am_cv_make_support_nested_variables = yes; then 1144 dnl Using '$V' instead of '$(V)' breaks IRIX make. 1145 AM_V='$(V)' 1146 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1147 else 1148 AM_V=$AM_DEFAULT_VERBOSITY 1149 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1150 fi 1151 ])dnl 1152 ]) 1153 1154 # AM_SILENT_RULES([DEFAULT]) 1155 # -------------------------- 1156 # Set the default verbosity level to DEFAULT ("yes" being less verbose, "no" or 1157 # empty being verbose). 1158 AC_DEFUN([AM_SILENT_RULES], 1159 [AC_REQUIRE([_AM_SILENT_RULES]) 1160 AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1])]) 1161 1162 # Copyright (C) 2001-2024 Free Software Foundation, Inc. 1030 1163 # 1031 1164 # This file is free software; the Free Software Foundation … … 1055 1188 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1056 1189 1057 # Copyright (C) 2006-202 1Free Software Foundation, Inc.1190 # Copyright (C) 2006-2024 Free Software Foundation, Inc. 1058 1191 # 1059 1192 # This file is free software; the Free Software Foundation … … 1074 1207 # Check how to create a tarball. -*- Autoconf -*- 1075 1208 1076 # Copyright (C) 2004-202 1Free Software Foundation, Inc.1209 # Copyright (C) 2004-2024 Free Software Foundation, Inc. 1077 1210 # 1078 1211 # This file is free software; the Free Software Foundation … … 1120 1253 am_gid=`id -g || echo unknown` 1121 1254 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1122 if test $am_uid -le $am_max_uid; then 1123 AC_MSG_RESULT([yes]) 1255 if test x$am_uid = xunknown; then 1256 AC_MSG_WARN([ancient id detected; assuming current UID is ok, but dist-ustar might not work]) 1257 elif test $am_uid -le $am_max_uid; then 1258 AC_MSG_RESULT([yes]) 1124 1259 else 1125 1126 1260 AC_MSG_RESULT([no]) 1261 _am_tools=none 1127 1262 fi 1128 1263 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1129 if test $am_gid -le $am_max_gid; then 1130 AC_MSG_RESULT([yes]) 1264 if test x$gm_gid = xunknown; then 1265 AC_MSG_WARN([ancient id detected; assuming current GID is ok, but dist-ustar might not work]) 1266 elif test $am_gid -le $am_max_gid; then 1267 AC_MSG_RESULT([yes]) 1131 1268 else 1132 1269 AC_MSG_RESULT([no]) … … 1205 1342 ]) # _AM_PROG_TAR 1206 1343 1344 # Copyright (C) 2022-2024 Free Software Foundation, Inc. 1345 # 1346 # This file is free software; the Free Software Foundation 1347 # gives unlimited permission to copy and/or distribute it, 1348 # with or without modifications, as long as this notice is preserved. 1349 1350 # _AM_PROG_XARGS_N 1351 # ---------------- 1352 # Check whether 'xargs -n' works. It should work everywhere, so the fallback 1353 # is not optimized at all as we never expect to use it. 1354 AC_DEFUN([_AM_PROG_XARGS_N], 1355 [AC_CACHE_CHECK([xargs -n works], am_cv_xargs_n_works, [dnl 1356 AS_IF([test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 1357 3"], [am_cv_xargs_n_works=yes], [am_cv_xargs_n_works=no])]) 1358 AS_IF([test "$am_cv_xargs_n_works" = yes], [am__xargs_n='xargs -n'], [dnl 1359 am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "$@" "$am__xargs_n_arg"; done; }' 1360 ])dnl 1361 AC_SUBST(am__xargs_n) 1362 ]) 1363 1207 1364 m4_include([scripts/autoconf/libtool.m4]) 1208 1365 m4_include([scripts/autoconf/ltoptions.m4]) -
trunk/src/libs/libpng-1.6.45/arm/arm_init.c
r103316 r107813 1 2 1 /* arm_init.c - NEON optimised filter functions 3 2 * -
trunk/src/libs/libpng-1.6.45/arm/filter_neon.S
r96425 r107813 1 2 /* filter_neon.S - NEON optimised filter functions 1 /* filter_neon.S - placeholder file 3 2 * 4 * Copyright (c) 2018 Cosmin Truta 5 * Copyright (c) 2014,2017 Glenn Randers-Pehrson 6 * Written by Mans Rullgard, 2011. 3 * Copyright (c) 2024 Cosmin Truta 7 4 * 8 5 * This code is released under the libpng license. 9 6 * For conditions of distribution and use, see the disclaimer 10 7 * and license in png.h 8 */ 9 10 /* IMPORTANT NOTE: 11 * 12 * Historically, the hand-coded assembler implementation of Neon optimizations 13 * in this module had not been in sync with the intrinsics-based implementation 14 * in filter_neon_intrinsics.c and palette_neon_intrinsics.c, at least since 15 * the introduction of riffled palette optimizations. Moreover, the assembler 16 * code used to work on 32-bit ARM only, and it caused problems, even if empty, 17 * on 64-bit ARM. 18 * 19 * All references to this module from our internal build scripts and projects 20 * have been removed. 21 * 22 * For the external projects that might still expect this module to be present, 23 * we leave this stub in place, for the remaining lifetime of libpng-1.6.x. 24 * Everything should continue to function normally, as long as there are no 25 * deliberate attempts to use the old hand-made assembler code. A build error 26 * will be raised otherwise. 11 27 */ 12 28 … … 17 33 #include "../pngpriv.h" 18 34 19 #if (defined(__linux__) || defined(__FreeBSD__)) && defined(__ELF__) 20 .section .note.GNU-stack,"",%progbits /* mark stack as non-executable */ 35 #ifdef PNG_READ_SUPPORTED 36 #if PNG_ARM_NEON_IMPLEMENTATION == 2 /* hand-coded assembler */ 37 #if PNG_ARM_NEON_OPT > 0 38 39 #if defined(__clang__) 40 #define GNUC_VERSION 0 /* not gcc, although it might pretend to be */ 41 #elif defined(__GNUC__) 42 #define GNUC_MAJOR (__GNUC__ + 0) 43 #define GNUC_MINOR (__GNUC_MINOR__ + 0) 44 #define GNUC_PATCHLEVEL (__GNUC_PATCHLEVEL__ + 0) 45 #define GNUC_VERSION (GNUC_MAJOR * 10000 + GNUC_MINOR * 100 + GNUC_PATCHLEVEL) 46 #else 47 #define GNUC_VERSION 0 /* not gcc */ 21 48 #endif 22 49 23 #ifdef PNG_READ_SUPPORTED 24 25 /* Assembler NEON support - only works for 32-bit ARM (i.e. it does not work for 26 * ARM64). The code in arm/filter_neon_intrinsics.c supports ARM64, however it 27 * only works if -mfpu=neon is specified on the GCC command line. See pngpriv.h 28 * for the logic which sets PNG_USE_ARM_NEON_ASM: 29 */ 30 #if PNG_ARM_NEON_IMPLEMENTATION == 2 /* hand-coded assembler */ 31 32 #if PNG_ARM_NEON_OPT > 0 33 34 #ifdef __ELF__ 35 # define ELF 50 #if (GNUC_VERSION > 0) && (GNUC_VERSION < 40300) 51 #error "PNG_ARM_NEON is not supported with gcc versions earlier than 4.3.0" 52 #elif GNUC_VERSION == 40504 53 #error "PNG_ARM_NEON is not supported with gcc version 4.5.4" 36 54 #else 37 # define ELF @55 #error "Please use 'arm/*_neon_intrinsics.c' for PNG_ARM_NEON support" 38 56 #endif 39 57 40 .arch armv7-a41 .fpu neon42 43 .macro func name, export=044 .macro endfunc45 ELF .size \name, . - \name46 .endfunc47 .purgem endfunc48 .endm49 .text50 51 /* Explicitly specifying alignment here because some versions of52 * GAS don't align code correctly. This is harmless in correctly53 * written versions of GAS.54 */55 .align 256 57 .if \export58 .global \name59 .endif60 ELF .type \name, STT_FUNC61 .func \name62 \name:63 .endm64 65 func png_read_filter_row_sub4_neon, export=166 ldr r3, [r0, #4] @ rowbytes67 vmov.i8 d3, #068 1:69 vld4.32 {d4[],d5[],d6[],d7[]}, [r1,:128]70 vadd.u8 d0, d3, d471 vadd.u8 d1, d0, d572 vadd.u8 d2, d1, d673 vadd.u8 d3, d2, d774 vst4.32 {d0[0],d1[0],d2[0],d3[0]},[r1,:128]!75 subs r3, r3, #1676 bgt 1b77 78 bx lr79 endfunc80 81 func png_read_filter_row_sub3_neon, export=182 ldr r3, [r0, #4] @ rowbytes83 vmov.i8 d3, #084 mov r0, r185 mov r2, #386 mov r12, #1287 vld1.8 {q11}, [r0], r1288 1:89 vext.8 d5, d22, d23, #390 vadd.u8 d0, d3, d2291 vext.8 d6, d22, d23, #692 vadd.u8 d1, d0, d593 vext.8 d7, d23, d23, #194 vld1.8 {q11}, [r0], r1295 vst1.32 {d0[0]}, [r1,:32], r296 vadd.u8 d2, d1, d697 vst1.32 {d1[0]}, [r1], r298 vadd.u8 d3, d2, d799 vst1.32 {d2[0]}, [r1], r2100 vst1.32 {d3[0]}, [r1], r2101 subs r3, r3, #12102 bgt 1b103 104 bx lr105 endfunc106 107 func png_read_filter_row_up_neon, export=1108 ldr r3, [r0, #4] @ rowbytes109 1:110 vld1.8 {q0}, [r1,:128]111 vld1.8 {q1}, [r2,:128]!112 vadd.u8 q0, q0, q1113 vst1.8 {q0}, [r1,:128]!114 subs r3, r3, #16115 bgt 1b116 117 bx lr118 endfunc119 120 func png_read_filter_row_avg4_neon, export=1121 ldr r12, [r0, #4] @ rowbytes122 vmov.i8 d3, #0123 1:124 vld4.32 {d4[],d5[],d6[],d7[]}, [r1,:128]125 vld4.32 {d16[],d17[],d18[],d19[]},[r2,:128]!126 vhadd.u8 d0, d3, d16127 vadd.u8 d0, d0, d4128 vhadd.u8 d1, d0, d17129 vadd.u8 d1, d1, d5130 vhadd.u8 d2, d1, d18131 vadd.u8 d2, d2, d6132 vhadd.u8 d3, d2, d19133 vadd.u8 d3, d3, d7134 vst4.32 {d0[0],d1[0],d2[0],d3[0]},[r1,:128]!135 subs r12, r12, #16136 bgt 1b137 138 bx lr139 endfunc140 141 func png_read_filter_row_avg3_neon, export=1142 push {r4,lr}143 ldr r12, [r0, #4] @ rowbytes144 vmov.i8 d3, #0145 mov r0, r1146 mov r4, #3147 mov lr, #12148 vld1.8 {q11}, [r0], lr149 1:150 vld1.8 {q10}, [r2], lr151 vext.8 d5, d22, d23, #3152 vhadd.u8 d0, d3, d20153 vext.8 d17, d20, d21, #3154 vadd.u8 d0, d0, d22155 vext.8 d6, d22, d23, #6156 vhadd.u8 d1, d0, d17157 vext.8 d18, d20, d21, #6158 vadd.u8 d1, d1, d5159 vext.8 d7, d23, d23, #1160 vld1.8 {q11}, [r0], lr161 vst1.32 {d0[0]}, [r1,:32], r4162 vhadd.u8 d2, d1, d18163 vst1.32 {d1[0]}, [r1], r4164 vext.8 d19, d21, d21, #1165 vadd.u8 d2, d2, d6166 vhadd.u8 d3, d2, d19167 vst1.32 {d2[0]}, [r1], r4168 vadd.u8 d3, d3, d7169 vst1.32 {d3[0]}, [r1], r4170 subs r12, r12, #12171 bgt 1b172 173 pop {r4,pc}174 endfunc175 176 .macro paeth rx, ra, rb, rc177 vaddl.u8 q12, \ra, \rb @ a + b178 vaddl.u8 q15, \rc, \rc @ 2*c179 vabdl.u8 q13, \rb, \rc @ pa180 vabdl.u8 q14, \ra, \rc @ pb181 vabd.u16 q15, q12, q15 @ pc182 vcle.u16 q12, q13, q14 @ pa <= pb183 vcle.u16 q13, q13, q15 @ pa <= pc184 vcle.u16 q14, q14, q15 @ pb <= pc185 vand q12, q12, q13 @ pa <= pb && pa <= pc186 vmovn.u16 d28, q14187 vmovn.u16 \rx, q12188 vbsl d28, \rb, \rc189 vbsl \rx, \ra, d28190 .endm191 192 func png_read_filter_row_paeth4_neon, export=1193 ldr r12, [r0, #4] @ rowbytes194 vmov.i8 d3, #0195 vmov.i8 d20, #0196 1:197 vld4.32 {d4[],d5[],d6[],d7[]}, [r1,:128]198 vld4.32 {d16[],d17[],d18[],d19[]},[r2,:128]!199 paeth d0, d3, d16, d20200 vadd.u8 d0, d0, d4201 paeth d1, d0, d17, d16202 vadd.u8 d1, d1, d5203 paeth d2, d1, d18, d17204 vadd.u8 d2, d2, d6205 paeth d3, d2, d19, d18206 vmov d20, d19207 vadd.u8 d3, d3, d7208 vst4.32 {d0[0],d1[0],d2[0],d3[0]},[r1,:128]!209 subs r12, r12, #16210 bgt 1b211 212 bx lr213 endfunc214 215 func png_read_filter_row_paeth3_neon, export=1216 push {r4,lr}217 ldr r12, [r0, #4] @ rowbytes218 vmov.i8 d3, #0219 vmov.i8 d4, #0220 mov r0, r1221 mov r4, #3222 mov lr, #12223 vld1.8 {q11}, [r0], lr224 1:225 vld1.8 {q10}, [r2], lr226 paeth d0, d3, d20, d4227 vext.8 d5, d22, d23, #3228 vadd.u8 d0, d0, d22229 vext.8 d17, d20, d21, #3230 paeth d1, d0, d17, d20231 vst1.32 {d0[0]}, [r1,:32], r4232 vext.8 d6, d22, d23, #6233 vadd.u8 d1, d1, d5234 vext.8 d18, d20, d21, #6235 paeth d2, d1, d18, d17236 vext.8 d7, d23, d23, #1237 vld1.8 {q11}, [r0], lr238 vst1.32 {d1[0]}, [r1], r4239 vadd.u8 d2, d2, d6240 vext.8 d19, d21, d21, #1241 paeth d3, d2, d19, d18242 vst1.32 {d2[0]}, [r1], r4243 vmov d4, d19244 vadd.u8 d3, d3, d7245 vst1.32 {d3[0]}, [r1], r4246 subs r12, r12, #12247 bgt 1b248 249 pop {r4,pc}250 endfunc251 58 #endif /* PNG_ARM_NEON_OPT > 0 */ 252 #endif /* PNG_ARM_NEON_IMPLEMENTATION == 2 (assembler)*/59 #endif /* PNG_ARM_NEON_IMPLEMENTATION == 2 */ 253 60 #endif /* READ */ -
trunk/src/libs/libpng-1.6.45/arm/filter_neon_intrinsics.c
r103316 r107813 1 2 1 /* filter_neon_intrinsics.c - NEON optimised filter functions 3 2 * -
trunk/src/libs/libpng-1.6.45/arm/palette_neon_intrinsics.c
r103316 r107813 1 2 1 /* palette_neon_intrinsics.c - NEON optimised palette expansion functions 3 2 * … … 65 64 png_uint_32 row_width = row_info->width; 66 65 const png_uint_32 *riffled_palette = 67 (const png_uint_32 *)png_ptr->riffled_palette;66 png_aligncastconst(png_const_uint_32p, png_ptr->riffled_palette); 68 67 const png_uint_32 pixels_per_chunk = 4; 69 68 png_uint_32 i; -
trunk/src/libs/libpng-1.6.45/compile
r103316 r107813 2 2 # Wrapper for compilers which do not understand '-c -o'. 3 3 4 scriptversion=20 18-03-07.03; # UTC5 6 # Copyright (C) 1999-202 1Free Software Foundation, Inc.4 scriptversion=2024-06-19.01; # UTC 5 6 # Copyright (C) 1999-2024 Free Software Foundation, Inc. 7 7 # Written by Tom Tromey <[email protected]>. 8 8 # … … 144 144 eat=1 145 145 case $2 in 146 *.o | *. [oO][bB][jJ])146 *.o | *.lo | *.[oO][bB][jJ]) 147 147 func_file_conv "$2" 148 148 set x "$@" -Fo"$file" … … 249 249 250 250 Report bugs to <[email protected]>. 251 GNU Automake home page: <https://www.gnu.org/software/automake/>. 252 General help using GNU software: <https://www.gnu.org/gethelp/>. 251 253 EOF 252 254 exit $? 253 255 ;; 254 256 -v | --v*) 255 echo "compile $scriptversion"257 echo "compile (GNU Automake) $scriptversion" 256 258 exit $? 257 259 ;; 258 260 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ 261 clang-cl | *[/\\]clang-cl | clang-cl.exe | *[/\\]clang-cl.exe | \ 259 262 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) 260 263 func_cl_wrapper "$@" # Doesn't return... -
trunk/src/libs/libpng-1.6.45/config.guess
r103316 r107813 1 1 #! /bin/sh 2 2 # Attempt to guess a canonical system name. 3 # Copyright 1992-202 3Free Software Foundation, Inc.3 # Copyright 1992-2024 Free Software Foundation, Inc. 4 4 5 5 # shellcheck disable=SC2006,SC2268 # see below for rationale 6 6 7 timestamp='202 3-08-22'7 timestamp='2024-01-01' 8 8 9 9 # This file is free software; you can redistribute it and/or modify it … … 61 61 62 62 Originally written by Per Bothner. 63 Copyright 1992-202 3Free Software Foundation, Inc.63 Copyright 1992-2024 Free Software Foundation, Inc. 64 64 65 65 This is free software; see the source for copying conditions. There is NO … … 166 166 #elif defined(__GLIBC__) 167 167 LIBC=gnu 168 #elif defined(__LLVM_LIBC__) 169 LIBC=llvm 168 170 #else 169 171 #include <stdarg.h> … … 1594 1596 GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE 1595 1597 ;; 1598 *:Ironclad:*:*) 1599 GUESS=$UNAME_MACHINE-unknown-ironclad 1600 ;; 1596 1601 esac 1597 1602 -
trunk/src/libs/libpng-1.6.45/config.sub
r103316 r107813 1 1 #! /bin/sh 2 2 # Configuration validation subroutine script. 3 # Copyright 1992-202 3Free Software Foundation, Inc.3 # Copyright 1992-2024 Free Software Foundation, Inc. 4 4 5 5 # shellcheck disable=SC2006,SC2268 # see below for rationale 6 6 7 timestamp='202 3-09-19'7 timestamp='2024-01-01' 8 8 9 9 # This file is free software; you can redistribute it and/or modify it … … 77 77 GNU config.sub ($timestamp) 78 78 79 Copyright 1992-202 3Free Software Foundation, Inc.79 Copyright 1992-2024 Free Software Foundation, Inc. 80 80 81 81 This is free software; see the source for copying conditions. There is NO … … 1223 1223 | mt \ 1224 1224 | msp430 \ 1225 | nanomips* \ 1225 1226 | nds32 | nds32le | nds32be \ 1226 1227 | nfp \ … … 1254 1255 | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ 1255 1256 | vax \ 1257 | vc4 \ 1256 1258 | visium \ 1257 1259 | w65 \ … … 1598 1600 obj=elf 1599 1601 ;; 1600 mips*-* )1602 mips*-*|nanomips*-*) 1601 1603 os= 1602 1604 obj=elf … … 1722 1724 case $os in 1723 1725 # Sometimes we do "kernel-libc", so those need to count as OSes. 1724 musl* | newlib* | relibc* | uclibc*)1726 llvm* | musl* | newlib* | relibc* | uclibc*) 1725 1727 ;; 1726 1728 # Likewise for "kernel-abi" … … 1767 1769 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ 1768 1770 | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ 1769 | fiwix* | mlibc* | cos* | mbr* )1771 | fiwix* | mlibc* | cos* | mbr* | ironclad* ) 1770 1772 ;; 1771 1773 # This one is extra strict with allowed versions 1772 1774 sco3.2v2 | sco3.2v[4-9]* | sco5v6*) 1773 1775 # Don't forget version if it is 3.2v4 or newer. 1776 ;; 1777 # This refers to builds using the UEFI calling convention 1778 # (which depends on the architecture) and PE file format. 1779 # Note that this is both a different calling convention and 1780 # different file format than that of GNU-EFI 1781 # (x86_64-w64-mingw32). 1782 uefi) 1774 1783 ;; 1775 1784 none) … … 1819 1828 # (given a valid OS), if there is a kernel. 1820 1829 case $kernel-$os-$obj in 1821 linux-gnu*- | linux-dietlibc*- | linux-android*- | linux-newlib*- \ 1822 | linux-musl*- | linux-relibc*- | linux-uclibc*- | linux-mlibc*- ) 1830 linux-gnu*- | linux-android*- | linux-dietlibc*- | linux-llvm*- \ 1831 | linux-mlibc*- | linux-musl*- | linux-newlib*- \ 1832 | linux-relibc*- | linux-uclibc*- ) 1823 1833 ;; 1824 1834 uclinux-uclibc*- ) … … 1828 1838 windows*-msvc*-) 1829 1839 ;; 1830 -dietlibc*- | -newlib*- | -musl*- | -relibc*- | -uclibc*- | -mlibc*- ) 1840 -dietlibc*- | -llvm*- | -mlibc*- | -musl*- | -newlib*- | -relibc*- \ 1841 | -uclibc*- ) 1831 1842 # These are just libc implementations, not actual OSes, and thus 1832 1843 # require a kernel. -
trunk/src/libs/libpng-1.6.45/configure
r105469 r107813 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for libpng 1.6.4 3.3 # Generated by GNU Autoconf 2.72 for libpng 1.6.45. 4 4 # 5 5 # Report bugs to <[email protected]>. … … 615 615 PACKAGE_NAME='libpng' 616 616 PACKAGE_TARNAME='libpng' 617 PACKAGE_VERSION='1.6.4 3'618 PACKAGE_STRING='libpng 1.6.4 3'617 PACKAGE_VERSION='1.6.45' 618 PACKAGE_STRING='libpng 1.6.45' 619 619 PACKAGE_BUGREPORT='[email protected]' 620 620 PACKAGE_URL='' … … 754 754 MAINTAINER_MODE_FALSE 755 755 MAINTAINER_MODE_TRUE 756 am__xargs_n 757 am__rm_f_notfound 756 758 AM_BACKSLASH 757 759 AM_DEFAULT_VERBOSITY … … 833 835 enable_shared 834 836 enable_static 837 enable_pic 835 838 with_pic 836 839 enable_fast_install 840 enable_aix_soname 837 841 with_aix_soname 838 842 with_sysroot … … 1418 1422 # This message is too long to be a string in the A/UX 3.1 sh. 1419 1423 cat <<_ACEOF 1420 'configure' configures libpng 1.6.4 3to adapt to many kinds of systems.1424 'configure' configures libpng 1.6.45 to adapt to many kinds of systems. 1421 1425 1422 1426 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1489 1493 if test -n "$ac_init_help"; then 1490 1494 case $ac_init_help in 1491 short | recursive ) echo "Configuration of libpng 1.6.4 3:";;1495 short | recursive ) echo "Configuration of libpng 1.6.45:";; 1492 1496 esac 1493 1497 cat <<\_ACEOF … … 1508 1512 --enable-shared[=PKGS] build shared libraries [default=yes] 1509 1513 --enable-static[=PKGS] build static libraries [default=yes] 1514 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1515 both] 1510 1516 --enable-fast-install[=PKGS] 1511 1517 optimize for fast installation [default=yes] 1518 --enable-aix-soname=aix|svr4|both 1519 shared library versioning (aka "SONAME") variant to 1520 provide on AIX, [default=aix]. 1512 1521 --disable-libtool-lock avoid locking (might break parallel builds) 1513 1522 --disable-tests do not build the test programs (default is to build) … … 1587 1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1588 1597 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1589 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use1590 both]1591 --with-aix-soname=aix|svr4|both1592 shared library versioning (aka "SONAME") variant to1593 provide on AIX, [default=aix].1594 1598 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1595 1599 compiler's sysroot if not specified). … … 1686 1690 if $ac_init_version; then 1687 1691 cat <<\_ACEOF 1688 libpng configure 1.6.4 31692 libpng configure 1.6.45 1689 1693 generated by GNU Autoconf 2.72 1690 1694 … … 1949 1953 running configure, to aid debugging if configure makes a mistake. 1950 1954 1951 It was created by libpng $as_me 1.6.4 3, which was1955 It was created by libpng $as_me 1.6.45, which was 1952 1956 generated by GNU Autoconf 2.72. Invocation command line was 1953 1957 … … 2730 2734 # 1.12.2 fixes a security issue in 1.11.2 and 1.12.1 2731 2735 # 1.13 is required for parallel tests 2732 am__api_version='1.1 6'2736 am__api_version='1.17' 2733 2737 2734 2738 … … 2833 2837 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2834 2838 2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2840 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2841 if test ${am_cv_sleep_fractional_seconds+y} 2842 then : 2843 printf %s "(cached) " >&6 2844 else case e in #( 2845 e) if sleep 0.001 2>/dev/null 2846 then : 2847 am_cv_sleep_fractional_seconds=yes 2848 else case e in #( 2849 e) am_cv_sleep_fractional_seconds=no ;; 2850 esac 2851 fi 2852 ;; 2853 esac 2854 fi 2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2856 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2857 2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2859 printf %s "checking filesystem timestamp resolution... " >&6; } 2860 if test ${am_cv_filesystem_timestamp_resolution+y} 2861 then : 2862 printf %s "(cached) " >&6 2863 else case e in #( 2864 e) # Default to the worst case. 2865 am_cv_filesystem_timestamp_resolution=2 2866 2867 # Only try to go finer than 1 sec if sleep can do it. 2868 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2869 # - 1 sec is not much of a win compared to 2 sec, and 2870 # - it takes 2 seconds to perform the test whether 1 sec works. 2871 # 2872 # Instead, just use the default 2s on platforms that have 1s resolution, 2873 # accept the extra 1s delay when using $sleep in the Automake tests, in 2874 # exchange for not incurring the 2s delay for running the test for all 2875 # packages. 2876 # 2877 am_try_resolutions= 2878 if test "$am_cv_sleep_fractional_seconds" = yes; then 2879 # Even a millisecond often causes a bunch of false positives, 2880 # so just try a hundredth of a second. The time saved between .001 and 2881 # .01 is not terribly consequential. 2882 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2883 fi 2884 2885 # In order to catch current-generation FAT out, we must *modify* files 2886 # that already exist; the *creation* timestamp is finer. Use names 2887 # that make ls -t sort them differently when they have equal 2888 # timestamps than when they have distinct timestamps, keeping 2889 # in mind that ls -t prints the *newest* file first. 2890 rm -f conftest.ts? 2891 : > conftest.ts1 2892 : > conftest.ts2 2893 : > conftest.ts3 2894 2895 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2896 # clobber the current shell's arguments. (Outer-level square brackets 2897 # are removed by m4; they're present so that m4 does not expand 2898 # <dollar><star>; be careful, easy to get confused.) 2899 if ( 2900 set X `ls -t conftest.ts[12]` && 2901 { 2902 test "$*" != "X conftest.ts1 conftest.ts2" || 2903 test "$*" != "X conftest.ts2 conftest.ts1"; 2904 } 2905 ); then :; else 2906 # If neither matched, then we have a broken ls. This can happen 2907 # if, for instance, CONFIG_SHELL is bash and it inherits a 2908 # broken ls alias from the environment. This has actually 2909 # happened. Such a system could not be considered "sane". 2910 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2911 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2912 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2913 as_fn_error $? "ls -t produces unexpected output. 2914 Make sure there is not a broken ls alias in your environment. 2915 See 'config.log' for more details" "$LINENO" 5; } 2916 fi 2917 2918 for am_try_res in $am_try_resolutions; do 2919 # Any one fine-grained sleep might happen to cross the boundary 2920 # between two values of a coarser actual resolution, but if we do 2921 # two fine-grained sleeps in a row, at least one of them will fall 2922 # entirely within a coarse interval. 2923 echo alpha > conftest.ts1 2924 sleep $am_try_res 2925 echo beta > conftest.ts2 2926 sleep $am_try_res 2927 echo gamma > conftest.ts3 2928 2929 # We assume that 'ls -t' will make use of high-resolution 2930 # timestamps if the operating system supports them at all. 2931 if (set X `ls -t conftest.ts?` && 2932 test "$2" = conftest.ts3 && 2933 test "$3" = conftest.ts2 && 2934 test "$4" = conftest.ts1); then 2935 # 2936 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2937 # because we don't need to test make. 2938 make_ok=true 2939 if test $am_try_res != 1; then 2940 # But if we've succeeded so far with a subsecond resolution, we 2941 # have one more thing to check: make. It can happen that 2942 # everything else supports the subsecond mtimes, but make doesn't; 2943 # notably on macOS, which ships make 3.81 from 2006 (the last one 2944 # released under GPLv2). https://bugs.gnu.org/68808 2945 # 2946 # We test $MAKE if it is defined in the environment, else "make". 2947 # It might get overridden later, but our hope is that in practice 2948 # it does not matter: it is the system "make" which is (by far) 2949 # the most likely to be broken, whereas if the user overrides it, 2950 # probably they did so with a better, or at least not worse, make. 2951 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2952 # 2953 # Create a Makefile (real tab character here): 2954 rm -f conftest.mk 2955 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2956 echo ' touch conftest.ts2' >>conftest.mk 2957 # 2958 # Now, running 2959 # touch conftest.ts1; touch conftest.ts2; make 2960 # should touch ts1 because ts2 is newer. This could happen by luck, 2961 # but most often, it will fail if make's support is insufficient. So 2962 # test for several consecutive successes. 2963 # 2964 # (We reuse conftest.ts[12] because we still want to modify existing 2965 # files, not create new ones, per above.) 2966 n=0 2967 make=${MAKE-make} 2968 until test $n -eq 3; do 2969 echo one > conftest.ts1 2970 sleep $am_try_res 2971 echo two > conftest.ts2 # ts2 should now be newer than ts1 2972 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2973 make_ok=false 2974 break # out of $n loop 2975 fi 2976 n=`expr $n + 1` 2977 done 2978 fi 2979 # 2980 if $make_ok; then 2981 # Everything we know to check worked out, so call this resolution good. 2982 am_cv_filesystem_timestamp_resolution=$am_try_res 2983 break # out of $am_try_res loop 2984 fi 2985 # Otherwise, we'll go on to check the next resolution. 2986 fi 2987 done 2988 rm -f conftest.ts? 2989 # (end _am_filesystem_timestamp_resolution) 2990 ;; 2991 esac 2992 fi 2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2994 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2995 2996 # This check should not be cached, as it may vary across builds of 2997 # different projects. 2835 2998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2836 2999 printf %s "checking whether build environment is sane... " >&6; } … … 2853 3016 # (eg FreeBSD returns the mod time of the symlink's containing 2854 3017 # directory). 2855 if ( 2856 am_has_slept=no 2857 for am_try in 1 2; do 2858 echo "timestamp, slept: $am_has_slept" > conftest.file 2859 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2860 if test "$*" = "X"; then 2861 # -L didn't work. 2862 set X `ls -t "$srcdir/configure" conftest.file` 2863 fi 2864 if test "$*" != "X $srcdir/configure conftest.file" \ 2865 && test "$*" != "X conftest.file $srcdir/configure"; then 2866 2867 # If neither matched, then we have a broken ls. This can happen 2868 # if, for instance, CONFIG_SHELL is bash and it inherits a 2869 # broken ls alias from the environment. This has actually 2870 # happened. Such a system could not be considered "sane". 2871 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2872 alias in your environment" "$LINENO" 5 2873 fi 2874 if test "$2" = conftest.file || test $am_try -eq 2; then 2875 break 2876 fi 2877 # Just in case. 2878 sleep 1 2879 am_has_slept=yes 2880 done 2881 test "$2" = conftest.file 2882 ) 2883 then 2884 # Ok. 2885 : 2886 else 2887 as_fn_error $? "newly created file is older than distributed files! 3018 am_build_env_is_sane=no 3019 am_has_slept=no 3020 rm -f conftest.file 3021 for am_try in 1 2; do 3022 echo "timestamp, slept: $am_has_slept" > conftest.file 3023 if ( 3024 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3025 if test "$*" = "X"; then 3026 # -L didn't work. 3027 set X `ls -t "$srcdir/configure" conftest.file` 3028 fi 3029 test "$2" = conftest.file 3030 ); then 3031 am_build_env_is_sane=yes 3032 break 3033 fi 3034 # Just in case. 3035 sleep "$am_cv_filesystem_timestamp_resolution" 3036 am_has_slept=yes 3037 done 3038 3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 3040 printf "%s\n" "$am_build_env_is_sane" >&6; } 3041 if test "$am_build_env_is_sane" = no; then 3042 as_fn_error $? "newly created file is older than distributed files! 2888 3043 Check your system clock" "$LINENO" 5 2889 3044 fi 2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2891 printf "%s\n" "yes" >&6; } 3045 2892 3046 # If we didn't sleep, we still need to ensure time stamps of config.status and 2893 3047 # generated files are strictly newer. 2894 3048 am_sleep_pid= 2895 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2896 ( sleep 1 ) & 3049 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 3050 then : 3051 3052 else case e in #( 3053 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2897 3054 am_sleep_pid=$! 3055 ;; 3056 esac 2898 3057 fi 2899 3058 … … 3185 3344 rmdir .tst 2>/dev/null 3186 3345 3346 AM_DEFAULT_VERBOSITY=1 3187 3347 # Check whether --enable-silent-rules was given. 3188 3348 if test ${enable_silent_rules+y} … … 3191 3351 fi 3192 3352 3193 case $enable_silent_rules in # (((3194 yes) AM_DEFAULT_VERBOSITY=0;;3195 no) AM_DEFAULT_VERBOSITY=1;;3196 *) AM_DEFAULT_VERBOSITY=1;;3197 esac3198 3353 am_make=${MAKE-make} 3199 3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 … … 3218 3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3219 3374 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3220 if test $am_cv_make_support_nested_variables = yes; then3221 AM_V='$(V)'3222 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'3223 else3224 AM_V=$AM_DEFAULT_VERBOSITY3225 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY3226 fi3227 3375 AM_BACKSLASH='\' 3376 3377 am__rm_f_notfound= 3378 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3379 then : 3380 3381 else case e in #( 3382 e) am__rm_f_notfound='""' ;; 3383 esac 3384 fi 3385 3386 3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3388 printf %s "checking xargs -n works... " >&6; } 3389 if test ${am_cv_xargs_n_works+y} 3390 then : 3391 printf %s "(cached) " >&6 3392 else case e in #( 3393 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3394 3" 3395 then : 3396 am_cv_xargs_n_works=yes 3397 else case e in #( 3398 e) am_cv_xargs_n_works=no ;; 3399 esac 3400 fi ;; 3401 esac 3402 fi 3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3404 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3405 if test "$am_cv_xargs_n_works" = yes 3406 then : 3407 am__xargs_n='xargs -n' 3408 else case e in #( 3409 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3410 ;; 3411 esac 3412 fi 3228 3413 3229 3414 if test "`cd $srcdir && pwd`" != "`pwd`"; then … … 3249 3434 # Define the identity of the package. 3250 3435 PACKAGE='libpng' 3251 VERSION='1.6.4 3'3436 VERSION='1.6.45' 3252 3437 3253 3438 … … 3310 3495 3311 3496 3312 # POSIX will say in a future version that running "rm -f" with no argument 3313 # is OK; and we want to be able to make that assumption in our Makefile 3314 # recipes. So use an aggressive probe to check that the usage we want is 3315 # actually supported "in the wild" to an acceptable degree. 3316 # See automake bug#10828. 3317 # To make any issue more visible, cause the running configure to be aborted 3318 # by default if the 'rm' program in use doesn't match our expectations; the 3319 # user can still override this though. 3320 if rm -f && rm -fr && rm -rf; then : OK; else 3321 cat >&2 <<'END' 3322 Oops! 3323 3324 Your 'rm' program seems unable to run without file operands specified 3325 on the command line, even when the '-f' option is present. This is contrary 3326 to the behaviour of most rm programs out there, and not conforming with 3327 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3328 3329 Please tell [email protected] about your system, including the value 3330 of your $PATH and any error possibly output before this message. This 3331 can help us improve future automake versions. 3332 3333 END 3334 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3335 echo 'Configuration will proceed anyway, since you have set the' >&2 3336 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3337 echo >&2 3338 else 3339 cat >&2 <<'END' 3340 Aborting the configuration process, to ensure you take notice of the issue. 3341 3342 You can download and install GNU coreutils to get an 'rm' implementation 3343 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3344 3345 If you want to complete the configuration process using your problematic 3346 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3347 to "yes", and re-run configure. 3348 3349 END 3350 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3351 fi 3352 fi 3497 3498 3499 3353 3500 3354 3501 # The following line causes --disable-maintainer-mode to be the default to … … 3382 3529 3383 3530 3384 PNGLIB_VERSION=1.6.4 33531 PNGLIB_VERSION=1.6.45 3385 3532 PNGLIB_MAJOR=1 3386 3533 PNGLIB_MINOR=6 3387 PNGLIB_RELEASE=4 33534 PNGLIB_RELEASE=45 3388 3535 3389 3536 … … 3392 3539 3393 3540 3394 # Check forbasic programs.3541 # Check the basic programs. 3395 3542 ac_ext=c 3396 3543 ac_cpp='$CPP $CPPFLAGS' … … 4645 4792 # or remarks (even with -Werror). So we grep stderr for any message 4646 4793 # that says an option was ignored or not supported. 4647 # When given -MP, icc 7.0 and 7.1 complain thus ly:4794 # When given -MP, icc 7.0 and 7.1 complain thus: 4648 4795 # icc: Command line warning: ignoring option '-M'; no argument required 4649 4796 # The diagnosis changed in icc 8.0: … … 4780 4927 # or remarks (even with -Werror). So we grep stderr for any message 4781 4928 # that says an option was ignored or not supported. 4782 # When given -MP, icc 7.0 and 7.1 complain thus ly:4929 # When given -MP, icc 7.0 and 7.1 complain thus: 4783 4930 # icc: Command line warning: ignoring option '-M'; no argument required 4784 4931 # The diagnosis changed in icc 8.0: … … 5292 5439 printf %s "checking for ld used by $CC... " >&6; } 5293 5440 case $host in 5294 *-*-mingw* )5441 *-*-mingw* | *-*-windows*) 5295 5442 # gcc leaves a trailing carriage return, which upsets mingw 5296 5443 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; … … 5634 5781 5635 5782 5636 macro_version='2. 4.7'5637 macro_revision='2. 4.7'5783 macro_version='2.5.4' 5784 macro_revision='2.5.4' 5638 5785 5639 5786 … … 5696 5843 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5697 5844 case $build_os in 5698 mingw* ) lt_bad_file=conftest.nm/nofile ;;5845 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 5699 5846 *) lt_bad_file=/dev/null ;; 5700 5847 esac … … 5911 6058 ;; 5912 6059 5913 gnu* )5914 # Under GNU Hurd , this test is not required because there is5915 # no limit to the length of command line arguments.6060 gnu* | ironclad*) 6061 # Under GNU Hurd and Ironclad, this test is not required because there 6062 # is no limit to the length of command line arguments. 5916 6063 # Libtool will interpret -1 as no limit whatsoever 5917 6064 lt_cv_sys_max_cmd_len=-1; 5918 6065 ;; 5919 6066 5920 cygwin* | mingw* | cegcc*)6067 cygwin* | mingw* | windows* | cegcc*) 5921 6068 # On Win9x/ME, this test blows up -- it succeeds, but takes 5922 6069 # about 5 minutes as the teststring grows exponentially. … … 5940 6087 ;; 5941 6088 5942 bitrig* |darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)6089 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5943 6090 # This has been around since 386BSD, at least. Likely further. 5944 6091 if test -x /sbin/sysctl; then … … 6083 6230 *-*-mingw* ) 6084 6231 case $build in 6085 *-*-mingw* ) # actually msys6232 *-*-mingw* | *-*-windows* ) # actually msys 6086 6233 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6087 6234 ;; … … 6096 6243 *-*-cygwin* ) 6097 6244 case $build in 6098 *-*-mingw* ) # actually msys6245 *-*-mingw* | *-*-windows* ) # actually msys 6099 6246 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6100 6247 ;; … … 6132 6279 lt_cv_to_tool_file_cmd=func_convert_file_noop 6133 6280 case $host in 6134 *-*-mingw* )6281 *-*-mingw* | *-*-windows* ) 6135 6282 case $build in 6136 *-*-mingw* ) # actually msys6283 *-*-mingw* | *-*-windows* ) # actually msys 6137 6284 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6138 6285 ;; … … 6170 6317 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6171 6318 case $host_os in 6172 cygwin* | mingw* | pw32* | cegcc*)6319 cygwin* | mingw* | windows* | pw32* | cegcc*) 6173 6320 if test yes != "$GCC"; then 6174 6321 reload_cmds=false … … 6192 6339 6193 6340 6194 if test -n "$ac_tool_prefix"; then 6195 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6196 set dummy ${ac_tool_prefix}file; ac_word=$2 6341 # Extract the first word of "file", so it can be a program name with args. 6342 set dummy file; ac_word=$2 6197 6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6198 6344 printf %s "checking for $ac_word... " >&6; } … … 6215 6361 for ac_exec_ext in '' $ac_executable_extensions; do 6216 6362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6217 ac_cv_prog_FILECMD=" ${ac_tool_prefix}file"6363 ac_cv_prog_FILECMD="file" 6218 6364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6219 6365 break 2 … … 6223 6369 IFS=$as_save_IFS 6224 6370 6371 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 6225 6372 fi ;; 6226 6373 esac … … 6235 6382 fi 6236 6383 6237 6238 fi6239 if test -z "$ac_cv_prog_FILECMD"; then6240 ac_ct_FILECMD=$FILECMD6241 # Extract the first word of "file", so it can be a program name with args.6242 set dummy file; ac_word=$26243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56244 printf %s "checking for $ac_word... " >&6; }6245 if test ${ac_cv_prog_ac_ct_FILECMD+y}6246 then :6247 printf %s "(cached) " >&66248 else case e in #(6249 e) if test -n "$ac_ct_FILECMD"; then6250 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.6251 else6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6253 for as_dir in $PATH6254 do6255 IFS=$as_save_IFS6256 case $as_dir in #(((6257 '') as_dir=./ ;;6258 */) ;;6259 *) as_dir=$as_dir/ ;;6260 esac6261 for ac_exec_ext in '' $ac_executable_extensions; do6262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then6263 ac_cv_prog_ac_ct_FILECMD="file"6264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&56265 break 26266 fi6267 done6268 done6269 IFS=$as_save_IFS6270 6271 fi ;;6272 esac6273 fi6274 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD6275 if test -n "$ac_ct_FILECMD"; then6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&56277 printf "%s\n" "$ac_ct_FILECMD" >&6; }6278 else6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&56280 printf "%s\n" "no" >&6; }6281 fi6282 6283 if test "x$ac_ct_FILECMD" = x; then6284 FILECMD=":"6285 else6286 case $cross_compiling:$ac_tool_warned in6287 yes:)6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56289 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6290 ac_tool_warned=yes ;;6291 esac6292 FILECMD=$ac_ct_FILECMD6293 fi6294 else6295 FILECMD="$ac_cv_prog_FILECMD"6296 fi6297 6384 6298 6385 … … 6427 6514 # 'unknown' -- same as none, but documents that we really don't know. 6428 6515 # 'pass_all' -- all dependencies passed with no checks. 6429 # 'test_compile' -- check by making test program.6430 6516 # 'file_magic [[regex]]' -- check by looking for files in library path 6431 6517 # that responds to the $file_magic_cmd with a given extended regex. … … 6454 6540 ;; 6455 6541 6456 mingw* | pw32*)6542 mingw* | windows* | pw32*) 6457 6543 # Base MSYS/MinGW do not provide the 'file' command needed by 6458 6544 # func_win32_libid shell function, so use a weaker test based on 'objdump', … … 6463 6549 else 6464 6550 # Keep this pattern in sync with the one in func_win32_libid. 6465 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64 )'6551 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 6466 6552 lt_cv_file_magic_cmd='$OBJDUMP -f' 6467 6553 fi … … 6536 6622 ;; 6537 6623 6538 netbsd*) 6624 *-mlibc) 6625 lt_cv_deplibs_check_method=pass_all 6626 ;; 6627 6628 netbsd* | netbsdelf*-gnu) 6539 6629 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6540 6630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' … … 6554 6644 ;; 6555 6645 6556 openbsd* | bitrig*)6646 openbsd*) 6557 6647 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6558 6648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' … … 6567 6657 6568 6658 rdos*) 6659 lt_cv_deplibs_check_method=pass_all 6660 ;; 6661 6662 serenity*) 6569 6663 lt_cv_deplibs_check_method=pass_all 6570 6664 ;; … … 6622 6716 if test "$build" = "$host"; then 6623 6717 case $host_os in 6624 mingw* | pw32*)6718 mingw* | windows* | pw32*) 6625 6719 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6626 6720 want_nocaseglob=yes … … 6778 6872 6779 6873 case $host_os in 6780 cygwin* | mingw* | pw32* | cegcc*)6874 cygwin* | mingw* | windows* | pw32* | cegcc*) 6781 6875 # two different shell functions defined in ltmain.sh; 6782 6876 # decide which one to use based on capabilities of $DLLTOOL … … 6809 6903 6810 6904 6905 6906 if test -n "$ac_tool_prefix"; then 6907 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6908 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6910 printf %s "checking for $ac_word... " >&6; } 6911 if test ${ac_cv_prog_RANLIB+y} 6912 then : 6913 printf %s "(cached) " >&6 6914 else case e in #( 6915 e) if test -n "$RANLIB"; then 6916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6917 else 6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6919 for as_dir in $PATH 6920 do 6921 IFS=$as_save_IFS 6922 case $as_dir in #((( 6923 '') as_dir=./ ;; 6924 */) ;; 6925 *) as_dir=$as_dir/ ;; 6926 esac 6927 for ac_exec_ext in '' $ac_executable_extensions; do 6928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6929 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6931 break 2 6932 fi 6933 done 6934 done 6935 IFS=$as_save_IFS 6936 6937 fi ;; 6938 esac 6939 fi 6940 RANLIB=$ac_cv_prog_RANLIB 6941 if test -n "$RANLIB"; then 6942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6943 printf "%s\n" "$RANLIB" >&6; } 6944 else 6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6946 printf "%s\n" "no" >&6; } 6947 fi 6948 6949 6950 fi 6951 if test -z "$ac_cv_prog_RANLIB"; then 6952 ac_ct_RANLIB=$RANLIB 6953 # Extract the first word of "ranlib", so it can be a program name with args. 6954 set dummy ranlib; ac_word=$2 6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6956 printf %s "checking for $ac_word... " >&6; } 6957 if test ${ac_cv_prog_ac_ct_RANLIB+y} 6958 then : 6959 printf %s "(cached) " >&6 6960 else case e in #( 6961 e) if test -n "$ac_ct_RANLIB"; then 6962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6963 else 6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6965 for as_dir in $PATH 6966 do 6967 IFS=$as_save_IFS 6968 case $as_dir in #((( 6969 '') as_dir=./ ;; 6970 */) ;; 6971 *) as_dir=$as_dir/ ;; 6972 esac 6973 for ac_exec_ext in '' $ac_executable_extensions; do 6974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6975 ac_cv_prog_ac_ct_RANLIB="ranlib" 6976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6977 break 2 6978 fi 6979 done 6980 done 6981 IFS=$as_save_IFS 6982 6983 fi ;; 6984 esac 6985 fi 6986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6987 if test -n "$ac_ct_RANLIB"; then 6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6989 printf "%s\n" "$ac_ct_RANLIB" >&6; } 6990 else 6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6992 printf "%s\n" "no" >&6; } 6993 fi 6994 6995 if test "x$ac_ct_RANLIB" = x; then 6996 RANLIB=":" 6997 else 6998 case $cross_compiling:$ac_tool_warned in 6999 yes:) 7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7001 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7002 ac_tool_warned=yes ;; 7003 esac 7004 RANLIB=$ac_ct_RANLIB 7005 fi 7006 else 7007 RANLIB="$ac_cv_prog_RANLIB" 7008 fi 6811 7009 6812 7010 if test -n "$ac_tool_prefix"; then … … 6931 7129 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 6932 7130 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6933 # higher priority because that s what people were doing historically (setting7131 # higher priority because that's what people were doing historically (setting 6934 7132 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6935 7133 # variable obsoleted/removed. … … 7123 7321 7124 7322 7125 if test -n "$ac_tool_prefix"; then7126 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.7127 set dummy ${ac_tool_prefix}ranlib; ac_word=$27128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57129 printf %s "checking for $ac_word... " >&6; }7130 if test ${ac_cv_prog_RANLIB+y}7131 then :7132 printf %s "(cached) " >&67133 else case e in #(7134 e) if test -n "$RANLIB"; then7135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.7136 else7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7138 for as_dir in $PATH7139 do7140 IFS=$as_save_IFS7141 case $as_dir in #(((7142 '') as_dir=./ ;;7143 */) ;;7144 *) as_dir=$as_dir/ ;;7145 esac7146 for ac_exec_ext in '' $ac_executable_extensions; do7147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then7148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"7149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&57150 break 27151 fi7152 done7153 done7154 IFS=$as_save_IFS7155 7156 fi ;;7157 esac7158 fi7159 RANLIB=$ac_cv_prog_RANLIB7160 if test -n "$RANLIB"; then7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&57162 printf "%s\n" "$RANLIB" >&6; }7163 else7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&57165 printf "%s\n" "no" >&6; }7166 fi7167 7168 7169 fi7170 if test -z "$ac_cv_prog_RANLIB"; then7171 ac_ct_RANLIB=$RANLIB7172 # Extract the first word of "ranlib", so it can be a program name with args.7173 set dummy ranlib; ac_word=$27174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57175 printf %s "checking for $ac_word... " >&6; }7176 if test ${ac_cv_prog_ac_ct_RANLIB+y}7177 then :7178 printf %s "(cached) " >&67179 else case e in #(7180 e) if test -n "$ac_ct_RANLIB"; then7181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.7182 else7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7184 for as_dir in $PATH7185 do7186 IFS=$as_save_IFS7187 case $as_dir in #(((7188 '') as_dir=./ ;;7189 */) ;;7190 *) as_dir=$as_dir/ ;;7191 esac7192 for ac_exec_ext in '' $ac_executable_extensions; do7193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then7194 ac_cv_prog_ac_ct_RANLIB="ranlib"7195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&57196 break 27197 fi7198 done7199 done7200 IFS=$as_save_IFS7201 7202 fi ;;7203 esac7204 fi7205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB7206 if test -n "$ac_ct_RANLIB"; then7207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&57208 printf "%s\n" "$ac_ct_RANLIB" >&6; }7209 else7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&57211 printf "%s\n" "no" >&6; }7212 fi7213 7214 if test "x$ac_ct_RANLIB" = x; then7215 RANLIB=":"7216 else7217 case $cross_compiling:$ac_tool_warned in7218 yes:)7219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57220 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7221 ac_tool_warned=yes ;;7222 esac7223 RANLIB=$ac_ct_RANLIB7224 fi7225 else7226 RANLIB="$ac_cv_prog_RANLIB"7227 fi7228 7323 7229 7324 test -z "$RANLIB" && RANLIB=: … … 7240 7335 7241 7336 if test -n "$RANLIB"; then 7242 case $host_os in7243 bitrig* | openbsd*)7244 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"7245 ;;7246 *)7247 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"7248 ;;7249 esac7250 7337 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7338 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7251 7339 fi 7252 7340 … … 7328 7416 symcode='[BCDT]' 7329 7417 ;; 7330 cygwin* | mingw* | pw32* | cegcc*)7418 cygwin* | mingw* | windows* | pw32* | cegcc*) 7331 7419 symcode='[ABCDGISTW]' 7332 7420 ;; … … 7343 7431 ;; 7344 7432 solaris*) 7345 symcode='[B DRT]'7433 symcode='[BCDRT]' 7346 7434 ;; 7347 7435 sco3.2v5*) … … 7407 7495 opt_cr= 7408 7496 case $build_os in 7409 mingw* )7497 mingw* | windows*) 7410 7498 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7411 7499 ;; … … 7458 7546 } 7459 7547 #endif 7460 int main( ){nm_test_var='a';nm_test_func();return(0);}7548 int main(void){nm_test_var='a';nm_test_func();return(0);} 7461 7549 _LT_EOF 7462 7550 … … 7468 7556 # Now try to grab the symbols. 7469 7557 nlist=conftest.nm 7470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7471 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7472 ac_status=$? 7473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7474 test $ac_status = 0; } && test -s "$nlist"; then 7558 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7559 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7475 7560 # Try sorting and uniquifying the output. 7476 7561 if sort "$nlist" | uniq > "$nlist"T; then … … 7643 7728 yes) 7644 7729 if test yes = "$GCC"; then 7645 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7730 # Trim trailing / since we'll always append absolute paths and we want 7731 # to avoid //, if only for less confusing output for the user. 7732 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 7646 7733 fi 7647 7734 ;; #( … … 7860 7947 7861 7948 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7862 s390*-*linux*|s390*-*tpf*|sparc*-*linux* )7949 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 7863 7950 # Find out what ABI is being produced by ac_compile, and set linker 7864 7951 # options accordingly. Note that the listed cases only cover the … … 7879 7966 LD="${LD-ld} -m elf_i386_fbsd" 7880 7967 ;; 7881 x86_64-*linux* )7968 x86_64-*linux*|x86_64-gnu*) 7882 7969 case `$FILECMD conftest.o` in 7883 7970 *x86-64*) … … 7908 7995 LD="${LD-ld} -m elf_x86_64_fbsd" 7909 7996 ;; 7910 x86_64-*linux* )7997 x86_64-*linux*|x86_64-gnu*) 7911 7998 LD="${LD-ld} -m elf_x86_64" 7912 7999 ;; … … 8129 8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8130 8217 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8131 if test ${lt_cv_path_ma infest_tool+y}8218 if test ${lt_cv_path_manifest_tool+y} 8132 8219 then : 8133 8220 printf %s "(cached) " >&6 8134 8221 else case e in #( 8135 e) lt_cv_path_ma infest_tool=no8222 e) lt_cv_path_manifest_tool=no 8136 8223 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8137 8224 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8138 8225 cat conftest.err >&5 8139 8226 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8140 lt_cv_path_ma infest_tool=yes8227 lt_cv_path_manifest_tool=yes 8141 8228 fi 8142 8229 rm -f conftest* ;; 8143 8230 esac 8144 8231 fi 8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_ma infest_tool" >&58146 printf "%s\n" "$lt_cv_path_ma infest_tool" >&6; }8147 if test yes != "$lt_cv_path_ma infest_tool"; then8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 8233 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 8234 if test yes != "$lt_cv_path_manifest_tool"; then 8148 8235 MANIFEST_TOOL=: 8149 8236 fi … … 8740 8827 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8741 8828 8829 # Feature test to disable chained fixups since it is not 8830 # compatible with '-undefined dynamic_lookup' 8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 8832 printf %s "checking for -no_fixup_chains linker flag... " >&6; } 8833 if test ${lt_cv_support_no_fixup_chains+y} 8834 then : 8835 printf %s "(cached) " >&6 8836 else case e in #( 8837 e) save_LDFLAGS=$LDFLAGS 8838 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8840 /* end confdefs.h. */ 8841 8842 int 8843 main (void) 8844 { 8845 8846 ; 8847 return 0; 8848 } 8849 _ACEOF 8850 if ac_fn_c_try_link "$LINENO" 8851 then : 8852 lt_cv_support_no_fixup_chains=yes 8853 else case e in #( 8854 e) lt_cv_support_no_fixup_chains=no 8855 ;; 8856 esac 8857 fi 8858 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8859 conftest$ac_exeext conftest.$ac_ext 8860 LDFLAGS=$save_LDFLAGS 8861 8862 ;; 8863 esac 8864 fi 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 8866 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 8867 8742 8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8743 8869 printf %s "checking for -exported_symbols_list linker flag... " >&6; } … … 8794 8920 $RANLIB libconftest.a 2>&5 8795 8921 cat > conftest.c << _LT_EOF 8796 int main( ) { return 0;}8922 int main(void) { return 0;} 8797 8923 _LT_EOF 8798 8924 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 … … 8823 8949 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8824 8950 *) 8825 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8951 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 8952 if test yes = "$lt_cv_support_no_fixup_chains"; then 8953 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 8954 fi 8955 ;; 8826 8956 esac 8827 8957 ;; … … 8830 8960 _lt_dar_single_mod='$single_module' 8831 8961 fi 8962 _lt_dar_needs_single_mod=no 8963 case $host_os in 8964 rhapsody* | darwin1.*) 8965 _lt_dar_needs_single_mod=yes ;; 8966 darwin*) 8967 # When targeting Mac OS X 10.4 (darwin 8) or later, 8968 # -single_module is the default and -multi_module is unsupported. 8969 # The toolchain on macOS 10.14 (darwin 18) and later cannot 8970 # target any OS version that needs -single_module. 8971 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8972 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 8973 _lt_dar_needs_single_mod=yes ;; 8974 esac 8975 ;; 8976 esac 8832 8977 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8833 8978 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' … … 8923 9068 8924 9069 case $host in 8925 *-*-cygwin* | *-*-mingw* | *-*- pw32* | *-*-cegcc*)9070 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*) 8926 9071 if test -n "$ac_tool_prefix"; then 8927 9072 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. … … 9329 9474 9330 9475 9331 9332 # Check whether --with-pic was given. 9476 # Check whether --enable-pic was given. 9477 if test ${enable_pic+y} 9478 then : 9479 enableval=$enable_pic; lt_p=${PACKAGE-default} 9480 case $enableval in 9481 yes|no) pic_mode=$enableval ;; 9482 *) 9483 pic_mode=default 9484 # Look at the argument we got. We use all the common list separators. 9485 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9486 for lt_pkg in $enableval; do 9487 IFS=$lt_save_ifs 9488 if test "X$lt_pkg" = "X$lt_p"; then 9489 pic_mode=yes 9490 fi 9491 done 9492 IFS=$lt_save_ifs 9493 ;; 9494 esac 9495 else case e in #( 9496 e) # Check whether --with-pic was given. 9333 9497 if test ${with_pic+y} 9334 9498 then : 9335 9499 withval=$with_pic; lt_p=${PACKAGE-default} 9336 9337 9338 9339 9340 9341 9342 9343 IFS=$lt_save_ifs9344 if test "X$lt_pkg" = "X$lt_p"; then9345 pic_mode=yes9346 fi9347 9348 9349 9350 9500 case $withval in 9501 yes|no) pic_mode=$withval ;; 9502 *) 9503 pic_mode=default 9504 # Look at the argument we got. We use all the common list separators. 9505 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9506 for lt_pkg in $withval; do 9507 IFS=$lt_save_ifs 9508 if test "X$lt_pkg" = "X$lt_p"; then 9509 pic_mode=yes 9510 fi 9511 done 9512 IFS=$lt_save_ifs 9513 ;; 9514 esac 9351 9515 else case e in #( 9352 9516 e) pic_mode=default ;; 9517 esac 9518 fi 9519 9520 ;; 9353 9521 esac 9354 9522 fi … … 9398 9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9399 9567 printf %s "checking which variant of shared library versioning to provide... " >&6; } 9400 9401 # Check whether --with-aix-soname was given. 9568 # Check whether --enable-aix-soname was given. 9569 if test ${enable_aix_soname+y} 9570 then : 9571 enableval=$enable_aix_soname; case $enableval in 9572 aix|svr4|both) 9573 ;; 9574 *) 9575 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 9576 ;; 9577 esac 9578 lt_cv_with_aix_soname=$enable_aix_soname 9579 else case e in #( 9580 e) # Check whether --with-aix-soname was given. 9402 9581 if test ${with_aix_soname+y} 9403 9582 then : 9404 9583 withval=$with_aix_soname; case $withval in 9405 aix|svr4|both)9406 ;;9407 *)9408 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 59409 ;;9410 esac9411 lt_cv_with_aix_soname=$with_aix_soname9584 aix|svr4|both) 9585 ;; 9586 *) 9587 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9588 ;; 9589 esac 9590 lt_cv_with_aix_soname=$with_aix_soname 9412 9591 else case e in #( 9413 9592 e) if test ${lt_cv_with_aix_soname+y} … … 9418 9597 esac 9419 9598 fi 9420 9421 with_aix_soname=$lt_cv_with_aix_soname ;; 9422 esac 9423 fi 9424 9599 ;; 9600 esac 9601 fi 9602 9603 enable_aix_soname=$lt_cv_with_aix_soname ;; 9604 esac 9605 fi 9606 9607 with_aix_soname=$enable_aix_soname 9425 9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9426 9609 printf "%s\n" "$with_aix_soname" >&6; } … … 9738 9921 9739 9922 # Code to be used in simple link tests 9740 lt_simple_link_test_code='int main( ){return(0);}'9923 lt_simple_link_test_code='int main(void){return(0);}' 9741 9924 9742 9925 … … 9880 10063 ;; 9881 10064 9882 mingw* | cygwin* | pw32* | os2* | cegcc*)10065 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9883 10066 # This hack is so that the source file can tell whether it is being 9884 10067 # built for inclusion in a dll (and should export symbols for example). … … 9983 10166 ;; 9984 10167 9985 mingw* | cygwin* | pw32* | os2* | cegcc*)10168 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9986 10169 # This hack is so that the source file can tell whether it is being 9987 10170 # built for inclusion in a dll (and should export symbols for example). … … 10022 10205 lt_prog_compiler_wl='-Wl,' 10023 10206 lt_prog_compiler_pic='-KPIC' 10207 lt_prog_compiler_static='-static' 10208 ;; 10209 *flang* | ftn | f18* | f95*) 10210 # Flang compiler. 10211 lt_prog_compiler_wl='-Wl,' 10212 lt_prog_compiler_pic='-fPIC' 10024 10213 lt_prog_compiler_static='-static' 10025 10214 ;; … … 10106 10295 ;; 10107 10296 10297 *-mlibc) 10298 lt_prog_compiler_wl='-Wl,' 10299 lt_prog_compiler_pic='-fPIC' 10300 lt_prog_compiler_static='-static' 10301 ;; 10302 10108 10303 *nto* | *qnx*) 10109 10304 # QNX uses GNU C++, but need to define -shared option too, otherwise … … 10120 10315 rdos*) 10121 10316 lt_prog_compiler_static='-non_shared' 10317 ;; 10318 10319 serenity*) 10122 10320 ;; 10123 10321 … … 10495 10693 10496 10694 case $host_os in 10497 cygwin* | mingw* | pw32* | cegcc*)10695 cygwin* | mingw* | windows* | pw32* | cegcc*) 10498 10696 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10499 10697 # When not using gcc, we currently assume that we are using … … 10506 10704 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10507 10705 with_gnu_ld=yes 10508 ;;10509 openbsd* | bitrig*)10510 with_gnu_ld=no10511 10706 ;; 10512 10707 esac … … 10610 10805 ;; 10611 10806 10612 cygwin* | mingw* | pw32* | cegcc*)10807 cygwin* | mingw* | windows* | pw32* | cegcc*) 10613 10808 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10614 10809 # as there is no search path for DLLs. … … 10620 10815 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 10621 10816 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10817 file_list_spec='@' 10622 10818 10623 10819 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then … … 10639 10835 haiku*) 10640 10836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10641 link_all_deplibs= yes10837 link_all_deplibs=no 10642 10838 ;; 10643 10839 … … 10666 10862 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10667 10863 emximp -o $lib $output_objdir/$libname.def' 10668 old_archive_ From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'10864 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10669 10865 enable_shared_with_static_runtimes=yes 10670 10866 file_list_spec='@' … … 10745 10941 case $cc_basename in 10746 10942 tcc*) 10943 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10747 10944 export_dynamic_flag_spec='-rdynamic' 10748 10945 ;; … … 10765 10962 ;; 10766 10963 10767 netbsd*) 10964 *-mlibc) 10965 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10966 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10967 ;; 10968 10969 netbsd* | netbsdelf*-gnu) 10768 10970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10769 10971 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' … … 11157 11359 ;; 11158 11360 11159 cygwin* | mingw* | pw32* | cegcc*)11361 cygwin* | mingw* | windows* | pw32* | cegcc*) 11160 11362 # When not using gcc, we currently assume that we are using 11161 11363 # Microsoft Visual C++ or Intel C++ Compiler. … … 11174 11376 shrext_cmds=.dll 11175 11377 # FIXME: Setting linknames here is a bad hack. 11176 archive_cmds='$CC - o$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='11378 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11177 11379 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11178 11380 cp "$export_symbols" "$output_objdir/$soname.def"; … … 11181 11383 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11182 11384 fi~ 11183 $CC - o$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~11385 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11184 11386 linknames=' 11185 11387 # The linker will not automatically build a static lib if we build a DLL. … … 11464 11666 ld_shlibs=yes 11465 11667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11668 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11466 11669 ;; 11467 11670 esac 11468 11671 ;; 11469 11672 11470 netbsd*) 11673 *-mlibc) 11674 ;; 11675 11676 netbsd* | netbsdelf*-gnu) 11471 11677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11472 11678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out … … 11490 11696 ;; 11491 11697 11492 openbsd* | bitrig*)11698 openbsd*) 11493 11699 if test -f /usr/libexec/ld.so; then 11494 11700 hardcode_direct=yes … … 11533 11739 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11534 11740 emximp -o $lib $output_objdir/$libname.def' 11535 old_archive_ From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'11741 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11536 11742 enable_shared_with_static_runtimes=yes 11537 11743 file_list_spec='@' … … 11567 11773 archive_cmds_need_lc='no' 11568 11774 hardcode_libdir_separator=: 11775 ;; 11776 11777 serenity*) 11569 11778 ;; 11570 11779 … … 11975 12184 esac 11976 12185 case $host_os in 11977 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;12186 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11978 12187 *) lt_sed_strip_eq='s|=/|/|g' ;; 11979 12188 esac … … 12033 12242 # for these hosts. 12034 12243 case $host_os in 12035 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\12244 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12036 12245 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12037 12246 esac … … 12107 12316 # not want this to be the default eventually. Also, we use the 12108 12317 # versioned .so libs for executables only if there is the -brtl 12109 # linker flag in LDFLAGS as well, or -- with-aix-soname=svr4 only.12318 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 12110 12319 # To allow for filename-based versioning support, we need to create 12111 12320 # libNAME.so.V as an archive file, containing: … … 12201 12410 ;; 12202 12411 12203 cygwin* | mingw* | pw32* | cegcc*)12412 cygwin* | mingw* | windows* | pw32* | cegcc*) 12204 12413 version_type=windows 12205 12414 shrext_cmds=.dll … … 12212 12421 library_names_spec='$libname.dll.a' 12213 12422 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12214 postinstall_cmds='base_file=`basename \$file`~ 12215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12216 dldir=$destdir/`dirname \$dlpath`~ 12217 test -d \$dldir || mkdir -p \$dldir~ 12218 $install_prog $dir/$dlname \$dldir/$dlname~ 12219 chmod a+x \$dldir/$dlname~ 12220 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12221 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12222 fi' 12423 # If user builds GCC with multilib enabled, 12424 # it should just install on $(libdir) 12425 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 12426 if test xyes = x"$multilib"; then 12427 postinstall_cmds='base_file=`basename \$file`~ 12428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12429 dldir=$destdir/`dirname \$dlpath`~ 12430 $install_prog $dir/$dlname $destdir/$dlname~ 12431 chmod a+x $destdir/$dlname~ 12432 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12433 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 12434 fi' 12435 else 12436 postinstall_cmds='base_file=`basename \$file`~ 12437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12438 dldir=$destdir/`dirname \$dlpath`~ 12439 test -d \$dldir || mkdir -p \$dldir~ 12440 $install_prog $dir/$dlname \$dldir/$dlname~ 12441 chmod a+x \$dldir/$dlname~ 12442 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12443 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12444 fi' 12445 fi 12223 12446 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12224 12447 dlpath=$dir/\$dldll~ … … 12233 12456 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12234 12457 ;; 12235 mingw* | cegcc*)12458 mingw* | windows* | cegcc*) 12236 12459 # MinGW DLLs use traditional 'lib' prefix 12237 12460 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' … … 12252 12475 12253 12476 case $build_os in 12254 mingw* )12477 mingw* | windows*) 12255 12478 sys_lib_search_path_spec= 12256 12479 lt_save_ifs=$IFS … … 12359 12582 ;; 12360 12583 esac 12584 case $host_cpu in 12585 powerpc64) 12586 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 12587 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12589 /* end confdefs.h. */ 12590 int test_pointer_size[sizeof (void *) - 5]; 12591 12592 _ACEOF 12593 if ac_fn_c_try_compile "$LINENO" 12594 then : 12361 12595 shlibpath_var=LD_LIBRARY_PATH 12596 else case e in #( 12597 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 12598 esac 12599 fi 12600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12601 ;; 12602 *) 12603 shlibpath_var=LD_LIBRARY_PATH 12604 ;; 12605 esac 12362 12606 case $host_os in 12363 12607 freebsd2.*) … … 12389 12633 shlibpath_var=LIBRARY_PATH 12390 12634 shlibpath_overrides_runpath=no 12391 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12392 hardcode_into_libs=yes 12635 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 12636 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 12637 hardcode_into_libs=no 12393 12638 ;; 12394 12639 … … 12500 12745 need_lib_prefix=no 12501 12746 need_version=no 12502 library_names_spec='$libname$release$shared_ext '12747 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 12503 12748 soname_spec='$libname$release$shared_ext' 12504 12749 finish_cmds= … … 12512 12757 12513 12758 dynamic_linker='Android linker' 12514 # Don't embed -rpath directories since the linker doesn't support them. 12515 hardcode_libdir_flag_spec='-L$libdir' 12759 # -rpath works at least for libraries that are not overridden by 12760 # libraries installed in system locations. 12761 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12516 12762 ;; 12517 12763 … … 12570 12816 hardcode_into_libs=yes 12571 12817 12572 # Ideally, we could use ldconfig to report *all* director es which are12818 # Ideally, we could use ldconfig to report *all* directories which are 12573 12819 # searched for libraries, however this is still not possible. Aside from not 12574 12820 # being certain /sbin/ldconfig is available, command … … 12588 12834 # assume the GNU/Linux dynamic linker is in use. 12589 12835 dynamic_linker='GNU/Linux ld.so' 12836 ;; 12837 12838 netbsdelf*-gnu) 12839 version_type=linux 12840 need_lib_prefix=no 12841 need_version=no 12842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12843 soname_spec='$libname$release$shared_ext$major' 12844 shlibpath_var=LD_LIBRARY_PATH 12845 shlibpath_overrides_runpath=no 12846 hardcode_into_libs=yes 12847 dynamic_linker='NetBSD ld.elf_so' 12590 12848 ;; 12591 12849 … … 12608 12866 ;; 12609 12867 12868 *-mlibc) 12869 version_type=linux # correct to gnu/linux during the next big refactor 12870 need_lib_prefix=no 12871 need_version=no 12872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12873 soname_spec='$libname$release$shared_ext$major' 12874 dynamic_linker='mlibc ld.so' 12875 shlibpath_var=LD_LIBRARY_PATH 12876 shlibpath_overrides_runpath=no 12877 hardcode_into_libs=yes 12878 ;; 12879 12610 12880 newsos6) 12611 12881 version_type=linux # correct to gnu/linux during the next big refactor … … 12627 12897 ;; 12628 12898 12629 openbsd* | bitrig*)12899 openbsd*) 12630 12900 version_type=sunos 12631 12901 sys_lib_dlsearch_path_spec=/usr/lib … … 12687 12957 ;; 12688 12958 12959 serenity*) 12960 version_type=linux # correct to gnu/linux during the next big refactor 12961 need_lib_prefix=no 12962 need_version=no 12963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12964 soname_spec='$libname$release$shared_ext$major' 12965 shlibpath_var=LD_LIBRARY_PATH 12966 shlibpath_overrides_runpath=no 12967 dynamic_linker='SerenityOS LibELF' 12968 ;; 12969 12689 12970 solaris*) 12690 12971 version_type=linux # correct to gnu/linux during the next big refactor … … 12784 13065 ;; 12785 13066 13067 emscripten*) 13068 version_type=none 13069 need_lib_prefix=no 13070 need_version=no 13071 library_names_spec='$libname$release$shared_ext' 13072 soname_spec='$libname$release$shared_ext' 13073 finish_cmds= 13074 dynamic_linker="Emscripten linker" 13075 lt_prog_compiler_wl= 13076 lt_prog_compiler_pic= 13077 lt_prog_compiler_static= 13078 13079 13080 if test yes = "$GCC"; then 13081 lt_prog_compiler_wl='-Wl,' 13082 lt_prog_compiler_static='-static' 13083 13084 case $host_os in 13085 aix*) 13086 # All AIX code is PIC. 13087 if test ia64 = "$host_cpu"; then 13088 # AIX 5 now supports IA64 processor 13089 lt_prog_compiler_static='-Bstatic' 13090 fi 13091 lt_prog_compiler_pic='-fPIC' 13092 ;; 13093 13094 amigaos*) 13095 case $host_cpu in 13096 powerpc) 13097 # see comment about AmigaOS4 .so support 13098 lt_prog_compiler_pic='-fPIC' 13099 ;; 13100 m68k) 13101 # FIXME: we need at least 68020 code to build shared libraries, but 13102 # adding the '-m68020' flag to GCC prevents building anything better, 13103 # like '-m68040'. 13104 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 13105 ;; 13106 esac 13107 ;; 13108 13109 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13110 # PIC is the default for these OSes. 13111 ;; 13112 13113 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 13114 # This hack is so that the source file can tell whether it is being 13115 # built for inclusion in a dll (and should export symbols for example). 13116 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13117 # (--disable-auto-import) libraries 13118 lt_prog_compiler_pic='-DDLL_EXPORT' 13119 case $host_os in 13120 os2*) 13121 lt_prog_compiler_static='$wl-static' 13122 ;; 13123 esac 13124 ;; 13125 13126 darwin* | rhapsody*) 13127 # PIC is the default on this platform 13128 # Common symbols not allowed in MH_DYLIB files 13129 lt_prog_compiler_pic='-fno-common' 13130 ;; 13131 13132 haiku*) 13133 # PIC is the default for Haiku. 13134 # The "-static" flag exists, but is broken. 13135 lt_prog_compiler_static= 13136 ;; 13137 13138 hpux*) 13139 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13140 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13141 # sets the default TLS model and affects inlining. 13142 case $host_cpu in 13143 hppa*64*) 13144 # +Z the default 13145 ;; 13146 *) 13147 lt_prog_compiler_pic='-fPIC' 13148 ;; 13149 esac 13150 ;; 13151 13152 interix[3-9]*) 13153 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13154 # Instead, we relocate shared libraries at runtime. 13155 ;; 13156 13157 msdosdjgpp*) 13158 # Just because we use GCC doesn't mean we suddenly get shared libraries 13159 # on systems that don't support them. 13160 lt_prog_compiler_can_build_shared=no 13161 enable_shared=no 13162 ;; 13163 13164 *nto* | *qnx*) 13165 # QNX uses GNU C++, but need to define -shared option too, otherwise 13166 # it will coredump. 13167 lt_prog_compiler_pic='-fPIC -shared' 13168 ;; 13169 13170 sysv4*MP*) 13171 if test -d /usr/nec; then 13172 lt_prog_compiler_pic=-Kconform_pic 13173 fi 13174 ;; 13175 13176 *) 13177 lt_prog_compiler_pic='-fPIC' 13178 ;; 13179 esac 13180 13181 case $cc_basename in 13182 nvcc*) # Cuda Compiler Driver 2.2 13183 lt_prog_compiler_wl='-Xlinker ' 13184 if test -n "$lt_prog_compiler_pic"; then 13185 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 13186 fi 13187 ;; 13188 esac 13189 else 13190 # PORTME Check for flag to pass linker flags through the system compiler. 13191 case $host_os in 13192 aix*) 13193 lt_prog_compiler_wl='-Wl,' 13194 if test ia64 = "$host_cpu"; then 13195 # AIX 5 now supports IA64 processor 13196 lt_prog_compiler_static='-Bstatic' 13197 else 13198 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 13199 fi 13200 ;; 13201 13202 darwin* | rhapsody*) 13203 # PIC is the default on this platform 13204 # Common symbols not allowed in MH_DYLIB files 13205 lt_prog_compiler_pic='-fno-common' 13206 case $cc_basename in 13207 nagfor*) 13208 # NAG Fortran compiler 13209 lt_prog_compiler_wl='-Wl,-Wl,,' 13210 lt_prog_compiler_pic='-PIC' 13211 lt_prog_compiler_static='-Bstatic' 13212 ;; 13213 esac 13214 ;; 13215 13216 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 13217 # This hack is so that the source file can tell whether it is being 13218 # built for inclusion in a dll (and should export symbols for example). 13219 lt_prog_compiler_pic='-DDLL_EXPORT' 13220 case $host_os in 13221 os2*) 13222 lt_prog_compiler_static='$wl-static' 13223 ;; 13224 esac 13225 ;; 13226 13227 hpux9* | hpux10* | hpux11*) 13228 lt_prog_compiler_wl='-Wl,' 13229 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13230 # not for PA HP-UX. 13231 case $host_cpu in 13232 hppa*64*|ia64*) 13233 # +Z the default 13234 ;; 13235 *) 13236 lt_prog_compiler_pic='+Z' 13237 ;; 13238 esac 13239 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13240 lt_prog_compiler_static='$wl-a ${wl}archive' 13241 ;; 13242 13243 irix5* | irix6* | nonstopux*) 13244 lt_prog_compiler_wl='-Wl,' 13245 # PIC (with -KPIC) is the default. 13246 lt_prog_compiler_static='-non_shared' 13247 ;; 13248 13249 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13250 case $cc_basename in 13251 # old Intel for x86_64, which still supported -KPIC. 13252 ecc*) 13253 lt_prog_compiler_wl='-Wl,' 13254 lt_prog_compiler_pic='-KPIC' 13255 lt_prog_compiler_static='-static' 13256 ;; 13257 *flang* | ftn | f18* | f95*) 13258 # Flang compiler. 13259 lt_prog_compiler_wl='-Wl,' 13260 lt_prog_compiler_pic='-fPIC' 13261 lt_prog_compiler_static='-static' 13262 ;; 13263 # icc used to be incompatible with GCC. 13264 # ICC 10 doesn't accept -KPIC any more. 13265 icc* | ifort*) 13266 lt_prog_compiler_wl='-Wl,' 13267 lt_prog_compiler_pic='-fPIC' 13268 lt_prog_compiler_static='-static' 13269 ;; 13270 # Lahey Fortran 8.1. 13271 lf95*) 13272 lt_prog_compiler_wl='-Wl,' 13273 lt_prog_compiler_pic='--shared' 13274 lt_prog_compiler_static='--static' 13275 ;; 13276 nagfor*) 13277 # NAG Fortran compiler 13278 lt_prog_compiler_wl='-Wl,-Wl,,' 13279 lt_prog_compiler_pic='-PIC' 13280 lt_prog_compiler_static='-Bstatic' 13281 ;; 13282 tcc*) 13283 # Fabrice Bellard et al's Tiny C Compiler 13284 lt_prog_compiler_wl='-Wl,' 13285 lt_prog_compiler_pic='-fPIC' 13286 lt_prog_compiler_static='-static' 13287 ;; 13288 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13289 # Portland Group compilers (*not* the Pentium gcc compiler, 13290 # which looks to be a dead project) 13291 lt_prog_compiler_wl='-Wl,' 13292 lt_prog_compiler_pic='-fpic' 13293 lt_prog_compiler_static='-Bstatic' 13294 ;; 13295 ccc*) 13296 lt_prog_compiler_wl='-Wl,' 13297 # All Alpha code is PIC. 13298 lt_prog_compiler_static='-non_shared' 13299 ;; 13300 xl* | bgxl* | bgf* | mpixl*) 13301 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13302 lt_prog_compiler_wl='-Wl,' 13303 lt_prog_compiler_pic='-qpic' 13304 lt_prog_compiler_static='-qstaticlink' 13305 ;; 13306 *) 13307 case `$CC -V 2>&1 | $SED 5q` in 13308 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 13309 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13310 lt_prog_compiler_pic='-KPIC' 13311 lt_prog_compiler_static='-Bstatic' 13312 lt_prog_compiler_wl='' 13313 ;; 13314 *Sun\ F* | *Sun*Fortran*) 13315 lt_prog_compiler_pic='-KPIC' 13316 lt_prog_compiler_static='-Bstatic' 13317 lt_prog_compiler_wl='-Qoption ld ' 13318 ;; 13319 *Sun\ C*) 13320 # Sun C 5.9 13321 lt_prog_compiler_pic='-KPIC' 13322 lt_prog_compiler_static='-Bstatic' 13323 lt_prog_compiler_wl='-Wl,' 13324 ;; 13325 *Intel*\ [CF]*Compiler*) 13326 lt_prog_compiler_wl='-Wl,' 13327 lt_prog_compiler_pic='-fPIC' 13328 lt_prog_compiler_static='-static' 13329 ;; 13330 *Portland\ Group*) 13331 lt_prog_compiler_wl='-Wl,' 13332 lt_prog_compiler_pic='-fpic' 13333 lt_prog_compiler_static='-Bstatic' 13334 ;; 13335 esac 13336 ;; 13337 esac 13338 ;; 13339 13340 newsos6) 13341 lt_prog_compiler_pic='-KPIC' 13342 lt_prog_compiler_static='-Bstatic' 13343 ;; 13344 13345 *-mlibc) 13346 lt_prog_compiler_wl='-Wl,' 13347 lt_prog_compiler_pic='-fPIC' 13348 lt_prog_compiler_static='-static' 13349 ;; 13350 13351 *nto* | *qnx*) 13352 # QNX uses GNU C++, but need to define -shared option too, otherwise 13353 # it will coredump. 13354 lt_prog_compiler_pic='-fPIC -shared' 13355 ;; 13356 13357 osf3* | osf4* | osf5*) 13358 lt_prog_compiler_wl='-Wl,' 13359 # All OSF/1 code is PIC. 13360 lt_prog_compiler_static='-non_shared' 13361 ;; 13362 13363 rdos*) 13364 lt_prog_compiler_static='-non_shared' 13365 ;; 13366 13367 serenity*) 13368 ;; 13369 13370 solaris*) 13371 lt_prog_compiler_pic='-KPIC' 13372 lt_prog_compiler_static='-Bstatic' 13373 case $cc_basename in 13374 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 13375 lt_prog_compiler_wl='-Qoption ld ';; 13376 *) 13377 lt_prog_compiler_wl='-Wl,';; 13378 esac 13379 ;; 13380 13381 sunos4*) 13382 lt_prog_compiler_wl='-Qoption ld ' 13383 lt_prog_compiler_pic='-PIC' 13384 lt_prog_compiler_static='-Bstatic' 13385 ;; 13386 13387 sysv4 | sysv4.2uw2* | sysv4.3*) 13388 lt_prog_compiler_wl='-Wl,' 13389 lt_prog_compiler_pic='-KPIC' 13390 lt_prog_compiler_static='-Bstatic' 13391 ;; 13392 13393 sysv4*MP*) 13394 if test -d /usr/nec; then 13395 lt_prog_compiler_pic='-Kconform_pic' 13396 lt_prog_compiler_static='-Bstatic' 13397 fi 13398 ;; 13399 13400 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13401 lt_prog_compiler_wl='-Wl,' 13402 lt_prog_compiler_pic='-KPIC' 13403 lt_prog_compiler_static='-Bstatic' 13404 ;; 13405 13406 unicos*) 13407 lt_prog_compiler_wl='-Wl,' 13408 lt_prog_compiler_can_build_shared=no 13409 ;; 13410 13411 uts4*) 13412 lt_prog_compiler_pic='-pic' 13413 lt_prog_compiler_static='-Bstatic' 13414 ;; 13415 13416 *) 13417 lt_prog_compiler_can_build_shared=no 13418 ;; 13419 esac 13420 fi 13421 13422 case $host_os in 13423 # For platforms that do not support PIC, -DPIC is meaningless: 13424 *djgpp*) 13425 lt_prog_compiler_pic= 13426 ;; 13427 *) 13428 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13429 ;; 13430 esac 13431 13432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13433 printf %s "checking for $compiler option to produce PIC... " >&6; } 13434 if test ${lt_cv_prog_compiler_pic+y} 13435 then : 13436 printf %s "(cached) " >&6 13437 else case e in #( 13438 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 13439 esac 13440 fi 13441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13442 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 13443 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13444 13445 # 13446 # Check to make sure the PIC flag actually works. 13447 # 13448 if test -n "$lt_prog_compiler_pic"; then 13449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13450 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13451 if test ${lt_cv_prog_compiler_pic_works+y} 13452 then : 13453 printf %s "(cached) " >&6 13454 else case e in #( 13455 e) lt_cv_prog_compiler_pic_works=no 13456 ac_outfile=conftest.$ac_objext 13457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13458 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 13459 # Insert the option either (1) after the last *FLAGS variable, or 13460 # (2) before a word containing "conftest.", or (3) at the end. 13461 # Note that $ac_compile itself does not contain backslashes and begins 13462 # with a dollar sign (not a hyphen), so the echo should work correctly. 13463 # The option is referenced via a variable to avoid confusing sed. 13464 lt_compile=`echo "$ac_compile" | $SED \ 13465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13467 -e 's:$: $lt_compiler_flag:'` 13468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13469 (eval "$lt_compile" 2>conftest.err) 13470 ac_status=$? 13471 cat conftest.err >&5 13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13473 if (exit $ac_status) && test -s "$ac_outfile"; then 13474 # The compiler can only warn and ignore the option if not recognized 13475 # So say no if there are warnings other than the usual output. 13476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13479 lt_cv_prog_compiler_pic_works=yes 13480 fi 13481 fi 13482 $RM conftest* 13483 ;; 13484 esac 13485 fi 13486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13487 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 13488 13489 if test yes = "$lt_cv_prog_compiler_pic_works"; then 13490 case $lt_prog_compiler_pic in 13491 "" | " "*) ;; 13492 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13493 esac 13494 else 13495 lt_prog_compiler_pic= 13496 lt_prog_compiler_can_build_shared=no 13497 fi 13498 13499 fi 13500 13501 13502 13503 13504 13505 # 13506 # Check to make sure the static flag actually works. 13507 # 13508 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13510 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13511 if test ${lt_cv_prog_compiler_static_works+y} 13512 then : 13513 printf %s "(cached) " >&6 13514 else case e in #( 13515 e) lt_cv_prog_compiler_static_works=no 13516 save_LDFLAGS=$LDFLAGS 13517 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13518 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13519 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13520 # The linker can only warn and ignore the option if not recognized 13521 # So say no if there are warnings 13522 if test -s conftest.err; then 13523 # Append any errors to the config.log. 13524 cat conftest.err 1>&5 13525 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13527 if diff conftest.exp conftest.er2 >/dev/null; then 13528 lt_cv_prog_compiler_static_works=yes 13529 fi 13530 else 13531 lt_cv_prog_compiler_static_works=yes 13532 fi 13533 fi 13534 $RM -r conftest* 13535 LDFLAGS=$save_LDFLAGS 13536 ;; 13537 esac 13538 fi 13539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13540 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 13541 13542 if test yes = "$lt_cv_prog_compiler_static_works"; then 13543 : 13544 else 13545 lt_prog_compiler_static= 13546 fi 13547 13548 13549 13550 ='-fPIC' 13551 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 13552 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' 13553 archive_cmds_need_lc=no 13554 no_undefined_flag= 13555 ;; 13556 12786 13557 *) 12787 13558 dynamic_linker=no … … 12968 13739 ;; 12969 13740 12970 mingw* | pw32* | cegcc*)13741 mingw* | windows* | pw32* | cegcc*) 12971 13742 lt_cv_dlopen=LoadLibrary 12972 13743 lt_cv_dlopen_libs= … … 13341 14112 correspondingly for the symbols needed. */ 13342 14113 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13343 int fnord ( ) __attribute__((visibility("default")));14114 int fnord (void) __attribute__((visibility("default"))); 13344 14115 #endif 13345 14116 13346 int fnord ( ) { return 42; }13347 int main ( )14117 int fnord (void) { return 42; } 14118 int main (void) 13348 14119 { 13349 14120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); … … 13449 14220 correspondingly for the symbols needed. */ 13450 14221 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13451 int fnord ( ) __attribute__((visibility("default")));14222 int fnord (void) __attribute__((visibility("default"))); 13452 14223 #endif 13453 14224 13454 int fnord ( ) { return 42; }13455 int main ( )14225 int fnord (void) { return 42; } 14226 int main (void) 13456 14227 { 13457 14228 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); … … 14906 15677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 14907 15678 printf "%s\n" "done" >&6; } 15679 case $enable_silent_rules in # ((( 15680 yes) AM_DEFAULT_VERBOSITY=0;; 15681 no) AM_DEFAULT_VERBOSITY=1;; 15682 esac 15683 if test $am_cv_make_support_nested_variables = yes; then 15684 AM_V='$(V)' 15685 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 15686 else 15687 AM_V=$AM_DEFAULT_VERBOSITY 15688 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 15689 fi 15690 14908 15691 if test -n "$EXEEXT"; then 14909 15692 am__EXEEXT_TRUE= … … 15383 16166 # values after options handling. 15384 16167 ac_log=" 15385 This file was extended by libpng $as_me 1.6.4 3, which was16168 This file was extended by libpng $as_me 1.6.45, which was 15386 16169 generated by GNU Autoconf 2.72. Invocation command line was 15387 16170 … … 15451 16234 ac_cs_config='$ac_cs_config_escaped' 15452 16235 ac_cs_version="\\ 15453 libpng config.status 1.6.4 316236 libpng config.status 1.6.45 15454 16237 configured by $0, generated by GNU Autoconf 2.72, 15455 16238 with options \\"\$ac_cs_config\\" … … 16579 17362 #! $SHELL 16580 17363 # Generated automatically by $as_me ($PACKAGE) $VERSION 16581 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:16582 17364 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 16583 17365 … … 16585 17367 # Written by Gordon Matzigkeit, 1996 16586 17368 16587 # Copyright (C) 20 14 Free Software Foundation, Inc.17369 # Copyright (C) 2024 Free Software Foundation, Inc. 16588 17370 # This is free software; see the source for copying conditions. There is NO 16589 17371 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. … … 16591 17373 # GNU Libtool is free software; you can redistribute it and/or modify 16592 17374 # it under the terms of the GNU General Public License as published by 16593 # the Free Software Foundation; either version 2 of ofthe License, or17375 # the Free Software Foundation; either version 2 of the License, or 16594 17376 # (at your option) any later version. 16595 17377 # … … 16975 17757 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16976 17758 # DIR into the resulting binary and the resulting library dependency is 16977 # "absolute",i.e impossible to change by setting \$shlibpath_var if the17759 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the 16978 17760 # library is relocated. 16979 17761 hardcode_direct_absolute=$hardcode_direct_absolute -
trunk/src/libs/libpng-1.6.45/configure.ac
r105469 r107813 26 26 dnl Version number stuff here: 27 27 28 AC_INIT([libpng],[1.6.4 3],[[email protected]])28 AC_INIT([libpng],[1.6.45],[[email protected]]) 29 29 AC_CONFIG_MACRO_DIR([scripts/autoconf]) 30 30 … … 47 47 dnl stop configure from automagically running automake 48 48 49 PNGLIB_VERSION=1.6.4 349 PNGLIB_VERSION=1.6.45 50 50 PNGLIB_MAJOR=1 51 51 PNGLIB_MINOR=6 52 PNGLIB_RELEASE=4 352 PNGLIB_RELEASE=45 53 53 54 54 dnl End of version number stuff … … 57 57 AC_CONFIG_HEADERS([config.h]) 58 58 59 # Check forbasic programs.59 # Check the basic programs. 60 60 AC_LANG([C]) 61 61 AC_PROG_CC -
trunk/src/libs/libpng-1.6.45/contrib/README.txt
r96425 r107813 1 External contributions to libpng 2 -------------------------------- 1 3 2 4 This "contrib" directory contains contributions which are not necessarily under -
trunk/src/libs/libpng-1.6.45/contrib/examples/README.txt
r96425 r107813 1 2 1 This directory (contrib/examples) contains examples of libpng usage. 3 2 -
trunk/src/libs/libpng-1.6.45/contrib/libtests/pngimage.c
r103316 r107813 1 2 1 /* pngimage.c 3 2 * … … 1020 1019 C(bit_depth); 1021 1020 C(color_type); 1022 C(interlace_method); 1021 # ifdef PNG_WRITE_INTERLACING_SUPPORTED 1022 /* If write interlace has been disabled, the PNG file is still 1023 * written correctly, but as a regular (not-interlaced) PNG. 1024 */ 1025 C(interlace_method); 1026 # endif 1023 1027 C(compression_method); 1024 1028 C(filter_method); -
trunk/src/libs/libpng-1.6.45/contrib/libtests/pngstest.c
r103316 r107813 1 2 1 /* pngstest.c 3 2 * … … 3501 3500 int c; 3502 3501 3503 #if PNG_LIBPNG_VER >= 107003502 #if PNG_LIBPNG_VER == 10700 3504 3503 /* This error should not exist in 1.7 or later: */ 3505 3504 opts |= GBG_ERROR; -
trunk/src/libs/libpng-1.6.45/contrib/libtests/pngunknown.c
r103316 r107813 1 2 1 /* pngunknown.c - test the read side unknown chunk handling 3 2 * -
trunk/src/libs/libpng-1.6.45/contrib/libtests/pngvalid.c
r105469 r107813 1 2 1 /* pngvalid.c - validate libpng by constructing then reading png files. 3 2 * … … 305 304 defined PNG_WRITE_FILTER_SUPPORTED 306 305 static void 307 randomize (void *pv, size_t size)306 randomize_bytes(void *pv, size_t size) 308 307 { 309 308 static png_uint_32 random_seed[2] = {0x56789abc, 0xd}; … … 311 310 } 312 311 313 #define R8(this) randomize (&(this), sizeof (this))312 #define R8(this) randomize_bytes(&(this), sizeof (this)) 314 313 315 314 #ifdef PNG_READ_SUPPORTED … … 318 317 { 319 318 unsigned char b1[1]; 320 randomize (b1, sizeof b1);319 randomize_bytes(b1, sizeof b1); 321 320 return b1[0]; 322 321 } … … 327 326 { 328 327 unsigned char b2[2]; 329 randomize (b2, sizeof b2);328 randomize_bytes(b2, sizeof b2); 330 329 return png_get_uint_16(b2); 331 330 } … … 337 336 { 338 337 unsigned char b4[4]; 339 randomize (b4, sizeof b4);338 randomize_bytes(b4, sizeof b4); 340 339 return png_get_uint_32(b4); 341 340 } … … 2575 2574 * algorithm. 2576 2575 */ 2577 #define DIGITIZE PNG_LIBPNG_VER <107002576 #define DIGITIZE PNG_LIBPNG_VER != 10700 2578 2577 2579 2578 /* If pm->calculations_use_input_precision is set then operations will happen … … 3987 3986 # define set_write_interlace_handling(pp,type) png_set_interlace_handling(pp) 3988 3987 # define do_own_interlace 0 3989 #elif PNG_LIBPNG_VER <107003988 #elif PNG_LIBPNG_VER != 10700 3990 3989 # define set_write_interlace_handling(pp,type) (1) 3991 3990 static void … … 4015 4014 #endif /* WRITE_INTERLACING tests */ 4016 4015 4017 #if PNG_LIBPNG_VER >= 10700 || defined PNG_WRITE_INTERLACING_SUPPORTED4016 #if PNG_LIBPNG_VER == 10700 || defined PNG_WRITE_INTERLACING_SUPPORTED 4018 4017 # define CAN_WRITE_INTERLACE 1 4019 4018 #else … … 4634 4633 /* no warnings makes these errors undetectable prior to 1.7.0 */ 4635 4634 { sBIT0_error_fn, "sBIT(0): failed to detect error", 4636 PNG_LIBPNG_VER <10700 },4635 PNG_LIBPNG_VER != 10700 }, 4637 4636 4638 4637 { sBIT_error_fn, "sBIT(too big): failed to detect error", 4639 PNG_LIBPNG_VER <10700 },4638 PNG_LIBPNG_VER != 10700 }, 4640 4639 }; 4641 4640 … … 6237 6236 if (this->colour_type == PNG_COLOR_TYPE_GRAY) 6238 6237 { 6239 # if PNG_LIBPNG_VER <107006238 # if PNG_LIBPNG_VER != 10700 6240 6239 if (!for_background && this->bit_depth < 8) 6241 6240 this->bit_depth = this->sample_depth = 8; … … 6247 6246 * tRNS chunk to expand at this point. 6248 6247 */ 6249 # if PNG_LIBPNG_VER >= 107006248 # if PNG_LIBPNG_VER == 10700 6250 6249 if (!for_background && this->bit_depth < 8) 6251 6250 this->bit_depth = this->sample_depth = 8; … … 7128 7127 const transform_display *display) 7129 7128 { 7130 #if PNG_LIBPNG_VER <107007129 #if PNG_LIBPNG_VER != 10700 7131 7130 /* LIBPNG BUG: this always forces palette images to RGB. */ 7132 7131 if (that->colour_type == PNG_COLOR_TYPE_PALETTE) … … 7138 7137 */ 7139 7138 if (that->have_tRNS) 7140 # if PNG_LIBPNG_VER >= 107007139 # if PNG_LIBPNG_VER == 10700 7141 7140 if (that->colour_type != PNG_COLOR_TYPE_PALETTE && 7142 7141 (that->colour_type & PNG_COLOR_MASK_ALPHA) == 0) … … 7144 7143 image_pixel_add_alpha(that, &display->this, 0/*!for background*/); 7145 7144 7146 #if PNG_LIBPNG_VER <107007145 #if PNG_LIBPNG_VER != 10700 7147 7146 /* LIBPNG BUG: otherwise libpng still expands to 8 bits! */ 7148 7147 else … … 7173 7172 */ 7174 7173 return 7175 # if PNG_LIBPNG_VER >= 107007174 # if PNG_LIBPNG_VER == 10700 7176 7175 colour_type != PNG_COLOR_TYPE_PALETTE && 7177 7176 # endif … … 7314 7313 const transform_display *display) 7315 7314 { 7316 #if PNG_LIBPNG_VER <107007315 #if PNG_LIBPNG_VER != 10700 7317 7316 image_transform_png_set_expand_mod(this, that, pp, display); 7318 7317 #else … … 7330 7329 const image_transform **that, png_byte colour_type, png_byte bit_depth) 7331 7330 { 7332 #if PNG_LIBPNG_VER <107007331 #if PNG_LIBPNG_VER != 10700 7333 7332 return image_transform_png_set_expand_add(this, that, colour_type, 7334 7333 bit_depth); … … 7360 7359 7361 7360 /* NOTE: prior to 1.7 libpng does SET_EXPAND as well, so tRNS is expanded. */ 7362 # if PNG_LIBPNG_VER <107007361 # if PNG_LIBPNG_VER != 10700 7363 7362 if (that->this.has_tRNS) 7364 7363 that->this.is_transparent = 1; … … 7413 7412 { 7414 7413 png_set_scale_16(pp); 7415 # if PNG_LIBPNG_VER <107007414 # if PNG_LIBPNG_VER != 10700 7416 7415 /* libpng will limit the gamma table size: */ 7417 7416 that->max_gamma_8 = PNG_MAX_GAMMA_8; … … 7461 7460 { 7462 7461 png_set_strip_16(pp); 7463 # if PNG_LIBPNG_VER <107007462 # if PNG_LIBPNG_VER != 10700 7464 7463 /* libpng will limit the gamma table size: */ 7465 7464 that->max_gamma_8 = PNG_MAX_GAMMA_8; … … 7648 7647 { 7649 7648 /* The default (built in) coefficients, as above: */ 7650 # if PNG_LIBPNG_VER <107007649 # if PNG_LIBPNG_VER != 10700 7651 7650 data.red_coefficient = 6968 / 32768.; 7652 7651 data.green_coefficient = 23434 / 32768.; … … 7731 7730 * +/-(1<<(15-PNG_MAX_GAMMA_8)) in the 8-bit case. 7732 7731 */ 7733 # if PNG_LIBPNG_VER <107007732 # if PNG_LIBPNG_VER != 10700 7734 7733 if (that->this.bit_depth < 16) 7735 7734 that->max_gamma_8 = PNG_MAX_GAMMA_8; … … 7908 7907 double gray, err; 7909 7908 7910 # if PNG_LIBPNG_VER <107007909 # if PNG_LIBPNG_VER != 10700 7911 7910 if (that->colour_type == PNG_COLOR_TYPE_PALETTE) 7912 7911 image_pixel_convert_PLTE(that); … … 8095 8094 double be = that->bluee; 8096 8095 8097 # if PNG_LIBPNG_VER <107008096 # if PNG_LIBPNG_VER != 10700 8098 8097 /* The true gray case involves no math in earlier versions (not 8099 8098 * true, there was some if gamma correction was happening too.) … … 9874 9873 * an sbit less than the bit depth. 9875 9874 */ 9876 # if PNG_LIBPNG_VER <107009875 # if PNG_LIBPNG_VER != 10700 9877 9876 # define SBIT_ERROR .5 9878 9877 # else … … 10734 10733 # define PNG_MAX_GAMMA_8 11 10735 10734 # endif 10736 # if defined PNG_MAX_GAMMA_8 || PNG_LIBPNG_VER <1070010735 # if defined PNG_MAX_GAMMA_8 || PNG_LIBPNG_VER != 10700 10737 10736 # define SBIT_16_TO_8 PNG_MAX_GAMMA_8 10738 10737 # else … … 11737 11736 * difference. 11738 11737 */ 11739 pm.assume_16_bit_calculations = PNG_LIBPNG_VER >= 10700;11738 pm.assume_16_bit_calculations = PNG_LIBPNG_VER == 10700; 11740 11739 11741 11740 /* Currently 16 bit expansion happens at the end of the pipeline, so the … … 11761 11760 pm.test_lbg_gamma_transform = PNG_LIBPNG_VER >= 10600; 11762 11761 pm.test_lbg_gamma_sbit = 1; 11763 pm.test_lbg_gamma_composition = PNG_LIBPNG_VER >= 10700;11762 pm.test_lbg_gamma_composition = PNG_LIBPNG_VER == 10700; 11764 11763 11765 11764 /* And the test encodings */ … … 11767 11766 pm.nencodings = ARRAY_SIZE(test_encodings); 11768 11767 11769 # if PNG_LIBPNG_VER <1070011768 # if PNG_LIBPNG_VER != 10700 11770 11769 pm.sbitlow = 8U; /* because libpng doesn't do sBIT below 8! */ 11771 11770 # else … … 11797 11796 pm.maxabs16 = .00005;/* 1/20000 */ 11798 11797 pm.maxcalc16 =1./65535;/* +/-1 in 16 bits for compose errors */ 11799 # if PNG_LIBPNG_VER <1070011798 # if PNG_LIBPNG_VER != 10700 11800 11799 pm.maxcalcG = 1./((1<<PNG_MAX_GAMMA_8)-1); 11801 11800 # else -
trunk/src/libs/libpng-1.6.45/contrib/libtests/readpng.c
r103316 r107813 1 2 1 /* readpng.c 3 2 * -
trunk/src/libs/libpng-1.6.45/contrib/libtests/tarith.c
r103316 r107813 1 2 1 /* tarith.c 3 2 * -
trunk/src/libs/libpng-1.6.45/contrib/libtests/timepng.c
r103316 r107813 1 2 1 /* timepng.c 3 2 * -
trunk/src/libs/libpng-1.6.45/contrib/mips-msa/linux.c
r103316 r107813 1 2 1 /* contrib/mips-msa/linux.c 3 2 * -
trunk/src/libs/libpng-1.6.45/contrib/oss-fuzz/libpng_read_fuzzer.cc
r103316 r107813 1 2 1 // libpng_read_fuzzer.cc 3 2 // Copyright 2017-2018 Glenn Randers-Pehrson … … 205 204 206 205 PNG_CLEANUP 206 207 #ifdef PNG_SIMPLIFIED_READ_SUPPORTED 208 // Simplified READ API 209 png_image image; 210 memset(&image, 0, (sizeof image)); 211 image.version = PNG_IMAGE_VERSION; 212 213 if (!png_image_begin_read_from_memory(&image, data, size)) { 214 return 0; 215 } 216 217 image.format = PNG_FORMAT_RGBA; 218 std::vector<png_byte> buffer(PNG_IMAGE_SIZE(image)); 219 png_image_finish_read(&image, NULL, buffer.data(), 0, NULL); 220 #endif 221 207 222 return 0; 208 223 } -
trunk/src/libs/libpng-1.6.45/contrib/pngminim/README
r96425 r107813 1 2 1 This demonstrates the use of PNG_USER_CONFIG, pngusr.h and pngusr.dfa 3 2 to build minimal decoder, encoder, and progressive reader applications. -
trunk/src/libs/libpng-1.6.45/contrib/pngminus/CHANGES.txt
r103316 r107813 1 2 1 pnm2png / png2pnm --- conversion from PBM/PGM/PPM-file to PNG-file 3 2 copyright (C) 1999-2019 by Willem van Schaik <willem at schaik dot com> -
trunk/src/libs/libpng-1.6.45/contrib/pngminus/LICENSE.txt
r103316 r107813 1 2 1 pnm2png / png2pnm --- conversion from PBM/PGM/PPM-file to PNG-file 3 2 -
trunk/src/libs/libpng-1.6.45/contrib/pngsuite/README
r96425 r107813 1 2 1 pngsuite 3 2 -------- -
trunk/src/libs/libpng-1.6.45/contrib/pngsuite/interlaced/README
r96425 r107813 1 2 1 These images fail the "pngimage-quick" and "pngimage-full" tests. -
trunk/src/libs/libpng-1.6.45/depcomp
r103316 r107813 2 2 # depcomp - compile a program generating dependencies as side-effects 3 3 4 scriptversion=20 18-03-07.03; # UTC5 6 # Copyright (C) 1999-202 1Free Software Foundation, Inc.4 scriptversion=2024-06-19.01; # UTC 5 6 # Copyright (C) 1999-2024 Free Software Foundation, Inc. 7 7 8 8 # This program is free software; you can redistribute it and/or modify … … 48 48 49 49 Report bugs to <[email protected]>. 50 GNU Automake home page: <https://www.gnu.org/software/automake/>. 51 General help using GNU software: <https://www.gnu.org/gethelp/>. 50 52 EOF 51 53 exit $? 52 54 ;; 53 55 -v | --v*) 54 echo "depcomp $scriptversion"56 echo "depcomp (GNU Automake) $scriptversion" 55 57 exit $? 56 58 ;; … … 114 116 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ 115 117 lower=abcdefghijklmnopqrstuvwxyz 116 digits=0123456789117 118 alpha=${upper}${lower} 118 119 … … 129 130 rm -f "$tmpdepfile" 130 131 131 # Avoid interference sfrom the environment.132 # Avoid interference from the environment. 132 133 gccflag= dashmflag= 133 134 … … 199 200 200 201 gcc) 201 ## Note that this doesn't just cater to obso sete pre-3.x GCC compilers.202 ## but also to in-use compilers like I MBxlc/xlC and the HP C compiler.202 ## Note that this doesn't just cater to obsolete pre-3.x GCC compilers. 203 ## but also to in-use compilers like IBM xlc/xlC and the HP C compiler. 203 204 ## (see the conditional assignment to $gccflag above). 204 205 ## There are various ways to get dependency output from gcc. Here's -
trunk/src/libs/libpng-1.6.45/example.c
r103316 r107813 1 2 1 #if 0 /* in case someone actually tries to compile this */ 3 2 -
trunk/src/libs/libpng-1.6.45/install-sh
r103316 r107813 2 2 # install - install a program, script, or datafile 3 3 4 scriptversion=202 3-11-23.18; # UTC4 scriptversion=2024-06-19.01; # UTC 5 5 6 6 # This originates from X11R5 (mit/util/scripts/install.sh), which was … … 171 171 -T) is_target_a_directory=never;; 172 172 173 --version) echo "$0 $scriptversion"; exit $?;;173 --version) echo "$0 (GNU Automake) $scriptversion"; exit $?;; 174 174 175 175 --) shift … … 346 346 347 347 # Because "mkdir -p" follows existing symlinks and we likely work 348 # directly in world-writ eable /tmp, make sure that the '$tmpdir'348 # directly in world-writable /tmp, make sure that the '$tmpdir' 349 349 # directory is successfully created first before we actually test 350 350 # 'mkdir -p'. … … 354 354 then 355 355 if test -z "$dir_arg" || { 356 # Check for POSIX incompatibilit ieswith -m.356 # Check for POSIX incompatibility with -m. 357 357 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or 358 358 # other-writable bit of parent directory when it shouldn't. -
trunk/src/libs/libpng-1.6.45/intel/filter_sse2_intrinsics.c
r103316 r107813 1 2 1 /* filter_sse2_intrinsics.c - SSE2 optimized filter functions 3 2 * -
trunk/src/libs/libpng-1.6.45/intel/intel_init.c
r96425 r107813 1 2 1 /* intel_init.c - SSE2 optimized filter functions 3 2 * -
trunk/src/libs/libpng-1.6.45/libpng-manual.txt
r105469 r107813 1 1 libpng-manual.txt - A description on how to use and modify libpng 2 2 3 Copyright (c) 2018-202 4Cosmin Truta3 Copyright (c) 2018-2025 Cosmin Truta 4 4 Copyright (c) 1998-2018 Glenn Randers-Pehrson 5 5 … … 10 10 Based on: 11 11 12 libpng version 1.6.36, December 2018, through 1.6.4 3 - February 202412 libpng version 1.6.36, December 2018, through 1.6.45 - January 2025 13 13 Updated and distributed by Cosmin Truta 14 Copyright (c) 2018-202 4Cosmin Truta14 Copyright (c) 2018-2025 Cosmin Truta 15 15 16 16 libpng versions 0.97, January 1998, through 1.6.35 - July 2018 … … 5174 5174 5175 5175 The machine-generated configure files are no longer included in branches 5176 libpng1 6and later of the GIT repository. They continue to be included5176 libpng17 and later of the GIT repository. They continue to be included 5177 5177 in the tarball releases, however. 5178 5178 -
trunk/src/libs/libpng-1.6.45/libpng.3
r105469 r107813 1 .TH LIBPNG 3 " February 23, 2024"1 .TH LIBPNG 3 "January 7, 2025" 2 2 .SH NAME 3 libpng \- Portable Network Graphics (PNG) Reference Library 1.6.4 33 libpng \- Portable Network Graphics (PNG) Reference Library 1.6.45 4 4 5 5 .SH SYNOPSIS … … 520 520 libpng-manual.txt - A description on how to use and modify libpng 521 521 522 Copyright (c) 2018-202 4Cosmin Truta522 Copyright (c) 2018-2025 Cosmin Truta 523 523 Copyright (c) 1998-2018 Glenn Randers-Pehrson 524 524 … … 529 529 Based on: 530 530 531 libpng version 1.6.36, December 2018, through 1.6.4 3 - February 2024531 libpng version 1.6.36, December 2018, through 1.6.45 - January 2025 532 532 Updated and distributed by Cosmin Truta 533 Copyright (c) 2018-202 4Cosmin Truta533 Copyright (c) 2018-2025 Cosmin Truta 534 534 535 535 libpng versions 0.97, January 1998, through 1.6.35 - July 2018 … … 5693 5693 5694 5694 The machine-generated configure files are no longer included in branches 5695 libpng1 6and later of the GIT repository. They continue to be included5695 libpng17 and later of the GIT repository. They continue to be included 5696 5696 in the tarball releases, however. 5697 5697 -
trunk/src/libs/libpng-1.6.45/libpngpf.3
r105469 r107813 1 .TH LIBPNGPF 3 " February 23, 2024"1 .TH LIBPNGPF 3 "January 7, 2025" 2 2 .SH NAME 3 libpng \- Portable Network Graphics (PNG) Reference Library 1.6.4 33 libpng \- Portable Network Graphics (PNG) Reference Library 1.6.45 4 4 (private functions) 5 5 -
trunk/src/libs/libpng-1.6.45/ltmain.sh
r103316 r107813 3 3 ## by inline-source v2019-02-19.15 4 4 5 # libtool (GNU libtool) 2. 4.75 # libtool (GNU libtool) 2.5.4 6 6 # Provide generalized library-building support services. 7 7 # Written by Gordon Matzigkeit <[email protected]>, 1996 8 8 9 # Copyright (C) 1996-2019, 2021-202 2Free Software Foundation, Inc.9 # Copyright (C) 1996-2019, 2021-2024 Free Software Foundation, Inc. 10 10 # This is free software; see the source for copying conditions. There is NO 11 11 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. … … 32 32 PROGRAM=libtool 33 33 PACKAGE=libtool 34 VERSION=2. 4.735 package_revision=2. 4.734 VERSION=2.5.4 35 package_revision=2.5.4 36 36 37 37 … … 73 73 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 74 74 # 75 # Copyright (C) 2004-2019, 2021 Bootstrap Authors75 # Copyright (C) 2004-2019, 2021, 2023-2024 Bootstrap Authors 76 76 # 77 77 # This file is dual licensed under the terms of the MIT license 78 # <https://opensource.org/license /MIT>, and GPL version 2 or later79 # <http ://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of78 # <https://opensource.org/licenses/MIT>, and GPL version 2 or later 79 # <https://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of 80 80 # these licenses when using or redistributing this software or any of 81 81 # the files within it. See the URLs above, or the file `LICENSE` … … 144 144 IFS="$sp $nl" 145 145 146 # There are apparently some retardedsystems that use ';' as a PATH separator!146 # There are apparently some systems that use ';' as a PATH separator! 147 147 if test "${PATH_SEPARATOR+set}" != set; then 148 148 PATH_SEPARATOR=: … … 590 590 # _G_HAVE_PLUSEQ_OP 591 591 # Can be empty, in which case the shell is probed, "yes" if += is 592 # us eable or anything else if it does not work.592 # usable or anything else if it does not work. 593 593 test -z "$_G_HAVE_PLUSEQ_OP" \ 594 594 && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ … … 740 740 # value returned in "$func_dirname_result" 741 741 # basename: Compute filename of FILE. 742 # value retu ned in "$func_basename_result"742 # value returned in "$func_basename_result" 743 743 # For efficiency, we do not delegate to the functions above but instead 744 744 # duplicate the functionality here. … … 898 898 while test ! -d "$_G_directory_path"; do 899 899 # ...make a list in topmost first order. Use a colon delimited 900 # list in case some portion of path contains whitespace.900 # list in case some portion of path contains whitespace. 901 901 _G_dir_list=$_G_directory_path:$_G_dir_list 902 902 … … 1537 1537 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 1538 1538 # 1539 # Copyright (C) 2010-2019, 2021 Bootstrap Authors1539 # Copyright (C) 2010-2019, 2021, 2023-2024 Bootstrap Authors 1540 1540 # 1541 1541 # This file is dual licensed under the terms of the MIT license 1542 # <https://opensource.org/license /MIT>, and GPL version 2 or later1543 # <http ://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of1542 # <https://opensource.org/licenses/MIT>, and GPL version 2 or later 1543 # <https://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of 1544 1544 # these licenses when using or redistributing this software or any of 1545 1545 # the files within it. See the URLs above, or the file `LICENSE` … … 2216 2216 2217 2217 # Set a version string. 2218 scriptversion='(GNU libtool) 2.4.7' 2218 scriptversion='(GNU libtool) 2.5.4' 2219 2220 # func_version 2221 # ------------ 2222 # Echo version message to standard output and exit. 2223 func_version () 2224 { 2225 $debug_cmd 2226 2227 year=`date +%Y` 2228 2229 cat <<EOF 2230 $progname $scriptversion 2231 Copyright (C) $year Free Software Foundation, Inc. 2232 License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl.html> 2233 This is free software: you are free to change and redistribute it. 2234 There is NO WARRANTY, to the extent permitted by law. 2235 2236 Originally written by Gordon Matzigkeit, 1996 2237 (See AUTHORS for complete contributor listing) 2238 EOF 2239 2240 exit $? 2241 } 2219 2242 2220 2243 … … 2239 2262 2240 2263 2241 # func_warning ARG...2242 # -------------------2243 # Libtool warnings are not categorized, so override funclib.sh2244 # func_warning with this simpler definition.2245 func_warning ()2246 {2247 $debug_cmd2248 2249 $warning_func ${1+"$@"}2250 }2251 2252 2253 2264 ## ---------------- ## 2254 2265 ## Options parsing. ## … … 2262 2273 # Short help message in response to '-h'. 2263 2274 usage_message="Options: 2264 --config show all configuration variables 2265 --debug enable verbose shell tracing 2266 -n, --dry-run display commands without modifying any files 2267 --features display basic configuration information and exit 2268 --mode=MODE use operation mode MODE 2269 --no-warnings equivalent to '-Wnone' 2270 --preserve-dup-deps don't remove duplicate dependency libraries 2271 --quiet, --silent don't print informational messages 2272 --tag=TAG use configuration variables from tag TAG 2273 -v, --verbose print more informational messages than default 2274 --version print version information 2275 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] 2276 -h, --help, --help-all print short, long, or detailed help message 2275 --config show all configuration variables 2276 --debug enable verbose shell tracing 2277 -n, --dry-run display commands without modifying any files 2278 --features display basic configuration information 2279 --finish use operation '--mode=finish' 2280 --mode=MODE use operation mode MODE 2281 --no-finish don't update shared library cache 2282 --no-quiet, --no-silent print default informational messages 2283 --no-warnings equivalent to '-Wnone' 2284 --preserve-dup-deps don't remove duplicate dependency libraries 2285 --quiet, --silent don't print informational messages 2286 --reorder-cache=DIRS reorder shared library cache for preferred DIRS 2287 --tag=TAG use configuration variables from tag TAG 2288 -v, --verbose print more informational messages than default 2289 --version print version information 2290 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] 2291 -h, --help, --help-all print short, long, or detailed help message 2277 2292 " 2278 2293 … … 2307 2322 compiler flags: $LTCFLAGS 2308 2323 linker: $LD (gnu? $with_gnu_ld) 2309 version: $progname (GNU libtool) 2.4.72324 version: $progname $scriptversion 2310 2325 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` 2311 2326 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` 2312 2327 2313 2328 Report bugs to <[email protected]>. 2314 GNU libtool home page: <http ://www.gnu.org/software/libtool/>.2315 General help using GNU software: <http ://www.gnu.org/gethelp/>."2329 GNU libtool home page: <https://www.gnu.org/software/libtool/>. 2330 General help using GNU software: <https://www.gnu.org/gethelp/>." 2316 2331 exit 0 2317 2332 } … … 2503 2518 opt_help=false 2504 2519 opt_mode= 2520 opt_reorder_cache=false 2505 2521 opt_preserve_dup_deps=false 2506 2522 opt_quiet=false 2523 opt_finishing=true 2524 opt_warning= 2507 2525 2508 2526 nonopt= … … 2594 2612 2595 2613 # Catch anything else as an error 2596 *) func_error "invalid argument for $_G_opt"2614 *) func_error "invalid argument '$1' for $_G_opt" 2597 2615 exit_cmd=exit 2598 break2599 2616 ;; 2600 2617 esac … … 2602 2619 ;; 2603 2620 2621 --no-finish) 2622 opt_finishing=false 2623 func_append preserve_args " $_G_opt" 2624 ;; 2625 2604 2626 --no-silent|--no-quiet) 2605 2627 opt_quiet=false … … 2615 2637 opt_verbose=false 2616 2638 func_append preserve_args " $_G_opt" 2639 ;; 2640 2641 --reorder-cache) 2642 opt_reorder_cache=true 2643 shared_lib_dirs=$1 2644 if test -n "$shared_lib_dirs"; then 2645 case $1 in 2646 # Must begin with /: 2647 /*) ;; 2648 2649 # Catch anything else as an error (relative paths) 2650 *) func_error "invalid argument '$1' for $_G_opt" 2651 func_error "absolute paths are required for $_G_opt" 2652 exit_cmd=exit 2653 ;; 2654 esac 2655 fi 2656 shift 2617 2657 ;; 2618 2658 … … 2653 2693 2654 2694 2695 # func_warning ARG... 2696 # ------------------- 2697 # Libtool warnings are not categorized, so override funclib.sh 2698 # func_warning with this simpler definition. 2699 func_warning () 2700 { 2701 if $opt_warning; then 2702 $debug_cmd 2703 $warning_func ${1+"$@"} 2704 fi 2705 } 2706 2655 2707 2656 2708 # libtool_validate_options [ARG]... … … 2669 2721 test : = "$debug_cmd" || func_append preserve_args " --debug" 2670 2722 2671 case $host in2723 case $host_os in 2672 2724 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 2673 2725 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 2674 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)2726 cygwin* | mingw* | windows* | pw32* | cegcc* | solaris2* | os2*) 2675 2727 # don't eliminate duplications in $postdeps and $predeps 2676 2728 opt_duplicate_compiler_generated_deps=: … … 3004 3056 # func_convert_core_file_wine_to_w32 ARG 3005 3057 # Helper function used by file name conversion functions when $build is *nix, 3006 # and $host is mingw, cygwin, or some other w32 environment. Relies on a3058 # and $host is mingw, windows, cygwin, or some other w32 environment. Relies on a 3007 3059 # correctly configured wine environment available, with the winepath program 3008 3060 # in $build's $PATH. … … 3036 3088 # func_convert_core_path_wine_to_w32 ARG 3037 3089 # Helper function used by path conversion functions when $build is *nix, and 3038 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly 3039 # configured wine environment available, with the winepath program in $build's 3040 # $PATH. Assumes ARG has no leading or trailing path separator characters. 3090 # $host is mingw, windows, cygwin, or some other w32 environment. Relies on a 3091 # correctly configured wine environment available, with the winepath program 3092 # in $build's $PATH. Assumes ARG has no leading or trailing path separator 3093 # characters. 3041 3094 # 3042 3095 # ARG is path to be converted from $build format to win32. … … 3179 3232 } 3180 3233 # end func_convert_path_front_back_pathsep 3234 3235 3236 # func_convert_delimited_path PATH ORIG_DELIMITER NEW_DELIMITER 3237 # Replaces a delimiter for a given path. 3238 func_convert_delimited_path () 3239 { 3240 converted_path=`$ECHO "$1" | $SED "s#$2#$3#g"` 3241 } 3242 # end func_convert_delimited_path 3181 3243 3182 3244 … … 3515 3577 3516 3578 3579 # func_reorder_shared_lib_cache DIRS 3580 # Reorder the shared library cache by unconfiguring previous shared library cache 3581 # and configuring preferred search directories before previous search directories. 3582 # Previous shared library cache: /usr/lib /usr/local/lib 3583 # Preferred search directories: /tmp/testing 3584 # Reordered shared library cache: /tmp/testing /usr/lib /usr/local/lib 3585 func_reorder_shared_lib_cache () 3586 { 3587 $debug_cmd 3588 3589 case $host_os in 3590 openbsd*) 3591 get_search_directories=`PATH="$PATH:/sbin" ldconfig -r | $GREP "search directories" | $SED "s#.*search directories:\ ##g"` 3592 func_convert_delimited_path "$get_search_directories" ':' '\ ' 3593 save_search_directories=$converted_path 3594 func_convert_delimited_path "$1" ':' '\ ' 3595 3596 # Ensure directories exist 3597 for dir in $converted_path; do 3598 # Ensure each directory is an absolute path 3599 case $dir in 3600 /*) ;; 3601 *) func_error "Directory '$dir' is not an absolute path" 3602 exit $EXIT_FAILURE ;; 3603 esac 3604 # Ensure no trailing slashes 3605 func_stripname '' '/' "$dir" 3606 dir=$func_stripname_result 3607 if test -d "$dir"; then 3608 if test -n "$preferred_search_directories"; then 3609 preferred_search_directories="$preferred_search_directories $dir" 3610 else 3611 preferred_search_directories=$dir 3612 fi 3613 else 3614 func_error "Directory '$dir' does not exist" 3615 exit $EXIT_FAILURE 3616 fi 3617 done 3618 3619 PATH="$PATH:/sbin" ldconfig -U $save_search_directories 3620 PATH="$PATH:/sbin" ldconfig -m $preferred_search_directories $save_search_directories 3621 get_search_directories=`PATH="$PATH:/sbin" ldconfig -r | $GREP "search directories" | $SED "s#.*search directories:\ ##g"` 3622 func_convert_delimited_path "$get_search_directories" ':' '\ ' 3623 reordered_search_directories=$converted_path 3624 3625 $ECHO "Original: $save_search_directories" 3626 $ECHO "Reordered: $reordered_search_directories" 3627 exit $EXIT_SUCCESS 3628 ;; 3629 *) 3630 func_error "--reorder-cache is not supported for host_os=$host_os." 3631 exit $EXIT_FAILURE 3632 ;; 3633 esac 3634 } 3635 # end func_reorder_shared_lib_cache 3636 3637 3517 3638 # func_mode_compile arg... 3518 3639 func_mode_compile () … … 3693 3814 # On Cygwin there's no "real" PIC flag so we must build both object types 3694 3815 case $host_os in 3695 cygwin* | mingw* | pw32* | os2* | cegcc*)3816 cygwin* | mingw* | windows* | pw32* | os2* | cegcc*) 3696 3817 pic_mode=default 3697 3818 ;; … … 4087 4208 4088 4209 4210 # If option '--reorder-cache', reorder the shared library cache and exit. 4211 if $opt_reorder_cache; then 4212 func_reorder_shared_lib_cache $shared_lib_dirs 4213 fi 4214 4215 4089 4216 # func_mode_execute arg... 4090 4217 func_mode_execute () … … 4271 4398 fi 4272 4399 4273 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs" ; then4400 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs" && $opt_finishing; then 4274 4401 for libdir in $libdirs; do 4275 4402 if test -n "$finish_cmds"; then … … 4296 4423 $ECHO " $libdir" 4297 4424 done 4425 if test "false" = "$opt_finishing"; then 4426 echo 4427 echo "NOTE: finish_cmds were not executed during testing, so you must" 4428 echo "manually run ldconfig to add a given test directory, LIBDIR, to" 4429 echo "the search path for generated executables." 4430 fi 4298 4431 echo 4299 4432 echo "If you ever happen to want to link against installed libraries" … … 4532 4665 4533 4666 if test -n "$relink_command"; then 4667 # Strip any trailing slash from the destination. 4668 func_stripname '' '/' "$libdir" 4669 destlibdir=$func_stripname_result 4670 4671 func_stripname '' '/' "$destdir" 4672 s_destdir=$func_stripname_result 4673 4534 4674 # Determine the prefix the user has applied to our future dir. 4535 inst_prefix_dir=`$ECHO " $destdir" | $SED -e "s%$libdir\$%%"`4675 inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"` 4536 4676 4537 4677 # Don't allow the user to place us outside of our expected … … 4570 4710 tstripme=$stripme 4571 4711 case $host_os in 4572 cygwin* | mingw* | pw32* | cegcc*)4712 cygwin* | mingw* | windows* | pw32* | cegcc*) 4573 4713 case $realname in 4574 4714 *.dll.a) … … 4683 4823 # Do a test to see if this is really a libtool program. 4684 4824 case $host in 4685 *cygwin* | *mingw* )4825 *cygwin* | *mingw* | *windows*) 4686 4826 if func_ltwrapper_executable_p "$file"; then 4687 4827 func_ltwrapper_scriptname "$file" … … 4911 5051 eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' 4912 5052 case $host in 4913 *cygwin* | *mingw* | * cegcc* )5053 *cygwin* | *mingw* | *windows* | *cegcc* ) 4914 5054 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' 4915 5055 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' … … 4923 5063 eval '$MV "$nlist"T "$nlist"' 4924 5064 case $host in 4925 *cygwin* | *mingw* | * cegcc* )5065 *cygwin* | *mingw* | *windows* | *cegcc* ) 4926 5066 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' 4927 5067 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' … … 4937 5077 name=$func_basename_result 4938 5078 case $host in 4939 *cygwin* | *mingw* | * cegcc* )5079 *cygwin* | *mingw* | *windows* | *cegcc* ) 4940 5080 # if an import library, we need to obtain dlname 4941 5081 if func_win32_import_lib_p "$dlprefile"; then … … 4963 5103 fi 4964 5104 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 4965 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | 4966 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" 5105 case $host in 5106 i[3456]86-*-mingw32*) 5107 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | 5108 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" 5109 ;; 5110 *) 5111 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | 5112 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/__nm_//' >> '$nlist'" 5113 ;; 5114 esac 4967 5115 } 4968 5116 else # not an import lib … … 5112 5260 symfileobj=$output_objdir/${my_outputname}S.$objext 5113 5261 case $host in 5114 *cygwin* | *mingw* | * cegcc* )5262 *cygwin* | *mingw* | *windows* | *cegcc* ) 5115 5263 if test -f "$output_objdir/$my_outputname.def"; then 5116 5264 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` … … 5188 5336 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. 5189 5337 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | 5190 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64 )' >/dev/null; then5338 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' >/dev/null; then 5191 5339 case $nm_interface in 5192 5340 "MS dumpbin") … … 5455 5603 # Emit a libtool wrapper script on stdout. 5456 5604 # Don't directly open a file because we may want to 5457 # incorporate the script contents within a cygwin/mingw 5605 # incorporate the script contents within a cygwin/mingw/windows 5458 5606 # wrapper executable. Must ONLY be called from within 5459 5607 # func_mode_link because it depends on a number of variables … … 5463 5611 # variable will take. If 'yes', then the emitted script 5464 5612 # will assume that the directory where it is stored is 5465 # the $objdir directory. This is a cygwin/mingw -specific5613 # the $objdir directory. This is a cygwin/mingw/windows-specific 5466 5614 # behavior. 5467 5615 func_emit_wrapper () … … 5588 5736 case $host in 5589 5737 # Backslashes separate directories on plain windows 5590 *-*-mingw | *-*-os2* | *-cegcc*)5738 *-*-mingw* | *-*-windows* | *-*-os2* | *-cegcc*) 5591 5739 $ECHO "\ 5592 5740 if test -n \"\$lt_option_debug\"; then … … 5656 5804 done 5657 5805 5658 # Usually 'no', except on cygwin/mingw when embedded into5806 # Usually 'no', except on cygwin/mingw/windows when embedded into 5659 5807 # the cwrapper. 5660 5808 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 … … 5788 5936 #include <stdio.h> 5789 5937 #include <stdlib.h> 5790 #if def _MSC_VER5938 #if defined _WIN32 && !defined __GNUC__ 5791 5939 # include <direct.h> 5792 5940 # include <process.h> … … 5813 5961 #if defined __MINGW32__ 5814 5962 # ifdef __STRICT_ANSI__ 5815 int_putenv (const char *);5963 _CRTIMP int __cdecl _putenv (const char *); 5816 5964 # endif 5817 5965 #elif defined __CYGWIN__ … … 6011 6159 EOF 6012 6160 case $host in 6013 *mingw* | * cygwin* )6161 *mingw* | *windows* | *cygwin* ) 6014 6162 # make stdout use "unix" line endings 6015 6163 echo " setmode(1,_O_BINARY);" … … 6030 6178 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX 6031 6179 namespace, but it is not one of the ones we know about and 6032 have already dealt with, above (in luding dump-script), then6180 have already dealt with, above (including dump-script), then 6033 6181 report an error. Otherwise, targets might begin to believe 6034 6182 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX … … 6114 6262 6115 6263 case $host_os in 6116 mingw* )6264 mingw* | windows*) 6117 6265 cat <<"EOF" 6118 6266 { … … 6156 6304 6157 6305 case $host_os in 6158 mingw* )6306 mingw* | windows*) 6159 6307 cat <<"EOF" 6160 6308 /* execv doesn't actually work on mingw as expected on unix */ … … 6575 6723 EOF 6576 6724 case $host_os in 6577 mingw* )6725 mingw* | windows*) 6578 6726 cat <<"EOF" 6579 6727 … … 6750 6898 6751 6899 case $host in 6752 *-*-cygwin* | *-*-mingw* | *-*- pw32* | *-*-os2* | *-cegcc*)6900 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-cegcc*) 6753 6901 # It is impossible to link a dll without this setting, and 6754 6902 # we shouldn't force the makefile maintainer to figure out … … 6774 6922 6775 6923 compile_rpath= 6924 compile_rpath_tail= 6776 6925 finalize_rpath= 6777 6926 compile_shlibpath= … … 6814 6963 perm_rpath= 6815 6964 temp_rpath= 6965 temp_rpath_tail= 6816 6966 thread_safe=no 6817 6967 vinfo= 6818 6968 vinfo_number=no 6819 6969 weak_libs= 6970 rpath_arg= 6820 6971 single_module=$wl-single_module 6821 6972 func_infer_tag $base_compile … … 7080 7231 [\\/]* | [A-Za-z]:[\\/]*) ;; 7081 7232 *) 7082 func_fatal_error " only absolute run-paths are allowed"7233 func_fatal_error "argument to -rpath is not absolute: $arg" 7083 7234 ;; 7084 7235 esac … … 7256 7407 esac 7257 7408 case $host in 7258 *-*-cygwin* | *-*-mingw* | *-*- pw32* | *-*-os2* | *-cegcc*)7409 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-cegcc*) 7259 7410 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` 7260 7411 case :$dllsearchpath: in … … 7276 7427 if test X-lc = "X$arg" || test X-lm = "X$arg"; then 7277 7428 case $host in 7278 *-*-cygwin* | *-*-mingw* | *-*- pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)7429 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) 7279 7430 # These systems don't actually have a C or math library (as such) 7280 7431 continue … … 7284 7435 test X-lc = "X$arg" && continue 7285 7436 ;; 7286 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*- bitrig* | *-*-midnightbsd*)7437 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*) 7287 7438 # Do not include libc due to us having libc/libc_r. 7288 7439 test X-lc = "X$arg" && continue … … 7304 7455 elif test X-lc_r = "X$arg"; then 7305 7456 case $host in 7306 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*- bitrig* | *-*-midnightbsd*)7457 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*) 7307 7458 # Do not include libc_r directly, use -pthread flag. 7308 7459 continue … … 7327 7478 # classes, name mangling, and exception handling. 7328 7479 # Darwin uses the -arch flag to determine output architecture. 7329 -model|-arch|-isysroot|--sysroot) 7480 # -q <option> for IBM XL C/C++ compiler. 7481 -model|-arch|-isysroot|--sysroot|-q) 7330 7482 func_append compiler_flags " $arg" 7331 7483 func_append compile_command " $arg" … … 7348 7500 ;; 7349 7501 -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \ 7350 |-threads|-fopenmp|- openmp|-mp|-xopenmp|-omp|-qsmp=*)7502 |-threads|-fopenmp|-fopenmp=*|-openmp|-mp|-xopenmp|-omp|-qsmp=*) 7351 7503 func_append compiler_flags " $arg" 7352 7504 func_append compile_command " $arg" … … 7371 7523 -no-install) 7372 7524 case $host in 7373 *-*-cygwin* | *-*-mingw* | *-*- pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)7525 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) 7374 7526 # The PATH hackery in wrapper scripts is required on Windows 7375 7527 # and Darwin in order for the loader to find any dlls it needs. … … 7431 7583 ;; 7432 7584 *) 7433 func_fatal_error " only absolute run-paths are allowed"7585 func_fatal_error "argument ($arg) to '-R' is not an absolute path: $dir" 7434 7586 ;; 7435 7587 esac … … 7556 7708 # -specs=* GCC specs files 7557 7709 # -stdlib=* select c++ std lib with clang 7710 # -fdiagnostics-color* simply affects output 7711 # -frecord-gcc-switches used to verify flags were respected 7558 7712 # -fsanitize=* Clang/GCC memory and address sanitizer 7713 # -fno-sanitize* Clang/GCC memory and address sanitizer 7714 # -shared-libsan Link with shared sanitizer runtimes (Clang) 7715 # -static-libsan Link with static sanitizer runtimes (Clang) 7716 # -no-canonical-prefixes Do not expand any symbolic links 7559 7717 # -fuse-ld=* Linker select flags for GCC 7718 # -static-* direct GCC to link specific libraries statically 7719 # -fcilkplus Cilk Plus language extension features for C/C++ 7720 # -rtlib=* select c runtime lib with clang 7721 # --unwindlib=* select unwinder library with clang 7722 # -f{file|debug|macro|profile}-prefix-map=* needed for lto linking 7560 7723 # -Wa,* Pass flags directly to the assembler 7724 # -Werror, -Werror=* Report (specified) warnings as errors 7561 7725 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ 7562 7726 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ 7563 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ 7564 -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*) 7727 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-no-canonical-prefixes| \ 7728 -stdlib=*|-rtlib=*|--unwindlib=*| \ 7729 -specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \ 7730 -ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*| \ 7731 -fdiagnostics-color*|-frecord-gcc-switches| \ 7732 -fuse-ld=*|-static-*|-fcilkplus|-Wa,*|-Werror|-Werror=*) 7565 7733 func_quote_arg pretty "$arg" 7566 7734 arg=$func_quote_arg_result … … 7720 7888 # Now actually substitute the argument into the commands. 7721 7889 if test -n "$arg"; then 7722 func_append compile_command " $arg" 7723 func_append finalize_command " $arg" 7890 if test -n "$rpath_arg"; then 7891 func_append finalize_rpath " ${arg##*,}" 7892 unset rpath_arg 7893 else 7894 case $arg in 7895 -Wl,-rpath,*) 7896 func_append finalize_rpath " ${arg##*,}";; 7897 -Wl,-rpath) 7898 rpath_arg=1;; 7899 *) 7900 func_append compile_command " $arg" 7901 func_append finalize_command " $arg" 7902 esac 7903 fi 7724 7904 fi 7725 7905 done # argument parsing loop … … 7892 8072 case $deplib in 7893 8073 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ 7894 |-threads|-fopenmp|- openmp|-mp|-xopenmp|-omp|-qsmp=*)8074 |-threads|-fopenmp|-fopenmp=*|-openmp|-mp|-xopenmp|-omp|-qsmp=*) 7895 8075 if test prog,link = "$linkmode,$pass"; then 7896 8076 compile_deplibs="$deplib $compile_deplibs" … … 8069 8249 esac 8070 8250 if $valid_a_lib; then 8071 echo 8072 $ECHO "*** Warning: Linking the shared library $output against the" 8073 $ECHO "*** static library $deplib is not portable!" 8251 func_warning "Linking the shared library $output against the static library $deplib is not portable!" 8074 8252 deplibs="$deplib $deplibs" 8075 8253 else 8076 echo 8077 $ECHO "*** Warning: Trying to link with static lib archive $deplib." 8078 echo "*** I have the capability to make that library automatically link in when" 8079 echo "*** you link to this library. But I can only do this if you have a" 8080 echo "*** shared version of the library, which you do not appear to have" 8081 echo "*** because the file extensions .$libext of this argument makes me believe" 8082 echo "*** that it is just a static archive that I should not use here." 8254 func_warning "Trying to link with static lib archive $deplib." 8255 func_warning "I have the capability to make that library automatically link in when" 8256 func_warning "you link to this library. But I can only do this if you have a" 8257 func_warning "shared version of the library, which you do not appear to have" 8258 func_warning "because the file extensions .$libext of this argument makes me believe" 8259 func_warning "that it is just a static archive that I should not use here." 8083 8260 fi 8084 8261 ;; … … 8275 8452 case $host in 8276 8453 # special handling for platforms with PE-DLLs. 8277 *cygwin* | *mingw* | * cegcc* )8454 *cygwin* | *mingw* | *windows* | *cegcc* ) 8278 8455 # Linker will automatically link against shared library if both 8279 8456 # static and shared are present. Therefore, ensure we extract … … 8375 8552 case $temp_rpath: in 8376 8553 *"$absdir:"*) ;; 8377 *) func_append temp_rpath "$absdir:" ;; 8554 *) case $absdir in 8555 "$progdir/"*) func_append temp_rpath "$absdir:" ;; 8556 *) func_append temp_rpath_tail "$absdir:" ;; 8557 esac 8378 8558 esac 8379 8559 fi … … 8385 8565 *" $absdir "*) ;; 8386 8566 *) 8387 case "$compile_rpath " in8567 case "$compile_rpath$compile_rpath_tail " in 8388 8568 *" $absdir "*) ;; 8389 *) func_append compile_rpath " $absdir" ;; 8569 *) case $absdir in 8570 "$progdir/"*) func_append compile_rpath " $absdir" ;; 8571 *) func_append compile_rpath_tail " $absdir" ;; 8572 esac 8390 8573 esac 8391 8574 ;; … … 8418 8601 if test -n "$library_names" && 8419 8602 { test no = "$use_static_libs" || test -z "$old_library"; }; then 8420 case $host in8421 *cygwin* | *mingw* | *cegcc* | *os2*)8603 case $host_os in 8604 cygwin* | mingw* | windows* | cegcc* | os2*) 8422 8605 # No point in relinking DLLs because paths are not encoded 8423 8606 func_append notinst_deplibs " $lib" … … 8445 8628 echo 8446 8629 if test prog = "$linkmode"; then 8447 $ECHO "*** Warning:Linking the executable $output against the loadable module"8630 func_warning "Linking the executable $output against the loadable module" 8448 8631 else 8449 $ECHO "*** Warning:Linking the shared library $output against the loadable module"8632 func_warning "Linking the shared library $output against the loadable module" 8450 8633 fi 8451 $ECHO "***$linklib is not portable!"8634 func_warning "$linklib is not portable!" 8452 8635 fi 8453 8636 if test lib = "$linkmode" && … … 8459 8642 *" $absdir "*) ;; 8460 8643 *) 8461 case "$compile_rpath " in8644 case "$compile_rpath$compile_rpath_tail " in 8462 8645 *" $absdir "*) ;; 8463 *) func_append compile_rpath " $absdir" ;; 8646 *) case $absdir in 8647 "$progdir/"*) func_append compile_rpath " $absdir" ;; 8648 *) func_append compile_rpath_tail " $absdir" ;; 8649 esac 8464 8650 esac 8465 8651 ;; … … 8488 8674 elif test -n "$soname_spec"; then 8489 8675 # bleh windows 8490 case $host in8491 *cygwin* | mingw* | *cegcc* | *os2*)8676 case $host_os in 8677 cygwin* | mingw* | windows* | cegcc* | os2*) 8492 8678 func_arith $current - $age 8493 8679 major=$func_arith_result … … 8536 8722 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;; 8537 8723 *-*-sysv4*uw2*) add_dir=-L$dir ;; 8724 *-*-emscripten*) add_dir=-L$dir ;; 8538 8725 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ 8539 8726 *-*-unixware7*) add_dir=-L$dir ;; … … 8544 8731 $GREP ": [^:]* bundle" >/dev/null; then 8545 8732 if test "X$dlopenmodule" != "X$lib"; then 8546 $ECHO "*** Warning:lib $linklib is a module, not a shared library"8733 func_warning "lib $linklib is a module, not a shared library" 8547 8734 if test -z "$old_library"; then 8548 echo 8549 echo "*** And there doesn't seem to be a static archive available" 8550 echo "*** The link will probably fail, sorry" 8735 func_warning "And there doesn't seem to be a static archive available" 8736 func_warning "The link will probably fail, sorry" 8551 8737 else 8552 8738 add=$dir/$old_library … … 8631 8817 add=$libdir/$linklib 8632 8818 elif test yes = "$hardcode_minus_L"; then 8633 add_dir=-L$l ibdir8819 add_dir=-L$lt_sysroot$libdir 8634 8820 add=-l$name 8635 8821 elif test yes = "$hardcode_shlibpath_var"; then … … 8648 8834 else 8649 8835 # We cannot seem to hardcode it, guess we'll fake it. 8650 add_dir=-L$l ibdir8836 add_dir=-L$lt_sysroot$libdir 8651 8837 # Try looking first in the location we're being installed to. 8652 8838 if test -n "$inst_prefix_dir"; then … … 8688 8874 # Just print a warning and add the library to dependency_libs so 8689 8875 # that the program can be linked against the static library. 8690 echo 8691 $ECHO "*** Warning: This system cannot link to static lib archive $lib." 8692 echo "*** I have the capability to make that library automatically link in when" 8693 echo "*** you link to this library. But I can only do this if you have a" 8694 echo "*** shared version of the library, which you do not appear to have." 8876 func_warning "This system cannot link to static lib archive $lib." 8877 func_warning "I have the capability to make that library automatically link in when" 8878 func_warning "you link to this library. But I can only do this if you have a" 8879 func_warning "shared version of the library, which you do not appear to have." 8695 8880 if test yes = "$module"; then 8696 echo "***But as you try to build a module library, libtool will still create "8697 echo "***a static module, that should work as long as the dlopening application"8698 echo "***is linked with the -dlopen flag to resolve symbols at runtime."8881 func_warning "But as you try to build a module library, libtool will still create " 8882 func_warning "a static module, that should work as long as the dlopening application" 8883 func_warning "is linked with the -dlopen flag to resolve symbols at runtime." 8699 8884 if test -z "$global_symbol_pipe"; then 8700 echo 8701 echo "*** However, this would only work if libtool was able to extract symbol" 8702 echo "*** lists from a program, using 'nm' or equivalent, but libtool could" 8703 echo "*** not find such a program. So, this module is probably useless." 8704 echo "*** 'nm' from GNU binutils and a full rebuild may help." 8885 func_warning "However, this would only work if libtool was able to extract symbol" 8886 func_warning "lists from a program, using 'nm' or equivalent, but libtool could" 8887 func_warning "not find such a program. So, this module is probably useless." 8888 func_warning "'nm' from GNU binutils and a full rebuild may help." 8705 8889 fi 8706 8890 if test no = "$build_old_libs"; then … … 8825 9009 fi # linkmode = lib 8826 9010 done # for deplib in $libs 9011 9012 func_append temp_rpath "$temp_rpath_tail" 9013 func_append compile_rpath "$compile_rpath_tail" 9014 8827 9015 if test link = "$pass"; then 8828 9016 if test prog = "$linkmode"; then … … 8862 9050 eval tmp_libs=\"\$$var\" 8863 9051 new_libs= 9052 # FIXME: Pedantically, this is the right thing to do, so 9053 # that some nasty dependency loop isn't accidentally 9054 # broken: new_libs="$deplib $new_libs" 8864 9055 for deplib in $tmp_libs; do 8865 # FIXME: Pedantically, this is the right thing to do, so 8866 # that some nasty dependency loop isn't accidentally 8867 # broken: 8868 #new_libs="$deplib $new_libs" 8869 # Pragmatically, this seems to cause very few problems in 8870 # practice: 8871 case $deplib in 8872 -L*) new_libs="$deplib $new_libs" ;; 8873 -R*) ;; 8874 *) 8875 # And here is the reason: when a library appears more 8876 # than once as an explicit dependence of a library, or 8877 # is implicitly linked in more than once by the 8878 # compiler, it is considered special, and multiple 8879 # occurrences thereof are not removed. Compare this 8880 # with having the same library being listed as a 8881 # dependency of multiple other libraries: in this case, 8882 # we know (pedantically, we assume) the library does not 8883 # need to be listed more than once, so we keep only the 8884 # last copy. This is not always right, but it is rare 8885 # enough that we require users that really mean to play 8886 # such unportable linking tricks to link the library 8887 # using -Wl,-lname, so that libtool does not consider it 8888 # for duplicate removal. 8889 case " $specialdeplibs " in 8890 *" $deplib "*) new_libs="$deplib $new_libs" ;; 9056 if $opt_preserve_dup_deps; then 9057 new_libs="$deplib $new_libs" 9058 else 9059 # Pragmatically, this seems to cause very few problems in 9060 # practice: 9061 case $deplib in 9062 -L*) new_libs="$deplib $new_libs" ;; 9063 -R*) ;; 8891 9064 *) 8892 case " $new_libs " in 8893 *" $deplib "*) ;; 8894 *) new_libs="$deplib $new_libs" ;; 8895 esac 8896 ;; 9065 # And here is the reason: when a library appears more 9066 # than once as an explicit dependence of a library, or 9067 # is implicitly linked in more than once by the 9068 # compiler, it is considered special, and multiple 9069 # occurrences thereof are not removed. Compare this 9070 # with having the same library being listed as a 9071 # dependency of multiple other libraries: in this case, 9072 # we know (pedantically, we assume) the library does not 9073 # need to be listed more than once, so we keep only the 9074 # last copy. This is not always right, but it is rare 9075 # enough that we require users that really mean to play 9076 # such unportable linking tricks to link the library 9077 # using -Wl,-lname, so that libtool does not consider it 9078 # for duplicate removal. And if not possible for portability 9079 # reasons, then --preserve-dup-deps should be used. 9080 case " $specialdeplibs " in 9081 *" $deplib "*) new_libs="$deplib $new_libs" ;; 9082 *) 9083 case " $new_libs " in 9084 *" $deplib "*) ;; 9085 *) new_libs="$deplib $new_libs" ;; 9086 esac 9087 ;; 9088 esac 9089 ;; 8897 9090 esac 8898 ;; 8899 esac 9091 fi 8900 9092 done 8901 9093 tmp_libs= … … 9029 9221 func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs" 9030 9222 else 9031 echo 9032 $ECHO "*** Warning: Linking the shared library $output against the non-libtool" 9033 $ECHO "*** objects $objs is not portable!" 9223 func_warning "Linking the shared library $output against the non-libtool objects $objs is not portable!" 9034 9224 func_append libobjs " $objs" 9035 9225 fi … … 9092 9282 case $version_type in 9093 9283 # correct linux to gnu/linux during the next big refactor 9094 darwin|freebsd-elf|linux|midnightbsd-elf|osf| windows|none)9284 darwin|freebsd-elf|linux|midnightbsd-elf|osf|qnx|windows|none) 9095 9285 func_arith $number_major + $number_minor 9096 9286 current=$func_arith_result … … 9098 9288 revision=$number_revision 9099 9289 ;; 9100 freebsd-aout| qnx|sunos)9290 freebsd-aout|sco|sunos) 9101 9291 current=$number_major 9102 9292 revision=$number_minor … … 9109 9299 revision=$number_minor 9110 9300 lt_irix_increment=no 9301 ;; 9302 *) 9303 func_fatal_configuration "$modename: unknown library version type '$version_type'" 9111 9304 ;; 9112 9305 esac … … 9245 9438 9246 9439 qnx) 9247 major=.$current 9248 versuffix=.$current 9440 func_arith $current - $age 9441 major=.$func_arith_result 9442 versuffix=$major.$age.$revision 9249 9443 ;; 9250 9444 … … 9399 9593 if test -n "$rpath"; then 9400 9594 case $host in 9401 *-*-cygwin* | *-*-mingw* | *-*- pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)9595 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) 9402 9596 # these systems don't actually have a c library (as such)! 9403 9597 ;; … … 9449 9643 # implementing what was already the behavior. 9450 9644 newdeplibs=$deplibs 9451 ;;9452 test_compile)9453 # This code stresses the "libraries are programs" paradigm to its9454 # limits. Maybe even breaks it. We compile a program, linking it9455 # against the deplibs as a proxy for the library. Then we can check9456 # whether they linked in statically or dynamically with ldd.9457 $opt_dry_run || $RM conftest.c9458 cat > conftest.c <<EOF9459 int main() { return 0; }9460 EOF9461 $opt_dry_run || $RM conftest9462 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then9463 ldd_output=`ldd conftest`9464 for i in $deplibs; do9465 case $i in9466 -l*)9467 func_stripname -l '' "$i"9468 name=$func_stripname_result9469 if test yes = "$allow_libtool_libs_with_static_runtimes"; then9470 case " $predeps $postdeps " in9471 *" $i "*)9472 func_append newdeplibs " $i"9473 i=9474 ;;9475 esac9476 fi9477 if test -n "$i"; then9478 libname=`eval "\\$ECHO \"$libname_spec\""`9479 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`9480 set dummy $deplib_matches; shift9481 deplib_match=$19482 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then9483 func_append newdeplibs " $i"9484 else9485 droppeddeps=yes9486 echo9487 $ECHO "*** Warning: dynamic linker does not accept needed library $i."9488 echo "*** I have the capability to make that library automatically link in when"9489 echo "*** you link to this library. But I can only do this if you have a"9490 echo "*** shared version of the library, which I believe you do not have"9491 echo "*** because a test_compile did reveal that the linker did not use it for"9492 echo "*** its dynamic dependency list that programs get resolved with at runtime."9493 fi9494 fi9495 ;;9496 *)9497 func_append newdeplibs " $i"9498 ;;9499 esac9500 done9501 else9502 # Error occurred in the first compile. Let's try to salvage9503 # the situation: Compile a separate program for each library.9504 for i in $deplibs; do9505 case $i in9506 -l*)9507 func_stripname -l '' "$i"9508 name=$func_stripname_result9509 $opt_dry_run || $RM conftest9510 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then9511 ldd_output=`ldd conftest`9512 if test yes = "$allow_libtool_libs_with_static_runtimes"; then9513 case " $predeps $postdeps " in9514 *" $i "*)9515 func_append newdeplibs " $i"9516 i=9517 ;;9518 esac9519 fi9520 if test -n "$i"; then9521 libname=`eval "\\$ECHO \"$libname_spec\""`9522 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`9523 set dummy $deplib_matches; shift9524 deplib_match=$19525 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then9526 func_append newdeplibs " $i"9527 else9528 droppeddeps=yes9529 echo9530 $ECHO "*** Warning: dynamic linker does not accept needed library $i."9531 echo "*** I have the capability to make that library automatically link in when"9532 echo "*** you link to this library. But I can only do this if you have a"9533 echo "*** shared version of the library, which you do not appear to have"9534 echo "*** because a test_compile did reveal that the linker did not use this one"9535 echo "*** as a dynamic dependency that programs can get resolved with at runtime."9536 fi9537 fi9538 else9539 droppeddeps=yes9540 echo9541 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"9542 echo "*** make it link in! You will probably need to install it or some"9543 echo "*** library that it depends on before this library will be fully"9544 echo "*** functional. Installing it before continuing would be even better."9545 fi9546 ;;9547 *)9548 func_append newdeplibs " $i"9549 ;;9550 esac9551 done9552 fi9553 9645 ;; 9554 9646 file_magic*) … … 9615 9707 if test -n "$a_deplib"; then 9616 9708 droppeddeps=yes 9617 echo 9618 $ECHO "*** Warning: linker path does not have real file for library $a_deplib." 9619 echo "*** I have the capability to make that library automatically link in when" 9620 echo "*** you link to this library. But I can only do this if you have a" 9621 echo "*** shared version of the library, which you do not appear to have" 9622 echo "*** because I did check the linker path looking for a file starting" 9709 func_warning "Linker path does not have real file for library $a_deplib." 9710 func_warning "I have the capability to make that library automatically link in when" 9711 func_warning "you link to this library. But I can only do this if you have a" 9712 func_warning "shared version of the library, which you do not appear to have" 9713 func_warning "because I did check the linker path looking for a file starting" 9623 9714 if test -z "$potlib"; then 9624 $ECHO "***with $libname but no candidates were found. (...for file magic test)"9715 func_warning "with $libname but no candidates were found. (...for file magic test)" 9625 9716 else 9626 $ECHO "***with $libname and none of the candidates passed a file format test"9627 $ECHO "***using a file magic. Last file checked: $potlib"9717 func_warning "with $libname and none of the candidates passed a file format test" 9718 func_warning "using a file magic. Last file checked: $potlib" 9628 9719 fi 9629 9720 fi … … 9669 9760 if test -n "$a_deplib"; then 9670 9761 droppeddeps=yes 9671 echo 9672 $ECHO "*** Warning: linker path does not have real file for library $a_deplib." 9673 echo "*** I have the capability to make that library automatically link in when" 9674 echo "*** you link to this library. But I can only do this if you have a" 9675 echo "*** shared version of the library, which you do not appear to have" 9676 echo "*** because I did check the linker path looking for a file starting" 9762 func_warning "Linker path does not have real file for library $a_deplib." 9763 func_warning "I have the capability to make that library automatically link in when" 9764 func_warning "you link to this library. But I can only do this if you have a" 9765 func_warning "shared version of the library, which you do not appear to have" 9766 func_warning "because I did check the linker path looking for a file starting" 9677 9767 if test -z "$potlib"; then 9678 $ECHO "***with $libname but no candidates were found. (...for regex pattern test)"9768 func_warning "with $libname but no candidates were found. (...for regex pattern test)" 9679 9769 else 9680 $ECHO "***with $libname and none of the candidates passed a file format test"9681 $ECHO "***using a regex pattern. Last file checked: $potlib"9770 func_warning "with $libname and none of the candidates passed a file format test" 9771 func_warning "using a regex pattern. Last file checked: $potlib" 9682 9772 fi 9683 9773 fi … … 9703 9793 echo 9704 9794 if test none = "$deplibs_check_method"; then 9705 echo "*** Warning: inter-library dependencies are not supported in this platform."9795 func_warning "Inter-library dependencies are not supported in this platform." 9706 9796 else 9707 echo "*** Warning: inter-library dependencies are not known to be supported."9797 func_warning "Inter-library dependencies are not known to be supported." 9708 9798 fi 9709 echo "***All declared inter-library dependencies are being dropped."9799 func_warning "All declared inter-library dependencies are being dropped." 9710 9800 droppeddeps=yes 9711 9801 ;; … … 9728 9818 if test yes = "$droppeddeps"; then 9729 9819 if test yes = "$module"; then 9730 echo 9731 echo "*** Warning: libtool could not satisfy all declared inter-library" 9732 $ECHO "*** dependencies of module $libname. Therefore, libtool will create" 9733 echo "*** a static module, that should work as long as the dlopening" 9734 echo "*** application is linked with the -dlopen flag." 9820 func_warning "libtool could not satisfy all declared inter-library" 9821 func_warning "dependencies of module $libname. Therefore, libtool will create" 9822 func_warning "a static module, that should work as long as the dlopening" 9823 func_warning "application is linked with the -dlopen flag." 9735 9824 if test -z "$global_symbol_pipe"; then 9736 echo 9737 echo "*** However, this would only work if libtool was able to extract symbol" 9738 echo "*** lists from a program, using 'nm' or equivalent, but libtool could" 9739 echo "*** not find such a program. So, this module is probably useless." 9740 echo "*** 'nm' from GNU binutils and a full rebuild may help." 9825 func_warning "However, this would only work if libtool was able to extract symbol" 9826 func_warning "lists from a program, using 'nm' or equivalent, but libtool could" 9827 func_warning "not find such a program. So, this module is probably useless." 9828 func_warning "'nm' from GNU binutils and a full rebuild may help." 9741 9829 fi 9742 9830 if test no = "$build_old_libs"; then … … 9913 10001 orig_export_symbols= 9914 10002 case $host_os in 9915 cygwin* | mingw* | cegcc*)10003 cygwin* | mingw* | windows* | cegcc*) 9916 10004 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then 9917 10005 # exporting using user supplied symfile … … 10111 10199 k=1 10112 10200 10113 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then 10114 output=$output_objdir/$output_la.lnkscript 10115 func_verbose "creating GNU ld script: $output" 10116 echo 'INPUT (' > $output 10117 for obj in $save_libobjs 10118 do 10119 func_to_tool_file "$obj" 10120 $ECHO "$func_to_tool_file_result" >> $output 10121 done 10122 echo ')' >> $output 10123 func_append delfiles " $output" 10124 func_to_tool_file "$output" 10125 output=$func_to_tool_file_result 10126 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then 10201 if test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then 10127 10202 output=$output_objdir/$output_la.lnk 10128 10203 func_verbose "creating linker input file list: $output" … … 10143 10218 func_to_tool_file "$output" 10144 10219 output=$firstobj\"$file_list_spec$func_to_tool_file_result\" 10220 elif test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then 10221 output=$output_objdir/$output_la.lnkscript 10222 func_verbose "creating GNU ld script: $output" 10223 echo 'INPUT (' > $output 10224 for obj in $save_libobjs 10225 do 10226 func_to_tool_file "$obj" 10227 $ECHO "$func_to_tool_file_result" >> $output 10228 done 10229 echo ')' >> $output 10230 func_append delfiles " $output" 10231 func_to_tool_file "$output" 10232 output=$func_to_tool_file_result 10145 10233 else 10146 10234 if test -n "$save_libobjs"; then … … 10583 10671 fi 10584 10672 case $host in 10585 *-*-cygwin* | *-*-mingw* | *-*- pw32* | *-*-os2* | *-cegcc*)10673 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-cegcc*) 10586 10674 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'` 10587 10675 case :$dllsearchpath: in … … 10661 10749 wrappers_required=false 10662 10750 ;; 10663 *cygwin* | *mingw* )10751 *cygwin* | *mingw* | *windows* ) 10664 10752 test yes = "$build_libtool_libs" || wrappers_required=false 10665 10753 ;; … … 10815 10903 esac 10816 10904 case $host in 10817 *cygwin* | *mingw* )10905 *cygwin* | *mingw* | windows* ) 10818 10906 func_dirname_and_basename "$output" "" "." 10819 10907 output_name=$func_basename_result … … 11149 11237 tdlname=$dlname 11150 11238 case $host,$output,$installed,$module,$dlname in 11151 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | * cegcc*,*lai,yes,no,*.dll)11239 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *windows*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) 11152 11240 # If a -bindir argument was supplied, place the dll there. 11153 11241 if test -n "$bindir"; then -
trunk/src/libs/libpng-1.6.45/mips/filter_msa_intrinsics.c
r103316 r107813 1 2 1 /* filter_msa_intrinsics.c - MSA optimised filter functions 3 2 * … … 48 47 uint32_t val_m; \ 49 48 \ 50 asm volatile (\49 __asm__ volatile ( \ 51 50 "lw %[val_m], %[psrc_lw_m] \n\t" \ 52 51 \ … … 63 62 uint16_t val_m = (val); \ 64 63 \ 65 asm volatile (\64 __asm__ volatile ( \ 66 65 "sh %[val_m], %[pdst_sh_m] \n\t" \ 67 66 \ … … 76 75 uint32_t val_m = (val); \ 77 76 \ 78 asm volatile (\77 __asm__ volatile ( \ 79 78 "sw %[val_m], %[pdst_sw_m] \n\t" \ 80 79 \ … … 84 83 } 85 84 86 #if (__mips == 64)85 #if __mips == 64 87 86 #define SD(val, pdst) \ 88 87 { \ … … 90 89 uint64_t val_m = (val); \ 91 90 \ 92 asm volatile (\91 __asm__ volatile ( \ 93 92 "sd %[val_m], %[pdst_sd_m] \n\t" \ 94 93 \ … … 97 96 ); \ 98 97 } 99 98 #else 100 99 #define SD(val, pdst) \ 101 100 { \ … … 109 108 SW(val1_m, pdst_sd_m + 4); \ 110 109 } 111 #endif110 #endif /* __mips == 64 */ 112 111 #else 113 112 #define MSA_SRLI_B(a, b) (a >> b) 114 113 115 #if (__mips_isa_rev >= 6)114 #if __mips_isa_rev >= 6 116 115 #define LW(psrc) \ 117 116 ( { \ … … 119 118 uint32_t val_m; \ 120 119 \ 121 asm volatile (\120 __asm__ volatile ( \ 122 121 "lw %[val_m], %[psrc_lw_m] \n\t" \ 123 122 \ … … 134 133 uint16_t val_m = (val); \ 135 134 \ 136 asm volatile (\135 __asm__ volatile ( \ 137 136 "sh %[val_m], %[pdst_sh_m] \n\t" \ 138 137 \ … … 147 146 uint32_t val_m = (val); \ 148 147 \ 149 asm volatile (\148 __asm__ volatile ( \ 150 149 "sw %[val_m], %[pdst_sw_m] \n\t" \ 151 150 \ … … 155 154 } 156 155 157 #if (__mips == 64)156 #if __mips == 64 158 157 #define SD(val, pdst) \ 159 158 { \ … … 161 160 uint64_t val_m = (val); \ 162 161 \ 163 asm volatile (\162 __asm__ volatile ( \ 164 163 "sd %[val_m], %[pdst_sd_m] \n\t" \ 165 164 \ … … 168 167 ); \ 169 168 } 170 169 #else 171 170 #define SD(val, pdst) \ 172 171 { \ … … 180 179 SW(val1_m, pdst_sd_m + 4); \ 181 180 } 182 #endif183 #else // !(__mips_isa_rev >= 6)181 #endif /* __mips == 64 */ 182 #else 184 183 #define LW(psrc) \ 185 184 ( { \ … … 187 186 uint32_t val_m; \ 188 187 \ 189 asm volatile (\188 __asm__ volatile ( \ 190 189 "ulw %[val_m], %[psrc_lw_m] \n\t" \ 191 190 \ … … 202 201 uint16_t val_m = (val); \ 203 202 \ 204 asm volatile (\203 __asm__ volatile ( \ 205 204 "ush %[val_m], %[pdst_sh_m] \n\t" \ 206 205 \ … … 215 214 uint32_t val_m = (val); \ 216 215 \ 217 asm volatile (\216 __asm__ volatile ( \ 218 217 "usw %[val_m], %[pdst_sw_m] \n\t" \ 219 218 \ … … 223 222 } 224 223 225 #define SD(val, pdst) \224 #define SD(val, pdst) \ 226 225 { \ 227 226 uint8_t *pdst_sd_m = (uint8_t *) (pdst); \ … … 239 238 uint8_t *pdst_m = (uint8_t *) (pdst); \ 240 239 \ 241 asm volatile (\240 __asm__ volatile ( \ 242 241 "usw $0, %[pdst_m] \n\t" \ 243 242 \ … … 246 245 ); \ 247 246 } 248 #endif // (__mips_isa_rev >= 6)247 #endif /* __mips_isa_rev >= 6 */ 249 248 #endif 250 249 -
trunk/src/libs/libpng-1.6.45/mips/mips_init.c
r103316 r107813 1 2 1 /* mips_init.c - MSA optimised filter functions 3 2 * -
trunk/src/libs/libpng-1.6.45/missing
r103316 r107813 1 1 #! /bin/sh 2 # Common wrapper for a few potentially missing GNU programs. 3 4 scriptversion=2018-03-07.03; # UTC 5 6 # Copyright (C) 1996-2021 Free Software Foundation, Inc. 2 # Common wrapper for a few potentially missing GNU and other programs. 3 4 scriptversion=2024-06-07.14; # UTC 5 6 # shellcheck disable=SC2006,SC2268 # we must support pre-POSIX shells 7 8 # Copyright (C) 1996-2024 Free Software Foundation, Inc. 7 9 # Originally written by Fran,cois Pinard <[email protected]>, 1996. 8 10 … … 55 57 56 58 Supported PROGRAM values: 57 aclocal autoconf autoheader autom4te automake makeinfo 58 bison yacc flex lex help2man 59 aclocal autoconf autogen autoheader autom4te automake autoreconf 60 bison flex help2man lex makeinfo perl yacc 59 61 60 62 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 61 63 'g' are ignored when checking the name. 62 64 63 Send bug reports to <[email protected]>." 65 Report bugs to <[email protected]>. 66 GNU Automake home page: <https://www.gnu.org/software/automake/>. 67 General help using GNU software: <https://www.gnu.org/gethelp/>." 64 68 exit $? 65 69 ;; 66 70 67 71 -v|--v|--ve|--ver|--vers|--versi|--versio|--version) 68 echo "missing $scriptversion (GNU Automake)"72 echo "missing (GNU Automake) $scriptversion" 69 73 exit $? 70 74 ;; … … 109 113 { 110 114 case $1 in 111 aclocal|automake )115 aclocal|automake|autoreconf) 112 116 echo "The '$1' program is part of the GNU Automake package:" 113 117 echo "<$gnu_software_URL/automake>" … … 123 127 echo "<$gnu_software_URL/m4/>" 124 128 echo "<$perl_URL>" 129 ;; 130 *) 131 : 125 132 ;; 126 133 esac … … 138 145 139 146 configure_deps="'configure.ac' or m4 files included by 'configure.ac'" 147 autoheader_deps="'acconfig.h'" 148 automake_deps="'Makefile.am'" 149 aclocal_deps="'acinclude.m4'" 140 150 case $normalized_program in 151 aclocal*) 152 echo "You should only need it if you modified $aclocal_deps or" 153 echo "$configure_deps." 154 ;; 141 155 autoconf*) 142 echo "You should only need it if you modified 'configure.ac'," 143 echo "or m4 files included by it." 144 program_details 'autoconf' 156 echo "You should only need it if you modified $configure_deps." 157 ;; 158 autogen*) 159 echo "You should only need it if you modified a '.def' or '.tpl' file." 160 echo "You may want to install the GNU AutoGen package:" 161 echo "<$gnu_software_URL/autogen/>" 145 162 ;; 146 163 autoheader*) 147 echo "You should only need it if you modified 'acconfig.h' or" 148 echo "$configure_deps." 149 program_details 'autoheader' 164 echo "You should only need it if you modified $autoheader_deps or" 165 echo "$configure_deps." 150 166 ;; 151 167 automake*) 152 echo "You should only need it if you modified 'Makefile.am' or" 153 echo "$configure_deps." 154 program_details 'automake' 155 ;; 156 aclocal*) 157 echo "You should only need it if you modified 'acinclude.m4' or" 158 echo "$configure_deps." 159 program_details 'aclocal' 160 ;; 161 autom4te*) 168 echo "You should only need it if you modified $automake_deps or" 169 echo "$configure_deps." 170 ;; 171 autom4te*) 162 172 echo "You might have modified some maintainer files that require" 163 173 echo "the 'autom4te' program to be rebuilt." 164 program_details 'autom4te' 174 ;; 175 autoreconf*) 176 echo "You should only need it if you modified $aclocal_deps or" 177 echo "$automake_deps or $autoheader_deps or $automake_deps or" 178 echo "$configure_deps." 165 179 ;; 166 180 bison*|yacc*) … … 168 182 echo "You may want to install the GNU Bison package:" 169 183 echo "<$gnu_software_URL/bison/>" 170 ;;171 lex*|flex*)172 echo "You should only need it if you modified a '.l' file."173 echo "You may want to install the Fast Lexical Analyzer package:"174 echo "<$flex_URL>"175 184 ;; 176 185 help2man*) … … 180 189 echo "<$gnu_software_URL/help2man/>" 181 190 ;; 191 lex*|flex*) 192 echo "You should only need it if you modified a '.l' file." 193 echo "You may want to install the Fast Lexical Analyzer package:" 194 echo "<$flex_URL>" 195 ;; 182 196 makeinfo*) 183 197 echo "You should only need it if you modified a '.texi' file, or" … … 190 204 echo "<$gnu_software_URL/make/>" 191 205 ;; 206 perl*) 207 echo "You should only need it to run GNU Autoconf, GNU Automake, " 208 echo " assorted other tools, or if you modified a Perl source file." 209 echo "You may want to install the Perl 5 language interpreter:" 210 echo "<$perl_URL>" 211 ;; 192 212 *) 193 213 echo "You might have modified some files without having the proper" … … 198 218 ;; 199 219 esac 220 program_details "$normalized_program" 200 221 } 201 222 -
trunk/src/libs/libpng-1.6.45/png.5
r105469 r107813 1 .TH PNG 5 " February 23, 2024"1 .TH PNG 5 "January 7, 2025" 2 2 .SH NAME 3 3 png \- Portable Network Graphics (PNG) format … … 20 20 .SH "SEE ALSO" 21 21 .BR "libpng"(3), " zlib"(3), " deflate"(5), " " and " zlib"(5) 22 .LP 23 PNG Specification (Third Edition) Candidate Recommendation Draft, July 2024: 24 .IP 25 .br 26 https://www.w3.org/TR/2024/CRD-png-3-20240718/ 22 27 .LP 23 28 PNG Specification (Second Edition), November 2003: -
trunk/src/libs/libpng-1.6.45/png.c
r105469 r107813 1 2 1 /* png.c - location for general purpose libpng functions 3 2 * 4 * Copyright (c) 2018-202 4Cosmin Truta3 * Copyright (c) 2018-2025 Cosmin Truta 5 4 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 5 * Copyright (c) 1996-1997 Andreas Dilger … … 15 14 16 15 /* Generate a compiler error if there is an old png.h in the search path. */ 17 typedef png_libpng_version_1_6_4 3 Your_png_h_is_not_version_1_6_43;16 typedef png_libpng_version_1_6_45 Your_png_h_is_not_version_1_6_45; 18 17 19 18 /* Tells libpng that we have already handled the first "num_bytes" bytes … … 795 794 #else 796 795 return PNG_STRING_NEWLINE \ 797 "libpng version 1.6.4 3" PNG_STRING_NEWLINE \798 "Copyright (c) 2018-202 4Cosmin Truta" PNG_STRING_NEWLINE \796 "libpng version 1.6.45" PNG_STRING_NEWLINE \ 797 "Copyright (c) 2018-2025 Cosmin Truta" PNG_STRING_NEWLINE \ 799 798 "Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson" \ 800 799 PNG_STRING_NEWLINE \ … … 1204 1203 1205 1204 #ifdef PNG_COLORSPACE_SUPPORTED 1205 static png_int_32 1206 png_fp_add(png_int_32 addend0, png_int_32 addend1, int *error) 1207 { 1208 /* Safely add two fixed point values setting an error flag and returning 0.5 1209 * on overflow. 1210 * IMPLEMENTATION NOTE: ANSI requires signed overflow not to occur, therefore 1211 * relying on addition of two positive values producing a negative one is not 1212 * safe. 1213 */ 1214 if (addend0 > 0) 1215 { 1216 if (0x7fffffff - addend0 >= addend1) 1217 return addend0+addend1; 1218 } 1219 else if (addend0 < 0) 1220 { 1221 if (-0x7fffffff - addend0 <= addend1) 1222 return addend0+addend1; 1223 } 1224 else 1225 return addend1; 1226 1227 *error = 1; 1228 return PNG_FP_1/2; 1229 } 1230 1231 static png_int_32 1232 png_fp_sub(png_int_32 addend0, png_int_32 addend1, int *error) 1233 { 1234 /* As above but calculate addend0-addend1. */ 1235 if (addend1 > 0) 1236 { 1237 if (-0x7fffffff + addend1 <= addend0) 1238 return addend0-addend1; 1239 } 1240 else if (addend1 < 0) 1241 { 1242 if (0x7fffffff + addend1 >= addend0) 1243 return addend0-addend1; 1244 } 1245 else 1246 return addend0; 1247 1248 *error = 1; 1249 return PNG_FP_1/2; 1250 } 1251 1252 static int 1253 png_safe_add(png_int_32 *addend0_and_result, png_int_32 addend1, 1254 png_int_32 addend2) 1255 { 1256 /* Safely add three integers. Returns 0 on success, 1 on overflow. Does not 1257 * set the result on overflow. 1258 */ 1259 int error = 0; 1260 int result = png_fp_add(*addend0_and_result, 1261 png_fp_add(addend1, addend2, &error), 1262 &error); 1263 if (!error) *addend0_and_result = result; 1264 return error; 1265 } 1266 1206 1267 /* Added at libpng-1.5.5 to support read and write of true CIEXYZ values for 1207 1268 * cHRM, as opposed to using chromaticities. These internal APIs return … … 1212 1273 png_xy_from_XYZ(png_xy *xy, const png_XYZ *XYZ) 1213 1274 { 1214 png_int_32 d, dwhite, whiteX, whiteY; 1215 1216 d = XYZ->red_X + XYZ->red_Y + XYZ->red_Z; 1217 if (png_muldiv(&xy->redx, XYZ->red_X, PNG_FP_1, d) == 0) 1275 png_int_32 d, dred, dgreen, dblue, dwhite, whiteX, whiteY; 1276 1277 /* 'd' in each of the blocks below is just X+Y+Z for each component, 1278 * x, y and z are X,Y,Z/(X+Y+Z). 1279 */ 1280 d = XYZ->red_X; 1281 if (png_safe_add(&d, XYZ->red_Y, XYZ->red_Z)) 1218 1282 return 1; 1219 if (png_muldiv(&xy->redy, XYZ->red_Y, PNG_FP_1, d) == 0) 1283 dred = d; 1284 if (png_muldiv(&xy->redx, XYZ->red_X, PNG_FP_1, dred) == 0) 1285 return 1; 1286 if (png_muldiv(&xy->redy, XYZ->red_Y, PNG_FP_1, dred) == 0) 1287 return 1; 1288 1289 d = XYZ->green_X; 1290 if (png_safe_add(&d, XYZ->green_Y, XYZ->green_Z)) 1291 return 1; 1292 dgreen = d; 1293 if (png_muldiv(&xy->greenx, XYZ->green_X, PNG_FP_1, dgreen) == 0) 1294 return 1; 1295 if (png_muldiv(&xy->greeny, XYZ->green_Y, PNG_FP_1, dgreen) == 0) 1296 return 1; 1297 1298 d = XYZ->blue_X; 1299 if (png_safe_add(&d, XYZ->blue_Y, XYZ->blue_Z)) 1300 return 1; 1301 dblue = d; 1302 if (png_muldiv(&xy->bluex, XYZ->blue_X, PNG_FP_1, dblue) == 0) 1303 return 1; 1304 if (png_muldiv(&xy->bluey, XYZ->blue_Y, PNG_FP_1, dblue) == 0) 1305 return 1; 1306 1307 /* The reference white is simply the sum of the end-point (X,Y,Z) vectors so 1308 * the fillowing calculates (X+Y+Z) of the reference white (media white, 1309 * encoding white) itself: 1310 */ 1311 d = dblue; 1312 if (png_safe_add(&d, dred, dgreen)) 1220 1313 return 1; 1221 1314 dwhite = d; 1222 whiteX = XYZ->red_X; 1223 whiteY = XYZ->red_Y; 1224 1225 d = XYZ->green_X + XYZ->green_Y + XYZ->green_Z; 1226 if (png_muldiv(&xy->greenx, XYZ->green_X, PNG_FP_1, d) == 0) 1315 1316 /* Find the white X,Y values from the sum of the red, green and blue X,Y 1317 * values. 1318 */ 1319 d = XYZ->red_X; 1320 if (png_safe_add(&d, XYZ->green_X, XYZ->blue_X)) 1227 1321 return 1; 1228 if (png_muldiv(&xy->greeny, XYZ->green_Y, PNG_FP_1, d) == 0) 1322 whiteX = d; 1323 1324 d = XYZ->red_Y; 1325 if (png_safe_add(&d, XYZ->green_Y, XYZ->blue_Y)) 1229 1326 return 1; 1230 dwhite += d; 1231 whiteX += XYZ->green_X; 1232 whiteY += XYZ->green_Y; 1233 1234 d = XYZ->blue_X + XYZ->blue_Y + XYZ->blue_Z; 1235 if (png_muldiv(&xy->bluex, XYZ->blue_X, PNG_FP_1, d) == 0) 1236 return 1; 1237 if (png_muldiv(&xy->bluey, XYZ->blue_Y, PNG_FP_1, d) == 0) 1238 return 1; 1239 dwhite += d; 1240 whiteX += XYZ->blue_X; 1241 whiteY += XYZ->blue_Y; 1242 1243 /* The reference white is simply the sum of the end-point (X,Y,Z) vectors, 1244 * thus: 1245 */ 1327 whiteY = d; 1328 1246 1329 if (png_muldiv(&xy->whitex, whiteX, PNG_FP_1, dwhite) == 0) 1247 1330 return 1; … … 1262 1345 * points, but they are used to cover the possible colors). We check 1263 1346 * xy->whitey against 5, not 0, to avoid a possible integer overflow. 1264 */ 1265 if (xy->redx < 0 || xy->redx > PNG_FP_1) return 1; 1266 if (xy->redy < 0 || xy->redy > PNG_FP_1-xy->redx) return 1; 1267 if (xy->greenx < 0 || xy->greenx > PNG_FP_1) return 1; 1268 if (xy->greeny < 0 || xy->greeny > PNG_FP_1-xy->greenx) return 1; 1269 if (xy->bluex < 0 || xy->bluex > PNG_FP_1) return 1; 1270 if (xy->bluey < 0 || xy->bluey > PNG_FP_1-xy->bluex) return 1; 1271 if (xy->whitex < 0 || xy->whitex > PNG_FP_1) return 1; 1272 if (xy->whitey < 5 || xy->whitey > PNG_FP_1-xy->whitex) return 1; 1347 * 1348 * The limits here will *not* accept ACES AP0, where bluey is -7700 1349 * (-0.0770) because the PNG spec itself requires the xy values to be 1350 * unsigned. whitey is also required to be 5 or more to avoid overflow. 1351 * 1352 * Instead the upper limits have been relaxed to accomodate ACES AP1 where 1353 * redz ends up as -600 (-0.006). ProPhotoRGB was already "in range." 1354 * The new limit accomodates the AP0 and AP1 ranges for z but not AP0 redy. 1355 */ 1356 const png_fixed_point fpLimit = PNG_FP_1+(PNG_FP_1/10); 1357 if (xy->redx < 0 || xy->redx > fpLimit) return 1; 1358 if (xy->redy < 0 || xy->redy > fpLimit-xy->redx) return 1; 1359 if (xy->greenx < 0 || xy->greenx > fpLimit) return 1; 1360 if (xy->greeny < 0 || xy->greeny > fpLimit-xy->greenx) return 1; 1361 if (xy->bluex < 0 || xy->bluex > fpLimit) return 1; 1362 if (xy->bluey < 0 || xy->bluey > fpLimit-xy->bluex) return 1; 1363 if (xy->whitex < 0 || xy->whitex > fpLimit) return 1; 1364 if (xy->whitey < 5 || xy->whitey > fpLimit-xy->whitex) return 1; 1273 1365 1274 1366 /* The reverse calculation is more difficult because the original tristimulus … … 1415 1507 * 1416 1508 * Accuracy: 1417 * The input values have 5 decimal digits of accuracy. The values are all in 1418 * the range 0 < value < 1, so simple products are in the same range but may 1419 * need up to 10 decimal digits to preserve the original precision and avoid 1420 * underflow. Because we are using a 32-bit signed representation we cannot 1421 * match this; the best is a little over 9 decimal digits, less than 10. 1509 * The input values have 5 decimal digits of accuracy. 1510 * 1511 * In the previous implementation the values were all in the range 0 < value 1512 * < 1, so simple products are in the same range but may need up to 10 1513 * decimal digits to preserve the original precision and avoid underflow. 1514 * Because we are using a 32-bit signed representation we cannot match this; 1515 * the best is a little over 9 decimal digits, less than 10. 1516 * 1517 * This range has now been extended to allow values up to 1.1, or 110,000 in 1518 * fixed point. 1422 1519 * 1423 1520 * The approach used here is to preserve the maximum precision within the 1424 1521 * signed representation. Because the red-scale calculation above uses the 1425 * difference between two products of values that must be in the range -1..+11426 * it is sufficient to divide the product by 7; ceil(100,000/32767*2). The1427 * factor is irrelevant in the calculation because it is applied to both1428 * numerator and denominator.1522 * difference between two products of values that must be in the range 1523 * -1.1..+1.1 it is sufficient to divide the product by 8; 1524 * ceil(121,000/32767*2). The factor is irrelevant in the calculation 1525 * because it is applied to both numerator and denominator. 1429 1526 * 1430 1527 * Note that the values of the differences of the products of the … … 1448 1545 * 0.258728243040113 0.724682314948566 0.016589442011321 1449 1546 */ 1450 /* By the argument, above overflow should be impossible here. The return 1451 * value of 2 indicates an internal error to the caller. 1452 */ 1453 if (png_muldiv(&left, xy->greenx-xy->bluex, xy->redy - xy->bluey, 7) == 0) 1454 return 2; 1455 if (png_muldiv(&right, xy->greeny-xy->bluey, xy->redx - xy->bluex, 7) == 0) 1456 return 2; 1457 denominator = left - right; 1547 int error = 0; 1548 1549 /* By the argument above overflow should be impossible here, however the 1550 * code now simply returns a failure code. The xy subtracts in the arguments 1551 * to png_muldiv are *not* checked for overflow because the checks at the 1552 * start guarantee they are in the range 0..110000 and png_fixed_point is a 1553 * 32-bit signed number. 1554 */ 1555 if (png_muldiv(&left, xy->greenx-xy->bluex, xy->redy - xy->bluey, 8) == 0) 1556 return 1; 1557 if (png_muldiv(&right, xy->greeny-xy->bluey, xy->redx - xy->bluex, 8) == 0) 1558 return 1; 1559 denominator = png_fp_sub(left, right, &error); 1560 if (error) return 1; 1458 1561 1459 1562 /* Now find the red numerator. */ 1460 if (png_muldiv(&left, xy->greenx-xy->bluex, xy->whitey-xy->bluey, 7) == 0)1461 return 2;1462 if (png_muldiv(&right, xy->greeny-xy->bluey, xy->whitex-xy->bluex, 7) == 0)1463 return 2;1563 if (png_muldiv(&left, xy->greenx-xy->bluex, xy->whitey-xy->bluey, 8) == 0) 1564 return 1; 1565 if (png_muldiv(&right, xy->greeny-xy->bluey, xy->whitex-xy->bluex, 8) == 0) 1566 return 1; 1464 1567 1465 1568 /* Overflow is possible here and it indicates an extreme set of PNG cHRM … … 1468 1571 * into the denominator, which tends to produce a small number. 1469 1572 */ 1470 if (png_muldiv(&red_inverse, xy->whitey, denominator, left-right) == 0 || 1573 if (png_muldiv(&red_inverse, xy->whitey, denominator, 1574 png_fp_sub(left, right, &error)) == 0 || error || 1471 1575 red_inverse <= xy->whitey /* r+g+b scales = white scale */) 1472 1576 return 1; 1473 1577 1474 1578 /* Similarly for green_inverse: */ 1475 if (png_muldiv(&left, xy->redy-xy->bluey, xy->whitex-xy->bluex, 7) == 0) 1476 return 2; 1477 if (png_muldiv(&right, xy->redx-xy->bluex, xy->whitey-xy->bluey, 7) == 0) 1478 return 2; 1479 if (png_muldiv(&green_inverse, xy->whitey, denominator, left-right) == 0 || 1579 if (png_muldiv(&left, xy->redy-xy->bluey, xy->whitex-xy->bluex, 8) == 0) 1580 return 1; 1581 if (png_muldiv(&right, xy->redx-xy->bluex, xy->whitey-xy->bluey, 8) == 0) 1582 return 1; 1583 if (png_muldiv(&green_inverse, xy->whitey, denominator, 1584 png_fp_sub(left, right, &error)) == 0 || error || 1480 1585 green_inverse <= xy->whitey) 1481 1586 return 1; … … 1484 1589 * can still produce 0 for extreme cHRM values. 1485 1590 */ 1486 blue_scale = png_reciprocal(xy->whitey) - png_reciprocal(red_inverse) - 1487 png_reciprocal(green_inverse); 1488 if (blue_scale <= 0) 1591 blue_scale = png_fp_sub(png_fp_sub(png_reciprocal(xy->whitey), 1592 png_reciprocal(red_inverse), &error), 1593 png_reciprocal(green_inverse), &error); 1594 if (error || blue_scale <= 0) 1489 1595 return 1; 1490 1596 1491 1597 1492 /* And fill in the png_XYZ: */ 1598 /* And fill in the png_XYZ. Again the subtracts are safe because of the 1599 * checks on the xy values at the start (the subtracts just calculate the 1600 * corresponding z values.) 1601 */ 1493 1602 if (png_muldiv(&XYZ->red_X, xy->redx, PNG_FP_1, red_inverse) == 0) 1494 1603 return 1; … … 1521 1630 png_XYZ_normalize(png_XYZ *XYZ) 1522 1631 { 1523 png_int_32 Y ;1524 1525 if (XYZ->red_Y < 0 || XYZ->green_Y < 0 || XYZ->blue_Y < 0 ||1526 XYZ->red_X < 0 || XYZ->green_X < 0 || XYZ->blue_X < 0 ||1527 XYZ->red_Z < 0 || XYZ->green_Z < 0 || XYZ->blue_Z < 0)1632 png_int_32 Y, Ytemp; 1633 1634 /* Normalize by scaling so the sum of the end-point Y values is PNG_FP_1. */ 1635 Ytemp = XYZ->red_Y; 1636 if (png_safe_add(&Ytemp, XYZ->green_Y, XYZ->blue_Y)) 1528 1637 return 1; 1529 1638 1530 /* Normalize by scaling so the sum of the end-point Y values is PNG_FP_1. 1531 * IMPLEMENTATION NOTE: ANSI requires signed overflow not to occur, therefore 1532 * relying on addition of two positive values producing a negative one is not 1533 * safe. 1534 */ 1535 Y = XYZ->red_Y; 1536 if (0x7fffffff - Y < XYZ->green_X) 1537 return 1; 1538 Y += XYZ->green_Y; 1539 if (0x7fffffff - Y < XYZ->blue_X) 1540 return 1; 1541 Y += XYZ->blue_Y; 1639 Y = Ytemp; 1542 1640 1543 1641 if (Y != PNG_FP_1) -
trunk/src/libs/libpng-1.6.45/png.h
r105469 r107813 1 2 1 /* png.h - header file for PNG reference library 3 2 * 4 * libpng version 1.6.4 35 * 6 * Copyright (c) 2018-202 4Cosmin Truta3 * libpng version 1.6.45 4 * 5 * Copyright (c) 2018-2025 Cosmin Truta 7 6 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 8 7 * Copyright (c) 1996-1997 Andreas Dilger … … 16 15 * libpng versions 0.97, January 1998, through 1.6.35, July 2018: 17 16 * Glenn Randers-Pehrson 18 * libpng versions 1.6.36, December 2018, through 1.6.4 3, February 2024:17 * libpng versions 1.6.36, December 2018, through 1.6.45, January 2025: 19 18 * Cosmin Truta 20 19 * See also "Contributing Authors", below. … … 28 27 * --------------------------------------- 29 28 * 30 * * Copyright (c) 1995-202 4The PNG Reference Library Authors.31 * * Copyright (c) 2018-202 4Cosmin Truta.29 * * Copyright (c) 1995-2025 The PNG Reference Library Authors. 30 * * Copyright (c) 2018-2025 Cosmin Truta. 32 31 * * Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson. 33 32 * * Copyright (c) 1996-1997 Andreas Dilger. … … 240 239 * 1.5.30 15 10530 15.so.15.30[.0] 241 240 * ... 242 * 1.6.4 3 16 10643 16.so.16.43[.0]241 * 1.6.45 16 10645 16.so.16.45[.0] 243 242 * 244 243 * Henceforth the source version will match the shared-library major and … … 276 275 277 276 /* Version information for png.h - this should match the version in png.c */ 278 #define PNG_LIBPNG_VER_STRING "1.6.4 3"277 #define PNG_LIBPNG_VER_STRING "1.6.45" 279 278 #define PNG_HEADER_VERSION_STRING " libpng version " PNG_LIBPNG_VER_STRING "\n" 280 279 … … 287 286 #define PNG_LIBPNG_VER_MAJOR 1 288 287 #define PNG_LIBPNG_VER_MINOR 6 289 #define PNG_LIBPNG_VER_RELEASE 4 3288 #define PNG_LIBPNG_VER_RELEASE 45 290 289 291 290 /* This should be zero for a public release, or non-zero for a 292 291 * development version. 293 292 */ 294 #define PNG_LIBPNG_VER_BUILD 293 #define PNG_LIBPNG_VER_BUILD 0 295 294 296 295 /* Release Status */ 297 #define PNG_LIBPNG_BUILD_ALPHA 1298 #define PNG_LIBPNG_BUILD_BETA 2299 #define PNG_LIBPNG_BUILD_RC 3300 #define PNG_LIBPNG_BUILD_STABLE 4296 #define PNG_LIBPNG_BUILD_ALPHA 1 297 #define PNG_LIBPNG_BUILD_BETA 2 298 #define PNG_LIBPNG_BUILD_RC 3 299 #define PNG_LIBPNG_BUILD_STABLE 4 301 300 #define PNG_LIBPNG_BUILD_RELEASE_STATUS_MASK 7 302 301 … … 318 317 * XXYYZZ, where XX=major, YY=minor, ZZ=release 319 318 */ 320 #define PNG_LIBPNG_VER 1064 3 /* 1.6.43*/319 #define PNG_LIBPNG_VER 10645 /* 1.6.45 */ 321 320 322 321 /* Library configuration: these options cannot be changed after … … 428 427 * do not agree upon the version number. 429 428 */ 430 typedef char* png_libpng_version_1_6_4 3;429 typedef char* png_libpng_version_1_6_45; 431 430 432 431 /* Basic control structions. Read libpng-manual.txt or libpng.3 for more info. … … 746 745 #define PNG_INFO_IDAT 0x8000U /* ESR, 1.0.6 */ 747 746 #define PNG_INFO_eXIf 0x10000U /* GR-P, 1.6.31 */ 747 #define PNG_INFO_cICP 0x20000U 748 748 749 749 /* This is used for the transformation routines, as some of them … … 825 825 * to build the library! 826 826 */ 827 PNG_FUNCTION(void, (PNGCAPI *png_longjmp_ptr), PNGARG((jmp_buf, int)), typedef);827 PNG_FUNCTION(void, (PNGCAPI *png_longjmp_ptr), (jmp_buf, int), typedef); 828 828 #endif 829 829 … … 1973 1973 png_fixed_point int_blue_X, png_fixed_point int_blue_Y, 1974 1974 png_fixed_point int_blue_Z)) 1975 #endif 1976 1977 #ifdef PNG_cICP_SUPPORTED 1978 PNG_EXPORT(250, png_uint_32, png_get_cICP, (png_const_structrp png_ptr, 1979 png_inforp info_ptr, png_bytep colour_primaries, 1980 png_bytep transfer_function, png_bytep matrix_coefficients, 1981 png_bytep video_full_range_flag)); 1982 PNG_EXPORT(251, void, png_set_cICP, (png_const_structrp png_ptr, 1983 png_inforp info_ptr, png_byte colour_primaries, 1984 png_byte transfer_function, png_byte matrix_coefficients, 1985 png_byte video_full_range_flag)); 1975 1986 #endif 1976 1987 … … 3239 3250 */ 3240 3251 #ifdef PNG_EXPORT_LAST_ORDINAL 3241 PNG_EXPORT_LAST_ORDINAL(2 49);3252 PNG_EXPORT_LAST_ORDINAL(251); 3242 3253 #endif 3243 3254 -
trunk/src/libs/libpng-1.6.45/pngconf.h
r105469 r107813 1 2 1 /* pngconf.h - machine-configurable file for libpng 3 2 * 4 * libpng version 1.6.4 35 * 6 * Copyright (c) 2018-202 4Cosmin Truta3 * libpng version 1.6.45 4 * 5 * Copyright (c) 2018-2025 Cosmin Truta 7 6 * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson 8 7 * Copyright (c) 1996-1997 Andreas Dilger … … 89 88 /* The PNGARG macro was used in versions of libpng prior to 1.6.0 to protect 90 89 * against legacy (pre ISOC90) compilers that did not understand function 91 * prototypes. It is not required for modern C compilers.90 * prototypes. [Deprecated.] 92 91 */ 93 92 #ifndef PNGARG … … 299 298 #ifndef PNG_EXPORTA 300 299 # define PNG_EXPORTA(ordinal, type, name, args, attributes) \ 301 PNG_FUNCTION(PNG_EXPORT_TYPE(type), (PNGAPI name), PNGARG(args), \300 PNG_FUNCTION(PNG_EXPORT_TYPE(type), (PNGAPI name), args, \ 302 301 PNG_LINKAGE_API attributes) 303 302 #endif … … 317 316 318 317 #ifndef PNG_CALLBACK 319 # define PNG_CALLBACK(type, name, args) type (PNGCBAPI name) PNGARG(args)318 # define PNG_CALLBACK(type, name, args) type (PNGCBAPI name) args 320 319 #endif 321 320 -
trunk/src/libs/libpng-1.6.45/pngdebug.h
r96425 r107813 1 2 1 /* pngdebug.h - Debugging macros for libpng, also used in pngtest.c 3 2 * -
trunk/src/libs/libpng-1.6.45/pngerror.c
r103316 r107813 1 2 1 /* pngerror.c - stub functions for i/o and memory allocation 3 2 * … … 21 20 #if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED) 22 21 23 static PNG_FUNCTION(void, png_default_error,PNGARG((png_const_structrp png_ptr, 24 png_const_charp error_message)),PNG_NORETURN); 22 static PNG_FUNCTION(void /* PRIVATE */, 23 png_default_error,(png_const_structrp png_ptr, png_const_charp error_message), 24 PNG_NORETURN); 25 25 26 26 #ifdef PNG_WARNINGS_SUPPORTED 27 27 static void /* PRIVATE */ 28 png_default_warning PNGARG((png_const_structrp png_ptr,29 png_const_charp warning_message) );28 png_default_warning(png_const_structrp png_ptr, 29 png_const_charp warning_message); 30 30 #endif /* WARNINGS */ 31 31 -
trunk/src/libs/libpng-1.6.45/pngget.c
r103316 r107813 1 2 1 /* pngget.c - retrieval of values from info struct 3 2 * … … 786 785 #endif 787 786 787 #ifdef PNG_cICP_SUPPORTED 788 png_uint_32 PNGAPI 789 png_get_cICP(png_const_structrp png_ptr, 790 png_inforp info_ptr, png_bytep colour_primaries, 791 png_bytep transfer_function, png_bytep matrix_coefficients, 792 png_bytep video_full_range_flag) 793 { 794 png_debug1(1, "in %s retrieval function", "cICP"); 795 796 if (png_ptr != NULL && info_ptr != NULL && 797 (info_ptr->valid & PNG_INFO_cICP) != 0 && 798 colour_primaries != NULL && transfer_function != NULL && 799 matrix_coefficients != NULL && video_full_range_flag != NULL) 800 { 801 *colour_primaries = info_ptr->cicp_colour_primaries; 802 *transfer_function = info_ptr->cicp_transfer_function; 803 *matrix_coefficients = info_ptr->cicp_matrix_coefficients; 804 *video_full_range_flag = info_ptr->cicp_video_full_range_flag; 805 return (PNG_INFO_cICP); 806 } 807 808 return (0); 809 } 810 #endif 811 788 812 #ifdef PNG_eXIf_SUPPORTED 789 813 png_uint_32 PNGAPI -
trunk/src/libs/libpng-1.6.45/pnginfo.h
r96425 r107813 1 2 1 /* pnginfo.h - header file for PNG reference library 3 2 * … … 102 101 #endif 103 102 103 #ifdef PNG_cICP_SUPPORTED 104 /* cICP chunk data */ 105 png_byte cicp_colour_primaries; 106 png_byte cicp_transfer_function; 107 png_byte cicp_matrix_coefficients; 108 png_byte cicp_video_full_range_flag; 109 #endif 110 104 111 #ifdef PNG_iCCP_SUPPORTED 105 112 /* iCCP chunk data. */ -
trunk/src/libs/libpng-1.6.45/pngmem.c
r96425 r107813 1 2 1 /* pngmem.c - stub functions for memory allocation 3 2 * -
trunk/src/libs/libpng-1.6.45/pngpread.c
r105469 r107813 1 2 1 /* pngpread.c - read a png file in push mode 3 2 * … … 33 32 { png_push_save_buffer(png_ptr); return; } 34 33 34 #ifdef PNG_READ_INTERLACING_SUPPORTED 35 /* Arrays to facilitate interlacing - use pass (0 - 6) as index. */ 36 37 /* Start of interlace block */ 38 static const png_byte png_pass_start[7] = {0, 4, 0, 2, 0, 1, 0}; 39 /* Offset to next interlace block */ 40 static const png_byte png_pass_inc[7] = {8, 8, 4, 4, 2, 2, 1}; 41 /* Start of interlace block in the y direction */ 42 static const png_byte png_pass_ystart[7] = {0, 0, 4, 0, 2, 0, 1}; 43 /* Offset to next interlace block in the y direction */ 44 static const png_byte png_pass_yinc[7] = {8, 8, 8, 4, 4, 2, 2}; 45 46 /* TODO: Move these arrays to a common utility module to avoid duplication. */ 47 #endif 48 35 49 void PNGAPI 36 50 png_process_data(png_structrp png_ptr, png_inforp info_ptr, … … 293 307 PNG_PUSH_SAVE_BUFFER_IF_FULL 294 308 png_handle_cHRM(png_ptr, info_ptr, png_ptr->push_length); 309 } 310 311 #endif 312 #ifdef PNG_READ_cICP_SUPPORTED 313 else if (png_ptr->chunk_name == png_cICP) 314 { 315 PNG_PUSH_SAVE_BUFFER_IF_FULL 316 png_handle_cICP(png_ptr, info_ptr, png_ptr->push_length); 295 317 } 296 318 … … 977 999 png_read_push_finish_row(png_structrp png_ptr) 978 1000 { 979 #ifdef PNG_READ_INTERLACING_SUPPORTED980 /* Arrays to facilitate easy interlacing - use pass (0 - 6) as index */981 982 /* Start of interlace block */983 static const png_byte png_pass_start[] = {0, 4, 0, 2, 0, 1, 0};984 985 /* Offset to next interlace block */986 static const png_byte png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1};987 988 /* Start of interlace block in the y direction */989 static const png_byte png_pass_ystart[] = {0, 0, 4, 0, 2, 0, 1};990 991 /* Offset to next interlace block in the y direction */992 static const png_byte png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2};993 994 /* Height of interlace block. This is not currently used - if you need995 * it, uncomment it here and in png.h996 static const png_byte png_pass_height[] = {8, 8, 4, 4, 2, 2, 1};997 */998 #endif999 1000 1001 png_ptr->row_number++; 1001 1002 if (png_ptr->row_number < png_ptr->num_rows) -
trunk/src/libs/libpng-1.6.45/pngpriv.h
r103316 r107813 1 2 1 /* pngpriv.h - private declarations for use inside libpng 3 2 * … … 141 140 */ 142 141 # define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_neon 143 144 /* By default the 'intrinsics' code in arm/filter_neon_intrinsics.c is used145 * if possible - if __ARM_NEON__ is set and the compiler version is not known146 * to be broken. This is controlled by PNG_ARM_NEON_IMPLEMENTATION which can147 * be:148 *149 * 1 The intrinsics code (the default with __ARM_NEON__)150 * 2 The hand coded assembler (the default without __ARM_NEON__)151 *152 * It is possible to set PNG_ARM_NEON_IMPLEMENTATION in CPPFLAGS, however153 * this is *NOT* supported and may cease to work even after a minor revision154 * to libpng. It *is* valid to do this for testing purposes, e.g. speed155 * testing or a new compiler, but the results should be communicated to the156 * libpng implementation list for incorporation in the next minor release.157 */158 # ifndef PNG_ARM_NEON_IMPLEMENTATION159 # if defined(__ARM_NEON__) || defined(__ARM_NEON)160 # if defined(__clang__)161 /* At present it is unknown by the libpng developers which versions162 * of clang support the intrinsics, however some or perhaps all163 * versions do not work with the assembler so this may be164 * irrelevant, so just use the default (do nothing here.)165 */166 # elif defined(__GNUC__)167 /* GCC 4.5.4 NEON support is known to be broken. 4.6.3 is known to168 * work, so if this *is* GCC, or G++, look for a version >4.5169 */170 # if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6)171 # define PNG_ARM_NEON_IMPLEMENTATION 2172 # endif /* no GNUC support */173 # endif /* __GNUC__ */174 # else /* !defined __ARM_NEON__ */175 /* The 'intrinsics' code simply won't compile without this -mfpu=neon:176 */177 # if !defined(__aarch64__) && !defined(_M_ARM64)178 /* The assembler code currently does not work on ARM64 */179 # define PNG_ARM_NEON_IMPLEMENTATION 2180 # endif /* __aarch64__ */181 # endif /* __ARM_NEON__ */182 # endif /* !PNG_ARM_NEON_IMPLEMENTATION */183 184 142 # ifndef PNG_ARM_NEON_IMPLEMENTATION 185 143 /* Use the intrinsics code by default. */ … … 882 840 #define png_bKGD PNG_U32( 98, 75, 71, 68) 883 841 #define png_cHRM PNG_U32( 99, 72, 82, 77) 842 #define png_cICP PNG_U32( 99, 73, 67, 80) 884 843 #define png_eXIf PNG_U32(101, 88, 73, 102) /* registered July 2017 */ 885 844 #define png_fRAc PNG_U32(102, 82, 65, 99) /* registered, not defined */ … … 1178 1137 #endif 1179 1138 1139 #ifdef PNG_WRITE_cICP_SUPPORTED 1140 PNG_INTERNAL_FUNCTION(void,png_write_cICP,(png_structrp png_ptr, 1141 png_byte colour_primaries, png_byte transfer_function, 1142 png_byte matrix_coefficients, png_byte video_full_range_flag), PNG_EMPTY); 1143 #endif 1144 1180 1145 #ifdef PNG_WRITE_sRGB_SUPPORTED 1181 1146 PNG_INTERNAL_FUNCTION(void,png_write_sRGB,(png_structrp png_ptr, … … 1519 1484 PNG_INTERNAL_FUNCTION(void,png_handle_cHRM,(png_structrp png_ptr, 1520 1485 png_inforp info_ptr, png_uint_32 length),PNG_EMPTY); 1486 #endif 1487 1488 #ifdef PNG_READ_cICP_SUPPORTED 1489 PNG_INTERNAL_FUNCTION(void,png_handle_cICP,(png_structrp png_ptr, 1490 png_inforp info_ptr, png_uint_32 length),PNG_EMPTY); 1521 1491 #endif 1522 1492 -
trunk/src/libs/libpng-1.6.45/pngread.c
r105469 r107813 1 2 1 /* pngread.c - read a PNG file 3 2 * 4 * Copyright (c) 2018-202 4Cosmin Truta3 * Copyright (c) 2018-2025 Cosmin Truta 5 4 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 5 * Copyright (c) 1996-1997 Andreas Dilger … … 174 173 else if (chunk_name == png_cHRM) 175 174 png_handle_cHRM(png_ptr, info_ptr, length); 175 #endif 176 177 #ifdef PNG_READ_cICP_SUPPORTED 178 else if (chunk_name == png_cICP) 179 png_handle_cICP(png_ptr, info_ptr, length); 176 180 #endif 177 181 … … 851 855 else if (chunk_name == png_cHRM) 852 856 png_handle_cHRM(png_ptr, info_ptr, length); 857 #endif 858 859 #ifdef PNG_READ_cICP_SUPPORTED 860 else if (chunk_name == png_cICP) 861 png_handle_cICP(png_ptr, info_ptr, length); 853 862 #endif 854 863 -
trunk/src/libs/libpng-1.6.45/pngrio.c
r96425 r107813 1 2 1 /* pngrio.c - functions for data input 3 2 * -
trunk/src/libs/libpng-1.6.45/pngrtran.c
r105469 r107813 1 2 1 /* pngrtran.c - transforms the data in a row for PNG readers 3 2 * -
trunk/src/libs/libpng-1.6.45/pngrutil.c
r103316 r107813 1 2 1 /* pngrutil.c - utilities to read a PNG file 3 2 * … … 18 17 19 18 #ifdef PNG_READ_SUPPORTED 19 20 #ifdef PNG_READ_INTERLACING_SUPPORTED 21 /* Arrays to facilitate interlacing - use pass (0 - 6) as index. */ 22 23 /* Start of interlace block */ 24 static const png_byte png_pass_start[7] = {0, 4, 0, 2, 0, 1, 0}; 25 /* Offset to next interlace block */ 26 static const png_byte png_pass_inc[7] = {8, 8, 4, 4, 2, 2, 1}; 27 /* Start of interlace block in the y direction */ 28 static const png_byte png_pass_ystart[7] = {0, 0, 4, 0, 2, 0, 1}; 29 /* Offset to next interlace block in the y direction */ 30 static const png_byte png_pass_yinc[7] = {8, 8, 8, 4, 4, 2, 2}; 31 32 /* TODO: Move these arrays to a common utility module to avoid duplication. */ 33 #endif 20 34 21 35 png_uint_32 PNGAPI … … 2030 2044 2031 2045 png_set_bKGD(png_ptr, info_ptr, &background); 2046 } 2047 #endif 2048 2049 #ifdef PNG_READ_cICP_SUPPORTED 2050 void /* PRIVATE */ 2051 png_handle_cICP(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length) 2052 { 2053 png_byte buf[4]; 2054 2055 png_debug(1, "in png_handle_cICP"); 2056 2057 if ((png_ptr->mode & PNG_HAVE_IHDR) == 0) 2058 png_chunk_error(png_ptr, "missing IHDR"); 2059 2060 else if ((png_ptr->mode & (PNG_HAVE_IDAT|PNG_HAVE_PLTE)) != 0) 2061 { 2062 png_crc_finish(png_ptr, length); 2063 png_chunk_benign_error(png_ptr, "out of place"); 2064 return; 2065 } 2066 2067 else if (info_ptr != NULL && (info_ptr->valid & PNG_INFO_cICP) != 0) 2068 { 2069 png_crc_finish(png_ptr, length); 2070 png_chunk_benign_error(png_ptr, "duplicate"); 2071 return; 2072 } 2073 2074 else if (length != 4) 2075 { 2076 png_crc_finish(png_ptr, length); 2077 png_chunk_benign_error(png_ptr, "invalid"); 2078 return; 2079 } 2080 2081 png_crc_read(png_ptr, buf, 4); 2082 2083 if (png_crc_finish(png_ptr, 0) != 0) 2084 return; 2085 2086 png_set_cICP(png_ptr, info_ptr, buf[0], buf[1], buf[2], buf[3]); 2032 2087 } 2033 2088 #endif … … 3685 3740 png_uint_32 transformations /* Because these may affect the byte layout */) 3686 3741 { 3687 /* Arrays to facilitate easy interlacing - use pass (0 - 6) as index */3688 /* Offset to next interlace block */3689 static const unsigned int png_pass_inc[7] = {8, 8, 4, 4, 2, 2, 1};3690 3691 3742 png_debug(1, "in png_do_read_interlace"); 3692 3743 if (row != NULL && row_info != NULL) … … 4326 4377 png_read_finish_row(png_structrp png_ptr) 4327 4378 { 4328 /* Arrays to facilitate easy interlacing - use pass (0 - 6) as index */4329 4330 /* Start of interlace block */4331 static const png_byte png_pass_start[7] = {0, 4, 0, 2, 0, 1, 0};4332 4333 /* Offset to next interlace block */4334 static const png_byte png_pass_inc[7] = {8, 8, 4, 4, 2, 2, 1};4335 4336 /* Start of interlace block in the y direction */4337 static const png_byte png_pass_ystart[7] = {0, 0, 4, 0, 2, 0, 1};4338 4339 /* Offset to next interlace block in the y direction */4340 static const png_byte png_pass_yinc[7] = {8, 8, 8, 4, 4, 2, 2};4341 4342 4379 png_debug(1, "in png_read_finish_row"); 4343 4380 png_ptr->row_number++; … … 4391 4428 png_read_start_row(png_structrp png_ptr) 4392 4429 { 4393 /* Arrays to facilitate easy interlacing - use pass (0 - 6) as index */4394 4395 /* Start of interlace block */4396 static const png_byte png_pass_start[7] = {0, 4, 0, 2, 0, 1, 0};4397 4398 /* Offset to next interlace block */4399 static const png_byte png_pass_inc[7] = {8, 8, 4, 4, 2, 2, 1};4400 4401 /* Start of interlace block in the y direction */4402 static const png_byte png_pass_ystart[7] = {0, 0, 4, 0, 2, 0, 1};4403 4404 /* Offset to next interlace block in the y direction */4405 static const png_byte png_pass_yinc[7] = {8, 8, 8, 4, 4, 2, 2};4406 4407 4430 unsigned int max_pixel_depth; 4408 4431 size_t row_bytes; -
trunk/src/libs/libpng-1.6.45/pngset.c
r103316 r107813 1 2 1 /* pngset.c - storage of image information into info struct 3 2 * 4 * Copyright (c) 2018-202 4Cosmin Truta3 * Copyright (c) 2018-2025 Cosmin Truta 5 4 * Copyright (c) 1998-2018 Glenn Randers-Pehrson 6 5 * Copyright (c) 1996-1997 Andreas Dilger … … 135 134 #endif /* cHRM */ 136 135 136 #ifdef PNG_cICP_SUPPORTED 137 void PNGAPI 138 png_set_cICP(png_const_structrp png_ptr, png_inforp info_ptr, 139 png_byte colour_primaries, png_byte transfer_function, 140 png_byte matrix_coefficients, png_byte video_full_range_flag) 141 { 142 png_debug1(1, "in %s storage function", "cICP"); 143 144 if (png_ptr == NULL || info_ptr == NULL) 145 return; 146 147 info_ptr->cicp_colour_primaries = colour_primaries; 148 info_ptr->cicp_transfer_function = transfer_function; 149 info_ptr->cicp_matrix_coefficients = matrix_coefficients; 150 info_ptr->cicp_video_full_range_flag = video_full_range_flag; 151 152 if (info_ptr->cicp_matrix_coefficients != 0) 153 { 154 png_warning(png_ptr, "Invalid cICP matrix coefficients"); 155 return; 156 } 157 158 info_ptr->valid |= PNG_INFO_cICP; 159 } 160 #endif /* cICP */ 161 137 162 #ifdef PNG_eXIf_SUPPORTED 138 163 void PNGAPI … … 1396 1421 98, 75, 71, 68, '\0', /* bKGD */ 1397 1422 99, 72, 82, 77, '\0', /* cHRM */ 1423 99, 73, 67, 80, '\0', /* cICP */ 1398 1424 101, 88, 73, 102, '\0', /* eXIf */ 1399 1425 103, 65, 77, 65, '\0', /* gAMA */ -
trunk/src/libs/libpng-1.6.45/pngstruct.h
r103316 r107813 1 2 1 /* pngstruct.h - header file for PNG reference library 3 2 * -
trunk/src/libs/libpng-1.6.45/pngtest.c
r105469 r107813 1 2 1 /* pngtest.c - a test program for libpng 3 2 * 4 * Copyright (c) 2018-202 4Cosmin Truta3 * Copyright (c) 2018-2025 Cosmin Truta 5 4 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 5 * Copyright (c) 1996-1997 Andreas Dilger … … 46 45 #include "png.h" 47 46 47 /* This hack was introduced for historical reasons, and we are 48 * still keeping it in libpng-1.6.x for compatibility reasons. 49 */ 50 #define STDERR stdout 51 48 52 /* Generate a compiler error if there is an old png.h in the search path. */ 49 typedef png_libpng_version_1_6_4 3 Your_png_h_is_not_version_1_6_43;53 typedef png_libpng_version_1_6_45 Your_png_h_is_not_version_1_6_45; 50 54 51 55 /* Ensure that all version numbers in png.h are consistent with one another. */ … … 104 108 #endif 105 109 106 /* This hack was introduced for historical reasons, and we are107 * still keeping it in libpng-1.6.x for compatibility reasons.108 */109 #define STDERR stdout110 111 110 #ifndef PNG_DEBUG 112 111 # define PNG_DEBUG 0 … … 519 518 static int num_allocations = 0; 520 519 521 png_voidp PNGCBAPI png_debug_malloc PNGARG((png_structp png_ptr,522 png_alloc_size_t size) );523 void PNGCBAPI png_debug_free PNGARG((png_structp png_ptr, png_voidp ptr));520 png_voidp PNGCBAPI png_debug_malloc(png_structp png_ptr, 521 png_alloc_size_t size); 522 void PNGCBAPI png_debug_free(png_structp png_ptr, png_voidp ptr); 524 523 525 524 png_voidp … … 1169 1168 #endif /* Floating point */ 1170 1169 #endif /* Fixed point */ 1170 #ifdef PNG_cICP_SUPPORTED 1171 { 1172 png_byte colour_primaries; 1173 png_byte transfer_function; 1174 png_byte matrix_coefficients; 1175 png_byte video_full_range_flag; 1176 1177 if (png_get_cICP(read_ptr, read_info_ptr, 1178 &colour_primaries, &transfer_function, 1179 &matrix_coefficients, &video_full_range_flag) != 0) 1180 png_set_cICP(write_ptr, write_info_ptr, 1181 colour_primaries, transfer_function, 1182 matrix_coefficients, video_full_range_flag); 1183 } 1184 #endif 1171 1185 #ifdef PNG_iCCP_SUPPORTED 1172 1186 { -
trunk/src/libs/libpng-1.6.45/pngtrans.c
r103316 r107813 1 2 1 /* pngtrans.c - transforms the data in a row (used by both readers and writers) 3 2 * -
trunk/src/libs/libpng-1.6.45/pngwio.c
r96425 r107813 1 2 1 /* pngwio.c - functions for data output 3 2 * -
trunk/src/libs/libpng-1.6.45/pngwrite.c
r103316 r107813 1 2 1 /* pngwrite.c - general routines to write a PNG file 3 2 * 4 * Copyright (c) 2018-202 4Cosmin Truta3 * Copyright (c) 2018-2025 Cosmin Truta 5 4 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 5 * Copyright (c) 1996-1997 Andreas Dilger … … 129 128 * flag here too. 130 129 */ 131 #ifdef PNG_GAMMA_SUPPORTED 132 # ifdef PNG_WRITE_gAMA_SUPPORTED 133 if ((info_ptr->colorspace.flags & PNG_COLORSPACE_INVALID) == 0 && 134 (info_ptr->colorspace.flags & PNG_COLORSPACE_FROM_gAMA) != 0 && 135 (info_ptr->valid & PNG_INFO_gAMA) != 0) 136 png_write_gAMA_fixed(png_ptr, info_ptr->colorspace.gamma); 130 #ifdef PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED 131 /* Write unknown chunks first; PNG v3 establishes a precedence order 132 * for colourspace chunks. It is certain therefore that new 133 * colourspace chunks will have a precedence and very likely it will be 134 * higher than all known so far. Writing the unknown chunks here is 135 * most likely to present the chunks in the most convenient order. 136 * 137 * FUTURE: maybe write chunks in the order the app calls png_set_chnk 138 * to give the app control. 139 */ 140 write_unknown_chunks(png_ptr, info_ptr, PNG_HAVE_IHDR); 141 #endif 142 143 #ifdef PNG_WRITE_sBIT_SUPPORTED 144 /* PNG v3: a streaming app will need to see this before cICP because 145 * the information is helpful in handling HLG encoding (which is 146 * natively 10 bits but gets expanded to 16 in PNG.) 147 * 148 * The app shouldn't care about the order ideally, but it might have 149 * no choice. In PNG v3, apps are allowed to reject PNGs where the 150 * APNG chunks are out of order so it behooves libpng to be nice here. 151 */ 152 if ((info_ptr->valid & PNG_INFO_sBIT) != 0) 153 png_write_sBIT(png_ptr, &(info_ptr->sig_bit), info_ptr->color_type); 154 #endif 155 156 /* PNG v3: the July 2004 version of the TR introduced the concept of colour 157 * space priority. As above it therefore behooves libpng to write the colour 158 * space chunks in the priority order so that a streaming app need not buffer 159 * them. 160 */ 161 #ifdef PNG_COLORSPACE_SUPPORTED 162 # ifdef PNG_WRITE_cICP_SUPPORTED /* Priority 4 */ 163 if ((info_ptr->valid & PNG_INFO_cICP) != 0) 164 { 165 png_write_cICP(png_ptr, 166 info_ptr->cicp_colour_primaries, 167 info_ptr->cicp_transfer_function, 168 info_ptr->cicp_matrix_coefficients, 169 info_ptr->cicp_video_full_range_flag); 170 } 137 171 # endif 138 #endif 139 140 #ifdef PNG_COLORSPACE_SUPPORTED 141 /* Write only one of sRGB or an ICC profile. If a profile was supplied 142 * and it matches one of the known sRGB ones issue a warning. 172 173 /* PNG v3 change: it is now permitted to write both sRGB and ICC profiles, 174 * however because the libpng code auto-generates an sRGB for the 175 * corresponding ICC profiles and because PNG v2 disallowed this we need 176 * to only write one. 177 * 178 * Remove the PNG v2 warning about writing an sRGB ICC profile as well 179 * because it's invalid with PNG v3. 143 180 */ 144 # ifdef PNG_WRITE_iCCP_SUPPORTED 181 # ifdef PNG_WRITE_iCCP_SUPPORTED /* Priority 3 */ 145 182 if ((info_ptr->colorspace.flags & PNG_COLORSPACE_INVALID) == 0 && 146 183 (info_ptr->valid & PNG_INFO_iCCP) != 0) 147 184 { 148 # ifdef PNG_WRITE_sRGB_SUPPORTED149 if ((info_ptr->valid & PNG_INFO_sRGB) != 0)150 png_app_warning(png_ptr,151 "profile matches sRGB but writing iCCP instead");152 # endif153 154 185 png_write_iCCP(png_ptr, info_ptr->iccp_name, 155 186 info_ptr->iccp_profile); … … 160 191 # endif 161 192 162 # ifdef PNG_WRITE_sRGB_SUPPORTED 193 # ifdef PNG_WRITE_sRGB_SUPPORTED /* Priority 2 */ 163 194 if ((info_ptr->colorspace.flags & PNG_COLORSPACE_INVALID) == 0 && 164 195 (info_ptr->valid & PNG_INFO_sRGB) != 0) … … 167 198 #endif /* COLORSPACE */ 168 199 169 #ifdef PNG_WRITE_sBIT_SUPPORTED 170 if ((info_ptr->valid & PNG_INFO_sBIT) != 0) 171 png_write_sBIT(png_ptr, &(info_ptr->sig_bit), info_ptr->color_type); 200 #ifdef PNG_GAMMA_SUPPORTED 201 # ifdef PNG_WRITE_gAMA_SUPPORTED /* Priority 1 */ 202 if ((info_ptr->colorspace.flags & PNG_COLORSPACE_INVALID) == 0 && 203 (info_ptr->colorspace.flags & PNG_COLORSPACE_FROM_gAMA) != 0 && 204 (info_ptr->valid & PNG_INFO_gAMA) != 0) 205 png_write_gAMA_fixed(png_ptr, info_ptr->colorspace.gamma); 206 # endif 172 207 #endif 173 208 174 209 #ifdef PNG_COLORSPACE_SUPPORTED 175 # ifdef PNG_WRITE_cHRM_SUPPORTED 210 # ifdef PNG_WRITE_cHRM_SUPPORTED /* Also priority 1 */ 176 211 if ((info_ptr->colorspace.flags & PNG_COLORSPACE_INVALID) == 0 && 177 212 (info_ptr->colorspace.flags & PNG_COLORSPACE_FROM_cHRM) != 0 && … … 179 214 png_write_cHRM_fixed(png_ptr, &info_ptr->colorspace.end_points_xy); 180 215 # endif 181 #endif182 183 #ifdef PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED184 write_unknown_chunks(png_ptr, info_ptr, PNG_HAVE_IHDR);185 216 #endif 186 217 -
trunk/src/libs/libpng-1.6.45/pngwtran.c
r96425 r107813 1 2 1 /* pngwtran.c - transforms the data in a row for PNG writers 3 2 * -
trunk/src/libs/libpng-1.6.45/pngwutil.c
r103316 r107813 1 2 1 /* pngwutil.c - utilities to write a PNG file 3 2 * … … 10 9 * For conditions of distribution and use, see the disclaimer 11 10 * and license in png.h 11 * 12 * This file contains routines that are only called from within 13 * libpng itself during the course of writing an image. 12 14 */ 13 15 … … 15 17 16 18 #ifdef PNG_WRITE_SUPPORTED 19 20 #ifdef PNG_WRITE_INTERLACING_SUPPORTED 21 /* Arrays to facilitate interlacing - use pass (0 - 6) as index. */ 22 23 /* Start of interlace block */ 24 static const png_byte png_pass_start[7] = {0, 4, 0, 2, 0, 1, 0}; 25 /* Offset to next interlace block */ 26 static const png_byte png_pass_inc[7] = {8, 8, 4, 4, 2, 2, 1}; 27 /* Start of interlace block in the y direction */ 28 static const png_byte png_pass_ystart[7] = {0, 0, 4, 0, 2, 0, 1}; 29 /* Offset to next interlace block in the y direction */ 30 static const png_byte png_pass_yinc[7] = {8, 8, 8, 4, 4, 2, 2}; 31 32 /* TODO: Move these arrays to a common utility module to avoid duplication. */ 33 #endif 17 34 18 35 #ifdef PNG_WRITE_INT_FUNCTIONS_SUPPORTED … … 1472 1489 #endif 1473 1490 1491 #ifdef PNG_WRITE_cICP_SUPPORTED 1492 /* Write the cICP data */ 1493 void /* PRIVATE */ 1494 png_write_cICP(png_structrp png_ptr, 1495 png_byte colour_primaries, png_byte transfer_function, 1496 png_byte matrix_coefficients, png_byte video_full_range_flag) 1497 { 1498 png_byte buf[4]; 1499 1500 png_debug(1, "in png_write_cICP"); 1501 1502 png_write_chunk_header(png_ptr, png_cICP, 4); 1503 1504 buf[0] = colour_primaries; 1505 buf[1] = transfer_function; 1506 buf[2] = matrix_coefficients; 1507 buf[3] = video_full_range_flag; 1508 png_write_chunk_data(png_ptr, buf, 4); 1509 1510 png_write_chunk_end(png_ptr); 1511 } 1512 #endif 1513 1474 1514 #ifdef PNG_WRITE_eXIf_SUPPORTED 1475 1515 /* Write the Exif data */ … … 1890 1930 png_write_start_row(png_structrp png_ptr) 1891 1931 { 1892 #ifdef PNG_WRITE_INTERLACING_SUPPORTED1893 /* Arrays to facilitate easy interlacing - use pass (0 - 6) as index */1894 1895 /* Start of interlace block */1896 static const png_byte png_pass_start[7] = {0, 4, 0, 2, 0, 1, 0};1897 1898 /* Offset to next interlace block */1899 static const png_byte png_pass_inc[7] = {8, 8, 4, 4, 2, 2, 1};1900 1901 /* Start of interlace block in the y direction */1902 static const png_byte png_pass_ystart[7] = {0, 0, 4, 0, 2, 0, 1};1903 1904 /* Offset to next interlace block in the y direction */1905 static const png_byte png_pass_yinc[7] = {8, 8, 8, 4, 4, 2, 2};1906 #endif1907 1908 1932 png_alloc_size_t buf_size; 1909 1933 int usr_pixel_depth; … … 2005 2029 png_write_finish_row(png_structrp png_ptr) 2006 2030 { 2007 #ifdef PNG_WRITE_INTERLACING_SUPPORTED2008 /* Arrays to facilitate easy interlacing - use pass (0 - 6) as index */2009 2010 /* Start of interlace block */2011 static const png_byte png_pass_start[7] = {0, 4, 0, 2, 0, 1, 0};2012 2013 /* Offset to next interlace block */2014 static const png_byte png_pass_inc[7] = {8, 8, 4, 4, 2, 2, 1};2015 2016 /* Start of interlace block in the y direction */2017 static const png_byte png_pass_ystart[7] = {0, 0, 4, 0, 2, 0, 1};2018 2019 /* Offset to next interlace block in the y direction */2020 static const png_byte png_pass_yinc[7] = {8, 8, 8, 4, 4, 2, 2};2021 #endif2022 2023 2031 png_debug(1, "in png_write_finish_row"); 2024 2032 … … 2096 2104 png_do_write_interlace(png_row_infop row_info, png_bytep row, int pass) 2097 2105 { 2098 /* Arrays to facilitate easy interlacing - use pass (0 - 6) as index */2099 2100 /* Start of interlace block */2101 static const png_byte png_pass_start[7] = {0, 4, 0, 2, 0, 1, 0};2102 2103 /* Offset to next interlace block */2104 static const png_byte png_pass_inc[7] = {8, 8, 4, 4, 2, 2, 1};2105 2106 2106 png_debug(1, "in png_do_write_interlace"); 2107 2107 -
trunk/src/libs/libpng-1.6.45/powerpc/powerpc_init.c
r96425 r107813 1 2 1 /* powerpc_init.c - POWERPC optimised filter functions 3 2 * -
trunk/src/libs/libpng-1.6.45/projects/vstudio/libpng/libpng.vcxproj
r103316 r107813 159 159 <ClCompile> 160 160 <PrecompiledHeader>Use</PrecompiledHeader> 161 <WarningLevel> $(WarningLevel)</WarningLevel>161 <WarningLevel>Level3</WarningLevel> 162 162 <MinimalRebuild>false</MinimalRebuild> 163 163 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 164 164 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 165 <PreprocessorDefinitions>WIN32;_DEBUG;_ USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>166 <IntrinsicFunctions>true</IntrinsicFunctions> 167 <FunctionLevelLinking>true</FunctionLevelLinking> 168 <FloatingPointExceptions>false</FloatingPointExceptions> 169 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 170 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 171 <BrowseInformation>true</BrowseInformation> 172 <CompileAs>CompileAsC</CompileAs> 173 <StringPooling>true</StringPooling> 174 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 175 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 176 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>165 <PreprocessorDefinitions>WIN32;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 166 <IntrinsicFunctions>true</IntrinsicFunctions> 167 <FunctionLevelLinking>true</FunctionLevelLinking> 168 <FloatingPointExceptions>false</FloatingPointExceptions> 169 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 170 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 171 <BrowseInformation>true</BrowseInformation> 172 <CompileAs>CompileAsC</CompileAs> 173 <StringPooling>true</StringPooling> 174 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 175 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 176 <TreatWarningAsError>false</TreatWarningAsError> 177 177 <Optimization>Disabled</Optimization> 178 178 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> … … 189 189 <ClCompile> 190 190 <PrecompiledHeader>Use</PrecompiledHeader> 191 <WarningLevel> $(WarningLevel)</WarningLevel>191 <WarningLevel>Level3</WarningLevel> 192 192 <MinimalRebuild>false</MinimalRebuild> 193 193 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 194 194 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 195 <PreprocessorDefinitions>WIN32;_DEBUG;_ USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>196 <IntrinsicFunctions>true</IntrinsicFunctions> 197 <FunctionLevelLinking>true</FunctionLevelLinking> 198 <FloatingPointExceptions>false</FloatingPointExceptions> 199 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 200 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 201 <BrowseInformation>true</BrowseInformation> 202 <CompileAs>CompileAsC</CompileAs> 203 <StringPooling>true</StringPooling> 204 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 205 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 206 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>195 <PreprocessorDefinitions>WIN32;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 196 <IntrinsicFunctions>true</IntrinsicFunctions> 197 <FunctionLevelLinking>true</FunctionLevelLinking> 198 <FloatingPointExceptions>false</FloatingPointExceptions> 199 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 200 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 201 <BrowseInformation>true</BrowseInformation> 202 <CompileAs>CompileAsC</CompileAs> 203 <StringPooling>true</StringPooling> 204 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 205 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 206 <TreatWarningAsError>false</TreatWarningAsError> 207 207 <Optimization>Disabled</Optimization> 208 208 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> … … 224 224 <Optimization>Disabled</Optimization> 225 225 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 226 <PreprocessorDefinitions>WIN32;_DEBUG; %(PreprocessorDefinitions)</PreprocessorDefinitions>226 <PreprocessorDefinitions>WIN32;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 227 227 <IntrinsicFunctions>true</IntrinsicFunctions> 228 228 <FunctionLevelLinking>true</FunctionLevelLinking> … … 251 251 <Optimization>Disabled</Optimization> 252 252 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 253 <PreprocessorDefinitions>WIN32;_DEBUG; %(PreprocessorDefinitions)</PreprocessorDefinitions>253 <PreprocessorDefinitions>WIN32;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 254 254 <IntrinsicFunctions>true</IntrinsicFunctions> 255 255 <FunctionLevelLinking>true</FunctionLevelLinking> … … 272 272 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 273 273 <ClCompile> 274 <WarningLevel> $(WarningLevel)</WarningLevel>275 <PrecompiledHeader>Use</PrecompiledHeader> 276 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 277 <FunctionLevelLinking>true</FunctionLevelLinking> 278 <IntrinsicFunctions>true</IntrinsicFunctions> 279 <PreprocessorDefinitions>WIN32;NDEBUG;_ USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>280 <FloatingPointExceptions>false</FloatingPointExceptions> 281 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 282 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 283 <BrowseInformation>true</BrowseInformation> 284 <CompileAs>CompileAsC</CompileAs> 285 <StringPooling>true</StringPooling> 286 <MinimalRebuild>false</MinimalRebuild> 287 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 288 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 289 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>274 <WarningLevel>Level3</WarningLevel> 275 <PrecompiledHeader>Use</PrecompiledHeader> 276 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 277 <FunctionLevelLinking>true</FunctionLevelLinking> 278 <IntrinsicFunctions>true</IntrinsicFunctions> 279 <PreprocessorDefinitions>WIN32;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 280 <FloatingPointExceptions>false</FloatingPointExceptions> 281 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 282 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 283 <BrowseInformation>true</BrowseInformation> 284 <CompileAs>CompileAsC</CompileAs> 285 <StringPooling>true</StringPooling> 286 <MinimalRebuild>false</MinimalRebuild> 287 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 288 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 289 <TreatWarningAsError>false</TreatWarningAsError> 290 290 <Optimization>Full</Optimization> 291 291 </ClCompile> … … 302 302 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 303 303 <ClCompile> 304 <WarningLevel> $(WarningLevel)</WarningLevel>305 <PrecompiledHeader>Use</PrecompiledHeader> 306 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 307 <FunctionLevelLinking>true</FunctionLevelLinking> 308 <IntrinsicFunctions>true</IntrinsicFunctions> 309 <PreprocessorDefinitions>WIN32;NDEBUG;_ USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>310 <FloatingPointExceptions>false</FloatingPointExceptions> 311 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 312 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 313 <BrowseInformation>true</BrowseInformation> 314 <CompileAs>CompileAsC</CompileAs> 315 <StringPooling>true</StringPooling> 316 <MinimalRebuild>false</MinimalRebuild> 317 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 318 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 319 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>304 <WarningLevel>Level3</WarningLevel> 305 <PrecompiledHeader>Use</PrecompiledHeader> 306 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 307 <FunctionLevelLinking>true</FunctionLevelLinking> 308 <IntrinsicFunctions>true</IntrinsicFunctions> 309 <PreprocessorDefinitions>WIN32;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 310 <FloatingPointExceptions>false</FloatingPointExceptions> 311 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 312 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 313 <BrowseInformation>true</BrowseInformation> 314 <CompileAs>CompileAsC</CompileAs> 315 <StringPooling>true</StringPooling> 316 <MinimalRebuild>false</MinimalRebuild> 317 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 318 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 319 <TreatWarningAsError>false</TreatWarningAsError> 320 320 <Optimization>Full</Optimization> 321 321 </ClCompile> … … 338 338 <FunctionLevelLinking>true</FunctionLevelLinking> 339 339 <IntrinsicFunctions>true</IntrinsicFunctions> 340 <PreprocessorDefinitions>WIN32;NDEBUG; %(PreprocessorDefinitions)</PreprocessorDefinitions>340 <PreprocessorDefinitions>WIN32;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 341 341 <FloatingPointExceptions>false</FloatingPointExceptions> 342 342 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> … … 370 370 <FunctionLevelLinking>true</FunctionLevelLinking> 371 371 <IntrinsicFunctions>true</IntrinsicFunctions> 372 <PreprocessorDefinitions>WIN32;NDEBUG; %(PreprocessorDefinitions)</PreprocessorDefinitions>372 <PreprocessorDefinitions>WIN32;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 373 373 <FloatingPointExceptions>false</FloatingPointExceptions> 374 374 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> … … 397 397 <ClCompile Include="..\..\..\arm\arm_init.c"> 398 398 <DeploymentContent>true</DeploymentContent> 399 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">WIN32;_DEBUG; PNG_ARM_NEON_OPT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>399 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">WIN32;_DEBUG;_CRT_SECURE_NO_WARNINGS;PNG_ARM_NEON_OPT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> 400 400 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">NotUsing</PrecompiledHeader> 401 401 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'">NotUsing</PrecompiledHeader> … … 406 406 <ClCompile Include="..\..\..\arm\filter_neon_intrinsics.c"> 407 407 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">NotUsing</PrecompiledHeader> 408 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">WIN32;_DEBUG; PNG_ARM_NEON_OPT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>408 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">WIN32;_DEBUG;_CRT_SECURE_NO_WARNINGS;PNG_ARM_NEON_OPT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> 409 409 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'">NotUsing</PrecompiledHeader> 410 410 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'">NotUsing</PrecompiledHeader> … … 414 414 <ClCompile Include="..\..\..\arm\palette_neon_intrinsics.c"> 415 415 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">NotUsing</PrecompiledHeader> 416 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">WIN32;_DEBUG; PNG_ARM_NEON_OPT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>416 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">WIN32;_DEBUG;_CRT_SECURE_NO_WARNINGS;PNG_ARM_NEON_OPT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> 417 417 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'">NotUsing</PrecompiledHeader> 418 418 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'">NotUsing</PrecompiledHeader> -
trunk/src/libs/libpng-1.6.45/projects/vstudio/pnglibconf/pnglibconf.vcxproj
r103316 r107813 49 49 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 50 50 <ClCompile> 51 <WarningLevel> $(WarningLevel)</WarningLevel>51 <WarningLevel>Level3</WarningLevel> 52 52 <Optimization>MaxSpeed</Optimization> 53 53 <FunctionLevelLinking>true</FunctionLevelLinking> … … 74 74 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 75 75 <ClCompile> 76 <WarningLevel> $(WarningLevel)</WarningLevel>76 <WarningLevel>Level3</WarningLevel> 77 77 <Optimization>MaxSpeed</Optimization> 78 78 <FunctionLevelLinking>true</FunctionLevelLinking> -
trunk/src/libs/libpng-1.6.45/projects/vstudio/pngstest/pngstest.vcxproj
r103316 r107813 150 150 <Optimization>Disabled</Optimization> 151 151 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 152 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>152 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 153 153 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 154 154 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 183 183 <Optimization>Disabled</Optimization> 184 184 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 185 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>185 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 186 186 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 187 187 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 217 217 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 218 218 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 219 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>219 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 220 220 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 221 221 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 250 250 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 251 251 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 252 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>252 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 253 253 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 254 254 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 276 276 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 277 277 <ClCompile> 278 <WarningLevel> $(WarningLevel)</WarningLevel>278 <WarningLevel>Level3</WarningLevel> 279 279 <PrecompiledHeader>NotUsing</PrecompiledHeader> 280 280 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 282 282 <FunctionLevelLinking>false</FunctionLevelLinking> 283 283 <IntrinsicFunctions>true</IntrinsicFunctions> 284 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>285 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 286 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 287 <CompileAsManaged>false</CompileAsManaged> 288 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>284 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 285 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 286 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 287 <CompileAsManaged>false</CompileAsManaged> 288 <TreatWarningAsError>false</TreatWarningAsError> 289 289 <StringPooling>true</StringPooling> 290 290 <MinimalRebuild>false</MinimalRebuild> … … 311 311 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 312 312 <ClCompile> 313 <WarningLevel> $(WarningLevel)</WarningLevel>313 <WarningLevel>Level3</WarningLevel> 314 314 <PrecompiledHeader>NotUsing</PrecompiledHeader> 315 315 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 317 317 <FunctionLevelLinking>false</FunctionLevelLinking> 318 318 <IntrinsicFunctions>true</IntrinsicFunctions> 319 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>320 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 321 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 322 <CompileAsManaged>false</CompileAsManaged> 323 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>319 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 320 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 321 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 322 <CompileAsManaged>false</CompileAsManaged> 323 <TreatWarningAsError>false</TreatWarningAsError> 324 324 <StringPooling>true</StringPooling> 325 325 <MinimalRebuild>false</MinimalRebuild> … … 353 353 <FunctionLevelLinking>false</FunctionLevelLinking> 354 354 <IntrinsicFunctions>true</IntrinsicFunctions> 355 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>355 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 356 356 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 357 357 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 389 389 <FunctionLevelLinking>false</FunctionLevelLinking> 390 390 <IntrinsicFunctions>true</IntrinsicFunctions> 391 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>391 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 392 392 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 393 393 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> -
trunk/src/libs/libpng-1.6.45/projects/vstudio/pngtest/pngtest.vcxproj
r103316 r107813 150 150 <Optimization>Disabled</Optimization> 151 151 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 152 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>152 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 153 153 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 154 154 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 183 183 <Optimization>Disabled</Optimization> 184 184 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 185 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>185 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 186 186 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 187 187 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 217 217 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 218 218 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 219 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>219 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 220 220 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 221 221 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 250 250 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 251 251 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 252 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>252 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 253 253 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 254 254 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 276 276 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 277 277 <ClCompile> 278 <WarningLevel> $(WarningLevel)</WarningLevel>278 <WarningLevel>Level3</WarningLevel> 279 279 <PrecompiledHeader>NotUsing</PrecompiledHeader> 280 280 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 282 282 <FunctionLevelLinking>false</FunctionLevelLinking> 283 283 <IntrinsicFunctions>true</IntrinsicFunctions> 284 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>285 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 286 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 287 <CompileAsManaged>false</CompileAsManaged> 288 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>284 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 285 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 286 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 287 <CompileAsManaged>false</CompileAsManaged> 288 <TreatWarningAsError>false</TreatWarningAsError> 289 289 <StringPooling>true</StringPooling> 290 290 <MinimalRebuild>false</MinimalRebuild> … … 311 311 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 312 312 <ClCompile> 313 <WarningLevel> $(WarningLevel)</WarningLevel>313 <WarningLevel>Level3</WarningLevel> 314 314 <PrecompiledHeader>NotUsing</PrecompiledHeader> 315 315 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 317 317 <FunctionLevelLinking>false</FunctionLevelLinking> 318 318 <IntrinsicFunctions>true</IntrinsicFunctions> 319 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>320 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 321 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 322 <CompileAsManaged>false</CompileAsManaged> 323 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>319 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 320 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 321 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 322 <CompileAsManaged>false</CompileAsManaged> 323 <TreatWarningAsError>false</TreatWarningAsError> 324 324 <StringPooling>true</StringPooling> 325 325 <MinimalRebuild>false</MinimalRebuild> … … 353 353 <FunctionLevelLinking>false</FunctionLevelLinking> 354 354 <IntrinsicFunctions>true</IntrinsicFunctions> 355 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>355 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 356 356 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 357 357 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 390 390 <FunctionLevelLinking>false</FunctionLevelLinking> 391 391 <IntrinsicFunctions>true</IntrinsicFunctions> 392 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>392 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 393 393 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 394 394 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> -
trunk/src/libs/libpng-1.6.45/projects/vstudio/pngunknown/pngunknown.vcxproj
r103316 r107813 150 150 <Optimization>Disabled</Optimization> 151 151 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 152 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>152 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 153 153 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 154 154 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 183 183 <Optimization>Disabled</Optimization> 184 184 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 185 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>185 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 186 186 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 187 187 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 217 217 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 218 218 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 219 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>219 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 220 220 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 221 221 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 250 250 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 251 251 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 252 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>252 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 253 253 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 254 254 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 276 276 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 277 277 <ClCompile> 278 <WarningLevel> $(WarningLevel)</WarningLevel>278 <WarningLevel>Level3</WarningLevel> 279 279 <PrecompiledHeader>NotUsing</PrecompiledHeader> 280 280 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 282 282 <FunctionLevelLinking>false</FunctionLevelLinking> 283 283 <IntrinsicFunctions>true</IntrinsicFunctions> 284 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>285 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 286 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 287 <CompileAsManaged>false</CompileAsManaged> 288 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>284 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 285 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 286 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 287 <CompileAsManaged>false</CompileAsManaged> 288 <TreatWarningAsError>false</TreatWarningAsError> 289 289 <StringPooling>true</StringPooling> 290 290 <MinimalRebuild>false</MinimalRebuild> … … 311 311 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 312 312 <ClCompile> 313 <WarningLevel> $(WarningLevel)</WarningLevel>313 <WarningLevel>Level3</WarningLevel> 314 314 <PrecompiledHeader>NotUsing</PrecompiledHeader> 315 315 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 317 317 <FunctionLevelLinking>false</FunctionLevelLinking> 318 318 <IntrinsicFunctions>true</IntrinsicFunctions> 319 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>320 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 321 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 322 <CompileAsManaged>false</CompileAsManaged> 323 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>319 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 320 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 321 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 322 <CompileAsManaged>false</CompileAsManaged> 323 <TreatWarningAsError>false</TreatWarningAsError> 324 324 <StringPooling>true</StringPooling> 325 325 <MinimalRebuild>false</MinimalRebuild> … … 353 353 <FunctionLevelLinking>false</FunctionLevelLinking> 354 354 <IntrinsicFunctions>true</IntrinsicFunctions> 355 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>355 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 356 356 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 357 357 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 389 389 <FunctionLevelLinking>false</FunctionLevelLinking> 390 390 <IntrinsicFunctions>true</IntrinsicFunctions> 391 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>391 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 392 392 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 393 393 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> -
trunk/src/libs/libpng-1.6.45/projects/vstudio/pngvalid/pngvalid.vcxproj
r103316 r107813 150 150 <Optimization>Disabled</Optimization> 151 151 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 152 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>152 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 153 153 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 154 154 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 183 183 <Optimization>Disabled</Optimization> 184 184 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 185 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>185 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 186 186 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 187 187 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 217 217 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 218 218 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 219 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>219 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 220 220 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 221 221 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 250 250 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 251 251 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 252 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>252 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 253 253 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 254 254 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 276 276 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 277 277 <ClCompile> 278 <WarningLevel> $(WarningLevel)</WarningLevel>278 <WarningLevel>Level3</WarningLevel> 279 279 <PrecompiledHeader>NotUsing</PrecompiledHeader> 280 280 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 282 282 <FunctionLevelLinking>false</FunctionLevelLinking> 283 283 <IntrinsicFunctions>true</IntrinsicFunctions> 284 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>285 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 286 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 287 <CompileAsManaged>false</CompileAsManaged> 288 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>284 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 285 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 286 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 287 <CompileAsManaged>false</CompileAsManaged> 288 <TreatWarningAsError>false</TreatWarningAsError> 289 289 <StringPooling>true</StringPooling> 290 290 <MinimalRebuild>false</MinimalRebuild> … … 311 311 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 312 312 <ClCompile> 313 <WarningLevel> $(WarningLevel)</WarningLevel>313 <WarningLevel>Level3</WarningLevel> 314 314 <PrecompiledHeader>NotUsing</PrecompiledHeader> 315 315 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 317 317 <FunctionLevelLinking>false</FunctionLevelLinking> 318 318 <IntrinsicFunctions>true</IntrinsicFunctions> 319 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>320 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 321 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 322 <CompileAsManaged>false</CompileAsManaged> 323 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>319 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 320 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 321 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 322 <CompileAsManaged>false</CompileAsManaged> 323 <TreatWarningAsError>false</TreatWarningAsError> 324 324 <StringPooling>true</StringPooling> 325 325 <MinimalRebuild>false</MinimalRebuild> … … 353 353 <FunctionLevelLinking>false</FunctionLevelLinking> 354 354 <IntrinsicFunctions>true</IntrinsicFunctions> 355 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>355 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 356 356 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 357 357 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> … … 389 389 <FunctionLevelLinking>false</FunctionLevelLinking> 390 390 <IntrinsicFunctions>true</IntrinsicFunctions> 391 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE; %(PreprocessorDefinitions)</PreprocessorDefinitions>391 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 392 392 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 393 393 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> -
trunk/src/libs/libpng-1.6.45/projects/vstudio/zlib.props
r96425 r107813 3 3 * zlib.props - location of zlib source 4 4 * 5 * Copyright (c) 2018 Cosmin Truta5 * Copyright (c) 2018-2024 Cosmin Truta 6 6 * Copyright (c) 1998-2011 Glenn Randers-Pehrson 7 7 * … … 15 15 16 16 <Project ToolsVersion="4.0" 17 xmlns="http://schemas.microsoft.com/developer/msbuild/2003">17 xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 18 18 <PropertyGroup Label="Globals"> 19 19 <!-- Place the name of the directory containing the source of zlib used for 20 20 debugging in this property. 21 21 22 22 The directory need only contain the '.c' and '.h' files from the 23 23 source. 24 24 25 26 27 25 If you use a relative directory name (as below) then it must be 26 relative to the project directories; these are one level deeper than 27 the directories containing this file. 28 28 29 30 distribution was built you will get warnings from pngtest that the zlib 31 versions do not match. The zlib version used in this build is recorded 32 29 If the version of zlib you use does not match that used when the 30 distribution was built you will get warnings from pngtest that the 31 zlib versions do not match. The zlib version used in this build is 32 recorded below: 33 33 --> 34 34 <ZLibSrcDir>..\..\..\..\zlib</ZLibSrcDir> … … 37 37 Studio 2012. Notice that this is not supported by the Visual Studio 38 38 2012 IDE and that the programs that result cannot be run unless they 39 signed by Microsoft. This is therefore untested; only Microsoft can40 test it:39 are signed by Microsoft. This is therefore untested; only Microsoft 40 can test it: 41 41 --> 42 42 <WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport> 43 43 44 <!-- The following lines provide a global (solution level) control of the 45 warnings issued by the compiler, these are used in the individual 46 project files (*/*.vcxproj) with, for zlib, some extra disables. 44 <!-- The following lines provide a global (solution-level) control of the 45 warnings issued by the compiler. 47 46 48 Different versions of Visual Studio may require different settings, 49 these settings work with Visual Studio 2013. Just set 50 TreatWarningAsError to false to check the build without failing on 51 errors. 47 Considering how different versions of Visual Studio sometimes require 48 different settings, and their compilers issue different warnings, we 49 set TreatWarningAsError to false to avoid unforeseen and undesirable 50 build failures for the users who upgrade to a newer Visual Studio that 51 might bring along a more pedantic compiler: 52 52 --> 53 <WarningLevel>EnableAllWarnings</WarningLevel> 54 <TreatWarningAsError>true</TreatWarningAsError> 55 <DisableSpecificWarnings>4255;4668;4710;4711;4746;4820;4996</DisableSpecificWarnings> 53 <WarningLevel>Level3</WarningLevel> 54 <TreatWarningAsError>false</TreatWarningAsError> 56 55 </PropertyGroup> 57 56 </Project> -
trunk/src/libs/libpng-1.6.45/projects/vstudio/zlib/zlib.vcxproj
r103316 r107813 155 155 <PreprocessorDefinitions>WIN32;_DEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> 156 156 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 157 <WarningLevel> Level3</WarningLevel>157 <WarningLevel>$(WarningLevel)</WarningLevel> 158 158 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 159 159 <Optimization>Disabled</Optimization> 160 160 <BrowseInformation>true</BrowseInformation> 161 161 <FunctionLevelLinking>true</FunctionLevelLinking> 162 <DisableSpecificWarnings>$(DisableSpecificWarnings) ;4127;4131;4242;4244</DisableSpecificWarnings>163 <TreatWarningAsError> false</TreatWarningAsError>162 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 163 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 164 164 </ClCompile> 165 165 <Link> … … 173 173 <PreprocessorDefinitions>WIN32;_DEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> 174 174 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 175 <WarningLevel> Level3</WarningLevel>175 <WarningLevel>$(WarningLevel)</WarningLevel> 176 176 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 177 177 <Optimization>Disabled</Optimization> 178 178 <BrowseInformation>true</BrowseInformation> 179 179 <FunctionLevelLinking>true</FunctionLevelLinking> 180 <DisableSpecificWarnings>$(DisableSpecificWarnings) ;4127;4131;4242;4244</DisableSpecificWarnings>181 <TreatWarningAsError> false</TreatWarningAsError>180 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 181 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 182 182 </ClCompile> 183 183 <Link> … … 189 189 <ClCompile> 190 190 <PreprocessorDefinitions>WIN32;_DEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> 191 <WarningLevel> Level3</WarningLevel>191 <WarningLevel>$(WarningLevel)</WarningLevel> 192 192 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 193 193 <Optimization>Disabled</Optimization> 194 194 <BrowseInformation>true</BrowseInformation> 195 195 <FunctionLevelLinking>true</FunctionLevelLinking> 196 <DisableSpecificWarnings>$(DisableSpecificWarnings) ;4127;4131;4242;4244</DisableSpecificWarnings>197 <TreatWarningAsError> false</TreatWarningAsError>196 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 197 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 198 198 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> 199 199 </ClCompile> … … 207 207 <ClCompile> 208 208 <PreprocessorDefinitions>WIN32;_DEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> 209 <WarningLevel> Level3</WarningLevel>209 <WarningLevel>$(WarningLevel)</WarningLevel> 210 210 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 211 211 <Optimization>Disabled</Optimization> 212 212 <BrowseInformation>true</BrowseInformation> 213 213 <FunctionLevelLinking>true</FunctionLevelLinking> 214 <DisableSpecificWarnings>$(DisableSpecificWarnings) ;4127;4131;4242;4244</DisableSpecificWarnings>215 <TreatWarningAsError> false</TreatWarningAsError>214 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 215 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 216 216 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> 217 217 </ClCompile> … … 223 223 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'"> 224 224 <ClCompile> 225 <WarningLevel> Level3</WarningLevel>225 <WarningLevel>$(WarningLevel)</WarningLevel> 226 226 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 227 227 <Optimization>Full</Optimization> … … 231 231 <BrowseInformation>true</BrowseInformation> 232 232 <FunctionLevelLinking>true</FunctionLevelLinking> 233 <DisableSpecificWarnings>$(DisableSpecificWarnings) ;4127;4131;4242;4244</DisableSpecificWarnings>234 <TreatWarningAsError> false</TreatWarningAsError>233 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 234 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 235 235 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 236 236 <PreprocessorDefinitions>WIN32;NDEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> … … 247 247 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'"> 248 248 <ClCompile> 249 <WarningLevel> Level3</WarningLevel>249 <WarningLevel>$(WarningLevel)</WarningLevel> 250 250 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 251 251 <Optimization>Full</Optimization> … … 255 255 <BrowseInformation>true</BrowseInformation> 256 256 <FunctionLevelLinking>true</FunctionLevelLinking> 257 <DisableSpecificWarnings>$(DisableSpecificWarnings) ;4127;4131;4242;4244</DisableSpecificWarnings>258 <TreatWarningAsError> false</TreatWarningAsError>257 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 258 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 259 259 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 260 260 <PreprocessorDefinitions>WIN32;NDEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> … … 278 278 <BrowseInformation>true</BrowseInformation> 279 279 <FunctionLevelLinking>true</FunctionLevelLinking> 280 <DisableSpecificWarnings>$(DisableSpecificWarnings) ;4127;4131;4242;4244</DisableSpecificWarnings>280 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 281 281 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 282 282 <PreprocessorDefinitions>WIN32;NDEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> … … 303 303 <BrowseInformation>true</BrowseInformation> 304 304 <FunctionLevelLinking>true</FunctionLevelLinking> 305 <DisableSpecificWarnings>$(DisableSpecificWarnings) ;4127;4131;4242;4244</DisableSpecificWarnings>305 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 306 306 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 307 307 <PreprocessorDefinitions>WIN32;NDEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> -
trunk/src/libs/libpng-1.6.45/scripts/README.txt
r103316 r107813 1 Scripts and makefiles for libpng 2 -------------------------------- 1 3 2 Makefiles for libpng 4 pnglibconf.h.prebuilt => Configuration settings 3 5 4 pnglibconf.h.prebuilt => Configuration settings 5 makefile.linux => Linux/ELF makefile 6 (gcc, creates shared libpng16.so.16.1.6.*) 7 makefile.linux-opt=> Linux/ELF makefile with hardware optimizations on 8 (gcc, creates shared libpng16.so.16.1.6.*) 9 makefile.gcc => Generic makefile (gcc, creates static libpng.a) 10 makefile.acorn => Acorn makefile 11 makefile.aix => AIX/gcc makefile 12 makefile.amiga => Amiga makefile 13 makefile.atari => Atari makefile 14 makefile.bc32 => 32-bit Borland C++ (all modules compiled in C mode) 15 makefile.beos => BeOS makefile 16 makefile.clang => Generic clang makefile 17 makefile.darwin => Darwin makefile, for macOS (formerly Mac OS X) 18 makefile.dec => DEC Alpha UNIX makefile 19 makefile.dj2 => DJGPP 2 makefile 20 makefile.freebsd => FreeBSD makefile 21 makefile.gcc => Generic gcc makefile 22 makefile.hpgcc => HPUX makefile using gcc 23 makefile.hpux => HPUX (10.20 and 11.00) makefile 24 makefile.hp64 => HPUX (10.20 and 11.00) makefile, 64-bit 25 makefile.ibmc => IBM C/C++ version 3.x for Win32 and OS/2 (static) 26 makefile.intel => Intel C/C++ version 4.0 and later 27 makefile.mips => MIPS makefile 28 makefile.netbsd => NetBSD/cc makefile, makes shared libpng.so 29 makefile.openbsd => OpenBSD makefile 30 makefile.sco => SCO OSr5 ELF and Unixware 7 with Native cc 31 makefile.sggcc => Silicon Graphics makefile 32 (gcc, creates shared libpng16.so.16.1.6.*) 33 makefile.sgi => Silicon Graphics IRIX makefile (cc, creates static lib) 34 makefile.solaris => Solaris 2.X makefile 35 (gcc, creates shared libpng16.so.16.1.6.*) 36 makefile.so9 => Solaris 9 makefile 37 (gcc, creates shared libpng16.so.16.1.6.*) 38 makefile.std => Generic UNIX makefile (cc, creates static libpng.a) 39 makefile.sunos => Sun makefile 40 makefile.32sunu => Sun Ultra 32-bit makefile 41 makefile.64sunu => Sun Ultra 64-bit makefile 42 makefile.vcwin32 => makefile for Microsoft Visual C++ 4.0 and later 43 makevms.com => VMS build script 44 smakefile.ppc => AMIGA smakefile for SAS C V6.58/7.00 PPC compiler 45 (Requires SCOPTIONS, copied from scripts/SCOPTIONS.ppc) 6 makefile.aix => AIX/gcc makefile 7 makefile.amiga => Amiga makefile 8 makefile.atari => Atari makefile 9 makefile.bc32 => Borland C makefile, for Win32 10 makefile.beos => BeOS makefile 11 makefile.clang => Generic clang makefile 12 makefile.darwin => Darwin makefile, for macOS (formerly Mac OS X) 13 makefile.dec => DEC Alpha UNIX makefile 14 makefile.dj2 => DJGPP 2 makefile 15 makefile.emcc => Emscripten makefile 16 makefile.freebsd => FreeBSD makefile 17 makefile.gcc => Generic gcc makefile 18 makefile.hpgcc => HPUX makefile using gcc 19 makefile.hpux => HPUX (10.20 and 11.00) makefile 20 makefile.hp64 => HPUX (10.20 and 11.00) makefile, 64-bit 21 makefile.ibmc => IBM C/C++ version 3.x for Win32 and OS/2 (static lib) 22 makefile.intel => Intel C/C++ version 4.0 and later 23 makefile.linux => Linux/ELF makefile 24 (gcc, creates shared libpng16.so.16.1.6.*) 25 makefile.mips => MIPS makefile 26 makefile.msys => MSYS (MinGW) makefile 27 makefile.netbsd => NetBSD/cc makefile, makes shared libpng.so 28 makefile.openbsd => OpenBSD makefile 29 makefile.riscos => Acorn RISCOS makefile 30 makefile.sco => SCO OSr5 ELF and Unixware 7 with Native cc 31 makefile.sgi => Silicon Graphics IRIX makefile (cc, static lib) 32 makefile.sggcc => Silicon Graphics makefile 33 (gcc, creates shared libpng16.so.16.1.6.*) 34 makefile.solaris => Solaris 2.X makefile 35 (gcc, creates shared libpng16.so.16.1.6.*) 36 makefile.so9 => Solaris 9 makefile 37 (gcc, creates shared libpng16.so.16.1.6.*) 38 makefile.std => Generic UNIX makefile (cc, static lib) 39 makefile.sunos => Sun makefile 40 makefile.32sunu => Sun Ultra 32-bit makefile 41 makefile.64sunu => Sun Ultra 64-bit makefile 42 makefile.vcwin32 => makefile for Microsoft Visual C++ 4.0 and later 43 makevms.com => VMS build script 44 smakefile.ppc => AMIGA smakefile for SAS C V6.58/7.00 PPC compiler 45 (Requires SCOPTIONS, copied from SCOPTIONS.ppc) 46 46 47 Other supporting scripts: 48 README.txt => This file 49 descrip.mms => VMS makefile for MMS or MMK 50 libpng-config-body.in => used by several makefiles to create libpng-config 51 libpng-config-head.in => used by several makefiles to create libpng-config 52 libpng.pc.in => Used by several makefiles to create libpng.pc 53 pngwin.rc => Used by the visualc71 project 54 pngwin.def => Used by makefile.os2 55 pngwin.dfn => Used to maintain pngwin.def 56 SCOPTIONS.ppc => Used with smakefile.ppc 47 Other supporting scripts 48 ------------------------ 57 49 58 checksym.awk => Used for maintaining pnglibconf.h 59 def.dfn => Used for maintaining pnglibconf.h 60 options.awk => Used for maintaining pnglibconf.h 61 pnglibconf.dfa => Used for maintaining pnglibconf.h 62 pnglibconf.mak => Used for maintaining pnglibconf.h 63 sym.dfn => Used for symbol versioning 64 symbols.def => Used for symbol versioning 65 symbols.dfn => Used for symbol versioning 66 vers.dfn => Used for symbol versioning 50 README.txt => This file 51 descrip.mms => VMS makefile for MMS or MMK 52 libpng-config-body.in => used by several makefiles to create libpng-config 53 libpng-config-head.in => used by several makefiles to create libpng-config 54 libpng.pc.in => Used by several makefiles to create libpng.pc 55 macro.lst => Used by GNU Autotools 56 pngwin.rc => Used by the visualc71 project 57 pngwin.def => Used by makefile.os2 58 pngwin.dfn => Used to maintain pngwin.def 59 SCOPTIONS.ppc => Used with smakefile.ppc 67 60 68 libtool.m4 => Used by autoconf tools 69 ltoptions.m4 => Used by autoconf tools 70 ltsugar.m4 => Used by autoconf tools 71 ltversion.m4 => Used by autoconf tools 72 lt~obsolete.m4 => Used by autoconf tools 73 74 intprefix.dfn => Used by autoconf tools 75 macro.lst => Used by autoconf tools 76 prefix.dfn => Used by autoconf tools 61 checksym.awk => Used for maintaining pnglibconf.h 62 dfn.awk => Used for maintaining pnglibconf.h 63 options.awk => Used for maintaining pnglibconf.h 64 pnglibconf.dfa => Used for maintaining pnglibconf.h 65 pnglibconf.mak => Used for maintaining pnglibconf.h 66 intprefix.c => Used for symbol versioning 67 prefix.c => Used for symbol versioning 68 sym.c => Used for symbol versioning 69 symbols.c => Used for symbol versioning 70 vers.c => Used for symbol versioning 77 71 78 72 Further information can be found in comments in the individual scripts and -
trunk/src/libs/libpng-1.6.45/scripts/descrip.mms
r103316 r107813 1 2 1 cc_defs = /inc=$(ZLIBSRC) 3 2 c_deb = -
trunk/src/libs/libpng-1.6.45/scripts/intprefix.c
r103316 r107813 1 2 1 /* intprefix.c - generate an unprefixed internal symbol list 3 2 * -
trunk/src/libs/libpng-1.6.45/scripts/libpng-config-body.in
r96425 r107813 1 2 1 usage() 3 2 { -
trunk/src/libs/libpng-1.6.45/scripts/libpng-config-head.in
r105469 r107813 12 12 # Modeled after libxml-config. 13 13 14 version=1.6.4 314 version=1.6.45 15 15 prefix="" 16 16 libdir="" -
trunk/src/libs/libpng-1.6.45/scripts/libpng.pc.in
r105469 r107813 6 6 Name: libpng 7 7 Description: Loads and saves PNG files 8 Version: 1.6.4 38 Version: 1.6.45 9 9 Libs: -L${libdir} -lpng16 10 10 Cflags: -I${includedir} -
trunk/src/libs/libpng-1.6.45/scripts/pnglibconf.dfa
r105469 r107813 9 9 version 10 10 com 11 com Copyright (c) 2018-202 4Cosmin Truta11 com Copyright (c) 2018-2025 Cosmin Truta 12 12 com Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 13 13 com … … 847 847 chunk bKGD 848 848 chunk cHRM enables COLORSPACE 849 chunk cICP enables COLORSPACE, GAMMA 849 850 chunk eXIf 850 851 chunk gAMA enables GAMMA -
trunk/src/libs/libpng-1.6.45/scripts/pnglibconf.h.prebuilt
r105469 r107813 1 1 /* pnglibconf.h - library build configuration */ 2 2 3 /* libpng version 1.6.4 3*/4 5 /* Copyright (c) 2018-202 4Cosmin Truta */3 /* libpng version 1.6.45 */ 4 5 /* Copyright (c) 2018-2025 Cosmin Truta */ 6 6 /* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson */ 7 7 … … 89 89 #define PNG_READ_bKGD_SUPPORTED 90 90 #define PNG_READ_cHRM_SUPPORTED 91 #define PNG_READ_cICP_SUPPORTED 91 92 #define PNG_READ_eXIf_SUPPORTED 92 93 #define PNG_READ_gAMA_SUPPORTED … … 159 160 #define PNG_WRITE_bKGD_SUPPORTED 160 161 #define PNG_WRITE_cHRM_SUPPORTED 162 #define PNG_WRITE_cICP_SUPPORTED 161 163 #define PNG_WRITE_eXIf_SUPPORTED 162 164 #define PNG_WRITE_gAMA_SUPPORTED … … 177 179 #define PNG_bKGD_SUPPORTED 178 180 #define PNG_cHRM_SUPPORTED 181 #define PNG_cICP_SUPPORTED 179 182 #define PNG_eXIf_SUPPORTED 180 183 #define PNG_gAMA_SUPPORTED -
trunk/src/libs/libpng-1.6.45/scripts/prefix.c
r103316 r107813 1 2 1 /* prefix.c - generate an unprefixed symbol list 3 2 * -
trunk/src/libs/libpng-1.6.45/scripts/sym.c
r103316 r107813 1 2 1 /* sym.c - define format of libpng.sym 3 2 * -
trunk/src/libs/libpng-1.6.45/scripts/symbols.c
r103316 r107813 1 2 1 /* symbols.c - find all exported symbols 3 2 * -
trunk/src/libs/libpng-1.6.45/scripts/symbols.def
r96425 r107813 254 254 png_get_eXIf_1 @248 255 255 png_set_eXIf_1 @249 256 png_get_cICP @250 257 png_set_cICP @251 -
trunk/src/libs/libpng-1.6.45/scripts/vers.c
r103316 r107813 1 2 1 /* vers.c - define format of libpng.vers 3 2 * -
trunk/src/libs/libpng-1.6.45/test-driver
r103316 r107813 2 2 # test-driver - basic testsuite driver script. 3 3 4 scriptversion=20 18-03-07.03; # UTC4 scriptversion=2024-06-19.01; # UTC 5 5 6 # Copyright (C) 2011-202 1Free Software Foundation, Inc.6 # Copyright (C) 2011-2024 Free Software Foundation, Inc. 7 7 # 8 8 # This program is free software; you can redistribute it and/or modify … … 45 45 test-driver --test-name NAME --log-file PATH --trs-file PATH 46 46 [--expect-failure {yes|no}] [--color-tests {yes|no}] 47 [--collect-skipped-logs {yes|no}] 47 48 [--enable-hard-errors {yes|no}] [--] 48 49 TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS] … … 50 51 The '--test-name', '--log-file' and '--trs-file' options are mandatory. 51 52 See the GNU Automake documentation for information. 53 54 Report bugs to <[email protected]>. 55 GNU Automake home page: <https://www.gnu.org/software/automake/>. 56 General help using GNU software: <https://www.gnu.org/gethelp/>. 52 57 END 53 58 } … … 58 63 expect_failure=no 59 64 color_tests=no 65 collect_skipped_logs=yes 60 66 enable_hard_errors=yes 61 67 while test $# -gt 0; do 62 68 case $1 in 63 69 --help) print_usage; exit $?;; 64 --version) echo "test-driver $scriptversion"; exit $?;;70 --version) echo "test-driver (GNU Automake) $scriptversion"; exit $?;; 65 71 --test-name) test_name=$2; shift;; 66 72 --log-file) log_file=$2; shift;; 67 73 --trs-file) trs_file=$2; shift;; 68 74 --color-tests) color_tests=$2; shift;; 75 --collect-skipped-logs) collect_skipped_logs=$2; shift;; 69 76 --expect-failure) expect_failure=$2; shift;; 70 77 --enable-hard-errors) enable_hard_errors=$2; shift;; … … 122 129 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; 123 130 0:*) col=$grn res=PASS recheck=no gcopy=no;; 124 77:*) col=$blu res=SKIP recheck=no gcopy= yes;;131 77:*) col=$blu res=SKIP recheck=no gcopy=$collect_skipped_logs;; 125 132 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; 126 133 *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;;
Note:
See TracChangeset
for help on using the changeset viewer.