mirror of
				https://git.code.sf.net/p/libpng/code.git
				synced 2025-07-10 18:04:09 +02:00 
			
		
		
		
	[libpng10] Imported from libpng-1.0.61.tar
This commit is contained in:
		
							parent
							
								
									0fc7d58632
								
							
						
					
					
						commit
						9d6ff2c566
					
				
							
								
								
									
										60
									
								
								ANNOUNCE
									
									
									
									
									
								
							
							
						
						
									
										60
									
								
								ANNOUNCE
									
									
									
									
									
								
							| @ -1,5 +1,5 @@ | ||||
| 
 | ||||
| Libpng 1.0.60 - July 10, 2012 | ||||
| Libpng 1.0.61 - February 6, 2014 | ||||
| 
 | ||||
| This is a public release of libpng, intended for use in production codes. | ||||
| 
 | ||||
| @ -8,47 +8,63 @@ Files available for download: | ||||
| Source files with LF line endings (for Unix/Linux) and with a | ||||
| "configure" script | ||||
| 
 | ||||
|    libpng-1.0.60.tar.xz (LZMA-compressed, recommended) | ||||
|    libpng-1.0.60.tar.gz | ||||
|    libpng-1.0.60.tar.bz2 | ||||
|    libpng-1.0.61.tar.xz (LZMA-compressed, recommended) | ||||
|    libpng-1.0.61.tar.gz | ||||
|    libpng-1.0.61.tar.bz2 | ||||
| 
 | ||||
| Source files with LF line endings (for Unix/Linux) without the | ||||
| "configure" script | ||||
| 
 | ||||
|    libpng-1.0.60-no-config.tar.xz (LZMA-compressed, recommended) | ||||
|    libpng-1.0.60-no-config.tar.gz | ||||
|    libpng-1.0.60-no-config.tar.bz2 | ||||
|    libpng-1.0.61-no-config.tar.xz (LZMA-compressed, recommended) | ||||
|    libpng-1.0.61-no-config.tar.gz | ||||
|    libpng-1.0.61-no-config.tar.bz2 | ||||
| 
 | ||||
| Source files with CRLF line endings (for Windows), without the | ||||
| "configure" script | ||||
| 
 | ||||
|    lpng1060.zip | ||||
|    lpng1060.7z | ||||
|    lpng1060.tar.bz2 | ||||
|    lpng1061.zip | ||||
|    lpng1061.7z | ||||
|    lpng1061.tar.bz2 | ||||
| 
 | ||||
| Project files | ||||
| 
 | ||||
|    libpng-1.0.60-project-netware.zip | ||||
|    libpng-1.0.60-project-wince.zip | ||||
|    libpng-1.0.61-project-netware.zip | ||||
|    libpng-1.0.61-project-wince.zip | ||||
| 
 | ||||
| Other information: | ||||
| 
 | ||||
|    libpng-1.0.60-README.txt | ||||
|    libpng-1.0.60-KNOWNBUGS.txt | ||||
|    libpng-1.0.60-LICENSE.txt | ||||
|    libpng-1.0.60-Y2K-compliance.txt | ||||
|    libpng-1.0.61-README.txt | ||||
|    libpng-1.0.61-KNOWNBUGS.txt | ||||
|    libpng-1.0.61-LICENSE.txt | ||||
|    libpng-1.0.61-Y2K-compliance.txt | ||||
| 
 | ||||
| Changes since the last public release (1.0.59): | ||||
| Changes since the last public release (1.0.60): | ||||
| 
 | ||||
| version 1.0.60 [July 10, 2012] | ||||
| 
 | ||||
| version 1.0.60 and 1.2.50 [July 8, 2012] | ||||
|   Changed "a+w" to "u+w" in Makefile.in to fix CVE-2012-3386. | ||||
| version 1.0.61 [February 6, 2014] | ||||
| 
 | ||||
| version 1.0.61 and 1.2.51 [February 6, 2014] | ||||
|   Ignore, with a warning, out-of-range value of num_trans in png_set_tRNS(). | ||||
|   Replaced AM_CONFIG_HEADER(config.h) with AC_CONFIG_HEADERS([config.h]) | ||||
|     in configure.ac | ||||
|   Changed default value of PNG_USER_CACHE_MAX from 0 to 32767 in pngconf.h. | ||||
|   Avoid a possible memory leak in contrib/gregbook/readpng.c | ||||
|   Revised libpng.3 so that "doclifter" can process it. | ||||
|   Changed '"%s"m' to '"%s" m' in png_debug macros to improve portability | ||||
|     among compilers. | ||||
|   Rebuilt the configure scripts with autoconf-2.69 and automake-1.14.1 | ||||
|   Removed potentially misleading warning from png_check_IHDR(). | ||||
|   Quiet set-but-not-used warnings in pngset.c | ||||
|   Quiet an uninitialized memory warning from VC2013 in png_get_png(). | ||||
|   Quiet unused variable warnings from clang by porting PNG_UNUSED() from | ||||
|     libpng-1.4.6. | ||||
|   Added -DZ_SOLO to CFLAGS in contrib/pngminim/*/makefile | ||||
|   Added an #ifdef PNG_FIXED_POINT_SUPPORTED/#endif in pngset.c | ||||
| 
 | ||||
| Send comments/corrections/commendations to png-mng-implement at lists.sf.net | ||||
| (subscription required; visit | ||||
| https://lists.sourceforge.net/lists/listinfo/png-mng-implement | ||||
| to subscribe) or to glennrp at users.sourceforge.net | ||||
| to subscribe) | ||||
| or to glennrp at users.sourceforge.net | ||||
| 
 | ||||
| Glenn R-P | ||||
| #endif | ||||
|  | ||||
							
								
								
									
										39
									
								
								CHANGES
									
									
									
									
									
								
							
							
						
						
									
										39
									
								
								CHANGES
									
									
									
									
									
								
							| @ -2760,12 +2760,49 @@ version 1.0.58 and 1.2.48 [March 8, 2012] | ||||
| 
 | ||||
| version 1.0.59 and 1.2.49 [March 29, 2012] | ||||
|   Revised png_set_text_2() to avoid potential memory corruption (fixes | ||||
|     CVE-2011-3048). | ||||
|     CVE-2011-3048, also known as CVE-2012-3425). | ||||
|   Prevent PNG_EXPAND+PNG_SHIFT doing the shift twice. | ||||
| 
 | ||||
| version 1.0.60 and 1.2.50 [July 9, 2012] | ||||
|   Changed "a+w" to "u+w" in Makefile.in to fix CVE-2012-3386. | ||||
| 
 | ||||
| version 1.2.51beta01 [January 22, 2013] | ||||
|   Ignore, with a warning, out-of-range value of num_trans in png_set_tRNS(). | ||||
|   Replaced AM_CONFIG_HEADER(config.h) with AC_CONFIG_HEADERS([config.h]) | ||||
|     in configure.ac | ||||
|   Changed default value of PNG_USER_CACHE_MAX from 0 to 32767 in pngconf.h. | ||||
| 
 | ||||
| version 1.2.51beta02 [June 13, 2013] | ||||
|   Avoid a possible memory leak in contrib/gregbook/readpng.c | ||||
|   Revised libpng.3 so that "doclifter" can process it. | ||||
| 
 | ||||
| version 1.2.51beta03 [January 1, 2014] | ||||
|   Changed '"%s"m' to '"%s" m' in png_debug macros to improve portability | ||||
|     among compilers. | ||||
|   Rebuilt the configure scripts with autoconf-2.69 and automake-1.14.1 | ||||
| 
 | ||||
| version 1.2.51beta04 [January 10, 2014] | ||||
|   Removed potentially misleading warning from png_check_IHDR(). | ||||
| 
 | ||||
| version 1.2.51beta05 [January 22, 2014] | ||||
|   Quiet set-but-not-used warnings in pngset.c | ||||
| 
 | ||||
| version 1.2.51rc01 [January 28, 2014] | ||||
|   No changes. | ||||
| 
 | ||||
| version 1.2.51rc02 [January 30, 2014] | ||||
|   Quiet an uninitialized memory warning from VC2013 in png_get_png(). | ||||
| 
 | ||||
| version 1.2.51rc03 [February 3, 2014] | ||||
|   Quiet unused variable warnings from clang by porting PNG_UNUSED() from | ||||
|     libpng-1.4.6. | ||||
| 
 | ||||
| version 1.2.51rc04 [February 3, 2014] | ||||
|   Added -DZ_SOLO to CFLAGS in contrib/pngminim/*/makefile | ||||
| 
 | ||||
| version 1.0.61 and 1.2.51 [February 6, 2014] | ||||
|   Added an #ifdef PNG_FIXED_POINT_SUPPORTED/#endif in pngset.c | ||||
| 
 | ||||
| Send comments/corrections/commendations to png-mng-implement at lists.sf.net | ||||
| (subscription required; visit | ||||
| https://lists.sourceforge.net/lists/listinfo/png-mng-implement | ||||
|  | ||||
							
								
								
									
										4
									
								
								INSTALL
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								INSTALL
									
									
									
									
									
								
							| @ -1,5 +1,5 @@ | ||||
| 
 | ||||
| Installing libpng version 1.0.60 - July 10, 2012 | ||||
| Installing libpng version 1.0.61 - February 6, 2014 | ||||
| 
 | ||||
| On Unix/Linux and similar systems, you can simply type | ||||
| 
 | ||||
| @ -46,7 +46,7 @@ to have access to the zlib.h and zconf.h include files that | ||||
| correspond to the version of zlib that's installed. | ||||
| 
 | ||||
| You can rename the directories that you downloaded (they | ||||
| might be called "libpng-1.0.60" or "libpng10" and "zlib-1.2.3" | ||||
| might be called "libpng-1.0.61" or "libpng10" and "zlib-1.2.3" | ||||
| or "zlib123") so that you have directories called "zlib" and "libpng". | ||||
| 
 | ||||
| Your directory structure should look like this: | ||||
|  | ||||
							
								
								
									
										2
									
								
								KNOWNBUG
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								KNOWNBUG
									
									
									
									
									
								
							| @ -1,5 +1,5 @@ | ||||
| 
 | ||||
| Known bugs in libpng version 1.0.60 | ||||
| Known bugs in libpng version 1.0.61 | ||||
| 
 | ||||
| 1. February 23, 2006: The custom makefiles don't build libpng with -lz. | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										6
									
								
								LICENSE
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								LICENSE
									
									
									
									
									
								
							| @ -10,8 +10,8 @@ this sentence. | ||||
| 
 | ||||
| This code is released under the libpng license. | ||||
| 
 | ||||
| libpng versions 1.2.6, August 15, 2004, through 1.0.60, July 10, 2012, are | ||||
| Copyright (c) 2004, 2006-2009 Glenn Randers-Pehrson, and are | ||||
| libpng versions 1.2.6, August 15, 2004, through 1.0.61, February 6, 2014, are | ||||
| Copyright (c) 2004, 2006-2014 Glenn Randers-Pehrson, and are | ||||
| distributed according to the same disclaimer and license as libpng-1.2.5 | ||||
| with the following individual added to the list of Contributing Authors | ||||
| 
 | ||||
| @ -108,4 +108,4 @@ certification mark of the Open Source Initiative. | ||||
| 
 | ||||
| Glenn Randers-Pehrson | ||||
| glennrp at users.sourceforge.net | ||||
| July 10, 2012 | ||||
| February 6, 2014 | ||||
|  | ||||
| @ -89,7 +89,7 @@ EXTRA_DIST= \ | ||||
| 	${srcdir}/contrib/pngsuite/* \
 | ||||
| 	${srcdir}/contrib/visupng/* \
 | ||||
| 	$(TESTS) \
 | ||||
| 	example.c libpng-1.0.60.txt pnggccrd.c pngvcrd.c | ||||
| 	example.c libpng-1.0.61.txt pnggccrd.c pngvcrd.c | ||||
| 
 | ||||
| CLEANFILES= pngout.png libpng10.pc libpng10-config libpng.vers \
 | ||||
| libpng.sym | ||||
|  | ||||
							
								
								
									
										1123
									
								
								Makefile.in
									
									
									
									
									
								
							
							
						
						
									
										1123
									
								
								Makefile.in
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										22
									
								
								README
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								README
									
									
									
									
									
								
							| @ -1,4 +1,4 @@ | ||||
| README for libpng version 1.0.60 - July 10, 2012 (shared library 10.0) | ||||
| README for libpng version 1.0.61 - February 6, 2014 (shared library 10.0) | ||||
| See the note about version numbers near the top of png.h | ||||
| 
 | ||||
| See INSTALL for instructions on how to install libpng. | ||||
| @ -129,7 +129,7 @@ and ...".  If in doubt, send questions to me.  I'll bounce them | ||||
| to others, if necessary. | ||||
| 
 | ||||
| Please do not send suggestions on how to change PNG.  We have | ||||
| been discussing PNG for twelve years now, and it is official and | ||||
| been discussing PNG for nineteen years now, and it is official and | ||||
| finished.  If you have suggestions for libpng, however, I'll | ||||
| gladly listen.  Even if your suggestion is not used immediately, | ||||
| it may be used later. | ||||
| @ -174,8 +174,7 @@ Files in this distribution: | ||||
|        gregbook         =>  source code for PNG reading and writing, from | ||||
|                             Greg Roelofs' "PNG: The Definitive Guide", | ||||
|                             O'Reilly, 1999 | ||||
|        msvctest     =>  Builds and runs pngtest using a MSVC workspace | ||||
|        pngminim     =>  Simple pnm2pngm and png2pnmm programs | ||||
|        pngminim     =>  Minimal pnm2pngm and png2pnmm programs | ||||
|        pngminus     =>  Simple pnm2png and png2pnm programs | ||||
|        pngsuite     =>  Test images | ||||
|        visupng      =>  Contains a MSVC workspace for VisualPng | ||||
| @ -184,11 +183,14 @@ Files in this distribution: | ||||
|        beos             =>  Contains a Beos workspace for building libpng | ||||
|        c5builder        =>  Contains a Borland workspace for building | ||||
|                             libpng and zlib | ||||
|        MacOSX           =>  Contains a MacOSX workspace for building libpng | ||||
|        netware.txt      =>  Contains instructions for downloading a set | ||||
|                             of project files for building libpng and | ||||
|                             zlib on Netware. | ||||
|        visualc6         =>  Contains a Microsoft Visual C++ (MSVC) | ||||
|                             workspace for building libpng and zlib | ||||
|        visualc71        =>  Contains a Microsoft Visual C++ (MSVC) | ||||
|                             workspace for building libpng and zlib | ||||
|        wince.txt        =>  Contains instructions for downloading a | ||||
|                             Microsoft Visual C++ (Windows CD Toolkit) | ||||
|                             workspace for building libpng and zlib on | ||||
| @ -199,11 +201,11 @@ Files in this distribution: | ||||
|        makefile.std     =>  Generic UNIX makefile (cc, creates static | ||||
|                             libpng.a) | ||||
|        makefile.elf     =>  Linux/ELF gcc makefile symbol versioning, | ||||
|                             creates libpng10.so.0.1.0.60) | ||||
|                             creates libpng10.so.0.1.0.61) | ||||
|        makefile.linux   =>  Linux/ELF makefile (gcc, creates | ||||
|                             libpng10.so.0.1.0.60) | ||||
|                             libpng10.so.0.1.0.61) | ||||
|        makefile.gcmmx   =>  Linux/ELF makefile (gcc, creates | ||||
|                             libpng10.so.0.1.0.60, previously | ||||
|                             libpng10.so.0.1.0.61, previously | ||||
|                             used assembler code tuned for Intel MMX | ||||
|                             platform) | ||||
|        makefile.gcc     =>  Generic makefile (gcc, creates static | ||||
| @ -228,12 +230,12 @@ Files in this distribution: | ||||
|        makefile.openbsd =>  OpenBSD makefile | ||||
|        makefile.sgi     =>  Silicon Graphics IRIX (cc, creates static lib) | ||||
|        makefile.sggcc   =>  Silicon Graphics | ||||
|                             (gcc, creates libpng10.so.0.1.0.60) | ||||
|                             (gcc, creates libpng10.so.0.1.0.61) | ||||
|        makefile.sunos   =>  Sun makefile | ||||
|        makefile.solaris =>  Solaris 2.X makefile | ||||
|                             (gcc, creates libpng10.so.0.1.0.60) | ||||
|                             (gcc, creates libpng10.so.0.1.0.61) | ||||
|        makefile.so9     =>  Solaris 9 makefile | ||||
|                             (gcc, creates libpng10.so.0.1.0.60) | ||||
|                             (gcc, creates libpng10.so.0.1.0.61) | ||||
|        makefile.32sunu  =>  Sun Ultra 32-bit makefile | ||||
|        makefile.64sunu  =>  Sun Ultra 64-bit makefile | ||||
|        makefile.sco     =>  For SCO OSr5  ELF and Unixware 7 with Native cc | ||||
|  | ||||
							
								
								
									
										4
									
								
								Y2KINFO
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Y2KINFO
									
									
									
									
									
								
							| @ -1,13 +1,13 @@ | ||||
|    Y2K compliance in libpng: | ||||
|    ========================= | ||||
| 
 | ||||
|       July 10, 2012 | ||||
|       February 6, 2014 | ||||
| 
 | ||||
|       Since the PNG Development group is an ad-hoc body, we can't make | ||||
|       an official declaration. | ||||
| 
 | ||||
|       This is your unofficial assurance that libpng from version 0.71 and | ||||
|       upward through 1.0.60 are Y2K compliant.  It is my belief that earlier | ||||
|       upward through 1.0.61 are Y2K compliant.  It is my belief that earlier | ||||
|       versions were also Y2K compliant. | ||||
| 
 | ||||
|       Libpng only has three year fields.  One is a 2-byte unsigned integer | ||||
|  | ||||
							
								
								
									
										2727
									
								
								aclocal.m4
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2727
									
								
								aclocal.m4
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										347
									
								
								compile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										347
									
								
								compile
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,347 @@ | ||||
| #! /bin/sh | ||||
| # Wrapper for compilers which do not understand '-c -o'. | ||||
| 
 | ||||
| scriptversion=2012-10-14.11; # UTC | ||||
| 
 | ||||
| # Copyright (C) 1999-2013 Free Software Foundation, Inc. | ||||
| # Written by Tom Tromey <tromey@cygnus.com>. | ||||
| # | ||||
| # This program is free software; you can redistribute it and/or modify | ||||
| # it under the terms of the GNU General Public License as published by | ||||
| # the Free Software Foundation; either version 2, or (at your option) | ||||
| # any later version. | ||||
| # | ||||
| # This program is distributed in the hope that it will be useful, | ||||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
| # GNU General Public License for more details. | ||||
| # | ||||
| # You should have received a copy of the GNU General Public License | ||||
| # along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||
| 
 | ||||
| # As a special exception to the GNU General Public License, if you | ||||
| # distribute this file as part of a program that contains a | ||||
| # configuration script generated by Autoconf, you may include it under | ||||
| # the same distribution terms that you use for the rest of that program. | ||||
| 
 | ||||
| # This file is maintained in Automake, please report | ||||
| # bugs to <bug-automake@gnu.org> or send patches to | ||||
| # <automake-patches@gnu.org>. | ||||
| 
 | ||||
| nl=' | ||||
| ' | ||||
| 
 | ||||
| # We need space, tab and new line, in precisely that order.  Quoting is | ||||
| # there to prevent tools from complaining about whitespace usage. | ||||
| IFS=" ""	$nl" | ||||
| 
 | ||||
| file_conv= | ||||
| 
 | ||||
| # func_file_conv build_file lazy | ||||
| # Convert a $build file to $host form and store it in $file | ||||
| # Currently only supports Windows hosts. If the determined conversion | ||||
| # type is listed in (the comma separated) LAZY, no conversion will | ||||
| # take place. | ||||
| func_file_conv () | ||||
| { | ||||
|   file=$1 | ||||
|   case $file in | ||||
|     / | /[!/]*) # absolute file, and not a UNC file | ||||
|       if test -z "$file_conv"; then | ||||
| 	# lazily determine how to convert abs files | ||||
| 	case `uname -s` in | ||||
| 	  MINGW*) | ||||
| 	    file_conv=mingw | ||||
| 	    ;; | ||||
| 	  CYGWIN*) | ||||
| 	    file_conv=cygwin | ||||
| 	    ;; | ||||
| 	  *) | ||||
| 	    file_conv=wine | ||||
| 	    ;; | ||||
| 	esac | ||||
|       fi | ||||
|       case $file_conv/,$2, in | ||||
| 	*,$file_conv,*) | ||||
| 	  ;; | ||||
| 	mingw/*) | ||||
| 	  file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` | ||||
| 	  ;; | ||||
| 	cygwin/*) | ||||
| 	  file=`cygpath -m "$file" || echo "$file"` | ||||
| 	  ;; | ||||
| 	wine/*) | ||||
| 	  file=`winepath -w "$file" || echo "$file"` | ||||
| 	  ;; | ||||
|       esac | ||||
|       ;; | ||||
|   esac | ||||
| } | ||||
| 
 | ||||
| # func_cl_dashL linkdir | ||||
| # Make cl look for libraries in LINKDIR | ||||
| func_cl_dashL () | ||||
| { | ||||
|   func_file_conv "$1" | ||||
|   if test -z "$lib_path"; then | ||||
|     lib_path=$file | ||||
|   else | ||||
|     lib_path="$lib_path;$file" | ||||
|   fi | ||||
|   linker_opts="$linker_opts -LIBPATH:$file" | ||||
| } | ||||
| 
 | ||||
| # func_cl_dashl library | ||||
| # Do a library search-path lookup for cl | ||||
| func_cl_dashl () | ||||
| { | ||||
|   lib=$1 | ||||
|   found=no | ||||
|   save_IFS=$IFS | ||||
|   IFS=';' | ||||
|   for dir in $lib_path $LIB | ||||
|   do | ||||
|     IFS=$save_IFS | ||||
|     if $shared && test -f "$dir/$lib.dll.lib"; then | ||||
|       found=yes | ||||
|       lib=$dir/$lib.dll.lib | ||||
|       break | ||||
|     fi | ||||
|     if test -f "$dir/$lib.lib"; then | ||||
|       found=yes | ||||
|       lib=$dir/$lib.lib | ||||
|       break | ||||
|     fi | ||||
|     if test -f "$dir/lib$lib.a"; then | ||||
|       found=yes | ||||
|       lib=$dir/lib$lib.a | ||||
|       break | ||||
|     fi | ||||
|   done | ||||
|   IFS=$save_IFS | ||||
| 
 | ||||
|   if test "$found" != yes; then | ||||
|     lib=$lib.lib | ||||
|   fi | ||||
| } | ||||
| 
 | ||||
| # func_cl_wrapper cl arg... | ||||
| # Adjust compile command to suit cl | ||||
| func_cl_wrapper () | ||||
| { | ||||
|   # Assume a capable shell | ||||
|   lib_path= | ||||
|   shared=: | ||||
|   linker_opts= | ||||
|   for arg | ||||
|   do | ||||
|     if test -n "$eat"; then | ||||
|       eat= | ||||
|     else | ||||
|       case $1 in | ||||
| 	-o) | ||||
| 	  # configure might choose to run compile as 'compile cc -o foo foo.c'. | ||||
| 	  eat=1 | ||||
| 	  case $2 in | ||||
| 	    *.o | *.[oO][bB][jJ]) | ||||
| 	      func_file_conv "$2" | ||||
| 	      set x "$@" -Fo"$file" | ||||
| 	      shift | ||||
| 	      ;; | ||||
| 	    *) | ||||
| 	      func_file_conv "$2" | ||||
| 	      set x "$@" -Fe"$file" | ||||
| 	      shift | ||||
| 	      ;; | ||||
| 	  esac | ||||
| 	  ;; | ||||
| 	-I) | ||||
| 	  eat=1 | ||||
| 	  func_file_conv "$2" mingw | ||||
| 	  set x "$@" -I"$file" | ||||
| 	  shift | ||||
| 	  ;; | ||||
| 	-I*) | ||||
| 	  func_file_conv "${1#-I}" mingw | ||||
| 	  set x "$@" -I"$file" | ||||
| 	  shift | ||||
| 	  ;; | ||||
| 	-l) | ||||
| 	  eat=1 | ||||
| 	  func_cl_dashl "$2" | ||||
| 	  set x "$@" "$lib" | ||||
| 	  shift | ||||
| 	  ;; | ||||
| 	-l*) | ||||
| 	  func_cl_dashl "${1#-l}" | ||||
| 	  set x "$@" "$lib" | ||||
| 	  shift | ||||
| 	  ;; | ||||
| 	-L) | ||||
| 	  eat=1 | ||||
| 	  func_cl_dashL "$2" | ||||
| 	  ;; | ||||
| 	-L*) | ||||
| 	  func_cl_dashL "${1#-L}" | ||||
| 	  ;; | ||||
| 	-static) | ||||
| 	  shared=false | ||||
| 	  ;; | ||||
| 	-Wl,*) | ||||
| 	  arg=${1#-Wl,} | ||||
| 	  save_ifs="$IFS"; IFS=',' | ||||
| 	  for flag in $arg; do | ||||
| 	    IFS="$save_ifs" | ||||
| 	    linker_opts="$linker_opts $flag" | ||||
| 	  done | ||||
| 	  IFS="$save_ifs" | ||||
| 	  ;; | ||||
| 	-Xlinker) | ||||
| 	  eat=1 | ||||
| 	  linker_opts="$linker_opts $2" | ||||
| 	  ;; | ||||
| 	-*) | ||||
| 	  set x "$@" "$1" | ||||
| 	  shift | ||||
| 	  ;; | ||||
| 	*.cc | *.CC | *.cxx | *.CXX | *.[cC]++) | ||||
| 	  func_file_conv "$1" | ||||
| 	  set x "$@" -Tp"$file" | ||||
| 	  shift | ||||
| 	  ;; | ||||
| 	*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) | ||||
| 	  func_file_conv "$1" mingw | ||||
| 	  set x "$@" "$file" | ||||
| 	  shift | ||||
| 	  ;; | ||||
| 	*) | ||||
| 	  set x "$@" "$1" | ||||
| 	  shift | ||||
| 	  ;; | ||||
|       esac | ||||
|     fi | ||||
|     shift | ||||
|   done | ||||
|   if test -n "$linker_opts"; then | ||||
|     linker_opts="-link$linker_opts" | ||||
|   fi | ||||
|   exec "$@" $linker_opts | ||||
|   exit 1 | ||||
| } | ||||
| 
 | ||||
| eat= | ||||
| 
 | ||||
| case $1 in | ||||
|   '') | ||||
|      echo "$0: No command.  Try '$0 --help' for more information." 1>&2 | ||||
|      exit 1; | ||||
|      ;; | ||||
|   -h | --h*) | ||||
|     cat <<\EOF | ||||
| Usage: compile [--help] [--version] PROGRAM [ARGS] | ||||
| 
 | ||||
| Wrapper for compilers which do not understand '-c -o'. | ||||
| Remove '-o dest.o' from ARGS, run PROGRAM with the remaining | ||||
| arguments, and rename the output as expected. | ||||
| 
 | ||||
| If you are trying to build a whole package this is not the | ||||
| right script to run: please start by reading the file 'INSTALL'. | ||||
| 
 | ||||
| Report bugs to <bug-automake@gnu.org>. | ||||
| EOF | ||||
|     exit $? | ||||
|     ;; | ||||
|   -v | --v*) | ||||
|     echo "compile $scriptversion" | ||||
|     exit $? | ||||
|     ;; | ||||
|   cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) | ||||
|     func_cl_wrapper "$@"      # Doesn't return... | ||||
|     ;; | ||||
| esac | ||||
| 
 | ||||
| ofile= | ||||
| cfile= | ||||
| 
 | ||||
| for arg | ||||
| do | ||||
|   if test -n "$eat"; then | ||||
|     eat= | ||||
|   else | ||||
|     case $1 in | ||||
|       -o) | ||||
| 	# configure might choose to run compile as 'compile cc -o foo foo.c'. | ||||
| 	# So we strip '-o arg' only if arg is an object. | ||||
| 	eat=1 | ||||
| 	case $2 in | ||||
| 	  *.o | *.obj) | ||||
| 	    ofile=$2 | ||||
| 	    ;; | ||||
| 	  *) | ||||
| 	    set x "$@" -o "$2" | ||||
| 	    shift | ||||
| 	    ;; | ||||
| 	esac | ||||
| 	;; | ||||
|       *.c) | ||||
| 	cfile=$1 | ||||
| 	set x "$@" "$1" | ||||
| 	shift | ||||
| 	;; | ||||
|       *) | ||||
| 	set x "$@" "$1" | ||||
| 	shift | ||||
| 	;; | ||||
|     esac | ||||
|   fi | ||||
|   shift | ||||
| done | ||||
| 
 | ||||
| if test -z "$ofile" || test -z "$cfile"; then | ||||
|   # If no '-o' option was seen then we might have been invoked from a | ||||
|   # pattern rule where we don't need one.  That is ok -- this is a | ||||
|   # normal compilation that the losing compiler can handle.  If no | ||||
|   # '.c' file was seen then we are probably linking.  That is also | ||||
|   # ok. | ||||
|   exec "$@" | ||||
| fi | ||||
| 
 | ||||
| # Name of file we expect compiler to create. | ||||
| cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` | ||||
| 
 | ||||
| # Create the lock directory. | ||||
| # Note: use '[/\\:.-]' here to ensure that we don't use the same name | ||||
| # that we are using for the .o file.  Also, base the name on the expected | ||||
| # object file name, since that is what matters with a parallel build. | ||||
| lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d | ||||
| while true; do | ||||
|   if mkdir "$lockdir" >/dev/null 2>&1; then | ||||
|     break | ||||
|   fi | ||||
|   sleep 1 | ||||
| done | ||||
| # FIXME: race condition here if user kills between mkdir and trap. | ||||
| trap "rmdir '$lockdir'; exit 1" 1 2 15 | ||||
| 
 | ||||
| # Run the compile. | ||||
| "$@" | ||||
| ret=$? | ||||
| 
 | ||||
| if test -f "$cofile"; then | ||||
|   test "$cofile" = "$ofile" || mv "$cofile" "$ofile" | ||||
| elif test -f "${cofile}bj"; then | ||||
|   test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" | ||||
| fi | ||||
| 
 | ||||
| rmdir "$lockdir" | ||||
| exit $ret | ||||
| 
 | ||||
| # Local Variables: | ||||
| # mode: shell-script | ||||
| # sh-indentation: 2 | ||||
| # eval: (add-hook 'write-file-hooks 'time-stamp) | ||||
| # time-stamp-start: "scriptversion=" | ||||
| # time-stamp-format: "%:y-%02m-%02d.%02H" | ||||
| # time-stamp-time-zone: "UTC" | ||||
| # time-stamp-end: "; # UTC" | ||||
| # End: | ||||
							
								
								
									
										411
									
								
								config.guess
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										411
									
								
								config.guess
									
									
									
									
										vendored
									
									
								
							| @ -1,14 +1,12 @@ | ||||
| #! /bin/sh | ||||
| # Attempt to guess a canonical system name. | ||||
| #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | ||||
| #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 | ||||
| #   Free Software Foundation, Inc. | ||||
| #   Copyright 1992-2013 Free Software Foundation, Inc. | ||||
| 
 | ||||
| timestamp='2009-04-27' | ||||
| timestamp='2013-11-29' | ||||
| 
 | ||||
| # This file is free software; you can redistribute it and/or modify it | ||||
| # under the terms of the GNU General Public License as published by | ||||
| # the Free Software Foundation; either version 2 of the License, or | ||||
| # the Free Software Foundation; either version 3 of the License, or | ||||
| # (at your option) any later version. | ||||
| # | ||||
| # This program is distributed in the hope that it will be useful, but | ||||
| @ -17,26 +15,22 @@ timestamp='2009-04-27' | ||||
| # General Public License for more details. | ||||
| # | ||||
| # You should have received a copy of the GNU General Public License | ||||
| # along with this program; if not, write to the Free Software | ||||
| # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | ||||
| # 02110-1301, USA. | ||||
| # along with this program; if not, see <http://www.gnu.org/licenses/>. | ||||
| # | ||||
| # As a special exception to the GNU General Public License, if you | ||||
| # distribute this file as part of a program that contains a | ||||
| # configuration script generated by Autoconf, you may include it under | ||||
| # the same distribution terms that you use for the rest of that program. | ||||
| 
 | ||||
| 
 | ||||
| # Originally written by Per Bothner <per@bothner.com>. | ||||
| # Please send patches to <config-patches@gnu.org>.  Submit a context | ||||
| # diff and a properly formatted ChangeLog entry. | ||||
| # the same distribution terms that you use for the rest of that | ||||
| # program.  This Exception is an additional permission under section 7 | ||||
| # of the GNU General Public License, version 3 ("GPLv3"). | ||||
| # | ||||
| # This script attempts to guess a canonical system name similar to | ||||
| # config.sub.  If it succeeds, it prints the system name on stdout, and | ||||
| # exits with 0.  Otherwise, it exits with 1. | ||||
| # Originally written by Per Bothner. | ||||
| # | ||||
| # The plan is that this can be called by configure scripts if you | ||||
| # don't specify an explicit build system type. | ||||
| # You can get the latest version of this script from: | ||||
| # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | ||||
| # | ||||
| # Please send patches with a ChangeLog entry to config-patches@gnu.org. | ||||
| 
 | ||||
| 
 | ||||
| me=`echo "$0" | sed -e 's,.*/,,'` | ||||
| 
 | ||||
| @ -56,8 +50,7 @@ version="\ | ||||
| GNU config.guess ($timestamp) | ||||
| 
 | ||||
| Originally written by Per Bothner. | ||||
| Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, | ||||
| 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | ||||
| Copyright 1992-2013 Free Software Foundation, Inc. | ||||
| 
 | ||||
| This is free software; see the source for copying conditions.  There is NO | ||||
| warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | ||||
| @ -139,12 +132,33 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown | ||||
| UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown | ||||
| UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown | ||||
| 
 | ||||
| case "${UNAME_SYSTEM}" in | ||||
| Linux|GNU|GNU/*) | ||||
| 	# If the system lacks a compiler, then just pick glibc. | ||||
| 	# We could probably try harder. | ||||
| 	LIBC=gnu | ||||
| 
 | ||||
| 	eval $set_cc_for_build | ||||
| 	cat <<-EOF > $dummy.c | ||||
| 	#include <features.h> | ||||
| 	#if defined(__UCLIBC__) | ||||
| 	LIBC=uclibc | ||||
| 	#elif defined(__dietlibc__) | ||||
| 	LIBC=dietlibc | ||||
| 	#else | ||||
| 	LIBC=gnu | ||||
| 	#endif | ||||
| 	EOF | ||||
| 	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | ||||
| 	;; | ||||
| esac | ||||
| 
 | ||||
| # Note: order is significant - the case branches are not exclusive. | ||||
| 
 | ||||
| case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||||
|     *:NetBSD:*:*) | ||||
| 	# NetBSD (nbsd) targets should (where applicable) match one or | ||||
| 	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, | ||||
| 	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | ||||
| 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently | ||||
| 	# switched to ELF, *-*-netbsd* would select the old | ||||
| 	# object file format.  This provides both forward | ||||
| @ -170,7 +184,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||||
| 	    arm*|i386|m68k|ns32k|sh3*|sparc|vax) | ||||
| 		eval $set_cc_for_build | ||||
| 		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | ||||
| 			| grep __ELF__ >/dev/null | ||||
| 			| grep -q __ELF__ | ||||
| 		then | ||||
| 		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). | ||||
| 		    # Return netbsd for either.  FIX? | ||||
| @ -201,6 +215,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||||
| 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | ||||
| 	echo "${machine}-${os}${release}" | ||||
| 	exit ;; | ||||
|     *:Bitrig:*:*) | ||||
| 	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | ||||
| 	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     *:OpenBSD:*:*) | ||||
| 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | ||||
| 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | ||||
| @ -269,7 +287,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||||
| 	# A Xn.n version is an unreleased experimental baselevel. | ||||
| 	# 1.2 uses "1.2" for uname -r. | ||||
| 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | ||||
| 	exit ;; | ||||
| 	# Reset EXIT trap before exiting to avoid spurious non-zero exit code. | ||||
| 	exitcode=$? | ||||
| 	trap '' 0 | ||||
| 	exit $exitcode ;; | ||||
|     Alpha\ *:Windows_NT*:*) | ||||
| 	# How do we know it's Interix rather than the generic POSIX subsystem? | ||||
| 	# Should we change UNAME_MACHINE based on the output of uname instead | ||||
| @ -300,7 +321,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||||
|     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | ||||
| 	echo arm-acorn-riscix${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     arm:riscos:*:*|arm:RISCOS:*:*) | ||||
|     arm*:riscos:*:*|arm*:RISCOS:*:*) | ||||
| 	echo arm-unknown-riscos | ||||
| 	exit ;; | ||||
|     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) | ||||
| @ -333,6 +354,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||||
|     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | ||||
| 	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||||
| 	exit ;; | ||||
|     i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) | ||||
| 	echo i386-pc-auroraux${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | ||||
| 	eval $set_cc_for_build | ||||
| 	SUN_ARCH="i386" | ||||
| @ -548,7 +572,7 @@ EOF | ||||
| 		echo rs6000-ibm-aix3.2 | ||||
| 	fi | ||||
| 	exit ;; | ||||
|     *:AIX:*:[456]) | ||||
|     *:AIX:*:[4567]) | ||||
| 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | ||||
| 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | ||||
| 		IBM_ARCH=rs6000 | ||||
| @ -656,7 +680,7 @@ EOF | ||||
| 	    # => hppa64-hp-hpux11.23 | ||||
| 
 | ||||
| 	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | ||||
| 		grep __LP64__ >/dev/null | ||||
| 		grep -q __LP64__ | ||||
| 	    then | ||||
| 		HP_ARCH="hppa2.0w" | ||||
| 	    else | ||||
| @ -785,21 +809,26 @@ EOF | ||||
| 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     *:FreeBSD:*:*) | ||||
| 	case ${UNAME_MACHINE} in | ||||
| 	    pc98) | ||||
| 		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | ||||
| 	UNAME_PROCESSOR=`/usr/bin/uname -p` | ||||
| 	case ${UNAME_PROCESSOR} in | ||||
| 	    amd64) | ||||
| 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | ||||
| 	    *) | ||||
| 		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | ||||
| 		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | ||||
| 	esac | ||||
| 	exit ;; | ||||
|     i*:CYGWIN*:*) | ||||
| 	echo ${UNAME_MACHINE}-pc-cygwin | ||||
| 	exit ;; | ||||
|     *:MINGW64*:*) | ||||
| 	echo ${UNAME_MACHINE}-pc-mingw64 | ||||
| 	exit ;; | ||||
|     *:MINGW*:*) | ||||
| 	echo ${UNAME_MACHINE}-pc-mingw32 | ||||
| 	exit ;; | ||||
|     i*:MSYS*:*) | ||||
| 	echo ${UNAME_MACHINE}-pc-msys | ||||
| 	exit ;; | ||||
|     i*:windows32*:*) | ||||
| 	# uname -m includes "-pc" on this system. | ||||
| 	echo ${UNAME_MACHINE}-mingw32 | ||||
| @ -807,12 +836,12 @@ EOF | ||||
|     i*:PW*:*) | ||||
| 	echo ${UNAME_MACHINE}-pc-pw32 | ||||
| 	exit ;; | ||||
|     *:Interix*:[3456]*) | ||||
|     *:Interix*:*) | ||||
| 	case ${UNAME_MACHINE} in | ||||
| 	    x86) | ||||
| 		echo i586-pc-interix${UNAME_RELEASE} | ||||
| 		exit ;; | ||||
| 	    EM64T | authenticamd | genuineintel) | ||||
| 	    authenticamd | genuineintel | EM64T) | ||||
| 		echo x86_64-unknown-interix${UNAME_RELEASE} | ||||
| 		exit ;; | ||||
| 	    IA64) | ||||
| @ -822,6 +851,9 @@ EOF | ||||
|     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | ||||
| 	echo i${UNAME_MACHINE}-pc-mks | ||||
| 	exit ;; | ||||
|     8664:Windows_NT:*) | ||||
| 	echo x86_64-pc-mks | ||||
| 	exit ;; | ||||
|     i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | ||||
| 	# How do we know it's Interix rather than the generic POSIX subsystem? | ||||
| 	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | ||||
| @ -842,100 +874,21 @@ EOF | ||||
| 	exit ;; | ||||
|     *:GNU:*:*) | ||||
| 	# the GNU system | ||||
| 	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | ||||
| 	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | ||||
| 	exit ;; | ||||
|     *:GNU/*:*:*) | ||||
| 	# other systems with GNU libc and userland | ||||
| 	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | ||||
| 	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} | ||||
| 	exit ;; | ||||
|     i*86:Minix:*:*) | ||||
| 	echo ${UNAME_MACHINE}-pc-minix | ||||
| 	exit ;; | ||||
|     arm*:Linux:*:*) | ||||
| 	eval $set_cc_for_build | ||||
| 	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | ||||
| 	    | grep -q __ARM_EABI__ | ||||
| 	then | ||||
| 	    echo ${UNAME_MACHINE}-unknown-linux-gnu | ||||
| 	else | ||||
| 	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi | ||||
| 	fi | ||||
|     aarch64:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     avr32*:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-gnu | ||||
| 	exit ;; | ||||
|     cris:Linux:*:*) | ||||
| 	echo cris-axis-linux-gnu | ||||
| 	exit ;; | ||||
|     crisv32:Linux:*:*) | ||||
| 	echo crisv32-axis-linux-gnu | ||||
| 	exit ;; | ||||
|     frv:Linux:*:*) | ||||
|     	echo frv-unknown-linux-gnu | ||||
| 	exit ;; | ||||
|     ia64:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-gnu | ||||
| 	exit ;; | ||||
|     m32r*:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-gnu | ||||
| 	exit ;; | ||||
|     m68*:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-gnu | ||||
| 	exit ;; | ||||
|     mips:Linux:*:*) | ||||
| 	eval $set_cc_for_build | ||||
| 	sed 's/^	//' << EOF >$dummy.c | ||||
| 	#undef CPU | ||||
| 	#undef mips | ||||
| 	#undef mipsel | ||||
| 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | ||||
| 	CPU=mipsel | ||||
| 	#else | ||||
| 	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | ||||
| 	CPU=mips | ||||
| 	#else | ||||
| 	CPU= | ||||
| 	#endif | ||||
| 	#endif | ||||
| EOF | ||||
| 	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | ||||
| 	    /^CPU/{ | ||||
| 		s: ::g | ||||
| 		p | ||||
| 	    }'`" | ||||
| 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | ||||
| 	;; | ||||
|     mips64:Linux:*:*) | ||||
| 	eval $set_cc_for_build | ||||
| 	sed 's/^	//' << EOF >$dummy.c | ||||
| 	#undef CPU | ||||
| 	#undef mips64 | ||||
| 	#undef mips64el | ||||
| 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | ||||
| 	CPU=mips64el | ||||
| 	#else | ||||
| 	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | ||||
| 	CPU=mips64 | ||||
| 	#else | ||||
| 	CPU= | ||||
| 	#endif | ||||
| 	#endif | ||||
| EOF | ||||
| 	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | ||||
| 	    /^CPU/{ | ||||
| 		s: ::g | ||||
| 		p | ||||
| 	    }'`" | ||||
| 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | ||||
| 	;; | ||||
|     or32:Linux:*:*) | ||||
| 	echo or32-unknown-linux-gnu | ||||
| 	exit ;; | ||||
|     ppc:Linux:*:*) | ||||
| 	echo powerpc-unknown-linux-gnu | ||||
| 	exit ;; | ||||
|     ppc64:Linux:*:*) | ||||
| 	echo powerpc64-unknown-linux-gnu | ||||
|     aarch64_be:Linux:*:*) | ||||
| 	UNAME_MACHINE=aarch64_be | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     alpha:Linux:*:*) | ||||
| 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | ||||
| @ -947,105 +900,131 @@ EOF | ||||
| 	  EV67)  UNAME_MACHINE=alphaev67 ;; | ||||
| 	  EV68*) UNAME_MACHINE=alphaev68 ;; | ||||
| 	esac | ||||
| 	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null | ||||
| 	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | ||||
| 	objdump --private-headers /bin/sh | grep -q ld.so.1 | ||||
| 	if test "$?" = 0 ; then LIBC="gnulibc1" ; fi | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     arc:Linux:*:* | arceb:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     arm*:Linux:*:*) | ||||
| 	eval $set_cc_for_build | ||||
| 	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | ||||
| 	    | grep -q __ARM_EABI__ | ||||
| 	then | ||||
| 	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	else | ||||
| 	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | ||||
| 		| grep -q __ARM_PCS_VFP | ||||
| 	    then | ||||
| 		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi | ||||
| 	    else | ||||
| 		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf | ||||
| 	    fi | ||||
| 	fi | ||||
| 	exit ;; | ||||
|     avr32*:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     cris:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-axis-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     crisv32:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-axis-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     frv:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     hexagon:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     i*86:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-pc-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     ia64:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     m32r*:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     m68*:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     mips:Linux:*:* | mips64:Linux:*:*) | ||||
| 	eval $set_cc_for_build | ||||
| 	sed 's/^	//' << EOF >$dummy.c | ||||
| 	#undef CPU | ||||
| 	#undef ${UNAME_MACHINE} | ||||
| 	#undef ${UNAME_MACHINE}el | ||||
| 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | ||||
| 	CPU=${UNAME_MACHINE}el | ||||
| 	#else | ||||
| 	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | ||||
| 	CPU=${UNAME_MACHINE} | ||||
| 	#else | ||||
| 	CPU= | ||||
| 	#endif | ||||
| 	#endif | ||||
| EOF | ||||
| 	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | ||||
| 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } | ||||
| 	;; | ||||
|     or1k:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     or32:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     padre:Linux:*:*) | ||||
| 	echo sparc-unknown-linux-gnu | ||||
| 	echo sparc-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     parisc64:Linux:*:* | hppa64:Linux:*:*) | ||||
| 	echo hppa64-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     parisc:Linux:*:* | hppa:Linux:*:*) | ||||
| 	# Look for CPU level | ||||
| 	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | ||||
| 	  PA7*) echo hppa1.1-unknown-linux-gnu ;; | ||||
| 	  PA8*) echo hppa2.0-unknown-linux-gnu ;; | ||||
| 	  *)    echo hppa-unknown-linux-gnu ;; | ||||
| 	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; | ||||
| 	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; | ||||
| 	  *)    echo hppa-unknown-linux-${LIBC} ;; | ||||
| 	esac | ||||
| 	exit ;; | ||||
|     parisc64:Linux:*:* | hppa64:Linux:*:*) | ||||
| 	echo hppa64-unknown-linux-gnu | ||||
|     ppc64:Linux:*:*) | ||||
| 	echo powerpc64-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     ppc:Linux:*:*) | ||||
| 	echo powerpc-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     ppc64le:Linux:*:*) | ||||
| 	echo powerpc64le-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     ppcle:Linux:*:*) | ||||
| 	echo powerpcle-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     s390:Linux:*:* | s390x:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-ibm-linux | ||||
| 	echo ${UNAME_MACHINE}-ibm-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     sh64*:Linux:*:*) | ||||
|     	echo ${UNAME_MACHINE}-unknown-linux-gnu | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     sh*:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-gnu | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     sparc:Linux:*:* | sparc64:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-gnu | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     tile*:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     vax:Linux:*:*) | ||||
| 	echo ${UNAME_MACHINE}-dec-linux-gnu | ||||
| 	echo ${UNAME_MACHINE}-dec-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     x86_64:Linux:*:*) | ||||
| 	echo x86_64-unknown-linux-gnu | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     xtensa*:Linux:*:*) | ||||
|     	echo ${UNAME_MACHINE}-unknown-linux-gnu | ||||
| 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||||
| 	exit ;; | ||||
|     i*86:Linux:*:*) | ||||
| 	# The BFD linker knows what the default object file format is, so | ||||
| 	# first see if it will tell us. cd to the root directory to prevent | ||||
| 	# problems with other programs or directories called `ld' in the path. | ||||
| 	# Set LC_ALL=C to ensure ld outputs messages in English. | ||||
| 	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | ||||
| 			 | sed -ne '/supported targets:/!d | ||||
| 				    s/[ 	][ 	]*/ /g | ||||
| 				    s/.*supported targets: *// | ||||
| 				    s/ .*// | ||||
| 				    p'` | ||||
|         case "$ld_supported_targets" in | ||||
| 	  elf32-i386) | ||||
| 		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" | ||||
| 		;; | ||||
| 	  a.out-i386-linux) | ||||
| 		echo "${UNAME_MACHINE}-pc-linux-gnuaout" | ||||
| 		exit ;; | ||||
| 	  "") | ||||
| 		# Either a pre-BFD a.out linker (linux-gnuoldld) or | ||||
| 		# one that does not give us useful --help. | ||||
| 		echo "${UNAME_MACHINE}-pc-linux-gnuoldld" | ||||
| 		exit ;; | ||||
| 	esac | ||||
| 	# Determine whether the default compiler is a.out or elf | ||||
| 	eval $set_cc_for_build | ||||
| 	sed 's/^	//' << EOF >$dummy.c | ||||
| 	#include <features.h> | ||||
| 	#ifdef __ELF__ | ||||
| 	# ifdef __GLIBC__ | ||||
| 	#  if __GLIBC__ >= 2 | ||||
| 	LIBC=gnu | ||||
| 	#  else | ||||
| 	LIBC=gnulibc1 | ||||
| 	#  endif | ||||
| 	# else | ||||
| 	LIBC=gnulibc1 | ||||
| 	# endif | ||||
| 	#else | ||||
| 	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) | ||||
| 	LIBC=gnu | ||||
| 	#else | ||||
| 	LIBC=gnuaout | ||||
| 	#endif | ||||
| 	#endif | ||||
| 	#ifdef __dietlibc__ | ||||
| 	LIBC=dietlibc | ||||
| 	#endif | ||||
| EOF | ||||
| 	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | ||||
| 	    /^LIBC/{ | ||||
| 		s: ::g | ||||
| 		p | ||||
| 	    }'`" | ||||
| 	test x"${LIBC}" != x && { | ||||
| 		echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | ||||
| 		exit | ||||
| 	} | ||||
| 	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } | ||||
| 	;; | ||||
|     i*86:DYNIX/ptx:4*:*) | ||||
| 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | ||||
| 	# earlier versions are messed up and put the nodename in both | ||||
| @ -1074,7 +1053,7 @@ EOF | ||||
|     i*86:syllable:*:*) | ||||
| 	echo ${UNAME_MACHINE}-pc-syllable | ||||
| 	exit ;; | ||||
|     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) | ||||
|     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) | ||||
| 	echo i386-unknown-lynxos${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     i*86:*DOS:*:*) | ||||
| @ -1182,7 +1161,7 @@ EOF | ||||
|     rs6000:LynxOS:2.*:*) | ||||
| 	echo rs6000-unknown-lynxos${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) | ||||
|     PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) | ||||
| 	echo powerpc-unknown-lynxos${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     SM[BE]S:UNIX_SV:*:*) | ||||
| @ -1248,6 +1227,9 @@ EOF | ||||
|     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible. | ||||
| 	echo i586-pc-haiku | ||||
| 	exit ;; | ||||
|     x86_64:Haiku:*:*) | ||||
| 	echo x86_64-unknown-haiku | ||||
| 	exit ;; | ||||
|     SX-4:SUPER-UX:*:*) | ||||
| 	echo sx4-nec-superux${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
| @ -1274,9 +1256,31 @@ EOF | ||||
| 	exit ;; | ||||
|     *:Darwin:*:*) | ||||
| 	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | ||||
| 	eval $set_cc_for_build | ||||
| 	if test "$UNAME_PROCESSOR" = unknown ; then | ||||
| 	    UNAME_PROCESSOR=powerpc | ||||
| 	fi | ||||
| 	if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then | ||||
| 	    if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | ||||
| 		if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | ||||
| 		    (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | ||||
| 		    grep IS_64BIT_ARCH >/dev/null | ||||
| 		then | ||||
| 		    case $UNAME_PROCESSOR in | ||||
| 	    unknown) UNAME_PROCESSOR=powerpc ;; | ||||
| 			i386) UNAME_PROCESSOR=x86_64 ;; | ||||
| 			powerpc) UNAME_PROCESSOR=powerpc64 ;; | ||||
| 		    esac | ||||
| 		fi | ||||
| 	    fi | ||||
| 	elif test "$UNAME_PROCESSOR" = i386 ; then | ||||
| 	    # Avoid executing cc on OS X 10.9, as it ships with a stub | ||||
| 	    # that puts up a graphical alert prompting to install | ||||
| 	    # developer tools.  Any system running Mac OS X 10.7 or | ||||
| 	    # later (Darwin 11 and later) is required to have a 64-bit | ||||
| 	    # processor. This is not true of the ARM version of Darwin | ||||
| 	    # that Apple uses in portable devices. | ||||
| 	    UNAME_PROCESSOR=x86_64 | ||||
| 	fi | ||||
| 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     *:procnto*:*:* | *:QNX:[0123456789]*:*) | ||||
| @ -1290,7 +1294,10 @@ EOF | ||||
|     *:QNX:*:4*) | ||||
| 	echo i386-pc-qnx | ||||
| 	exit ;; | ||||
|     NSE-?:NONSTOP_KERNEL:*:*) | ||||
|     NEO-?:NONSTOP_KERNEL:*:*) | ||||
| 	echo neo-tandem-nsk${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     NSE-*:NONSTOP_KERNEL:*:*) | ||||
| 	echo nse-tandem-nsk${UNAME_RELEASE} | ||||
| 	exit ;; | ||||
|     NSR-?:NONSTOP_KERNEL:*:*) | ||||
| @ -1359,11 +1366,11 @@ EOF | ||||
|     i*86:AROS:*:*) | ||||
| 	echo ${UNAME_MACHINE}-pc-aros | ||||
| 	exit ;; | ||||
|     x86_64:VMkernel:*:*) | ||||
| 	echo ${UNAME_MACHINE}-unknown-esx | ||||
| 	exit ;; | ||||
| esac | ||||
| 
 | ||||
| #echo '(No uname command or uname output not recognized.)' 1>&2 | ||||
| #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | ||||
| 
 | ||||
| eval $set_cc_for_build | ||||
| cat >$dummy.c <<EOF | ||||
| #ifdef _SEQUENT_ | ||||
|  | ||||
							
								
								
									
										271
									
								
								config.sub
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										271
									
								
								config.sub
									
									
									
									
										vendored
									
									
								
							| @ -1,44 +1,40 @@ | ||||
| #! /bin/sh | ||||
| # Configuration validation subroutine script. | ||||
| #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | ||||
| #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 | ||||
| #   Free Software Foundation, Inc. | ||||
| #   Copyright 1992-2013 Free Software Foundation, Inc. | ||||
| 
 | ||||
| timestamp='2009-04-17' | ||||
| timestamp='2013-10-01' | ||||
| 
 | ||||
| # This file is (in principle) common to ALL GNU software. | ||||
| # The presence of a machine in this file suggests that SOME GNU software | ||||
| # can handle that machine.  It does not imply ALL GNU software can. | ||||
| # | ||||
| # This file is free software; you can redistribute it and/or modify | ||||
| # it under the terms of the GNU General Public License as published by | ||||
| # the Free Software Foundation; either version 2 of the License, or | ||||
| # This file is free software; you can redistribute it and/or modify it | ||||
| # under the terms of the GNU General Public License as published by | ||||
| # the Free Software Foundation; either version 3 of the License, or | ||||
| # (at your option) any later version. | ||||
| # | ||||
| # This program is distributed in the hope that it will be useful, | ||||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
| # GNU General Public License for more details. | ||||
| # This program is distributed in the hope that it will be useful, but | ||||
| # WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||
| # General Public License for more details. | ||||
| # | ||||
| # You should have received a copy of the GNU General Public License | ||||
| # along with this program; if not, write to the Free Software | ||||
| # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | ||||
| # 02110-1301, USA. | ||||
| # along with this program; if not, see <http://www.gnu.org/licenses/>. | ||||
| # | ||||
| # As a special exception to the GNU General Public License, if you | ||||
| # distribute this file as part of a program that contains a | ||||
| # configuration script generated by Autoconf, you may include it under | ||||
| # the same distribution terms that you use for the rest of that program. | ||||
| # the same distribution terms that you use for the rest of that | ||||
| # program.  This Exception is an additional permission under section 7 | ||||
| # of the GNU General Public License, version 3 ("GPLv3"). | ||||
| 
 | ||||
| 
 | ||||
| # Please send patches to <config-patches@gnu.org>.  Submit a context | ||||
| # diff and a properly formatted ChangeLog entry. | ||||
| # Please send patches with a ChangeLog entry to config-patches@gnu.org. | ||||
| # | ||||
| # Configuration subroutine to validate and canonicalize a configuration type. | ||||
| # Supply the specified configuration type as an argument. | ||||
| # If it is invalid, we print an error message on stderr and exit with code 1. | ||||
| # Otherwise, we print the canonical config type on stdout and succeed. | ||||
| 
 | ||||
| # You can get the latest version of this script from: | ||||
| # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | ||||
| 
 | ||||
| # This file is supposed to be the same for all GNU packages | ||||
| # and recognize all the CPU types, system types and aliases | ||||
| # that are meaningful with *any* GNU software. | ||||
| @ -72,8 +68,7 @@ Report bugs and patches to <config-patches@gnu.org>." | ||||
| version="\ | ||||
| GNU config.sub ($timestamp) | ||||
| 
 | ||||
| Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, | ||||
| 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | ||||
| Copyright 1992-2013 Free Software Foundation, Inc. | ||||
| 
 | ||||
| This is free software; see the source for copying conditions.  There is NO | ||||
| warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | ||||
| @ -120,13 +115,18 @@ esac | ||||
| # Here we must recognize all the valid KERNEL-OS combinations. | ||||
| maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | ||||
| case $maybe_os in | ||||
|   nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ | ||||
|   uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ | ||||
|   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ | ||||
|   linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | ||||
|   knetbsd*-gnu* | netbsd*-gnu* | \ | ||||
|   kopensolaris*-gnu* | \ | ||||
|   storm-chaos* | os2-emx* | rtmk-nova*) | ||||
|     os=-$maybe_os | ||||
|     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | ||||
|     ;; | ||||
|   android-linux) | ||||
|     os=-linux-android | ||||
|     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | ||||
|     ;; | ||||
|   *) | ||||
|     basic_machine=`echo $1 | sed 's/-[^-]*$//'` | ||||
|     if [ $basic_machine != $1 ] | ||||
| @ -149,10 +149,13 @@ case $os in | ||||
| 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ | ||||
| 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ | ||||
| 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | ||||
| 	-apple | -axis | -knuth | -cray) | ||||
| 	-apple | -axis | -knuth | -cray | -microblaze*) | ||||
| 		os= | ||||
| 		basic_machine=$1 | ||||
| 		;; | ||||
| 	-bluegene*) | ||||
| 		os=-cnk | ||||
| 		;; | ||||
| 	-sim | -cisco | -oki | -wec | -winbond) | ||||
| 		os= | ||||
| 		basic_machine=$1 | ||||
| @ -215,6 +218,12 @@ case $os in | ||||
| 	-isc*) | ||||
| 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||||
| 		;; | ||||
| 	-lynx*178) | ||||
| 		os=-lynxos178 | ||||
| 		;; | ||||
| 	-lynx*5) | ||||
| 		os=-lynxos5 | ||||
| 		;; | ||||
| 	-lynx*) | ||||
| 		os=-lynxos | ||||
| 		;; | ||||
| @ -239,20 +248,28 @@ case $basic_machine in | ||||
| 	# Some are omitted here because they have special meanings below. | ||||
| 	1750a | 580 \ | ||||
| 	| a29k \ | ||||
| 	| aarch64 | aarch64_be \ | ||||
| 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | ||||
| 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | ||||
| 	| am33_2.0 \ | ||||
| 	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | ||||
| 	| arc | arceb \ | ||||
| 	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | ||||
| 	| avr | avr32 \ | ||||
| 	| be32 | be64 \ | ||||
| 	| bfin \ | ||||
| 	| c4x | clipper \ | ||||
| 	| c4x | c8051 | clipper \ | ||||
| 	| d10v | d30v | dlx | dsp16xx \ | ||||
| 	| epiphany \ | ||||
| 	| fido | fr30 | frv \ | ||||
| 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | ||||
| 	| hexagon \ | ||||
| 	| i370 | i860 | i960 | ia64 \ | ||||
| 	| ip2k | iq2000 \ | ||||
| 	| k1om \ | ||||
| 	| le32 | le64 \ | ||||
| 	| lm32 \ | ||||
| 	| m32c | m32r | m32rle | m68000 | m68k | m88k \ | ||||
| 	| maxq | mb | microblaze | mcore | mep | metag \ | ||||
| 	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | ||||
| 	| mips | mipsbe | mipseb | mipsel | mipsle \ | ||||
| 	| mips16 \ | ||||
| 	| mips64 | mips64el \ | ||||
| @ -270,32 +287,45 @@ case $basic_machine in | ||||
| 	| mipsisa64r2 | mipsisa64r2el \ | ||||
| 	| mipsisa64sb1 | mipsisa64sb1el \ | ||||
| 	| mipsisa64sr71k | mipsisa64sr71kel \ | ||||
| 	| mipsr5900 | mipsr5900el \ | ||||
| 	| mipstx39 | mipstx39el \ | ||||
| 	| mn10200 | mn10300 \ | ||||
| 	| moxie \ | ||||
| 	| mt \ | ||||
| 	| msp430 \ | ||||
| 	| nios | nios2 \ | ||||
| 	| nds32 | nds32le | nds32be \ | ||||
| 	| nios | nios2 | nios2eb | nios2el \ | ||||
| 	| ns16k | ns32k \ | ||||
| 	| or32 \ | ||||
| 	| open8 \ | ||||
| 	| or1k | or32 \ | ||||
| 	| pdp10 | pdp11 | pj | pjl \ | ||||
| 	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | ||||
| 	| powerpc | powerpc64 | powerpc64le | powerpcle \ | ||||
| 	| pyramid \ | ||||
| 	| rl78 | rx \ | ||||
| 	| score \ | ||||
| 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | ||||
| 	| sh64 | sh64le \ | ||||
| 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | ||||
| 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | ||||
| 	| spu | strongarm \ | ||||
| 	| tahoe | thumb | tic4x | tic80 | tron \ | ||||
| 	| v850 | v850e \ | ||||
| 	| spu \ | ||||
| 	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ||||
| 	| ubicom32 \ | ||||
| 	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | ||||
| 	| we32k \ | ||||
| 	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | ||||
| 	| x86 | xc16x | xstormy16 | xtensa \ | ||||
| 	| z8k | z80) | ||||
| 		basic_machine=$basic_machine-unknown | ||||
| 		;; | ||||
| 	m6811 | m68hc11 | m6812 | m68hc12) | ||||
| 		# Motorola 68HC11/12. | ||||
| 	c54x) | ||||
| 		basic_machine=tic54x-unknown | ||||
| 		;; | ||||
| 	c55x) | ||||
| 		basic_machine=tic55x-unknown | ||||
| 		;; | ||||
| 	c6x) | ||||
| 		basic_machine=tic6x-unknown | ||||
| 		;; | ||||
| 	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) | ||||
| 		basic_machine=$basic_machine-unknown | ||||
| 		os=-none | ||||
| 		;; | ||||
| @ -305,6 +335,21 @@ case $basic_machine in | ||||
| 		basic_machine=mt-unknown | ||||
| 		;; | ||||
| 
 | ||||
| 	strongarm | thumb | xscale) | ||||
| 		basic_machine=arm-unknown | ||||
| 		;; | ||||
| 	xgate) | ||||
| 		basic_machine=$basic_machine-unknown | ||||
| 		os=-none | ||||
| 		;; | ||||
| 	xscaleeb) | ||||
| 		basic_machine=armeb-unknown | ||||
| 		;; | ||||
| 
 | ||||
| 	xscaleel) | ||||
| 		basic_machine=armel-unknown | ||||
| 		;; | ||||
| 
 | ||||
| 	# We use `pc' rather than `unknown' | ||||
| 	# because (1) that's what they normally are, and | ||||
| 	# (2) the word "unknown" tends to confuse beginning users. | ||||
| @ -319,25 +364,31 @@ case $basic_machine in | ||||
| 	# Recognize the basic CPU types with company name. | ||||
| 	580-* \ | ||||
| 	| a29k-* \ | ||||
| 	| aarch64-* | aarch64_be-* \ | ||||
| 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | ||||
| 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | ||||
| 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | ||||
| 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | ||||
| 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \ | ||||
| 	| avr-* | avr32-* \ | ||||
| 	| be32-* | be64-* \ | ||||
| 	| bfin-* | bs2000-* \ | ||||
| 	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | ||||
| 	| clipper-* | craynv-* | cydra-* \ | ||||
| 	| c[123]* | c30-* | [cjt]90-* | c4x-* \ | ||||
| 	| c8051-* | clipper-* | craynv-* | cydra-* \ | ||||
| 	| d10v-* | d30v-* | dlx-* \ | ||||
| 	| elxsi-* \ | ||||
| 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | ||||
| 	| h8300-* | h8500-* \ | ||||
| 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | ||||
| 	| hexagon-* \ | ||||
| 	| i*86-* | i860-* | i960-* | ia64-* \ | ||||
| 	| ip2k-* | iq2000-* \ | ||||
| 	| k1om-* \ | ||||
| 	| le32-* | le64-* \ | ||||
| 	| lm32-* \ | ||||
| 	| m32c-* | m32r-* | m32rle-* \ | ||||
| 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | ||||
| 	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | ||||
| 	| microblaze-* | microblazeel-* \ | ||||
| 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | ||||
| 	| mips16-* \ | ||||
| 	| mips64-* | mips64el-* \ | ||||
| @ -355,28 +406,34 @@ case $basic_machine in | ||||
| 	| mipsisa64r2-* | mipsisa64r2el-* \ | ||||
| 	| mipsisa64sb1-* | mipsisa64sb1el-* \ | ||||
| 	| mipsisa64sr71k-* | mipsisa64sr71kel-* \ | ||||
| 	| mipsr5900-* | mipsr5900el-* \ | ||||
| 	| mipstx39-* | mipstx39el-* \ | ||||
| 	| mmix-* \ | ||||
| 	| mt-* \ | ||||
| 	| msp430-* \ | ||||
| 	| nios-* | nios2-* \ | ||||
| 	| nds32-* | nds32le-* | nds32be-* \ | ||||
| 	| nios-* | nios2-* | nios2eb-* | nios2el-* \ | ||||
| 	| none-* | np1-* | ns16k-* | ns32k-* \ | ||||
| 	| open8-* \ | ||||
| 	| orion-* \ | ||||
| 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | ||||
| 	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | ||||
| 	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | ||||
| 	| pyramid-* \ | ||||
| 	| romp-* | rs6000-* \ | ||||
| 	| rl78-* | romp-* | rs6000-* | rx-* \ | ||||
| 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | ||||
| 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | ||||
| 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | ||||
| 	| sparclite-* \ | ||||
| 	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | ||||
| 	| tahoe-* | thumb-* \ | ||||
| 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | ||||
| 	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | ||||
| 	| tahoe-* \ | ||||
| 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | ||||
| 	| tile*-* \ | ||||
| 	| tron-* \ | ||||
| 	| v850-* | v850e-* | vax-* \ | ||||
| 	| ubicom32-* \ | ||||
| 	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | ||||
| 	| vax-* \ | ||||
| 	| we32k-* \ | ||||
| 	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | ||||
| 	| x86-* | x86_64-* | xc16x-* | xps100-* \ | ||||
| 	| xstormy16-* | xtensa*-* \ | ||||
| 	| ymp-* \ | ||||
| 	| z8k-* | z80-*) | ||||
| @ -467,6 +524,19 @@ case $basic_machine in | ||||
| 		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` | ||||
| 		os=-linux | ||||
| 		;; | ||||
| 	bluegene*) | ||||
| 		basic_machine=powerpc-ibm | ||||
| 		os=-cnk | ||||
| 		;; | ||||
| 	c54x-*) | ||||
| 		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` | ||||
| 		;; | ||||
| 	c55x-*) | ||||
| 		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` | ||||
| 		;; | ||||
| 	c6x-*) | ||||
| 		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` | ||||
| 		;; | ||||
| 	c90) | ||||
| 		basic_machine=c90-cray | ||||
| 		os=-unicos | ||||
| @ -503,7 +573,7 @@ case $basic_machine in | ||||
| 		basic_machine=craynv-cray | ||||
| 		os=-unicosmp | ||||
| 		;; | ||||
| 	cr16) | ||||
| 	cr16 | cr16-*) | ||||
| 		basic_machine=cr16-unknown | ||||
| 		os=-elf | ||||
| 		;; | ||||
| @ -661,7 +731,6 @@ case $basic_machine in | ||||
| 	i370-ibm* | ibm*) | ||||
| 		basic_machine=i370-ibm | ||||
| 		;; | ||||
| # I'm not sure what "Sysv32" means.  Should this be sysv3.2? | ||||
| 	i*86v32) | ||||
| 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | ||||
| 		os=-sysv32 | ||||
| @ -719,8 +788,15 @@ case $basic_machine in | ||||
| 		basic_machine=ns32k-utek | ||||
| 		os=-sysv | ||||
| 		;; | ||||
| 	microblaze*) | ||||
| 		basic_machine=microblaze-xilinx | ||||
| 		;; | ||||
| 	mingw64) | ||||
| 		basic_machine=x86_64-pc | ||||
| 		os=-mingw64 | ||||
| 		;; | ||||
| 	mingw32) | ||||
| 		basic_machine=i386-pc | ||||
| 		basic_machine=i686-pc | ||||
| 		os=-mingw32 | ||||
| 		;; | ||||
| 	mingw32ce) | ||||
| @ -755,10 +831,18 @@ case $basic_machine in | ||||
| 	ms1-*) | ||||
| 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | ||||
| 		;; | ||||
| 	msys) | ||||
| 		basic_machine=i686-pc | ||||
| 		os=-msys | ||||
| 		;; | ||||
| 	mvs) | ||||
| 		basic_machine=i370-ibm | ||||
| 		os=-mvs | ||||
| 		;; | ||||
| 	nacl) | ||||
| 		basic_machine=le32-unknown | ||||
| 		os=-nacl | ||||
| 		;; | ||||
| 	ncr3000) | ||||
| 		basic_machine=i486-ncr | ||||
| 		os=-sysv4 | ||||
| @ -823,6 +907,12 @@ case $basic_machine in | ||||
| 	np1) | ||||
| 		basic_machine=np1-gould | ||||
| 		;; | ||||
| 	neo-tandem) | ||||
| 		basic_machine=neo-tandem | ||||
| 		;; | ||||
| 	nse-tandem) | ||||
| 		basic_machine=nse-tandem | ||||
| 		;; | ||||
| 	nsr-tandem) | ||||
| 		basic_machine=nsr-tandem | ||||
| 		;; | ||||
| @ -905,9 +995,10 @@ case $basic_machine in | ||||
| 		;; | ||||
| 	power)	basic_machine=power-ibm | ||||
| 		;; | ||||
| 	ppc)	basic_machine=powerpc-unknown | ||||
| 	ppc | ppcbe)	basic_machine=powerpc-unknown | ||||
| 		;; | ||||
| 	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | ||||
| 	ppc-* | ppcbe-*) | ||||
| 		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | ||||
| 		;; | ||||
| 	ppcle | powerpclittle | ppc-le | powerpc-little) | ||||
| 		basic_machine=powerpcle-unknown | ||||
| @ -932,7 +1023,11 @@ case $basic_machine in | ||||
| 		basic_machine=i586-unknown | ||||
| 		os=-pw32 | ||||
| 		;; | ||||
| 	rdos) | ||||
| 	rdos | rdos64) | ||||
| 		basic_machine=x86_64-pc | ||||
| 		os=-rdos | ||||
| 		;; | ||||
| 	rdos32) | ||||
| 		basic_machine=i386-pc | ||||
| 		os=-rdos | ||||
| 		;; | ||||
| @ -1001,6 +1096,9 @@ case $basic_machine in | ||||
| 		basic_machine=i860-stratus | ||||
| 		os=-sysv4 | ||||
| 		;; | ||||
| 	strongarm-* | thumb-*) | ||||
| 		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` | ||||
| 		;; | ||||
| 	sun2) | ||||
| 		basic_machine=m68000-sun | ||||
| 		;; | ||||
| @ -1057,20 +1155,8 @@ case $basic_machine in | ||||
| 		basic_machine=t90-cray | ||||
| 		os=-unicos | ||||
| 		;; | ||||
| 	tic54x | c54x*) | ||||
| 		basic_machine=tic54x-unknown | ||||
| 		os=-coff | ||||
| 		;; | ||||
| 	tic55x | c55x*) | ||||
| 		basic_machine=tic55x-unknown | ||||
| 		os=-coff | ||||
| 		;; | ||||
| 	tic6x | c6x*) | ||||
| 		basic_machine=tic6x-unknown | ||||
| 		os=-coff | ||||
| 		;; | ||||
| 	tile*) | ||||
| 		basic_machine=tile-unknown | ||||
| 		basic_machine=$basic_machine-unknown | ||||
| 		os=-linux-gnu | ||||
| 		;; | ||||
| 	tx39) | ||||
| @ -1140,6 +1226,9 @@ case $basic_machine in | ||||
| 	xps | xps100) | ||||
| 		basic_machine=xps100-honeywell | ||||
| 		;; | ||||
| 	xscale-* | xscalee[bl]-*) | ||||
| 		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` | ||||
| 		;; | ||||
| 	ymp) | ||||
| 		basic_machine=ymp-cray | ||||
| 		os=-unicos | ||||
| @ -1240,6 +1329,9 @@ case $os in | ||||
| 	# First match some system type aliases | ||||
| 	# that might get confused with valid system types. | ||||
| 	# -solaris* is a basic system type, with this one exception. | ||||
| 	-auroraux) | ||||
| 		os=-auroraux | ||||
| 		;; | ||||
| 	-solaris1 | -solaris1.*) | ||||
| 		os=`echo $os | sed -e 's|solaris1|sunos4|'` | ||||
| 		;; | ||||
| @ -1260,22 +1352,23 @@ case $os in | ||||
| 	# Each alternative MUST END IN A *, to match a version number. | ||||
| 	# -sysv* is not here because it comes later, after sysvr4. | ||||
| 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | ||||
| 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | ||||
| 	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | ||||
| 	      | -kopensolaris* \ | ||||
| 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | ||||
| 	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | ||||
| 	      | -sym* | -kopensolaris* | -plan9* \ | ||||
| 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | ||||
| 	      | -aos* | -aros* \ | ||||
| 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | ||||
| 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | ||||
| 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | ||||
| 	      | -openbsd* | -solidbsd* \ | ||||
| 	      | -bitrig* | -openbsd* | -solidbsd* \ | ||||
| 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | ||||
| 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | ||||
| 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | ||||
| 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | ||||
| 	      | -chorusos* | -chorusrdb* | -cegcc* \ | ||||
| 	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | ||||
| 	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | ||||
| 	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | ||||
| 	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | ||||
| 	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | ||||
| 	      | -uxpv* | -beos* | -mpeix* | -udk* \ | ||||
| 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | ||||
| 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | ||||
| @ -1283,7 +1376,7 @@ case $os in | ||||
| 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | ||||
| 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | ||||
| 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | ||||
| 	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) | ||||
| 	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) | ||||
| 	# Remember, each alternative MUST END IN *, to match a version number. | ||||
| 		;; | ||||
| 	-qnx*) | ||||
| @ -1407,15 +1500,14 @@ case $os in | ||||
| 	-aros*) | ||||
| 		os=-aros | ||||
| 		;; | ||||
| 	-kaos*) | ||||
| 		os=-kaos | ||||
| 		;; | ||||
| 	-zvmoe) | ||||
| 		os=-zvmoe | ||||
| 		;; | ||||
| 	-dicos*) | ||||
| 		os=-dicos | ||||
| 		;; | ||||
| 	-nacl*) | ||||
| 		;; | ||||
| 	-none) | ||||
| 		;; | ||||
| 	*) | ||||
| @ -1456,6 +1548,21 @@ case $basic_machine in | ||||
| 	c4x-* | tic4x-*) | ||||
| 		os=-coff | ||||
| 		;; | ||||
| 	c8051-*) | ||||
| 		os=-elf | ||||
| 		;; | ||||
| 	hexagon-*) | ||||
| 		os=-elf | ||||
| 		;; | ||||
| 	tic54x-*) | ||||
| 		os=-coff | ||||
| 		;; | ||||
| 	tic55x-*) | ||||
| 		os=-coff | ||||
| 		;; | ||||
| 	tic6x-*) | ||||
| 		os=-coff | ||||
| 		;; | ||||
| 	# This must come before the *-dec entry. | ||||
| 	pdp10-*) | ||||
| 		os=-tops20 | ||||
| @ -1474,9 +1581,6 @@ case $basic_machine in | ||||
| 		;; | ||||
| 	m68000-sun) | ||||
| 		os=-sunos3 | ||||
| 		# This also exists in the configure program, but was not the | ||||
| 		# default. | ||||
| 		# os=-sunos4 | ||||
| 		;; | ||||
| 	m68*-cisco) | ||||
| 		os=-aout | ||||
| @ -1490,6 +1594,9 @@ case $basic_machine in | ||||
| 	mips*-*) | ||||
| 		os=-elf | ||||
| 		;; | ||||
| 	or1k-*) | ||||
| 		os=-elf | ||||
| 		;; | ||||
| 	or32-*) | ||||
| 		os=-coff | ||||
| 		;; | ||||
| @ -1613,7 +1720,7 @@ case $basic_machine in | ||||
| 			-sunos*) | ||||
| 				vendor=sun | ||||
| 				;; | ||||
| 			-aix*) | ||||
| 			-cnk*|-aix*) | ||||
| 				vendor=ibm | ||||
| 				;; | ||||
| 			-beos*) | ||||
|  | ||||
| @ -18,20 +18,20 @@ AC_PREREQ(2.59) | ||||
| 
 | ||||
| dnl Version number stuff here: | ||||
| 
 | ||||
| AC_INIT([libpng], [1.0.60], [png-mng-implement@lists.sourceforge.net]) | ||||
| AC_INIT([libpng], [1.0.61], [png-mng-implement@lists.sourceforge.net]) | ||||
| AM_INIT_AUTOMAKE | ||||
| dnl stop configure from automagically running automake | ||||
| AM_MAINTAINER_MODE | ||||
| 
 | ||||
| PNGLIB_VERSION=1.0.60 | ||||
| PNGLIB_VERSION=1.0.61 | ||||
| PNGLIB_MAJOR=1 | ||||
| PNGLIB_MINOR=0 | ||||
| PNGLIB_RELEASE=60 | ||||
| PNGLIB_RELEASE=61 | ||||
| 
 | ||||
| dnl End of version number stuff | ||||
| 
 | ||||
| AC_CONFIG_SRCDIR([pngget.c]) | ||||
| AM_CONFIG_HEADER(config.h) | ||||
| AC_CONFIG_HEADERS([config.h]) | ||||
| 
 | ||||
| # Checks for programs. | ||||
| AC_PROG_CC | ||||
|  | ||||
| @ -214,6 +214,10 @@ uch *readpng_get_image(double display_exponent, int *pChannels, ulg *pRowbytes) | ||||
|      * libpng function */ | ||||
| 
 | ||||
|     if (setjmp(png_jmpbuf(png_ptr))) { | ||||
|         free(image_data); | ||||
|         image_data = NULL; | ||||
|         free(row_pointers); | ||||
|         row_pointers = NULL; | ||||
|         png_destroy_read_struct(&png_ptr, &info_ptr, NULL); | ||||
|         return NULL; | ||||
|     } | ||||
|  | ||||
							
								
								
									
										423
									
								
								depcomp
									
									
									
									
									
								
							
							
						
						
									
										423
									
								
								depcomp
									
									
									
									
									
								
							| @ -1,10 +1,9 @@ | ||||
| #! /bin/sh | ||||
| # depcomp - compile a program generating dependencies as side-effects | ||||
| 
 | ||||
| scriptversion=2009-04-28.21; # UTC | ||||
| scriptversion=2013-05-30.07; # UTC | ||||
| 
 | ||||
| # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free | ||||
| # Software Foundation, Inc. | ||||
| # Copyright (C) 1999-2013 Free Software Foundation, Inc. | ||||
| 
 | ||||
| # This program is free software; you can redistribute it and/or modify | ||||
| # it under the terms of the GNU General Public License as published by | ||||
| @ -28,7 +27,7 @@ scriptversion=2009-04-28.21; # UTC | ||||
| 
 | ||||
| case $1 in | ||||
|   '') | ||||
|      echo "$0: No command.  Try \`$0 --help' for more information." 1>&2 | ||||
|     echo "$0: No command.  Try '$0 --help' for more information." 1>&2 | ||||
|     exit 1; | ||||
|     ;; | ||||
|   -h | --h*) | ||||
| @ -40,11 +39,11 @@ as side-effects. | ||||
| 
 | ||||
| Environment variables: | ||||
|   depmode     Dependency tracking mode. | ||||
|   source      Source file read by `PROGRAMS ARGS'. | ||||
|   object      Object file output by `PROGRAMS ARGS'. | ||||
|   source      Source file read by 'PROGRAMS ARGS'. | ||||
|   object      Object file output by 'PROGRAMS ARGS'. | ||||
|   DEPDIR      directory where to store dependencies. | ||||
|   depfile     Dependency file to output. | ||||
|   tmpdepfile  Temporary file to use when outputing dependencies. | ||||
|   tmpdepfile  Temporary file to use when outputting dependencies. | ||||
|   libtool     Whether libtool is used (yes/no). | ||||
| 
 | ||||
| Report bugs to <bug-automake@gnu.org>. | ||||
| @ -57,6 +56,66 @@ EOF | ||||
|     ;; | ||||
| esac | ||||
| 
 | ||||
| # Get the directory component of the given path, and save it in the | ||||
| # global variables '$dir'.  Note that this directory component will | ||||
| # be either empty or ending with a '/' character.  This is deliberate. | ||||
| set_dir_from () | ||||
| { | ||||
|   case $1 in | ||||
|     */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; | ||||
|       *) dir=;; | ||||
|   esac | ||||
| } | ||||
| 
 | ||||
| # Get the suffix-stripped basename of the given path, and save it the | ||||
| # global variable '$base'. | ||||
| set_base_from () | ||||
| { | ||||
|   base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` | ||||
| } | ||||
| 
 | ||||
| # If no dependency file was actually created by the compiler invocation, | ||||
| # we still have to create a dummy depfile, to avoid errors with the | ||||
| # Makefile "include basename.Plo" scheme. | ||||
| make_dummy_depfile () | ||||
| { | ||||
|   echo "#dummy" > "$depfile" | ||||
| } | ||||
| 
 | ||||
| # Factor out some common post-processing of the generated depfile. | ||||
| # Requires the auxiliary global variable '$tmpdepfile' to be set. | ||||
| aix_post_process_depfile () | ||||
| { | ||||
|   # If the compiler actually managed to produce a dependency file, | ||||
|   # post-process it. | ||||
|   if test -f "$tmpdepfile"; then | ||||
|     # Each line is of the form 'foo.o: dependency.h'. | ||||
|     # Do two passes, one to just change these to | ||||
|     #   $object: dependency.h | ||||
|     # and one to simply output | ||||
|     #   dependency.h: | ||||
|     # which is needed to avoid the deleted-header problem. | ||||
|     { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" | ||||
|       sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" | ||||
|     } > "$depfile" | ||||
|     rm -f "$tmpdepfile" | ||||
|   else | ||||
|     make_dummy_depfile | ||||
|   fi | ||||
| } | ||||
| 
 | ||||
| # A tabulation character. | ||||
| tab='	' | ||||
| # A newline character. | ||||
| nl=' | ||||
| ' | ||||
| # Character ranges might be problematic outside the C locale. | ||||
| # These definitions help. | ||||
| upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ | ||||
| lower=abcdefghijklmnopqrstuvwxyz | ||||
| digits=0123456789 | ||||
| alpha=${upper}${lower} | ||||
| 
 | ||||
| if test -z "$depmode" || test -z "$source" || test -z "$object"; then | ||||
|   echo "depcomp: Variables source, object and depmode must be set" 1>&2 | ||||
|   exit 1 | ||||
| @ -69,6 +128,9 @@ tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} | ||||
| 
 | ||||
| rm -f "$tmpdepfile" | ||||
| 
 | ||||
| # Avoid interferences from the environment. | ||||
| gccflag= dashmflag= | ||||
| 
 | ||||
| # Some modes work just like other modes, but use different flags.  We | ||||
| # parameterize here, but still list the modes in the big case below, | ||||
| # to make depend.m4 easier to write.  Note that we *cannot* use a case | ||||
| @ -90,10 +152,24 @@ if test "$depmode" = msvcmsys; then | ||||
|   # This is just like msvisualcpp but w/o cygpath translation. | ||||
|   # Just convert the backslash-escaped backslashes to single forward | ||||
|   # slashes to satisfy depend.m4 | ||||
|    cygpath_u="sed s,\\\\\\\\,/,g" | ||||
|   cygpath_u='sed s,\\\\,/,g' | ||||
|   depmode=msvisualcpp | ||||
| fi | ||||
| 
 | ||||
| if test "$depmode" = msvc7msys; then | ||||
|   # This is just like msvc7 but w/o cygpath translation. | ||||
|   # Just convert the backslash-escaped backslashes to single forward | ||||
|   # slashes to satisfy depend.m4 | ||||
|   cygpath_u='sed s,\\\\,/,g' | ||||
|   depmode=msvc7 | ||||
| fi | ||||
| 
 | ||||
| if test "$depmode" = xlc; then | ||||
|   # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. | ||||
|   gccflag=-qmakedep=gcc,-MF | ||||
|   depmode=gcc | ||||
| fi | ||||
| 
 | ||||
| case "$depmode" in | ||||
| gcc3) | ||||
| ## gcc 3 implements dependency tracking that does exactly what | ||||
| @ -114,8 +190,7 @@ gcc3) | ||||
|   done | ||||
|   "$@" | ||||
|   stat=$? | ||||
|   if test $stat -eq 0; then : | ||||
|   else | ||||
|   if test $stat -ne 0; then | ||||
|     rm -f "$tmpdepfile" | ||||
|     exit $stat | ||||
|   fi | ||||
| @ -123,13 +198,17 @@ gcc3) | ||||
|   ;; | ||||
| 
 | ||||
| gcc) | ||||
| ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. | ||||
| ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. | ||||
| ## (see the conditional assignment to $gccflag above). | ||||
| ## There are various ways to get dependency output from gcc.  Here's | ||||
| ## why we pick this rather obscure method: | ||||
| ## - Don't want to use -MD because we'd like the dependencies to end | ||||
| ##   up in a subdir.  Having to rename by hand is ugly. | ||||
| ##   (We might end up doing this anyway to support other compilers.) | ||||
| ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like | ||||
| ##   -MM, not -M (despite what the docs say). | ||||
| ##   -MM, not -M (despite what the docs say).  Also, it might not be | ||||
| ##   supported by the other compilers which use the 'gcc' depmode. | ||||
| ## - Using -M directly means running the compiler twice (even worse | ||||
| ##   than renaming). | ||||
|   if test -z "$gccflag"; then | ||||
| @ -137,31 +216,31 @@ gcc) | ||||
|   fi | ||||
|   "$@" -Wp,"$gccflag$tmpdepfile" | ||||
|   stat=$? | ||||
|   if test $stat -eq 0; then : | ||||
|   else | ||||
|   if test $stat -ne 0; then | ||||
|     rm -f "$tmpdepfile" | ||||
|     exit $stat | ||||
|   fi | ||||
|   rm -f "$depfile" | ||||
|   echo "$object : \\" > "$depfile" | ||||
|   alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | ||||
| ## The second -e expression handles DOS-style file names with drive letters. | ||||
|   # The second -e expression handles DOS-style file names with drive | ||||
|   # letters. | ||||
|   sed -e 's/^[^:]*: / /' \ | ||||
|       -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" | ||||
| ## This next piece of magic avoids the `deleted header file' problem. | ||||
| ## This next piece of magic avoids the "deleted header file" problem. | ||||
| ## The problem is that when a header file which appears in a .P file | ||||
| ## is deleted, the dependency causes make to die (because there is | ||||
| ## typically no way to rebuild the header).  We avoid this by adding | ||||
| ## dummy dependencies for each header file.  Too bad gcc doesn't do | ||||
| ## this for us directly. | ||||
|   tr ' ' ' | ||||
| ' < "$tmpdepfile" | | ||||
| ## Some versions of gcc put a space before the `:'.  On the theory | ||||
| ## Some versions of gcc put a space before the ':'.  On the theory | ||||
| ## that the space means something, we add a space to the output as | ||||
| ## well. | ||||
| ## well.  hp depmode also adds that space, but also prefixes the VPATH | ||||
| ## to the object.  Take care to not repeat it in the output. | ||||
| ## Some versions of the HPUX 10.20 sed can't process this invocation | ||||
| ## correctly.  Breaking it into two sed invocations is a workaround. | ||||
|     sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | ||||
|   tr ' ' "$nl" < "$tmpdepfile" \ | ||||
|     | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | ||||
|     | sed -e 's/$/ :/' >> "$depfile" | ||||
|   rm -f "$tmpdepfile" | ||||
|   ;; | ||||
| 
 | ||||
| @ -179,8 +258,7 @@ sgi) | ||||
|     "$@" -MDupdate "$tmpdepfile" | ||||
|   fi | ||||
|   stat=$? | ||||
|   if test $stat -eq 0; then : | ||||
|   else | ||||
|   if test $stat -ne 0; then | ||||
|     rm -f "$tmpdepfile" | ||||
|     exit $stat | ||||
|   fi | ||||
| @ -188,43 +266,41 @@ sgi) | ||||
| 
 | ||||
|   if test -f "$tmpdepfile"; then  # yes, the sourcefile depend on other files | ||||
|     echo "$object : \\" > "$depfile" | ||||
| 
 | ||||
|     # Clip off the initial element (the dependent).  Don't try to be | ||||
|     # clever and replace this with sed code, as IRIX sed won't handle | ||||
|     # lines with more than a fixed number of characters (4096 in | ||||
|     # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines; | ||||
|     # the IRIX cc adds comments like `#:fec' to the end of the | ||||
|     # the IRIX cc adds comments like '#:fec' to the end of the | ||||
|     # dependency line. | ||||
|     tr ' ' ' | ||||
| ' < "$tmpdepfile" \ | ||||
|     | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ | ||||
|     tr ' | ||||
| ' ' ' >> "$depfile" | ||||
|     tr ' ' "$nl" < "$tmpdepfile" \ | ||||
|       | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | ||||
|       | tr "$nl" ' ' >> "$depfile" | ||||
|     echo >> "$depfile" | ||||
| 
 | ||||
|     # The second pass generates a dummy entry for each header file. | ||||
|     tr ' ' ' | ||||
| ' < "$tmpdepfile" \ | ||||
|     tr ' ' "$nl" < "$tmpdepfile" \ | ||||
|       | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | ||||
|       >> "$depfile" | ||||
|   else | ||||
|     # The sourcefile does not contain any dependencies, so just | ||||
|     # store a dummy comment line, to avoid errors with the Makefile | ||||
|     # "include basename.Plo" scheme. | ||||
|     echo "#dummy" > "$depfile" | ||||
|     make_dummy_depfile | ||||
|   fi | ||||
|   rm -f "$tmpdepfile" | ||||
|   ;; | ||||
| 
 | ||||
| xlc) | ||||
|   # This case exists only to let depend.m4 do its work.  It works by | ||||
|   # looking at the text of this script.  This case will never be run, | ||||
|   # since it is checked for above. | ||||
|   exit 1 | ||||
|   ;; | ||||
| 
 | ||||
| aix) | ||||
|   # The C for AIX Compiler uses -M and outputs the dependencies | ||||
|   # in a .u file.  In older versions, this file always lives in the | ||||
|   # current directory.  Also, the AIX compiler puts `$object:' at the | ||||
|   # current directory.  Also, the AIX compiler puts '$object:' at the | ||||
|   # start of each line; $object doesn't have directory information. | ||||
|   # Version 6 uses the directory in both cases. | ||||
|   dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | ||||
|   test "x$dir" = "x$object" && dir= | ||||
|   base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | ||||
|   set_dir_from "$object" | ||||
|   set_base_from "$object" | ||||
|   if test "$libtool" = yes; then | ||||
|     tmpdepfile1=$dir$base.u | ||||
|     tmpdepfile2=$base.u | ||||
| @ -237,9 +313,7 @@ aix) | ||||
|     "$@" -M | ||||
|   fi | ||||
|   stat=$? | ||||
| 
 | ||||
|   if test $stat -eq 0; then : | ||||
|   else | ||||
|   if test $stat -ne 0; then | ||||
|     rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | ||||
|     exit $stat | ||||
|   fi | ||||
| @ -248,44 +322,100 @@ aix) | ||||
|   do | ||||
|     test -f "$tmpdepfile" && break | ||||
|   done | ||||
|   if test -f "$tmpdepfile"; then | ||||
|     # Each line is of the form `foo.o: dependent.h'. | ||||
|     # Do two passes, one to just change these to | ||||
|     # `$object: dependent.h' and one to simply `dependent.h:'. | ||||
|     sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | ||||
|     # That's a tab and a space in the []. | ||||
|     sed -e 's,^.*\.[a-z]*:[	 ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | ||||
|   else | ||||
|     # The sourcefile does not contain any dependencies, so just | ||||
|     # store a dummy comment line, to avoid errors with the Makefile | ||||
|     # "include basename.Plo" scheme. | ||||
|     echo "#dummy" > "$depfile" | ||||
|   aix_post_process_depfile | ||||
|   ;; | ||||
| 
 | ||||
| tcc) | ||||
|   # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 | ||||
|   # FIXME: That version still under development at the moment of writing. | ||||
|   #        Make that this statement remains true also for stable, released | ||||
|   #        versions. | ||||
|   # It will wrap lines (doesn't matter whether long or short) with a | ||||
|   # trailing '\', as in: | ||||
|   # | ||||
|   #   foo.o : \ | ||||
|   #    foo.c \ | ||||
|   #    foo.h \ | ||||
|   # | ||||
|   # It will put a trailing '\' even on the last line, and will use leading | ||||
|   # spaces rather than leading tabs (at least since its commit 0394caf7 | ||||
|   # "Emit spaces for -MD"). | ||||
|   "$@" -MD -MF "$tmpdepfile" | ||||
|   stat=$? | ||||
|   if test $stat -ne 0; then | ||||
|     rm -f "$tmpdepfile" | ||||
|     exit $stat | ||||
|   fi | ||||
|   rm -f "$depfile" | ||||
|   # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. | ||||
|   # We have to change lines of the first kind to '$object: \'. | ||||
|   sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" | ||||
|   # And for each line of the second kind, we have to emit a 'dep.h:' | ||||
|   # dummy dependency, to avoid the deleted-header problem. | ||||
|   sed -n -e 's|^  *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" | ||||
|   rm -f "$tmpdepfile" | ||||
|   ;; | ||||
| 
 | ||||
| icc) | ||||
|   # Intel's C compiler understands `-MD -MF file'.  However on | ||||
|   #    icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c | ||||
|   # ICC 7.0 will fill foo.d with something like | ||||
|   #    foo.o: sub/foo.c | ||||
|   #    foo.o: sub/foo.h | ||||
|   # which is wrong.  We want: | ||||
|   #    sub/foo.o: sub/foo.c | ||||
|   #    sub/foo.o: sub/foo.h | ||||
|   #    sub/foo.c: | ||||
|   #    sub/foo.h: | ||||
|   # ICC 7.1 will output | ||||
| ## The order of this option in the case statement is important, since the | ||||
| ## shell code in configure will try each of these formats in the order | ||||
| ## listed in this file.  A plain '-MD' option would be understood by many | ||||
| ## compilers, so we must ensure this comes after the gcc and icc options. | ||||
| pgcc) | ||||
|   # Portland's C compiler understands '-MD'. | ||||
|   # Will always output deps to 'file.d' where file is the root name of the | ||||
|   # source file under compilation, even if file resides in a subdirectory. | ||||
|   # The object file name does not affect the name of the '.d' file. | ||||
|   # pgcc 10.2 will output | ||||
|   #    foo.o: sub/foo.c sub/foo.h | ||||
|   # and will wrap long lines using \ : | ||||
|   # and will wrap long lines using '\' : | ||||
|   #    foo.o: sub/foo.c ... \ | ||||
|   #     sub/foo.h ... \ | ||||
|   #     ... | ||||
|   set_dir_from "$object" | ||||
|   # Use the source, not the object, to determine the base name, since | ||||
|   # that's sadly what pgcc will do too. | ||||
|   set_base_from "$source" | ||||
|   tmpdepfile=$base.d | ||||
| 
 | ||||
|   "$@" -MD -MF "$tmpdepfile" | ||||
|   # For projects that build the same source file twice into different object | ||||
|   # files, the pgcc approach of using the *source* file root name can cause | ||||
|   # problems in parallel builds.  Use a locking strategy to avoid stomping on | ||||
|   # the same $tmpdepfile. | ||||
|   lockdir=$base.d-lock | ||||
|   trap " | ||||
|     echo '$0: caught signal, cleaning up...' >&2 | ||||
|     rmdir '$lockdir' | ||||
|     exit 1 | ||||
|   " 1 2 13 15 | ||||
|   numtries=100 | ||||
|   i=$numtries | ||||
|   while test $i -gt 0; do | ||||
|     # mkdir is a portable test-and-set. | ||||
|     if mkdir "$lockdir" 2>/dev/null; then | ||||
|       # This process acquired the lock. | ||||
|       "$@" -MD | ||||
|       stat=$? | ||||
|   if test $stat -eq 0; then : | ||||
|       # Release the lock. | ||||
|       rmdir "$lockdir" | ||||
|       break | ||||
|     else | ||||
|       # If the lock is being held by a different process, wait | ||||
|       # until the winning process is done or we timeout. | ||||
|       while test -d "$lockdir" && test $i -gt 0; do | ||||
|         sleep 1 | ||||
|         i=`expr $i - 1` | ||||
|       done | ||||
|     fi | ||||
|     i=`expr $i - 1` | ||||
|   done | ||||
|   trap - 1 2 13 15 | ||||
|   if test $i -le 0; then | ||||
|     echo "$0: failed to acquire lock after $numtries attempts" >&2 | ||||
|     echo "$0: check lockdir '$lockdir'" >&2 | ||||
|     exit 1 | ||||
|   fi | ||||
| 
 | ||||
|   if test $stat -ne 0; then | ||||
|     rm -f "$tmpdepfile" | ||||
|     exit $stat | ||||
|   fi | ||||
| @ -297,8 +427,8 @@ icc) | ||||
|   sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" | ||||
|   # Some versions of the HPUX 10.20 sed can't process this invocation | ||||
|   # correctly.  Breaking it into two sed invocations is a workaround. | ||||
|   sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | | ||||
|     sed -e 's/$/ :/' >> "$depfile" | ||||
|   sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | ||||
|     | sed -e 's/$/ :/' >> "$depfile" | ||||
|   rm -f "$tmpdepfile" | ||||
|   ;; | ||||
| 
 | ||||
| @ -309,9 +439,8 @@ hp2) | ||||
|   # 'foo.d', which lands next to the object file, wherever that | ||||
|   # happens to be. | ||||
|   # Much of this is similar to the tru64 case; see comments there. | ||||
|   dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | ||||
|   test "x$dir" = "x$object" && dir= | ||||
|   base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | ||||
|   set_dir_from  "$object" | ||||
|   set_base_from "$object" | ||||
|   if test "$libtool" = yes; then | ||||
|     tmpdepfile1=$dir$base.d | ||||
|     tmpdepfile2=$dir.libs/$base.d | ||||
| @ -322,8 +451,7 @@ hp2) | ||||
|     "$@" +Maked | ||||
|   fi | ||||
|   stat=$? | ||||
|   if test $stat -eq 0; then : | ||||
|   else | ||||
|   if test $stat -ne 0; then | ||||
|      rm -f "$tmpdepfile1" "$tmpdepfile2" | ||||
|      exit $stat | ||||
|   fi | ||||
| @ -333,8 +461,8 @@ hp2) | ||||
|     test -f "$tmpdepfile" && break | ||||
|   done | ||||
|   if test -f "$tmpdepfile"; then | ||||
|     sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" | ||||
|     # Add `dependent.h:' lines. | ||||
|     sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" | ||||
|     # Add 'dependent.h:' lines. | ||||
|     sed -ne '2,${ | ||||
|                s/^ *// | ||||
|                s/ \\*$// | ||||
| @ -342,67 +470,97 @@ hp2) | ||||
|                p | ||||
|              }' "$tmpdepfile" >> "$depfile" | ||||
|   else | ||||
|     echo "#dummy" > "$depfile" | ||||
|     make_dummy_depfile | ||||
|   fi | ||||
|   rm -f "$tmpdepfile" "$tmpdepfile2" | ||||
|   ;; | ||||
| 
 | ||||
| tru64) | ||||
|   # The Tru64 compiler uses -MD to generate dependencies as a side | ||||
|    # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. | ||||
|   # effect.  'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. | ||||
|   # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | ||||
|    # dependencies in `foo.d' instead, so we check for that too. | ||||
|   # dependencies in 'foo.d' instead, so we check for that too. | ||||
|   # Subdirectories are respected. | ||||
|    dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | ||||
|    test "x$dir" = "x$object" && dir= | ||||
|    base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | ||||
|   set_dir_from  "$object" | ||||
|   set_base_from "$object" | ||||
| 
 | ||||
|   if test "$libtool" = yes; then | ||||
|       # With Tru64 cc, shared objects can also be used to make a | ||||
|       # static library.  This mechanism is used in libtool 1.4 series to | ||||
|       # handle both shared and static libraries in a single compilation. | ||||
|       # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. | ||||
|       # | ||||
|       # With libtool 1.5 this exception was removed, and libtool now | ||||
|       # generates 2 separate objects for the 2 libraries.  These two | ||||
|       # compilations output dependencies in $dir.libs/$base.o.d and | ||||
|     # Libtool generates 2 separate objects for the 2 libraries.  These | ||||
|     # two compilations output dependencies in $dir.libs/$base.o.d and | ||||
|     # in $dir$base.o.d.  We have to check for both files, because | ||||
|     # one of the two compilations can be disabled.  We should prefer | ||||
|     # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | ||||
|     # automatically cleaned when .libs/ is deleted, while ignoring | ||||
|     # the former would cause a distcleancheck panic. | ||||
|       tmpdepfile1=$dir.libs/$base.lo.d   # libtool 1.4 | ||||
|       tmpdepfile2=$dir$base.o.d          # libtool 1.5 | ||||
|       tmpdepfile3=$dir.libs/$base.o.d    # libtool 1.5 | ||||
|       tmpdepfile4=$dir.libs/$base.d      # Compaq CCC V6.2-504 | ||||
|     tmpdepfile1=$dir$base.o.d          # libtool 1.5 | ||||
|     tmpdepfile2=$dir.libs/$base.o.d    # Likewise. | ||||
|     tmpdepfile3=$dir.libs/$base.d      # Compaq CCC V6.2-504 | ||||
|     "$@" -Wc,-MD | ||||
|   else | ||||
|       tmpdepfile1=$dir$base.o.d | ||||
|     tmpdepfile1=$dir$base.d | ||||
|     tmpdepfile2=$dir$base.d | ||||
|     tmpdepfile3=$dir$base.d | ||||
|       tmpdepfile4=$dir$base.d | ||||
|     "$@" -MD | ||||
|   fi | ||||
| 
 | ||||
|   stat=$? | ||||
|    if test $stat -eq 0; then : | ||||
|    else | ||||
|       rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | ||||
|   if test $stat -ne 0; then | ||||
|     rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | ||||
|     exit $stat | ||||
|   fi | ||||
| 
 | ||||
|    for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | ||||
|   for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | ||||
|   do | ||||
|     test -f "$tmpdepfile" && break | ||||
|   done | ||||
|    if test -f "$tmpdepfile"; then | ||||
|       sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | ||||
|       # That's a tab and a space in the []. | ||||
|       sed -e 's,^.*\.[a-z]*:[	 ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | ||||
|   # Same post-processing that is required for AIX mode. | ||||
|   aix_post_process_depfile | ||||
|   ;; | ||||
| 
 | ||||
| msvc7) | ||||
|   if test "$libtool" = yes; then | ||||
|     showIncludes=-Wc,-showIncludes | ||||
|   else | ||||
|       echo "#dummy" > "$depfile" | ||||
|     showIncludes=-showIncludes | ||||
|   fi | ||||
|   "$@" $showIncludes > "$tmpdepfile" | ||||
|   stat=$? | ||||
|   grep -v '^Note: including file: ' "$tmpdepfile" | ||||
|   if test $stat -ne 0; then | ||||
|     rm -f "$tmpdepfile" | ||||
|     exit $stat | ||||
|   fi | ||||
|   rm -f "$depfile" | ||||
|   echo "$object : \\" > "$depfile" | ||||
|   # The first sed program below extracts the file names and escapes | ||||
|   # backslashes for cygpath.  The second sed program outputs the file | ||||
|   # name when reading, but also accumulates all include files in the | ||||
|   # hold buffer in order to output them again at the end.  This only | ||||
|   # works with sed implementations that can handle large buffers. | ||||
|   sed < "$tmpdepfile" -n ' | ||||
| /^Note: including file:  *\(.*\)/ { | ||||
|   s//\1/ | ||||
|   s/\\/\\\\/g | ||||
|   p | ||||
| }' | $cygpath_u | sort -u | sed -n ' | ||||
| s/ /\\ /g | ||||
| s/\(.*\)/'"$tab"'\1 \\/p | ||||
| s/.\(.*\) \\/\1:/ | ||||
| H | ||||
| $ { | ||||
|   s/.*/'"$tab"'/ | ||||
|   G | ||||
|   p | ||||
| }' >> "$depfile" | ||||
|   echo >> "$depfile" # make sure the fragment doesn't end with a backslash | ||||
|   rm -f "$tmpdepfile" | ||||
|   ;; | ||||
| 
 | ||||
| msvc7msys) | ||||
|   # This case exists only to let depend.m4 do its work.  It works by | ||||
|   # looking at the text of this script.  This case will never be run, | ||||
|   # since it is checked for above. | ||||
|   exit 1 | ||||
|   ;; | ||||
| 
 | ||||
| #nosideeffect) | ||||
| @ -422,7 +580,7 @@ dashmstdout) | ||||
|     shift | ||||
|   fi | ||||
| 
 | ||||
|   # Remove `-o $object'. | ||||
|   # Remove '-o $object'. | ||||
|   IFS=" " | ||||
|   for arg | ||||
|   do | ||||
| @ -442,18 +600,18 @@ dashmstdout) | ||||
|   done | ||||
| 
 | ||||
|   test -z "$dashmflag" && dashmflag=-M | ||||
|   # Require at least two characters before searching for `:' | ||||
|   # Require at least two characters before searching for ':' | ||||
|   # in the target name.  This is to cope with DOS-style filenames: | ||||
|   # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. | ||||
|   # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. | ||||
|   "$@" $dashmflag | | ||||
|     sed 's:^[  ]*[^: ][^:][^:]*\:[    ]*:'"$object"'\: :' > "$tmpdepfile" | ||||
|     sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" | ||||
|   rm -f "$depfile" | ||||
|   cat < "$tmpdepfile" > "$depfile" | ||||
|   tr ' ' ' | ||||
| ' < "$tmpdepfile" | \ | ||||
| ## Some versions of the HPUX 10.20 sed can't process this invocation | ||||
| ## correctly.  Breaking it into two sed invocations is a workaround. | ||||
|     sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | ||||
|   # Some versions of the HPUX 10.20 sed can't process this sed invocation | ||||
|   # correctly.  Breaking it into two sed invocations is a workaround. | ||||
|   tr ' ' "$nl" < "$tmpdepfile" \ | ||||
|     | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | ||||
|     | sed -e 's/$/ :/' >> "$depfile" | ||||
|   rm -f "$tmpdepfile" | ||||
|   ;; | ||||
| 
 | ||||
| @ -503,12 +661,15 @@ makedepend) | ||||
|   touch "$tmpdepfile" | ||||
|   ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" | ||||
|   rm -f "$depfile" | ||||
|   cat < "$tmpdepfile" > "$depfile" | ||||
|   sed '1,2d' "$tmpdepfile" | tr ' ' ' | ||||
| ' | \ | ||||
| ## Some versions of the HPUX 10.20 sed can't process this invocation | ||||
| ## correctly.  Breaking it into two sed invocations is a workaround. | ||||
|     sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | ||||
|   # makedepend may prepend the VPATH from the source file name to the object. | ||||
|   # No need to regex-escape $object, excess matching of '.' is harmless. | ||||
|   sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" | ||||
|   # Some versions of the HPUX 10.20 sed can't process the last invocation | ||||
|   # correctly.  Breaking it into two sed invocations is a workaround. | ||||
|   sed '1,2d' "$tmpdepfile" \ | ||||
|     | tr ' ' "$nl" \ | ||||
|     | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | ||||
|     | sed -e 's/$/ :/' >> "$depfile" | ||||
|   rm -f "$tmpdepfile" "$tmpdepfile".bak | ||||
|   ;; | ||||
| 
 | ||||
| @ -525,7 +686,7 @@ cpp) | ||||
|     shift | ||||
|   fi | ||||
| 
 | ||||
|   # Remove `-o $object'. | ||||
|   # Remove '-o $object'. | ||||
|   IFS=" " | ||||
|   for arg | ||||
|   do | ||||
| @ -544,10 +705,10 @@ cpp) | ||||
|     esac | ||||
|   done | ||||
| 
 | ||||
|   "$@" -E | | ||||
|     sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | ||||
|        -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | | ||||
|     sed '$ s: \\$::' > "$tmpdepfile" | ||||
|   "$@" -E \ | ||||
|     | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | ||||
|              -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | ||||
|     | sed '$ s: \\$::' > "$tmpdepfile" | ||||
|   rm -f "$depfile" | ||||
|   echo "$object : \\" > "$depfile" | ||||
|   cat < "$tmpdepfile" >> "$depfile" | ||||
| @ -594,8 +755,8 @@ msvisualcpp) | ||||
|   sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" | ||||
|   rm -f "$depfile" | ||||
|   echo "$object : \\" > "$depfile" | ||||
|   sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::	\1 \\:p' >> "$depfile" | ||||
|   echo "	" >> "$depfile" | ||||
|   sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" | ||||
|   echo "$tab" >> "$depfile" | ||||
|   sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" | ||||
|   rm -f "$tmpdepfile" | ||||
|   ;; | ||||
|  | ||||
							
								
								
									
										35
									
								
								install-sh
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								install-sh
									
									
									
									
									
								
							| @ -1,7 +1,7 @@ | ||||
| #!/bin/sh | ||||
| # install - install a program, script, or datafile | ||||
| 
 | ||||
| scriptversion=2009-04-28.21; # UTC | ||||
| scriptversion=2011-11-20.07; # UTC | ||||
| 
 | ||||
| # This originates from X11R5 (mit/util/scripts/install.sh), which was | ||||
| # later released in X11R6 (xc/config/util/install.sh) with the | ||||
| @ -35,7 +35,7 @@ scriptversion=2009-04-28.21; # UTC | ||||
| # FSF changes to this file are in the public domain. | ||||
| # | ||||
| # Calling this script install-sh is preferred over install.sh, to prevent | ||||
| # `make' implicit rules from creating a file called install from it | ||||
| # 'make' implicit rules from creating a file called install from it | ||||
| # when there is no Makefile. | ||||
| # | ||||
| # This script is compatible with the BSD install script, but was written | ||||
| @ -156,6 +156,10 @@ while test $# -ne 0; do | ||||
|     -s) stripcmd=$stripprog;; | ||||
| 
 | ||||
|     -t) dst_arg=$2 | ||||
| 	# Protect names problematic for 'test' and other utilities. | ||||
| 	case $dst_arg in | ||||
| 	  -* | [=\(\)!]) dst_arg=./$dst_arg;; | ||||
| 	esac | ||||
| 	shift;; | ||||
| 
 | ||||
|     -T) no_target_directory=true;; | ||||
| @ -186,6 +190,10 @@ if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then | ||||
|     fi | ||||
|     shift # arg | ||||
|     dst_arg=$arg | ||||
|     # Protect names problematic for 'test' and other utilities. | ||||
|     case $dst_arg in | ||||
|       -* | [=\(\)!]) dst_arg=./$dst_arg;; | ||||
|     esac | ||||
|   done | ||||
| fi | ||||
| 
 | ||||
| @ -194,13 +202,17 @@ if test $# -eq 0; then | ||||
|     echo "$0: no input file specified." >&2 | ||||
|     exit 1 | ||||
|   fi | ||||
|   # It's OK to call `install-sh -d' without argument. | ||||
|   # It's OK to call 'install-sh -d' without argument. | ||||
|   # This can happen when creating conditional directories. | ||||
|   exit 0 | ||||
| fi | ||||
| 
 | ||||
| if test -z "$dir_arg"; then | ||||
|   trap '(exit $?); exit' 1 2 13 15 | ||||
|   do_exit='(exit $ret); exit $ret' | ||||
|   trap "ret=129; $do_exit" 1 | ||||
|   trap "ret=130; $do_exit" 2 | ||||
|   trap "ret=141; $do_exit" 13 | ||||
|   trap "ret=143; $do_exit" 15 | ||||
| 
 | ||||
|   # Set umask so as not to create temps with too-generous modes. | ||||
|   # However, 'strip' requires both read and write access to temps. | ||||
| @ -228,9 +240,9 @@ fi | ||||
| 
 | ||||
| for src | ||||
| do | ||||
|   # Protect names starting with `-'. | ||||
|   # Protect names problematic for 'test' and other utilities. | ||||
|   case $src in | ||||
|     -*) src=./$src;; | ||||
|     -* | [=\(\)!]) src=./$src;; | ||||
|   esac | ||||
| 
 | ||||
|   if test -n "$dir_arg"; then | ||||
| @ -252,12 +264,7 @@ do | ||||
|       echo "$0: no destination specified." >&2 | ||||
|       exit 1 | ||||
|     fi | ||||
| 
 | ||||
|     dst=$dst_arg | ||||
|     # Protect names starting with `-'. | ||||
|     case $dst in | ||||
|       -*) dst=./$dst;; | ||||
|     esac | ||||
| 
 | ||||
|     # If destination is a directory, append the input filename; won't work | ||||
|     # if double slashes aren't ignored. | ||||
| @ -347,7 +354,7 @@ do | ||||
| 	      if test -z "$dir_arg" || { | ||||
| 		   # Check for POSIX incompatibilities with -m. | ||||
| 		   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | ||||
| 		   # other-writeable bit of parent directory when it shouldn't. | ||||
| 		   # other-writable bit of parent directory when it shouldn't. | ||||
| 		   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | ||||
| 		   ls_ld_tmpdir=`ls -ld "$tmpdir"` | ||||
| 		   case $ls_ld_tmpdir in | ||||
| @ -385,7 +392,7 @@ do | ||||
| 
 | ||||
|       case $dstdir in | ||||
| 	/*) prefix='/';; | ||||
| 	-*) prefix='./';; | ||||
| 	[-=\(\)!]*) prefix='./';; | ||||
| 	*)  prefix='';; | ||||
|       esac | ||||
| 
 | ||||
| @ -403,7 +410,7 @@ do | ||||
| 
 | ||||
|       for d | ||||
|       do | ||||
| 	test -z "$d" && continue | ||||
| 	test X"$d" = X && continue | ||||
| 
 | ||||
| 	prefix=$prefix$d | ||||
| 	if test -d "$prefix"; then | ||||
|  | ||||
| @ -1,9 +1,9 @@ | ||||
| libpng.txt - A description on how to use and modify libpng | ||||
| 
 | ||||
|  libpng version 1.0.60 - July 10, 2012 | ||||
|  libpng version 1.0.61 - February 6, 2014 | ||||
|  Updated and distributed by Glenn Randers-Pehrson | ||||
|  <glennrp at users.sourceforge.net> | ||||
|  Copyright (c) 1998-2009 Glenn Randers-Pehrson | ||||
|  Copyright (c) 1998-2014 Glenn Randers-Pehrson | ||||
| 
 | ||||
|  This document is released under the libpng license. | ||||
|  For conditions of distribution and use, see the disclaimer | ||||
| @ -11,9 +11,9 @@ libpng.txt - A description on how to use and modify libpng | ||||
| 
 | ||||
|  Based on: | ||||
| 
 | ||||
|  libpng versions 0.97, January 1998, through 1.0.60 - July 10, 2012 | ||||
|  libpng versions 0.97, January 1998, through 1.0.61 - February 6, 2014 | ||||
|  Updated and distributed by Glenn Randers-Pehrson | ||||
|  Copyright (c) 1998-2009 Glenn Randers-Pehrson | ||||
|  Copyright (c) 1998-2014 Glenn Randers-Pehrson | ||||
| 
 | ||||
|  libpng 1.0 beta 6  version 0.96 May 28, 1997 | ||||
|  Updated and distributed by Andreas Dilger | ||||
| @ -878,7 +878,7 @@ things. | ||||
| As of libpng version 1.2.9, png_set_expand_gray_1_2_4_to_8() was | ||||
| added.  It expands the sample depth without changing tRNS to alpha. | ||||
| 
 | ||||
| As of libpng version 1.0.60, not all possible expansions are supported. | ||||
| As of libpng version 1.0.61, not all possible expansions are supported. | ||||
| 
 | ||||
| In the following table, the 01 means grayscale with depth<8, 31 means | ||||
| indexed with depth<8, other numerals represent the color type, "T" means | ||||
| @ -2840,7 +2840,7 @@ the message, "message" is the formatted string to be printed, | ||||
| and p1 and p2 are parameters that are to be embedded in the string | ||||
| according to printf-style formatting directives.  For example, | ||||
| 
 | ||||
|    png_debug1(2, "foo=%d\n", foo); | ||||
|    png_debug1(2, "foo=%d", foo); | ||||
| 
 | ||||
| is expanded to | ||||
| 
 | ||||
| @ -2918,6 +2918,9 @@ png_set_error_fn(), which is essentially the same function, but with a new | ||||
| name to force compilation errors with applications that try to use the old | ||||
| method. | ||||
| 
 | ||||
| Support for the sCAL, iCCP, iTXt, and sPLT chunks was added at libpng-1.0.6; | ||||
| however, iTXt support was not enabled by default. | ||||
| 
 | ||||
| Starting with version 1.0.7, you can find out which version of the library | ||||
| you are using at run-time: | ||||
| 
 | ||||
| @ -2954,11 +2957,11 @@ control.  The git repository was built from old libpng-x.y.z.tar.gz files | ||||
| going back to version 0.70.  You can access the git repository (read only) | ||||
| at | ||||
| 
 | ||||
|     git://libpng.git.sourceforge.net/gitroot/libpng | ||||
|     git://git.code.sf.net/p/libpng/code | ||||
| 
 | ||||
| or you can browse it via "gitweb" at | ||||
| or you can browse it with a web browser by selecting the "code" button at | ||||
| 
 | ||||
|     http://libpng.git.sourceforge.net/git/gitweb.cgi?p=libpng | ||||
|     https://sourceforge.net/projects/libpng/ | ||||
| 
 | ||||
| Patches can be sent to glennrp at users.sourceforge.net or to | ||||
| png-mng-implement at lists.sourceforge.net or you can upload them to | ||||
| @ -3076,13 +3079,13 @@ Other rules can be inferred by inspecting the libpng source. | ||||
| 
 | ||||
| XIII. Y2K Compliance in libpng | ||||
| 
 | ||||
| July 10, 2012 | ||||
| February 6, 2014 | ||||
| 
 | ||||
| Since the PNG Development group is an ad-hoc body, we can't make | ||||
| an official declaration. | ||||
| 
 | ||||
| This is your unofficial assurance that libpng from version 0.71 and | ||||
| upward through 1.0.60 are Y2K compliant.  It is my belief that earlier | ||||
| upward through 1.0.61 are Y2K compliant.  It is my belief that earlier | ||||
| versions were also Y2K compliant. | ||||
| 
 | ||||
| Libpng only has three year fields.  One is a 2-byte unsigned integer that | ||||
							
								
								
									
										496
									
								
								libpng.3
									
									
									
									
									
								
							
							
						
						
									
										496
									
								
								libpng.3
									
									
									
									
									
								
							| @ -1,815 +1,404 @@ | ||||
| .TH LIBPNG 3 "July 10, 2012" | ||||
| .TH LIBPNG 3 "February 6, 2014" | ||||
| .SH NAME | ||||
| libpng \- Portable Network Graphics (PNG) Reference Library 1.0.60 | ||||
| libpng \- Portable Network Graphics (PNG) Reference Library 1.0.61 | ||||
| .SH SYNOPSIS | ||||
| \fI\fB | ||||
| 
 | ||||
| \fB#include <png.h>\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| \fB | ||||
| #include <png.h>\fP | ||||
| 
 | ||||
| \fBpng_uint_32 png_access_version_number \fI(void\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBint png_check_sig (png_bytep \fP\fIsig\fP\fB, int \fInum\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_chunk_error (png_structp \fP\fIpng_ptr\fP\fB, png_const_charp \fIerror\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_chunk_warning (png_structp \fP\fIpng_ptr\fP\fB, png_const_charp \fImessage\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_convert_from_struct_tm (png_timep \fP\fIptime\fP\fB, struct tm FAR * \fIttime\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_convert_from_time_t (png_timep \fP\fIptime\fP\fB, time_t \fIttime\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_charp png_convert_to_rfc1123 (png_structp \fP\fIpng_ptr\fP\fB, png_timep \fIptime\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_infop png_create_info_struct (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_structp png_create_read_struct (png_const_charp \fP\fIuser_png_ver\fP\fB, png_voidp \fP\fIerror_ptr\fP\fB, png_error_ptr \fP\fIerror_fn\fP\fB, png_error_ptr \fIwarn_fn\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_structp png_create_read_struct_2(png_const_charp \fP\fIuser_png_ver\fP\fB, png_voidp \fP\fIerror_ptr\fP\fB, png_error_ptr \fP\fIerror_fn\fP\fB, png_error_ptr \fP\fIwarn_fn\fP\fB, png_voidp \fP\fImem_ptr\fP\fB, png_malloc_ptr \fP\fImalloc_fn\fP\fB, png_free_ptr \fIfree_fn\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_structp png_create_write_struct (png_const_charp \fP\fIuser_png_ver\fP\fB, png_voidp \fP\fIerror_ptr\fP\fB, png_error_ptr \fP\fIerror_fn\fP\fB, png_error_ptr \fIwarn_fn\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_structp png_create_write_struct_2(png_const_charp \fP\fIuser_png_ver\fP\fB, png_voidp \fP\fIerror_ptr\fP\fB, png_error_ptr \fP\fIerror_fn\fP\fB, png_error_ptr \fP\fIwarn_fn\fP\fB, png_voidp \fP\fImem_ptr\fP\fB, png_malloc_ptr \fP\fImalloc_fn\fP\fB, png_free_ptr \fIfree_fn\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBint png_debug(int \fP\fIlevel\fP\fB, png_const_charp \fImessage\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBint png_debug1(int \fP\fIlevel\fP\fB, png_const_charp \fP\fImessage\fP\fB, \fIp1\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBint png_debug2(int \fP\fIlevel\fP\fB, png_const_charp \fP\fImessage\fP\fB, \fP\fIp1\fP\fB, \fIp2\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_destroy_info_struct (png_structp \fP\fIpng_ptr\fP\fB, png_infopp \fIinfo_ptr_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_destroy_read_struct (png_structpp \fP\fIpng_ptr_ptr\fP\fB, png_infopp \fP\fIinfo_ptr_ptr\fP\fB, png_infopp \fIend_info_ptr_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_destroy_write_struct (png_structpp \fP\fIpng_ptr_ptr\fP\fB, png_infopp \fIinfo_ptr_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_error (png_structp \fP\fIpng_ptr\fP\fB, png_const_charp \fIerror\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_free (png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fIptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_free_chunk_list (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_free_default(png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fIptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_free_data (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fInum\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_byte png_get_bit_depth (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_bKGD (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_color_16p \fI*background\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_byte png_get_channels (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_cHRM (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, double \fP\fI*white_x\fP\fB, double \fP\fI*white_y\fP\fB, double \fP\fI*red_x\fP\fB, double \fP\fI*red_y\fP\fB, double \fP\fI*green_x\fP\fB, double \fP\fI*green_y\fP\fB, double \fP\fI*blue_x\fP\fB, double \fI*blue_y\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_cHRM_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fI*white_x\fP\fB, png_uint_32 \fP\fI*white_y\fP\fB, png_uint_32 \fP\fI*red_x\fP\fB, png_uint_32 \fP\fI*red_y\fP\fB, png_uint_32 \fP\fI*green_x\fP\fB, png_uint_32 \fP\fI*green_y\fP\fB, png_uint_32 \fP\fI*blue_x\fP\fB, png_uint_32 \fI*blue_y\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_byte png_get_color_type (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_byte png_get_compression_type (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_byte png_get_copyright (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_voidp png_get_error_ptr (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_byte png_get_filter_type (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_gAMA (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, double \fI*file_gamma\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_gAMA_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fI*int_file_gamma\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_byte png_get_header_ver (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_byte png_get_header_version (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_hIST (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_16p \fI*hist\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_iCCP (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_charpp \fP\fIname\fP\fB, int \fP\fI*compression_type\fP\fB, png_charpp \fP\fIprofile\fP\fB, png_uint_32 \fI*proflen\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_IHDR (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fI*width\fP\fB, png_uint_32 \fP\fI*height\fP\fB, int \fP\fI*bit_depth\fP\fB, int \fP\fI*color_type\fP\fB, int \fP\fI*interlace_type\fP\fB, int \fP\fI*compression_type\fP\fB, int \fI*filter_type\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_image_height (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_image_width (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fB#if \fI!defined(PNG_1_0_X) | ||||
| 
 | ||||
| \fBpng_int_32 png_get_int_32 (png_bytep \fIbuf\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB#endif | ||||
| 
 | ||||
| \fI\fB | ||||
| \fB#if !defined(PNG_1_0_X) png_int_32 png_get_int_32 (png_bytep buf); \fI#endif | ||||
| 
 | ||||
| \fBpng_byte png_get_interlace_type (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_voidp png_get_io_ptr (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_byte png_get_libpng_ver (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_voidp png_get_mem_ptr(png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_oFFs (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fI*offset_x\fP\fB, png_uint_32 \fP\fI*offset_y\fP\fB, int \fI*unit_type\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_pCAL (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_charp \fP\fI*purpose\fP\fB, png_int_32 \fP\fI*X0\fP\fB, png_int_32 \fP\fI*X1\fP\fB, int \fP\fI*type\fP\fB, int \fP\fI*nparams\fP\fB, png_charp \fP\fI*units\fP\fB, png_charpp \fI*params\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_pHYs (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fI*res_x\fP\fB, png_uint_32 \fP\fI*res_y\fP\fB, int \fI*unit_type\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBfloat png_get_pixel_aspect_ratio (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_pixels_per_meter (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_voidp png_get_progressive_ptr (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_PLTE (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_colorp \fP\fI*palette\fP\fB, int \fI*num_palette\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_byte png_get_rgb_to_gray_status (png_structp \fIpng_ptr) | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_rowbytes (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| \fBpng_byte png_get_rgb_to_gray_status (png_structp png_ptr) png_uint_32 png_get_rowbytes (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fBpng_bytepp png_get_rows (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_sBIT (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_color_8p \fI*sig_bit\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_bytep png_get_signature (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_sPLT (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_spalette_p \fI*splt_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_sRGB (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fI*intent\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_text (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_textp \fP\fI*text_ptr\fP\fB, int \fI*num_text\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_tIME (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_timep \fI*mod_time\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_tRNS (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_bytep \fP\fI*trans\fP\fB, int \fP\fI*num_trans\fP\fB, png_color_16p \fI*trans_values\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fB#if \fI!defined(PNG_1_0_X) | ||||
| 
 | ||||
| \fBpng_uint_16 png_get_uint_16 (png_bytep \fIbuf\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| \fB#if !defined(PNG_1_0_X) png_uint_16 png_get_uint_16 (png_bytep \fIbuf\fP\fB);\fP | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_uint_31 (png_bytep \fIbuf\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_uint_32 (png_bytep \fIbuf\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB#endif | ||||
| 
 | ||||
| \fI\fB | ||||
| \fBpng_uint_32 png_get_uint_32 (png_bytep buf); \fI#endif | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_unknown_chunks (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_unknown_chunkpp \fIunknowns\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_voidp png_get_user_chunk_ptr (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_user_height_max( png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_voidp png_get_user_transform_ptr (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_user_width_max (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_valid (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIflag\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_int_32 png_get_x_offset_microns (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_int_32 png_get_x_offset_pixels (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_x_pixels_per_meter (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_int_32 png_get_y_offset_microns (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_int_32 png_get_y_offset_pixels (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_y_pixels_per_meter (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_get_compression_buffer_size (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBint png_handle_as_unknown (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fIchunk_name\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_init_io (png_structp \fP\fIpng_ptr\fP\fB, FILE \fI*fp\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| \fBDEPRECATED void png_info_init (png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fBDEPRECATED: void png_info_init (png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBDEPRECATED: void png_info_init_2 (png_infopp \fP\fIptr_ptr\fP\fB, png_size_t \fIpng_info_struct_size\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| \fBDEPRECATED void png_info_init_2 (png_infopp \fP\fIptr_ptr\fP\fB, png_size_t \fIpng_info_struct_size\fP\fB);\fP | ||||
| 
 | ||||
| \fBpng_voidp png_malloc (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fIsize\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_voidp png_malloc_default(png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fIsize\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoidp png_memcpy (png_voidp \fP\fIs1\fP\fB, png_voidp \fP\fIs2\fP\fB, png_size_t \fIsize\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_voidp png_memcpy_check (png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fP\fIs1\fP\fB, png_voidp \fP\fIs2\fP\fB, png_uint_32 \fIsize\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoidp png_memset (png_voidp \fP\fIs1\fP\fB, int \fP\fIvalue\fP\fB, png_size_t \fIsize\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_voidp png_memset_check (png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fP\fIs1\fP\fB, int \fP\fIvalue\fP\fB, png_uint_32 \fIsize\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBDEPRECATED: void png_permit_empty_plte (png_structp \fP\fIpng_ptr\fP\fB, int \fIempty_plte_permitted\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| \fBDEPRECATED void png_permit_empty_plte (png_structp \fP\fIpng_ptr\fP\fB, int \fIempty_plte_permitted\fP\fB);\fP | ||||
| 
 | ||||
| \fBvoid png_process_data (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_bytep \fP\fIbuffer\fP\fB, png_size_t \fIbuffer_size\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_progressive_combine_row (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIold_row\fP\fB, png_bytep \fInew_row\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_read_destroy (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_infop \fIend_info_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_read_end (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_read_image (png_structp \fP\fIpng_ptr\fP\fB, png_bytepp \fIimage\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| \fBDEPRECATED void png_read_init (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fBDEPRECATED: void png_read_init (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBDEPRECATED: void png_read_init_2 (png_structpp \fP\fIptr_ptr\fP\fB, png_const_charp \fP\fIuser_png_ver\fP\fB, png_size_t \fP\fIpng_struct_size\fP\fB, png_size_t \fIpng_info_size\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| \fBDEPRECATED void png_read_init_2 (png_structpp \fP\fIptr_ptr\fP\fB, png_const_charp \fP\fIuser_png_ver\fP\fB, png_size_t \fP\fIpng_struct_size\fP\fB, png_size_t \fIpng_info_size\fP\fB);\fP | ||||
| 
 | ||||
| \fBvoid png_read_info (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_read_png (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fP\fItransforms\fP\fB, png_voidp \fIparams\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_read_row (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIrow\fP\fB, png_bytep \fIdisplay_row\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_read_rows (png_structp \fP\fIpng_ptr\fP\fB, png_bytepp \fP\fIrow\fP\fB, png_bytepp \fP\fIdisplay_row\fP\fB, png_uint_32 \fInum_rows\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_read_update_info (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fB#if \fI!defined(PNG_1_0_X) | ||||
| 
 | ||||
| \fBpng_save_int_32 (png_bytep \fP\fIbuf\fP\fB, png_int_32 \fIi\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| \fB#if !defined(PNG_1_0_X) png_save_int_32 (png_bytep \fP\fIbuf\fP\fB, png_int_32 \fIi\fP\fB);\fP | ||||
| 
 | ||||
| \fBvoid png_save_uint_16 (png_bytep \fP\fIbuf\fP\fB, unsigned int \fIi\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_save_uint_32 (png_bytep \fP\fIbuf\fP\fB, png_uint_32 \fIi\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_add_alpha (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fP\fIfiller\fP\fB, int \fIflags\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB#endif | ||||
| 
 | ||||
| \fI\fB | ||||
| \fBvoid png_set_add_alpha (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fP\fIfiller\fP\fB, int flags); \fI#endif | ||||
| 
 | ||||
| \fBvoid png_set_background (png_structp \fP\fIpng_ptr\fP\fB, png_color_16p \fP\fIbackground_color\fP\fB, int \fP\fIbackground_gamma_code\fP\fB, int \fP\fIneed_expand\fP\fB, double \fIbackground_gamma\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_bgr (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_bKGD (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_color_16p \fIbackground\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_cHRM (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, double \fP\fIwhite_x\fP\fB, double \fP\fIwhite_y\fP\fB, double \fP\fIred_x\fP\fB, double \fP\fIred_y\fP\fB, double \fP\fIgreen_x\fP\fB, double \fP\fIgreen_y\fP\fB, double \fP\fIblue_x\fP\fB, double \fIblue_y\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_cHRM_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fIwhite_x\fP\fB, png_uint_32 \fP\fIwhite_y\fP\fB, png_uint_32 \fP\fIred_x\fP\fB, png_uint_32 \fP\fIred_y\fP\fB, png_uint_32 \fP\fIgreen_x\fP\fB, png_uint_32 \fP\fIgreen_y\fP\fB, png_uint_32 \fP\fIblue_x\fP\fB, png_uint_32 \fIblue_y\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_compression_level (png_structp \fP\fIpng_ptr\fP\fB, int \fIlevel\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_compression_mem_level (png_structp \fP\fIpng_ptr\fP\fB, int \fImem_level\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_compression_method (png_structp \fP\fIpng_ptr\fP\fB, int \fImethod\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_compression_strategy (png_structp \fP\fIpng_ptr\fP\fB, int \fIstrategy\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_compression_window_bits (png_structp \fP\fIpng_ptr\fP\fB, int \fIwindow_bits\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_crc_action (png_structp \fP\fIpng_ptr\fP\fB, int \fP\fIcrit_action\fP\fB, int \fIancil_action\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_dither (png_structp \fP\fIpng_ptr\fP\fB, png_colorp \fP\fIpalette\fP\fB, int \fP\fInum_palette\fP\fB, int \fP\fImaximum_colors\fP\fB, png_uint_16p \fP\fIhistogram\fP\fB, int \fIfull_dither\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_error_fn (png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fP\fIerror_ptr\fP\fB, png_error_ptr \fP\fIerror_fn\fP\fB, png_error_ptr \fIwarning_fn\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_expand (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_expand_gray_1_2_4_to_8(png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_filler (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fP\fIfiller\fP\fB, int \fIflags\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_filter (png_structp \fP\fIpng_ptr\fP\fB, int \fP\fImethod\fP\fB, int \fIfilters\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_filter_heuristics (png_structp \fP\fIpng_ptr\fP\fB, int \fP\fIheuristic_method\fP\fB, int \fP\fInum_weights\fP\fB, png_doublep \fP\fIfilter_weights\fP\fB, png_doublep \fIfilter_costs\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_flush (png_structp \fP\fIpng_ptr\fP\fB, int \fInrows\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_gamma (png_structp \fP\fIpng_ptr\fP\fB, double \fP\fIscreen_gamma\fP\fB, double \fIdefault_file_gamma\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_gAMA (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, double \fIfile_gamma\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_gAMA_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIfile_gamma\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_gray_1_2_4_to_8(png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_gray_to_rgb (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_hIST (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_16p \fIhist\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_iCCP (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_charp \fP\fIname\fP\fB, int \fP\fIcompression_type\fP\fB, png_charp \fP\fIprofile\fP\fB, png_uint_32 \fIproflen\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBint png_set_interlace_handling (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_invalid (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fImask\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_invert_alpha (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_invert_mono (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_IHDR (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fIwidth\fP\fB, png_uint_32 \fP\fIheight\fP\fB, int \fP\fIbit_depth\fP\fB, int \fP\fIcolor_type\fP\fB, int \fP\fIinterlace_type\fP\fB, int \fP\fIcompression_type\fP\fB, int \fIfilter_type\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_keep_unknown_chunks (png_structp \fP\fIpng_ptr\fP\fB, int \fP\fIkeep\fP\fB, png_bytep \fP\fIchunk_list\fP\fB, int \fInum_chunks\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_mem_fn(png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fP\fImem_ptr\fP\fB, png_malloc_ptr \fP\fImalloc_fn\fP\fB, png_free_ptr \fIfree_fn\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_oFFs (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fIoffset_x\fP\fB, png_uint_32 \fP\fIoffset_y\fP\fB, int \fIunit_type\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_packing (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_packswap (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_palette_to_rgb(png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_pCAL (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_charp \fP\fIpurpose\fP\fB, png_int_32 \fP\fIX0\fP\fB, png_int_32 \fP\fIX1\fP\fB, int \fP\fItype\fP\fB, int \fP\fInparams\fP\fB, png_charp \fP\fIunits\fP\fB, png_charpp \fIparams\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_pHYs (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fIres_x\fP\fB, png_uint_32 \fP\fIres_y\fP\fB, int \fIunit_type\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_progressive_read_fn (png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fP\fIprogressive_ptr\fP\fB, png_progressive_info_ptr \fP\fIinfo_fn\fP\fB, png_progressive_row_ptr \fP\fIrow_fn\fP\fB, png_progressive_end_ptr \fIend_fn\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_PLTE (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_colorp \fP\fIpalette\fP\fB, int \fInum_palette\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_read_fn (png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fP\fIio_ptr\fP\fB, png_rw_ptr \fIread_data_fn\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_read_status_fn (png_structp \fP\fIpng_ptr\fP\fB, png_read_status_ptr \fIread_row_fn\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_read_user_transform_fn (png_structp \fP\fIpng_ptr\fP\fB, png_user_transform_ptr \fIread_user_transform_fn\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_rgb_to_gray (png_structp \fP\fIpng_ptr\fP\fB, int \fP\fIerror_action\fP\fB, double \fP\fIred\fP\fB, double \fIgreen\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_rgb_to_gray_fixed (png_structp \fP\fIpng_ptr\fP\fB, int error_action png_fixed_point \fP\fIred\fP\fB, png_fixed_point \fIgreen\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_rows (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_bytepp \fIrow_pointers\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_sBIT (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_color_8p \fIsig_bit\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_sCAL (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_charp \fP\fIunit\fP\fB, double \fP\fIwidth\fP\fB, double \fIheight\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_shift (png_structp \fP\fIpng_ptr\fP\fB, png_color_8p \fItrue_bits\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_sig_bytes (png_structp \fP\fIpng_ptr\fP\fB, int \fInum_bytes\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_sPLT (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_spalette_p \fP\fIsplt_ptr\fP\fB, int \fInum_spalettes\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_sRGB (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fIintent\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_sRGB_gAMA_and_cHRM (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fIintent\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_strip_16 (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_strip_alpha (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_swap (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_swap_alpha (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_text (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_textp \fP\fItext_ptr\fP\fB, int \fInum_text\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_tIME (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_timep \fImod_time\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_tRNS (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_bytep \fP\fItrans\fP\fB, int \fP\fInum_trans\fP\fB, png_color_16p \fItrans_values\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_tRNS_to_alpha(png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_set_unknown_chunks (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_unknown_chunkp \fP\fIunknowns\fP\fB, int \fP\fInum\fP\fB, int \fIlocation\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_unknown_chunk_location(png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fP\fIchunk\fP\fB, int \fIlocation\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_read_user_chunk_fn (png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fP\fIuser_chunk_ptr\fP\fB, png_user_chunk_ptr \fIread_user_chunk_fn\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_user_limits (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fP\fIuser_width_max\fP\fB, png_uint_32 \fIuser_height_max\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_user_transform_info (png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fP\fIuser_transform_ptr\fP\fB, int \fP\fIuser_transform_depth\fP\fB, int \fIuser_transform_channels\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_write_fn (png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fP\fIio_ptr\fP\fB, png_rw_ptr \fP\fIwrite_data_fn\fP\fB, png_flush_ptr \fIoutput_flush_fn\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_write_status_fn (png_structp \fP\fIpng_ptr\fP\fB, png_write_status_ptr \fIwrite_row_fn\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_write_user_transform_fn (png_structp \fP\fIpng_ptr\fP\fB, png_user_transform_ptr \fIwrite_user_transform_fn\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_set_compression_buffer_size(png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fIsize\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBint png_sig_cmp (png_bytep \fP\fIsig\fP\fB, png_size_t \fP\fIstart\fP\fB, png_size_t \fInum_to_check\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_start_read_image (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_warning (png_structp \fP\fIpng_ptr\fP\fB, png_const_charp \fImessage\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_chunk (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIchunk_name\fP\fB, png_bytep \fP\fIdata\fP\fB, png_size_t \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_chunk_data (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIdata\fP\fB, png_size_t \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_chunk_end (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_chunk_start (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIchunk_name\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_destroy (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_end (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_flush (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_image (png_structp \fP\fIpng_ptr\fP\fB, png_bytepp \fIimage\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| \fBDEPRECATED void png_write_init (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fBDEPRECATED: void png_write_init (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBDEPRECATED: void png_write_init_2 (png_structpp \fP\fIptr_ptr\fP\fB, png_const_charp \fP\fIuser_png_ver\fP\fB, png_size_t \fP\fIpng_struct_size\fP\fB, png_size_t \fIpng_info_size\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| \fBDEPRECATED void png_write_init_2 (png_structpp \fP\fIptr_ptr\fP\fB, png_const_charp \fP\fIuser_png_ver\fP\fB, png_size_t \fP\fIpng_struct_size\fP\fB, png_size_t \fIpng_info_size\fP\fB);\fP | ||||
| 
 | ||||
| \fBvoid png_write_info (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_info_before_PLTE (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_png (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fP\fItransforms\fP\fB, png_voidp \fIparams\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_row (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fIrow\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_rows (png_structp \fP\fIpng_ptr\fP\fB, png_bytepp \fP\fIrow\fP\fB, png_uint_32 \fInum_rows\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoidpf png_zalloc (voidpf \fP\fIpng_ptr\fP\fB, uInt \fP\fIitems\fP\fB, uInt \fIsize\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_zfree (voidpf \fP\fIpng_ptr\fP\fB, voidpf \fIptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| .SH DESCRIPTION | ||||
| The | ||||
| .I libpng | ||||
| @ -821,10 +410,10 @@ Following is a copy of the libpng.txt file that accompanies libpng. | ||||
| .SH LIBPNG.TXT | ||||
| libpng.txt - A description on how to use and modify libpng | ||||
| 
 | ||||
|  libpng version 1.0.60 - July 10, 2012 | ||||
|  libpng version 1.0.61 - February 6, 2014 | ||||
|  Updated and distributed by Glenn Randers-Pehrson | ||||
|  <glennrp at users.sourceforge.net> | ||||
|  Copyright (c) 1998-2009 Glenn Randers-Pehrson | ||||
|  Copyright (c) 1998-2014 Glenn Randers-Pehrson | ||||
| 
 | ||||
|  This document is released under the libpng license. | ||||
|  For conditions of distribution and use, see the disclaimer | ||||
| @ -832,9 +421,9 @@ libpng.txt - A description on how to use and modify libpng | ||||
| 
 | ||||
|  Based on: | ||||
| 
 | ||||
|  libpng versions 0.97, January 1998, through 1.0.60 - July 10, 2012 | ||||
|  libpng versions 0.97, January 1998, through 1.0.61 - February 6, 2014 | ||||
|  Updated and distributed by Glenn Randers-Pehrson | ||||
|  Copyright (c) 1998-2009 Glenn Randers-Pehrson | ||||
|  Copyright (c) 1998-2014 Glenn Randers-Pehrson | ||||
| 
 | ||||
|  libpng 1.0 beta 6  version 0.96 May 28, 1997 | ||||
|  Updated and distributed by Andreas Dilger | ||||
| @ -1104,7 +693,7 @@ input stream. You must supply the function | ||||
|           unknown chunk structure, process it, and return one | ||||
|           of the following: */ | ||||
| 
 | ||||
|        return (-n); /* chunk had an error */ | ||||
|        return (\-n); /* chunk had an error */ | ||||
|        return (0); /* did not recognize */ | ||||
|        return (n); /* success */ | ||||
|     } | ||||
| @ -1212,7 +801,7 @@ callback function: | ||||
| .SS User limits | ||||
| 
 | ||||
| The PNG specification allows the width and height of an image to be as | ||||
| large as 2^31-1 (0x7fffffff), or about 2.147 billion rows and columns. | ||||
| large as 2^(31\-1 (0x7fffffff), or about 2.147 billion rows and columns. | ||||
| Since very few applications really need to process such large images, | ||||
| we have imposed an arbitrary 1-million limit on rows and columns. | ||||
| Larger images will be rejected immediately with a png_error() call. If | ||||
| @ -1699,7 +1288,7 @@ things. | ||||
| As of libpng version 1.2.9, png_set_expand_gray_1_2_4_to_8() was | ||||
| added.  It expands the sample depth without changing tRNS to alpha. | ||||
| 
 | ||||
| As of libpng version 1.0.60, not all possible expansions are supported. | ||||
| As of libpng version 1.0.61, not all possible expansions are supported. | ||||
| 
 | ||||
| In the following table, the 01 means grayscale with depth<8, 31 means | ||||
| indexed with depth<8, other numerals represent the color type, "T" means | ||||
| @ -2215,13 +1804,13 @@ point to libpng-allocated storage with the following function: | ||||
|              PNG_FREE_TEXT, PNG_FREE_UNKN, | ||||
|            or simply PNG_FREE_ALL | ||||
|     seq  - sequence number of item to be freed | ||||
|            (-1 for all items) | ||||
|            (\-1 for all items) | ||||
| 
 | ||||
| This function may be safely called when the relevant storage has | ||||
| already been freed, or has not yet been allocated, or was allocated | ||||
| by the user and not by libpng,  and will in those cases do nothing. | ||||
| The "seq" parameter is ignored if only one item of the selected data | ||||
| type, such as PLTE, is allowed.  If "seq" is not -1, and multiple items | ||||
| type, such as PLTE, is allowed.  If "seq" is not \-1, and multiple items | ||||
| are allowed for the data type identified in the mask, such as text or | ||||
| sPLT, only the n'th item in the structure is freed, where n is "seq". | ||||
| 
 | ||||
| @ -3239,13 +2828,13 @@ point to libpng-allocated storage with the following function: | ||||
|               PNG_FREE_TEXT, PNG_FREE_UNKN, | ||||
|             or simply PNG_FREE_ALL | ||||
|     seq   - sequence number of item to be freed | ||||
|             (-1 for all items) | ||||
|             (\-1 for all items) | ||||
| 
 | ||||
| This function may be safely called when the relevant storage has | ||||
| already been freed, or has not yet been allocated, or was allocated | ||||
| by the user  and not by libpng,  and will in those cases do nothing. | ||||
| The "seq" parameter is ignored if only one item of the selected data | ||||
| type, such as PLTE, is allowed.  If "seq" is not -1, and multiple items | ||||
| type, such as PLTE, is allowed.  If "seq" is not \-1, and multiple items | ||||
| are allowed for the data type identified in the mask, such as text or | ||||
| sPLT, only the n'th item in the structure is freed, where n is "seq". | ||||
| 
 | ||||
| @ -3661,12 +3250,12 @@ the message, "message" is the formatted string to be printed, | ||||
| and p1 and p2 are parameters that are to be embedded in the string | ||||
| according to printf-style formatting directives.  For example, | ||||
| 
 | ||||
|    png_debug1(2, "foo=%d\n", foo); | ||||
|    png_debug1(2, "foo=%d", foo); | ||||
| 
 | ||||
| is expanded to | ||||
| 
 | ||||
|    if(PNG_DEBUG > 2) | ||||
|      fprintf(PNG_DEBUG_FILE, "foo=%d\n", foo); | ||||
|      fprintf(PNG_DEBUG_FILE, "foo=%d\en", foo); | ||||
| 
 | ||||
| When PNG_DEBUG is defined but is zero, the macros aren't defined, but you | ||||
| can still use PNG_DEBUG to control your own debugging: | ||||
| @ -3739,6 +3328,9 @@ png_set_error_fn(), which is essentially the same function, but with a new | ||||
| name to force compilation errors with applications that try to use the old | ||||
| method. | ||||
| 
 | ||||
| Support for the sCAL, iCCP, iTXt, and sPLT chunks was added at libpng-1.0.6; | ||||
| however, iTXt support was not enabled by default. | ||||
| 
 | ||||
| Starting with version 1.0.7, you can find out which version of the library | ||||
| you are using at run-time: | ||||
| 
 | ||||
| @ -3775,11 +3367,11 @@ control.  The git repository was built from old libpng-x.y.z.tar.gz files | ||||
| going back to version 0.70.  You can access the git repository (read only) | ||||
| at | ||||
| 
 | ||||
|     git://libpng.git.sourceforge.net/gitroot/libpng | ||||
|     git://git.code.sf.net/p/libpng/code | ||||
| 
 | ||||
| or you can browse it via "gitweb" at | ||||
| or you can browse it with a web browser by selecting the "code" button at | ||||
| 
 | ||||
|     http://libpng.git.sourceforge.net/git/gitweb.cgi?p=libpng | ||||
|     https://sourceforge.net/projects/libpng/ | ||||
| 
 | ||||
| Patches can be sent to glennrp at users.sourceforge.net or to | ||||
| png-mng-implement at lists.sourceforge.net or you can upload them to | ||||
| @ -3897,13 +3489,13 @@ Other rules can be inferred by inspecting the libpng source. | ||||
| 
 | ||||
| .SH XIII. Y2K Compliance in libpng | ||||
| 
 | ||||
| July 10, 2012 | ||||
| February 6, 2014 | ||||
| 
 | ||||
| Since the PNG Development group is an ad-hoc body, we can't make | ||||
| an official declaration. | ||||
| 
 | ||||
| This is your unofficial assurance that libpng from version 0.71 and | ||||
| upward through 1.0.60 are Y2K compliant.  It is my belief that earlier | ||||
| upward through 1.0.61 are Y2K compliant.  It is my belief that earlier | ||||
| versions were also Y2K compliant. | ||||
| 
 | ||||
| Libpng only has three year fields.  One is a 2-byte unsigned integer that | ||||
| @ -4224,6 +3816,12 @@ the first widely used release: | ||||
|  1.2.49rc01          13    10249  12.so.0.49[.0] | ||||
|  1.0.59              10    10059  10.so.0.59[.0] | ||||
|  1.2.49              13    10249  12.so.0.49[.0] | ||||
|  1.2.50              13    10250  12.so.0.50[.0] | ||||
|  1.0.60              10    10060  10.so.0.60[.0] | ||||
|  1.2.51beta01-05     13    10251  12.so.0.51[.0] | ||||
|  1.2.51rc01-04       13    10251  12.so.0.51[.0] | ||||
|  1.0.61              10    10061  10.so.0.61[.0] | ||||
|  1.2.51              13    10251  12.so.0.51[.0] | ||||
| 
 | ||||
| Henceforth the source version will match the shared-library minor | ||||
| and patch numbers; the shared-library major version number will be | ||||
| @ -4279,7 +3877,7 @@ possible without all of you. | ||||
| 
 | ||||
| Thanks to Frank J. T. Wojcik for helping with the documentation. | ||||
| 
 | ||||
| Libpng version 1.0.60 - July 10, 2012: | ||||
| Libpng version 1.0.61 - February 6, 2014: | ||||
| Initially created in 1995 by Guy Eric Schalnat, then of Group 42, Inc. | ||||
| Currently maintained by Glenn Randers-Pehrson (glennrp at users.sourceforge.net). | ||||
| 
 | ||||
| @ -4302,7 +3900,7 @@ this sentence. | ||||
| 
 | ||||
| This code is released under the libpng license. | ||||
| 
 | ||||
| libpng versions 1.2.6, August 15, 2004, through 1.0.60, July 10, 2012, are | ||||
| libpng versions 1.2.6, August 15, 2004, through 1.0.61, February 6, 2014, are | ||||
| Copyright (c) 2004,2006-2008 Glenn Randers-Pehrson, and are | ||||
| distributed according to the same disclaimer and license as libpng-1.2.5 | ||||
| with the following individual added to the list of Contributing Authors | ||||
| @ -4401,7 +3999,7 @@ certification mark of the Open Source Initiative. | ||||
| 
 | ||||
| Glenn Randers-Pehrson | ||||
| glennrp at users.sourceforge.net | ||||
| July 10, 2012 | ||||
| February 6, 2014 | ||||
| 
 | ||||
| .\" end of man page | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										530
									
								
								libpngpf.3
									
									
									
									
									
								
							
							
						
						
									
										530
									
								
								libpngpf.3
									
									
									
									
									
								
							| @ -1,798 +1,274 @@ | ||||
| .TH LIBPNGPF 3 "July 10, 2012" | ||||
| .TH LIBPNGPF 3 "February 6, 2014" | ||||
| .SH NAME | ||||
| libpng \- Portable Network Graphics (PNG) Reference Library 1.0.60 | ||||
| libpng \- Portable Network Graphics (PNG) Reference Library 1.0.61 | ||||
| (private functions) | ||||
| .SH SYNOPSIS | ||||
| \fB#include <png.h>\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_64bit_product (long \fP\fIv1\fP\fB, long \fP\fIv2\fP\fB, unsigned long \fI*hi_product, | ||||
| 
 | ||||
| \fBunsigned long \fI*lo_product\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| \fBvoid png_64bit_product (long \fP\fIv1\fP\fB, long \fP\fIv2\fP\fB, unsigned long \fP\fI*hi_product\fP\fB, unsigned long \fI*lo_product\fP\fB);\fP | ||||
| 
 | ||||
| \fBvoid png_build_gamma_table (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_build_grayscale_palette (int \fP\fIbit_depth\fP\fB, png_colorp \fIpalette\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_calculate_crc (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIptr\fP\fB, png_size_t \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBint png_check_cHRM_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_fixed_point \fP\fIint_white_x\fP\fB, png_fixed_point \fP\fIint_white_y\fP\fB, png_fixed_point \fP\fIint_red_x\fP\fB, png_fixed_point \fP\fIint_red_y\fP\fB, png_fixed_point \fP\fIint_green_x\fP\fB, png_fixed_point \fP\fIint_green_y\fP\fB, png_fixed_point \fP\fIint_blue_x\fP\fB, png_fixed_point \fIint_blue_y\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_check_IHDR (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fP\fIwidth\fP\fB, png_uint_32 \fP\fIheight\fP\fB, int \fP\fIbit_depth\fP\fB, int \fP\fIcolor_type\fP\fB, int \fP\fIinterlace_type\fP\fB, int \fP\fIcompression_type\fP\fB, int \fIfilter_type\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_check_chunk_name (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fIchunk_name\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_size_t png_check_keyword (png_structp \fP\fIpng_ptr\fP\fB, png_charp \fP\fIkey\fP\fB, png_charpp \fInew_key\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_combine_row (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIrow\fP\fB, int \fImask\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_correct_palette (png_structp \fP\fIpng_ptr\fP\fB, png_colorp \fP\fIpalette\fP\fB, int \fInum_palette\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBint png_crc_error (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBint png_crc_finish (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fIskip\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_crc_read (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIbuf\fP\fB, png_size_t \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_voidp png_create_struct (int \fItype\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_voidp png_create_struct_2 (int \fP\fItype\fP\fB, png_malloc_ptr \fP\fImalloc_fn\fP\fB, png_voidp \fImem_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_decompress_chunk (png_structp \fP\fIpng_ptr\fP\fB, int \fP\fIcomp_type\fP\fB, png_charp \fP\fIchunkdata\fP\fB, png_size_t \fP\fIchunklength\fP\fB, png_size_t \fP\fIprefix_length\fP\fB, png_size_t \fI*data_length\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_destroy_struct (png_voidp \fIstruct_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_destroy_struct_2 (png_voidp \fP\fIstruct_ptr\fP\fB, png_free_ptr \fP\fIfree_fn\fP\fB, png_voidp \fImem_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_background (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_color_16p \fP\fItrans_values\fP\fB, png_color_16p \fP\fIbackground\fP\fB, png_color_16p \fP\fIbackground_1\fP\fB, png_bytep \fP\fIgamma_table\fP\fB, png_bytep \fP\fIgamma_from_1\fP\fB, png_bytep \fP\fIgamma_to_1\fP\fB, png_uint_16pp \fP\fIgamma_16\fP\fB, png_uint_16pp \fP\fIgamma_16_from_1\fP\fB, png_uint_16pp \fP\fIgamma_16_to_1\fP\fB, int \fIgamma_shift\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_bgr (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_chop (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_dither (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_bytep \fP\fIpalette_lookup\fP\fB, png_bytep \fIdither_lookup\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_expand (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_color_16p \fItrans_value\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_expand_palette (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_colorp \fP\fIpalette\fP\fB, png_bytep \fP\fItrans\fP\fB, int \fInum_trans\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_gamma (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_bytep \fP\fIgamma_table\fP\fB, png_uint_16pp \fP\fIgamma_16_table\fP\fB, int \fIgamma_shift\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_gray_to_rgb (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_invert (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_pack (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_uint_32 \fIbit_depth\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_packswap (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_read_filler (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_uint_32 \fP\fIfiller\fP\fB, png_uint_32 \fIflags\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_read_interlace (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, int \fP\fIpass\fP\fB, png_uint_32 \fItransformations\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_read_invert_alpha (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_read_swap_alpha (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_read_transformations (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBint png_do_rgb_to_gray (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_shift (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_color_8p \fIbit_depth\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_strip_filler (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_uint_32 \fIflags\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_swap (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_unpack (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_unshift (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_color_8p \fIsig_bits\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_write_interlace (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, int \fIpass\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_write_invert_alpha (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_write_swap_alpha (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_do_write_transformations (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid *png_far_to_near (png_structp png_ptr,png_voidp \fP\fIptr\fP\fB, int \fIcheck\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_flush (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_bKGD (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_cHRM (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_gAMA (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_hIST (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_IEND (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_IHDR (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_iCCP (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_iTXt (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_oFFs (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_pCAL (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_pHYs (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_PLTE (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_sBIT (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_sCAL (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_sPLT (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_sRGB (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_tEXt (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_tIME (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_tRNS (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_unknown (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_handle_zTXt (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_info_destroy (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_init_mmx_flags (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_init_read_transformations (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_process_IDAT_data (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIbuffer\fP\fB, png_size_t \fIbuffer_length\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_process_some_data (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_check_crc (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_crc_finish (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_crc_skip (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_fill_buffer (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIbuffer\fP\fB, png_size_t \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_handle_tEXt (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_handle_unknown (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_handle_zTXt (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_have_end (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_have_info (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_have_row (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fIrow\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_process_row (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_read_chunk (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_read_end (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_read_IDAT (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_read_sig (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_read_tEXt (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_read_zTXt (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_restore_buffer (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIbuffer\fP\fB, png_size_t \fIbuffer_length\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_push_save_buffer (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBpng_uint_32 png_read_chunk_header (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_read_data (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIdata\fP\fB, png_size_t \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_read_filter_row (png_structp \fP\fIpng_ptr\fP\fB, png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_bytep \fP\fIprev_row\fP\fB, int \fIfilter\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_read_finish_row (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_read_push_finish_row (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_read_start_row (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_read_transform_info (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_reset_crc (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBint png_set_text_2 (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_textp \fP\fItext_ptr\fP\fB, int \fInum_text\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_cHRM (png_structp \fP\fIpng_ptr\fP\fB, double \fP\fIwhite_x\fP\fB, double \fP\fIwhite_y\fP\fB, double \fP\fIred_x\fP\fB, double \fP\fIred_y\fP\fB, double \fP\fIgreen_x\fP\fB, double \fP\fIgreen_y\fP\fB, double \fP\fIblue_x\fP\fB, double \fIblue_y\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_cHRM_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fP\fIwhite_x\fP\fB, png_uint_32 \fP\fIwhite_y\fP\fB, png_uint_32 \fP\fIred_x\fP\fB, png_uint_32 \fP\fIred_y\fP\fB, png_uint_32 \fP\fIgreen_x\fP\fB, png_uint_32 \fP\fIgreen_y\fP\fB, png_uint_32 \fP\fIblue_x\fP\fB, png_uint_32 \fIblue_y\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_data (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIdata\fP\fB, png_size_t \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_filtered_row (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fIfiltered_row\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_find_filter (png_structp \fP\fIpng_ptr\fP\fB, png_row_infop \fIrow_info\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_finish_row (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_gAMA (png_structp \fP\fIpng_ptr\fP\fB, double \fIfile_gamma\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_gAMA_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fIint_file_gamma\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_hIST (png_structp \fP\fIpng_ptr\fP\fB, png_uint_16p \fP\fIhist\fP\fB, int \fInum_hist\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_iCCP (png_structp \fP\fIpng_ptr\fP\fB, png_charp \fP\fIname\fP\fB, int \fP\fIcompression_type\fP\fB, png_charp \fP\fIprofile\fP\fB, int \fIproflen\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_IDAT (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIdata\fP\fB, png_size_t \fIlength\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_IEND (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_IHDR (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fP\fIwidth\fP\fB, png_uint_32 \fP\fIheight\fP\fB, int \fP\fIbit_depth\fP\fB, int \fP\fIcolor_type\fP\fB, int \fP\fIcompression_type\fP\fB, int \fP\fIfilter_type\fP\fB, int \fIinterlace_type\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_iTXt (png_structp \fP\fIpng_ptr\fP\fB, int \fP\fIcompression\fP\fB, png_charp \fP\fIkey\fP\fB, png_charp \fP\fIlang\fP\fB, png_charp \fP\fItranslated_key\fP\fB, png_charp \fItext\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_oFFs (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fP\fIx_offset\fP\fB, png_uint_32 \fP\fIy_offset\fP\fB, int \fIunit_type\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_pCAL (png_structp \fP\fIpng_ptr\fP\fB, png_charp \fP\fIpurpose\fP\fB, png_int_32 \fP\fIX0\fP\fB, png_int_32 \fP\fIX1\fP\fB, int \fP\fItype\fP\fB, int \fP\fInparams\fP\fB, png_charp \fP\fIunits\fP\fB, png_charpp \fIparams\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_pHYs (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fP\fIx_pixels_per_unit\fP\fB, png_uint_32 \fP\fIy_pixels_per_unit\fP\fB, int \fIunit_type\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_PLTE (png_structp \fP\fIpng_ptr\fP\fB, png_colorp \fP\fIpalette\fP\fB, png_uint_32 \fInum_pal\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_sBIT (png_structp \fP\fIpng_ptr\fP\fB, png_color_8p \fP\fIsbit\fP\fB, int \fIcolor_type\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_sCAL (png_structp \fP\fIpng_ptr\fP\fB, png_charp \fP\fIunit\fP\fB, double \fP\fIwidth\fP\fB, double \fIheight\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_sCAL_s (png_structp \fP\fIpng_ptr\fP\fB, png_charp \fP\fIunit\fP\fB, png_charp \fP\fIwidth\fP\fB, png_charp \fIheight\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_sig (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_sRGB (png_structp \fP\fIpng_ptr\fP\fB, int \fIintent\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_sPLT (png_structp \fP\fIpng_ptr\fP\fB, png_spalette_p \fIpalette\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_start_row (png_structp \fIpng_ptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_tEXt (png_structp \fP\fIpng_ptr\fP\fB, png_charp \fP\fIkey\fP\fB, png_charp \fP\fItext\fP\fB, png_size_t \fItext_len\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_tIME (png_structp \fP\fIpng_ptr\fP\fB, png_timep \fImod_time\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_tRNS (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fItrans\fP\fB, png_color_16p \fP\fIvalues\fP\fB, int \fP\fInumber\fP\fB, int \fIcolor_type\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_write_zTXt (png_structp \fP\fIpng_ptr\fP\fB, png_charp \fP\fIkey\fP\fB, png_charp \fP\fItext\fP\fB, png_size_t \fP\fItext_len\fP\fB, int \fIcompression\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoidpf png_zalloc (voidpf \fP\fIpng_ptr\fP\fB, uInt \fP\fIitems\fP\fB, uInt \fIsize\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fBvoid png_zfree (voidpf \fP\fIpng_ptr\fP\fB, voidpf \fIptr\fP\fB);\fP | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| \fI\fB | ||||
| 
 | ||||
| .SH DESCRIPTION | ||||
| The functions listed above are used privately by libpng | ||||
| and are not recommended for use by applications.  They are | ||||
|  | ||||
							
								
								
									
										413
									
								
								missing
									
									
									
									
									
								
							
							
						
						
									
										413
									
								
								missing
									
									
									
									
									
								
							| @ -1,11 +1,10 @@ | ||||
| #! /bin/sh | ||||
| # Common stub for a few missing GNU programs while installing. | ||||
| # Common wrapper for a few potentially missing GNU programs. | ||||
| 
 | ||||
| scriptversion=2009-04-28.21; # UTC | ||||
| scriptversion=2013-10-28.13; # UTC | ||||
| 
 | ||||
| # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, | ||||
| # 2008, 2009 Free Software Foundation, Inc. | ||||
| # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | ||||
| # Copyright (C) 1996-2013 Free Software Foundation, Inc. | ||||
| # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | ||||
| 
 | ||||
| # This program is free software; you can redistribute it and/or modify | ||||
| # it under the terms of the GNU General Public License as published by | ||||
| @ -26,69 +25,40 @@ scriptversion=2009-04-28.21; # UTC | ||||
| # the same distribution terms that you use for the rest of that program. | ||||
| 
 | ||||
| if test $# -eq 0; then | ||||
|   echo 1>&2 "Try \`$0 --help' for more information" | ||||
|   echo 1>&2 "Try '$0 --help' for more information" | ||||
|   exit 1 | ||||
| fi | ||||
| 
 | ||||
| run=: | ||||
| sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' | ||||
| sed_minuso='s/.* -o \([^ ]*\).*/\1/p' | ||||
| 
 | ||||
| # In the cases where this matters, `missing' is being run in the | ||||
| # srcdir already. | ||||
| if test -f configure.ac; then | ||||
|   configure_ac=configure.ac | ||||
| else | ||||
|   configure_ac=configure.in | ||||
| fi | ||||
| 
 | ||||
| msg="missing on your system" | ||||
| 
 | ||||
| case $1 in | ||||
| --run) | ||||
|   # Try to run requested program, and just exit if it succeeds. | ||||
|   run= | ||||
| 
 | ||||
|   --is-lightweight) | ||||
|     # Used by our autoconf macros to check whether the available missing | ||||
|     # script is modern enough. | ||||
|     exit 0 | ||||
|     ;; | ||||
| 
 | ||||
|   --run) | ||||
|     # Back-compat with the calling convention used by older automake. | ||||
|     shift | ||||
|   "$@" && exit 0 | ||||
|   # Exit code 63 means version mismatch.  This often happens | ||||
|   # when the user try to use an ancient version of a tool on | ||||
|   # a file that requires a minimum version.  In this case we | ||||
|   # we should proceed has if the program had been absent, or | ||||
|   # if --run hadn't been passed. | ||||
|   if test $? = 63; then | ||||
|     run=: | ||||
|     msg="probably too old" | ||||
|   fi | ||||
|     ;; | ||||
| 
 | ||||
|   -h|--h|--he|--hel|--help) | ||||
|     echo "\ | ||||
| $0 [OPTION]... PROGRAM [ARGUMENT]... | ||||
| 
 | ||||
| Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | ||||
| error status if there is no known handling for PROGRAM. | ||||
| Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due | ||||
| to PROGRAM being missing or too old. | ||||
| 
 | ||||
| Options: | ||||
|   -h, --help      display this help and exit | ||||
|   -v, --version   output version information and exit | ||||
|   --run           try to run the given command, and emulate it if it fails | ||||
| 
 | ||||
| Supported PROGRAM values: | ||||
|   aclocal      touch file \`aclocal.m4' | ||||
|   autoconf     touch file \`configure' | ||||
|   autoheader   touch file \`config.h.in' | ||||
|   autom4te     touch the output file, or create a stub one | ||||
|   automake     touch all \`Makefile.in' files | ||||
|   bison        create \`y.tab.[ch]', if possible, from existing .[ch] | ||||
|   flex         create \`lex.yy.c', if possible, from existing .c | ||||
|   help2man     touch the output file | ||||
|   lex          create \`lex.yy.c', if possible, from existing .c | ||||
|   makeinfo     touch the output file | ||||
|   tar          try tar, gnutar, gtar, then tar without non-portable flags | ||||
|   yacc         create \`y.tab.[ch]', if possible, from existing .[ch] | ||||
|   aclocal   autoconf  autoheader   autom4te  automake  makeinfo | ||||
|   bison     yacc      flex         lex       help2man | ||||
| 
 | ||||
| Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and | ||||
| \`g' are ignored when checking the name. | ||||
| Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and | ||||
| 'g' are ignored when checking the name. | ||||
| 
 | ||||
| Send bug reports to <bug-automake@gnu.org>." | ||||
|     exit $? | ||||
| @ -100,272 +70,141 @@ Send bug reports to <bug-automake@gnu.org>." | ||||
|     ;; | ||||
| 
 | ||||
|   -*) | ||||
|     echo 1>&2 "$0: Unknown \`$1' option" | ||||
|     echo 1>&2 "Try \`$0 --help' for more information" | ||||
|     echo 1>&2 "$0: unknown '$1' option" | ||||
|     echo 1>&2 "Try '$0 --help' for more information" | ||||
|     exit 1 | ||||
|     ;; | ||||
| 
 | ||||
| esac | ||||
| 
 | ||||
| # normalize program name to check for. | ||||
| program=`echo "$1" | sed ' | ||||
| # Run the given program, remember its exit status. | ||||
| "$@"; st=$? | ||||
| 
 | ||||
| # If it succeeded, we are done. | ||||
| test $st -eq 0 && exit 0 | ||||
| 
 | ||||
| # Also exit now if we it failed (or wasn't found), and '--version' was | ||||
| # passed; such an option is passed most likely to detect whether the | ||||
| # program is present and works. | ||||
| case $2 in --version|--help) exit $st;; esac | ||||
| 
 | ||||
| # Exit code 63 means version mismatch.  This often happens when the user | ||||
| # tries to use an ancient version of a tool on a file that requires a | ||||
| # minimum version. | ||||
| if test $st -eq 63; then | ||||
|   msg="probably too old" | ||||
| elif test $st -eq 127; then | ||||
|   # Program was missing. | ||||
|   msg="missing on your system" | ||||
| else | ||||
|   # Program was found and executed, but failed.  Give up. | ||||
|   exit $st | ||||
| fi | ||||
| 
 | ||||
| perl_URL=http://www.perl.org/ | ||||
| flex_URL=http://flex.sourceforge.net/ | ||||
| gnu_software_URL=http://www.gnu.org/software | ||||
| 
 | ||||
| program_details () | ||||
| { | ||||
|   case $1 in | ||||
|     aclocal|automake) | ||||
|       echo "The '$1' program is part of the GNU Automake package:" | ||||
|       echo "<$gnu_software_URL/automake>" | ||||
|       echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" | ||||
|       echo "<$gnu_software_URL/autoconf>" | ||||
|       echo "<$gnu_software_URL/m4/>" | ||||
|       echo "<$perl_URL>" | ||||
|       ;; | ||||
|     autoconf|autom4te|autoheader) | ||||
|       echo "The '$1' program is part of the GNU Autoconf package:" | ||||
|       echo "<$gnu_software_URL/autoconf/>" | ||||
|       echo "It also requires GNU m4 and Perl in order to run:" | ||||
|       echo "<$gnu_software_URL/m4/>" | ||||
|       echo "<$perl_URL>" | ||||
|       ;; | ||||
|   esac | ||||
| } | ||||
| 
 | ||||
| give_advice () | ||||
| { | ||||
|   # Normalize program name to check for. | ||||
|   normalized_program=`echo "$1" | sed ' | ||||
|     s/^gnu-//; t | ||||
|     s/^gnu//; t | ||||
|     s/^g//; t'` | ||||
| 
 | ||||
| # Now exit if we have it, but it failed.  Also exit now if we | ||||
| # don't have it and --version was passed (most likely to detect | ||||
| # the program).  This is about non-GNU programs, so use $1 not | ||||
| # $program. | ||||
| case $1 in | ||||
|   lex*|yacc*) | ||||
|     # Not GNU programs, they don't have --version. | ||||
|     ;; | ||||
| 
 | ||||
|   tar*) | ||||
|     if test -n "$run"; then | ||||
|        echo 1>&2 "ERROR: \`tar' requires --run" | ||||
|        exit 1 | ||||
|     elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | ||||
|        exit 1 | ||||
|     fi | ||||
|     ;; | ||||
| 
 | ||||
|   *) | ||||
|     if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | ||||
|        # We have it, but it failed. | ||||
|        exit 1 | ||||
|     elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | ||||
|        # Could not run --version or --help.  This is probably someone | ||||
|        # running `$TOOL --version' or `$TOOL --help' to check whether | ||||
|        # $TOOL exists and not knowing $TOOL uses missing. | ||||
|        exit 1 | ||||
|     fi | ||||
|     ;; | ||||
| esac | ||||
| 
 | ||||
| # If it does not exist, or fails to run (possibly an outdated version), | ||||
| # try to emulate it. | ||||
| case $program in | ||||
|   aclocal*) | ||||
|     echo 1>&2 "\ | ||||
| WARNING: \`$1' is $msg.  You should only need it if | ||||
|          you modified \`acinclude.m4' or \`${configure_ac}'.  You might want | ||||
|          to install the \`Automake' and \`Perl' packages.  Grab them from | ||||
|          any GNU archive site." | ||||
|     touch aclocal.m4 | ||||
|     ;; | ||||
|   printf '%s\n' "'$1' is $msg." | ||||
| 
 | ||||
|   configure_deps="'configure.ac' or m4 files included by 'configure.ac'" | ||||
|   case $normalized_program in | ||||
|     autoconf*) | ||||
|     echo 1>&2 "\ | ||||
| WARNING: \`$1' is $msg.  You should only need it if | ||||
|          you modified \`${configure_ac}'.  You might want to install the | ||||
|          \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU | ||||
|          archive site." | ||||
|     touch configure | ||||
|       echo "You should only need it if you modified 'configure.ac'," | ||||
|       echo "or m4 files included by it." | ||||
|       program_details 'autoconf' | ||||
|       ;; | ||||
| 
 | ||||
|     autoheader*) | ||||
|     echo 1>&2 "\ | ||||
| WARNING: \`$1' is $msg.  You should only need it if | ||||
|          you modified \`acconfig.h' or \`${configure_ac}'.  You might want | ||||
|          to install the \`Autoconf' and \`GNU m4' packages.  Grab them | ||||
|          from any GNU archive site." | ||||
|     files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` | ||||
|     test -z "$files" && files="config.h" | ||||
|     touch_files= | ||||
|     for f in $files; do | ||||
|       case $f in | ||||
|       *:*) touch_files="$touch_files "`echo "$f" | | ||||
| 				       sed -e 's/^[^:]*://' -e 's/:.*//'`;; | ||||
|       *) touch_files="$touch_files $f.in";; | ||||
|       esac | ||||
|     done | ||||
|     touch $touch_files | ||||
|       echo "You should only need it if you modified 'acconfig.h' or" | ||||
|       echo "$configure_deps." | ||||
|       program_details 'autoheader' | ||||
|       ;; | ||||
| 
 | ||||
|     automake*) | ||||
|     echo 1>&2 "\ | ||||
| WARNING: \`$1' is $msg.  You should only need it if | ||||
|          you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. | ||||
|          You might want to install the \`Automake' and \`Perl' packages. | ||||
|          Grab them from any GNU archive site." | ||||
|     find . -type f -name Makefile.am -print | | ||||
| 	   sed 's/\.am$/.in/' | | ||||
| 	   while read f; do touch "$f"; done | ||||
|       echo "You should only need it if you modified 'Makefile.am' or" | ||||
|       echo "$configure_deps." | ||||
|       program_details 'automake' | ||||
|       ;; | ||||
|     aclocal*) | ||||
|       echo "You should only need it if you modified 'acinclude.m4' or" | ||||
|       echo "$configure_deps." | ||||
|       program_details 'aclocal' | ||||
|       ;; | ||||
| 
 | ||||
|    autom4te*) | ||||
|     echo 1>&2 "\ | ||||
| WARNING: \`$1' is needed, but is $msg. | ||||
|          You might have modified some files without having the | ||||
|          proper tools for further handling them. | ||||
|          You can get \`$1' as part of \`Autoconf' from any GNU | ||||
|          archive site." | ||||
| 
 | ||||
|     file=`echo "$*" | sed -n "$sed_output"` | ||||
|     test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | ||||
|     if test -f "$file"; then | ||||
| 	touch $file | ||||
|     else | ||||
| 	test -z "$file" || exec >$file | ||||
| 	echo "#! /bin/sh" | ||||
| 	echo "# Created by GNU Automake missing as a replacement of" | ||||
| 	echo "#  $ $@" | ||||
| 	echo "exit 0" | ||||
| 	chmod +x $file | ||||
| 	exit 1 | ||||
|     fi | ||||
|       echo "You might have modified some maintainer files that require" | ||||
|       echo "the 'autom4te' program to be rebuilt." | ||||
|       program_details 'autom4te' | ||||
|       ;; | ||||
| 
 | ||||
|     bison*|yacc*) | ||||
|     echo 1>&2 "\ | ||||
| WARNING: \`$1' $msg.  You should only need it if | ||||
|          you modified a \`.y' file.  You may need the \`Bison' package | ||||
|          in order for those modifications to take effect.  You can get | ||||
|          \`Bison' from any GNU archive site." | ||||
|     rm -f y.tab.c y.tab.h | ||||
|     if test $# -ne 1; then | ||||
|         eval LASTARG="\${$#}" | ||||
| 	case $LASTARG in | ||||
| 	*.y) | ||||
| 	    SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` | ||||
| 	    if test -f "$SRCFILE"; then | ||||
| 	         cp "$SRCFILE" y.tab.c | ||||
| 	    fi | ||||
| 	    SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` | ||||
| 	    if test -f "$SRCFILE"; then | ||||
| 	         cp "$SRCFILE" y.tab.h | ||||
| 	    fi | ||||
|       echo "You should only need it if you modified a '.y' file." | ||||
|       echo "You may want to install the GNU Bison package:" | ||||
|       echo "<$gnu_software_URL/bison/>" | ||||
|       ;; | ||||
| 	esac | ||||
|     fi | ||||
|     if test ! -f y.tab.h; then | ||||
| 	echo >y.tab.h | ||||
|     fi | ||||
|     if test ! -f y.tab.c; then | ||||
| 	echo 'main() { return 0; }' >y.tab.c | ||||
|     fi | ||||
|     ;; | ||||
| 
 | ||||
|     lex*|flex*) | ||||
|     echo 1>&2 "\ | ||||
| WARNING: \`$1' is $msg.  You should only need it if | ||||
|          you modified a \`.l' file.  You may need the \`Flex' package | ||||
|          in order for those modifications to take effect.  You can get | ||||
|          \`Flex' from any GNU archive site." | ||||
|     rm -f lex.yy.c | ||||
|     if test $# -ne 1; then | ||||
|         eval LASTARG="\${$#}" | ||||
| 	case $LASTARG in | ||||
| 	*.l) | ||||
| 	    SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` | ||||
| 	    if test -f "$SRCFILE"; then | ||||
| 	         cp "$SRCFILE" lex.yy.c | ||||
| 	    fi | ||||
|       echo "You should only need it if you modified a '.l' file." | ||||
|       echo "You may want to install the Fast Lexical Analyzer package:" | ||||
|       echo "<$flex_URL>" | ||||
|       ;; | ||||
| 	esac | ||||
|     fi | ||||
|     if test ! -f lex.yy.c; then | ||||
| 	echo 'main() { return 0; }' >lex.yy.c | ||||
|     fi | ||||
|     ;; | ||||
| 
 | ||||
|     help2man*) | ||||
|     echo 1>&2 "\ | ||||
| WARNING: \`$1' is $msg.  You should only need it if | ||||
| 	 you modified a dependency of a manual page.  You may need the | ||||
| 	 \`Help2man' package in order for those modifications to take | ||||
| 	 effect.  You can get \`Help2man' from any GNU archive site." | ||||
| 
 | ||||
|     file=`echo "$*" | sed -n "$sed_output"` | ||||
|     test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | ||||
|     if test -f "$file"; then | ||||
| 	touch $file | ||||
|     else | ||||
| 	test -z "$file" || exec >$file | ||||
| 	echo ".ab help2man is required to generate this page" | ||||
| 	exit $? | ||||
|     fi | ||||
|       echo "You should only need it if you modified a dependency" \ | ||||
|            "of a man page." | ||||
|       echo "You may want to install the GNU Help2man package:" | ||||
|       echo "<$gnu_software_URL/help2man/>" | ||||
|     ;; | ||||
| 
 | ||||
|     makeinfo*) | ||||
|     echo 1>&2 "\ | ||||
| WARNING: \`$1' is $msg.  You should only need it if | ||||
|          you modified a \`.texi' or \`.texinfo' file, or any other file | ||||
|          indirectly affecting the aspect of the manual.  The spurious | ||||
|          call might also be the consequence of using a buggy \`make' (AIX, | ||||
|          DU, IRIX).  You might want to install the \`Texinfo' package or | ||||
|          the \`GNU make' package.  Grab either from any GNU archive site." | ||||
|     # The file to touch is that specified with -o ... | ||||
|     file=`echo "$*" | sed -n "$sed_output"` | ||||
|     test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | ||||
|     if test -z "$file"; then | ||||
|       # ... or it is the one specified with @setfilename ... | ||||
|       infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` | ||||
|       file=`sed -n ' | ||||
| 	/^@setfilename/{ | ||||
| 	  s/.* \([^ ]*\) *$/\1/ | ||||
| 	  p | ||||
| 	  q | ||||
| 	}' $infile` | ||||
|       # ... or it is derived from the source name (dir/f.texi becomes f.info) | ||||
|       test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info | ||||
|     fi | ||||
|     # If the file does not exist, the user really needs makeinfo; | ||||
|     # let's fail without touching anything. | ||||
|     test -f $file || exit 1 | ||||
|     touch $file | ||||
|       echo "You should only need it if you modified a '.texi' file, or" | ||||
|       echo "any other file indirectly affecting the aspect of the manual." | ||||
|       echo "You might want to install the Texinfo package:" | ||||
|       echo "<$gnu_software_URL/texinfo/>" | ||||
|       echo "The spurious makeinfo call might also be the consequence of" | ||||
|       echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" | ||||
|       echo "want to install GNU make:" | ||||
|       echo "<$gnu_software_URL/make/>" | ||||
|       ;; | ||||
| 
 | ||||
|   tar*) | ||||
|     shift | ||||
| 
 | ||||
|     # We have already tried tar in the generic part. | ||||
|     # Look for gnutar/gtar before invocation to avoid ugly error | ||||
|     # messages. | ||||
|     if (gnutar --version > /dev/null 2>&1); then | ||||
|        gnutar "$@" && exit 0 | ||||
|     fi | ||||
|     if (gtar --version > /dev/null 2>&1); then | ||||
|        gtar "$@" && exit 0 | ||||
|     fi | ||||
|     firstarg="$1" | ||||
|     if shift; then | ||||
| 	case $firstarg in | ||||
| 	*o*) | ||||
| 	    firstarg=`echo "$firstarg" | sed s/o//` | ||||
| 	    tar "$firstarg" "$@" && exit 0 | ||||
| 	    ;; | ||||
| 	esac | ||||
| 	case $firstarg in | ||||
| 	*h*) | ||||
| 	    firstarg=`echo "$firstarg" | sed s/h//` | ||||
| 	    tar "$firstarg" "$@" && exit 0 | ||||
| 	    ;; | ||||
| 	esac | ||||
|     fi | ||||
| 
 | ||||
|     echo 1>&2 "\ | ||||
| WARNING: I can't seem to be able to run \`tar' with the given arguments. | ||||
|          You may want to install GNU tar or Free paxutils, or check the | ||||
|          command line arguments." | ||||
|     exit 1 | ||||
|     ;; | ||||
| 
 | ||||
|     *) | ||||
|     echo 1>&2 "\ | ||||
| WARNING: \`$1' is needed, and is $msg. | ||||
|          You might have modified some files without having the | ||||
|          proper tools for further handling them.  Check the \`README' file, | ||||
|          it often tells you about the needed prerequisites for installing | ||||
|          this package.  You may also peek at any GNU archive site, in case | ||||
|          some other package would contain this missing \`$1' program." | ||||
|     exit 1 | ||||
|       echo "You might have modified some files without having the proper" | ||||
|       echo "tools for further handling them.  Check the 'README' file, it" | ||||
|       echo "often tells you about the needed prerequisites for installing" | ||||
|       echo "this package.  You may also peek at any GNU archive site, in" | ||||
|       echo "case some other package contains this missing '$1' program." | ||||
|       ;; | ||||
| esac | ||||
|   esac | ||||
| } | ||||
| 
 | ||||
| exit 0 | ||||
| give_advice "$1" | sed -e '1s/^/WARNING: /' \ | ||||
|                        -e '2,$s/^/         /' >&2 | ||||
| 
 | ||||
| # Propagate the correct exit status (expected to be 127 for a program | ||||
| # not found, 63 for a program that failed due to version mismatch). | ||||
| exit $st | ||||
| 
 | ||||
| # Local variables: | ||||
| # eval: (add-hook 'write-file-hooks 'time-stamp) | ||||
|  | ||||
| @ -81,9 +81,9 @@ case $dirmode in | ||||
|       echo "mkdir -p -- $*" | ||||
|       exec mkdir -p -- "$@" | ||||
|     else | ||||
|       # On NextStep and OpenStep, the `mkdir' command does not | ||||
|       # On NextStep and OpenStep, the 'mkdir' command does not | ||||
|       # recognize any option.  It will interpret all options as | ||||
|       # directories to create, and then abort because `.' already | ||||
|       # directories to create, and then abort because '.' already | ||||
|       # exists. | ||||
|       test -d ./-p && rmdir ./-p | ||||
|       test -d ./--version && rmdir ./--version | ||||
|  | ||||
							
								
								
									
										2
									
								
								png.5
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								png.5
									
									
									
									
									
								
							| @ -1,4 +1,4 @@ | ||||
| .TH PNG 5 "July 10, 2012" | ||||
| .TH PNG 5 "February 6, 2014" | ||||
| .SH NAME | ||||
| png \- Portable Network Graphics (PNG) format | ||||
| .SH DESCRIPTION | ||||
|  | ||||
							
								
								
									
										30
									
								
								png.c
									
									
									
									
									
								
							
							
						
						
									
										30
									
								
								png.c
									
									
									
									
									
								
							| @ -1,8 +1,8 @@ | ||||
| 
 | ||||
| /* png.c - location for general purpose libpng functions
 | ||||
|  * | ||||
|  * Last changed in libpng 1.2.46 [February 25, 2011] | ||||
|  * Copyright (c) 1998-2011 Glenn Randers-Pehrson | ||||
|  * Last changed in libpng 1.2.51 [February 6, 2014] | ||||
|  * Copyright (c) 1998-2014 Glenn Randers-Pehrson | ||||
|  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | ||||
|  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | ||||
|  * | ||||
| @ -17,7 +17,7 @@ | ||||
| #include "png.h" | ||||
| 
 | ||||
| /* Generate a compiler error if there is an old png.h in the search path. */ | ||||
| typedef version_1_0_60 Your_png_h_is_not_version_1_0_60; | ||||
| typedef version_1_0_61 Your_png_h_is_not_version_1_0_61; | ||||
| 
 | ||||
| /* Version information for C files.  This had better match the version
 | ||||
|  * string defined in png.h. | ||||
| @ -718,20 +718,20 @@ png_convert_to_rfc1123(png_structp png_ptr, png_timep ptime) | ||||
| png_charp PNGAPI | ||||
| png_get_copyright(png_structp png_ptr) | ||||
| { | ||||
|    png_ptr = png_ptr;  /* Silence compiler warning about unused png_ptr */ | ||||
|    PNG_UNUSED(png_ptr)  /* Silence compiler warning about unused png_ptr */ | ||||
| #ifdef PNG_STRING_COPYRIGHT | ||||
|       return PNG_STRING_COPYRIGHT | ||||
| #else | ||||
| #ifdef __STDC__ | ||||
|    return ((png_charp) PNG_STRING_NEWLINE \ | ||||
|      "libpng version 1.0.60 - July 10, 2012" PNG_STRING_NEWLINE \ | ||||
|      "Copyright (c) 1998-2011 Glenn Randers-Pehrson" PNG_STRING_NEWLINE \ | ||||
|      "libpng version 1.0.61 - February 6, 2014" PNG_STRING_NEWLINE \ | ||||
|      "Copyright (c) 1998-2014 Glenn Randers-Pehrson" PNG_STRING_NEWLINE \ | ||||
|      "Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \ | ||||
|      "Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \ | ||||
|      PNG_STRING_NEWLINE); | ||||
| #else | ||||
|       return ((png_charp) "libpng version 1.0.60 - July 10, 2012\
 | ||||
|       Copyright (c) 1998-2011 Glenn Randers-Pehrson\ | ||||
|       return ((png_charp) "libpng version 1.0.61 - February 6, 2014\
 | ||||
|       Copyright (c) 1998-2014 Glenn Randers-Pehrson\ | ||||
|       Copyright (c) 1996-1997 Andreas Dilger\ | ||||
|       Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."); | ||||
| #endif | ||||
| @ -750,7 +750,7 @@ png_charp PNGAPI | ||||
| png_get_libpng_ver(png_structp png_ptr) | ||||
| { | ||||
|    /* Version of *.c files used when building libpng */ | ||||
|    png_ptr = png_ptr;  /* Silence compiler warning about unused png_ptr */ | ||||
|    PNG_UNUSED(png_ptr)  /* Silence compiler warning about unused png_ptr */ | ||||
|    return ((png_charp) PNG_LIBPNG_VER_STRING); | ||||
| } | ||||
| 
 | ||||
| @ -758,7 +758,7 @@ png_charp PNGAPI | ||||
| png_get_header_ver(png_structp png_ptr) | ||||
| { | ||||
|    /* Version of *.h files used when building libpng */ | ||||
|    png_ptr = png_ptr;  /* Silence compiler warning about unused png_ptr */ | ||||
|    PNG_UNUSED(png_ptr)  /* Silence compiler warning about unused png_ptr */ | ||||
|    return ((png_charp) PNG_LIBPNG_VER_STRING); | ||||
| } | ||||
| 
 | ||||
| @ -766,7 +766,7 @@ png_charp PNGAPI | ||||
| png_get_header_version(png_structp png_ptr) | ||||
| { | ||||
|    /* Returns longer string containing both version and date */ | ||||
|    png_ptr = png_ptr;  /* Silence compiler warning about unused png_ptr */ | ||||
|    PNG_UNUSED(png_ptr) /* Silence compiler warning about unused png_ptr */ | ||||
| #ifdef __STDC__ | ||||
|    return ((png_charp) PNG_HEADER_VERSION_STRING | ||||
| #ifndef PNG_READ_SUPPORTED | ||||
| @ -1009,14 +1009,6 @@ png_check_IHDR(png_structp png_ptr, | ||||
|       error = 1; | ||||
|    } | ||||
| 
 | ||||
|    if ( width > (PNG_UINT_32_MAX | ||||
|                  >> 3)      /* 8-byte RGBA pixels */ | ||||
|                  - 64       /* bigrowbuf hack */ | ||||
|                  - 1        /* filter byte */ | ||||
|                  - 7*8      /* rounding of width to multiple of 8 pixels */ | ||||
|                  - 8)       /* extra max_pixel_depth pad */ | ||||
|       png_warning(png_ptr, "Width is too large for libpng to process pixels"); | ||||
| 
 | ||||
|    /* Check other values */ | ||||
|    if (bit_depth != 1 && bit_depth != 2 && bit_depth != 4 && | ||||
|        bit_depth != 8 && bit_depth != 16) | ||||
|  | ||||
							
								
								
									
										34
									
								
								png.h
									
									
									
									
									
								
							
							
						
						
									
										34
									
								
								png.h
									
									
									
									
									
								
							| @ -1,7 +1,7 @@ | ||||
| /* png.h - header file for PNG reference library
 | ||||
|  * | ||||
|  * libpng version 1.0.60 - July 10, 2012 | ||||
|  * Copyright (c) 1998-2012 Glenn Randers-Pehrson | ||||
|  * libpng version 1.0.61 - February 6, 2014 | ||||
|  * Copyright (c) 1998-2014 Glenn Randers-Pehrson | ||||
|  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | ||||
|  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | ||||
|  * | ||||
| @ -10,7 +10,7 @@ | ||||
|  * Authors and maintainers: | ||||
|  *  libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat | ||||
|  *  libpng versions 0.89c, June 1996, through 0.96, May 1997: Andreas Dilger | ||||
|  *  libpng versions 0.97, January 1998, through 1.0.60 - July 10, 2012: Glenn | ||||
|  *  libpng versions 0.97, January 1998, through 1.0.61 - February 6, 2014: Glenn | ||||
|  *  See also "Contributing Authors", below. | ||||
|  * | ||||
|  * Note about libpng version numbers: | ||||
| @ -284,6 +284,10 @@ | ||||
|  *    1.2.49                  13    10249  12.so.0.49[.0] | ||||
|  *    1.0.60                  10    10060  10.so.0.60[.0] | ||||
|  *    1.2.50                  13    10250  12.so.0.50[.0] | ||||
|  *    1.2.51beta01-05         13    10251  12.so.0.51[.0] | ||||
|  *    1.2.51rc01-04           13    10251  12.so.0.51[.0] | ||||
|  *    1.0.61                  10    10061  10.so.0.61[.0] | ||||
|  *    1.2.51                  13    10251  12.so.0.51[.0] | ||||
|  * | ||||
|  *    Henceforth the source version will match the shared-library major | ||||
|  *    and minor numbers; the shared-library major version number will be | ||||
| @ -315,8 +319,8 @@ | ||||
|  * | ||||
|  * This code is released under the libpng license. | ||||
|  * | ||||
|  * libpng versions 1.2.6, August 15, 2004, through 1.0.60, July 10, 2012, are | ||||
|  * Copyright (c) 2004, 2006-2011 Glenn Randers-Pehrson, and are | ||||
|  * libpng versions 1.2.6, August 15, 2004, through 1.0.61, February 6, 2014, are | ||||
|  * Copyright (c) 2004, 2006-2013 Glenn Randers-Pehrson, and are | ||||
|  * distributed according to the same disclaimer and license as libpng-1.2.5 | ||||
|  * with the following individual added to the list of Contributing Authors: | ||||
|  * | ||||
| @ -427,13 +431,13 @@ | ||||
|  * Y2K compliance in libpng: | ||||
|  * ========================= | ||||
|  * | ||||
|  *    July 10, 2012 | ||||
|  *    February 6, 2014 | ||||
|  * | ||||
|  *    Since the PNG Development group is an ad-hoc body, we can't make | ||||
|  *    an official declaration. | ||||
|  * | ||||
|  *    This is your unofficial assurance that libpng from version 0.71 and | ||||
|  *    upward through 1.0.60 are Y2K compliant.  It is my belief that earlier | ||||
|  *    upward through 1.0.61 are Y2K compliant.  It is my belief that earlier | ||||
|  *    versions were also Y2K compliant. | ||||
|  * | ||||
|  *    Libpng only has three year fields.  One is a 2-byte unsigned integer | ||||
| @ -489,9 +493,9 @@ | ||||
|  */ | ||||
| 
 | ||||
| /* Version information for png.h - this should match the version in png.c */ | ||||
| #define PNG_LIBPNG_VER_STRING "1.0.60" | ||||
| #define PNG_LIBPNG_VER_STRING "1.0.61" | ||||
| #define PNG_HEADER_VERSION_STRING \ | ||||
|    " libpng version 1.0.60 - July 10, 2012\n" | ||||
|    " libpng version 1.0.61 - February 6, 2014\n" | ||||
| 
 | ||||
| #define PNG_LIBPNG_VER_SONUM   0 | ||||
| #define PNG_LIBPNG_VER_DLLNUM  10 | ||||
| @ -499,7 +503,7 @@ | ||||
| /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */ | ||||
| #define PNG_LIBPNG_VER_MAJOR   1 | ||||
| #define PNG_LIBPNG_VER_MINOR   0 | ||||
| #define PNG_LIBPNG_VER_RELEASE 60 | ||||
| #define PNG_LIBPNG_VER_RELEASE 61 | ||||
| /* This should match the numeric part of the final component of
 | ||||
|  * PNG_LIBPNG_VER_STRING, omitting any leading zero: | ||||
|  */ | ||||
| @ -529,7 +533,7 @@ | ||||
|  * version 1.0.0 was mis-numbered 100 instead of 10000).  From | ||||
|  * version 1.0.1 it's    xxyyzz, where x=major, y=minor, z=release | ||||
|  */ | ||||
| #define PNG_LIBPNG_VER 10060 /* 1.0.60 */ | ||||
| #define PNG_LIBPNG_VER 10061 /* 1.0.61 */ | ||||
| 
 | ||||
| #ifndef PNG_VERSION_INFO_ONLY | ||||
| /* Include the compression library's header */ | ||||
| @ -1569,7 +1573,7 @@ struct png_struct_def | ||||
| /* This triggers a compiler error in png.c, if png.c and png.h
 | ||||
|  * do not agree upon the version number. | ||||
|  */ | ||||
| typedef png_structp version_1_0_60; | ||||
| typedef png_structp version_1_0_61; | ||||
| 
 | ||||
| typedef png_struct FAR * FAR * png_structpp; | ||||
| 
 | ||||
| @ -2656,7 +2660,7 @@ extern PNG_EXPORT(void, png_write_png) PNGARG((png_structp png_ptr, | ||||
| #      define png_debug(l,m) \ | ||||
|        { \ | ||||
|        int num_tabs=l; \ | ||||
|        fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \ | ||||
|        fprintf(PNG_DEBUG_FILE,"%s" m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \ | ||||
|          (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":"")))); \ | ||||
|        } | ||||
| #    endif | ||||
| @ -2664,7 +2668,7 @@ extern PNG_EXPORT(void, png_write_png) PNGARG((png_structp png_ptr, | ||||
| #      define png_debug1(l,m,p1) \ | ||||
|        { \ | ||||
|        int num_tabs=l; \ | ||||
|        fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \ | ||||
|        fprintf(PNG_DEBUG_FILE,"%s" m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \ | ||||
|          (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))),p1); \ | ||||
|        } | ||||
| #    endif | ||||
| @ -2672,7 +2676,7 @@ extern PNG_EXPORT(void, png_write_png) PNGARG((png_structp png_ptr, | ||||
| #      define png_debug2(l,m,p1,p2) \ | ||||
|        { \ | ||||
|        int num_tabs=l; \ | ||||
|        fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \ | ||||
|        fprintf(PNG_DEBUG_FILE,"%s" m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \ | ||||
|          (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))),p1,p2); \ | ||||
|        } | ||||
| #    endif | ||||
|  | ||||
							
								
								
									
										18
									
								
								pngconf.h
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								pngconf.h
									
									
									
									
									
								
							| @ -1,8 +1,8 @@ | ||||
| 
 | ||||
| /* pngconf.h - machine configurable file for libpng
 | ||||
|  * | ||||
|  * libpng version 1.0.60 - July 10, 2012 | ||||
|  * Copyright (c) 1998-2012 Glenn Randers-Pehrson | ||||
|  * libpng version 1.0.61 - February 6, 2014 | ||||
|  * Copyright (c) 1998-2013 Glenn Randers-Pehrson | ||||
|  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | ||||
|  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | ||||
|  * | ||||
| @ -88,6 +88,18 @@ | ||||
| #endif | ||||
| /* End of material added at libpng-1.2.19/1.2.21 */ | ||||
| 
 | ||||
| /* Added at libpng-1.2.51 (ported from 1.4.6) */ | ||||
| #ifndef PNG_UNUSED | ||||
| /* Unused formal parameter warnings are silenced using the following macro
 | ||||
|  * which is expected to have no bad effects on performance (optimizing | ||||
|  * compilers will probably remove it entirely).  Note that if you replace | ||||
|  * it with something other than whitespace, you must include the terminating | ||||
|  * semicolon. | ||||
|  */ | ||||
| #  define PNG_UNUSED(param) (void)param; | ||||
| #endif | ||||
| /* End of material added to libpng-1.4.6 */ | ||||
| 
 | ||||
| /* This is the size of the compression buffer, and thus the size of
 | ||||
|  * an IDAT chunk.  Make this whatever size you feel is best for your | ||||
|  * machine.  One of these will be allocated per png_struct.  When this | ||||
| @ -870,7 +882,7 @@ | ||||
|  * how large, set these two limits to 0. | ||||
|  */ | ||||
| #ifndef PNG_USER_CHUNK_CACHE_MAX | ||||
| #  define PNG_USER_CHUNK_CACHE_MAX 0 | ||||
| #  define PNG_USER_CHUNK_CACHE_MAX 32765 | ||||
| #endif | ||||
| 
 | ||||
| /* Added at libpng-1.2.43 */ | ||||
|  | ||||
							
								
								
									
										10
									
								
								pngerror.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								pngerror.c
									
									
									
									
									
								
							| @ -1,8 +1,8 @@ | ||||
| 
 | ||||
| /* pngerror.c - stub functions for i/o and memory allocation
 | ||||
|  * | ||||
|  * Last changed in libpng 1.2.45 [July 7, 2011] | ||||
|  * Copyright (c) 1998-2011 Glenn Randers-Pehrson | ||||
|  * Last changed in libpng 1.2.51 [February 6, 2014] | ||||
|  * Copyright (c) 1998-2014 Glenn Randers-Pehrson | ||||
|  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | ||||
|  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | ||||
|  * | ||||
| @ -300,7 +300,7 @@ png_default_error(png_structp png_ptr, png_const_charp error_message) | ||||
|    /* Here if not setjmp support or if png_ptr is null. */ | ||||
|    PNG_ABORT(); | ||||
| #ifndef PNG_CONSOLE_IO_SUPPORTED | ||||
|    error_message = error_message; /* Make compiler happy */ | ||||
|    PNG_UNUSED(error_message) /* Make compiler happy */ | ||||
| #endif | ||||
| } | ||||
| 
 | ||||
| @ -346,9 +346,9 @@ png_default_warning(png_structp png_ptr, png_const_charp warning_message) | ||||
|        fprintf(stderr, "\n"); | ||||
|    } | ||||
| #else | ||||
|    warning_message = warning_message; /* Make compiler happy */ | ||||
|    PNG_UNUSED(warning_message) /* Make compiler happy */ | ||||
| #endif | ||||
|    png_ptr = png_ptr; /* Make compiler happy */ | ||||
|    PNG_UNUSED(png_ptr) /* Make compiler happy */ | ||||
| } | ||||
| #endif /* PNG_WARNINGS_SUPPORTED */ | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										8
									
								
								pngget.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								pngget.c
									
									
									
									
									
								
							| @ -1,8 +1,8 @@ | ||||
| 
 | ||||
| /* pngget.c - retrieval of values from info struct
 | ||||
|  * | ||||
|  * Last changed in libpng 1.2.43 [February 25, 2010] | ||||
|  * Copyright (c) 1998-2010 Glenn Randers-Pehrson | ||||
|  * Last changed in libpng 1.2.51 [February 6, 2014] | ||||
|  * Copyright (c) 1998-2014 Glenn Randers-Pehrson | ||||
|  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | ||||
|  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | ||||
|  * | ||||
| @ -893,7 +893,7 @@ png_uint_32 PNGAPI | ||||
| png_get_asm_flagmask (int flag_select) | ||||
| { | ||||
|     /* Obsolete, to be removed from libpng-1.4.0 */ | ||||
|     flag_select=flag_select; | ||||
|     PNG_UNUSED(flag_select) | ||||
|     return 0L; | ||||
| } | ||||
| 
 | ||||
| @ -903,7 +903,7 @@ png_uint_32 PNGAPI | ||||
| png_get_mmx_flagmask (int flag_select, int *compilerID) | ||||
| { | ||||
|     /* Obsolete, to be removed from libpng-1.4.0 */ | ||||
|     flag_select=flag_select; | ||||
|     PNG_UNUSED(flag_select) | ||||
|     *compilerID = -1;   /* unknown (i.e., no asm/MMX code compiled) */ | ||||
|     return 0L; | ||||
| } | ||||
|  | ||||
							
								
								
									
										20
									
								
								pngread.c
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								pngread.c
									
									
									
									
									
								
							| @ -1,8 +1,8 @@ | ||||
| 
 | ||||
| /* pngread.c - read a PNG file
 | ||||
|  * | ||||
|  * Last changed in libpng 1.2.48 [March 8, 2012] | ||||
|  * Copyright (c) 1998-2012 Glenn Randers-Pehrson | ||||
|  * Last changed in libpng 1.2.51 [February 6, 2014] | ||||
|  * Copyright (c) 1998-2014 Glenn Randers-Pehrson | ||||
|  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | ||||
|  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | ||||
|  * | ||||
| @ -1405,7 +1405,7 @@ png_read_png(png_structp png_ptr, png_infop info_ptr, | ||||
|    if (transforms & PNG_TRANSFORM_EXPAND) | ||||
|       if ((png_ptr->bit_depth < 8) || | ||||
|           (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE) || | ||||
|           (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))) | ||||
|           (info_ptr->valid & PNG_INFO_tRNS)) | ||||
|          png_set_expand(png_ptr); | ||||
| #endif | ||||
| 
 | ||||
| @ -1424,14 +1424,8 @@ png_read_png(png_structp png_ptr, png_infop info_ptr, | ||||
|     * [0,65535] to the original [0,7] or [0,31], or whatever range the | ||||
|     * colors were originally in: | ||||
|     */ | ||||
|    if ((transforms & PNG_TRANSFORM_SHIFT) | ||||
|        && png_get_valid(png_ptr, info_ptr, PNG_INFO_sBIT)) | ||||
|    { | ||||
|       png_color_8p sig_bit; | ||||
| 
 | ||||
|       png_get_sBIT(png_ptr, info_ptr, &sig_bit); | ||||
|       png_set_shift(png_ptr, sig_bit); | ||||
|    } | ||||
|    if ((transforms & PNG_TRANSFORM_SHIFT) && (info_ptr->valid & PNG_INFO_sBIT)) | ||||
|       png_set_shift(png_ptr, &info_ptr->sig_bit); | ||||
| #endif | ||||
| 
 | ||||
| #ifdef PNG_READ_BGR_SUPPORTED | ||||
| @ -1506,8 +1500,8 @@ png_read_png(png_structp png_ptr, png_infop info_ptr, | ||||
|    /* Read rest of file, and get additional chunks in info_ptr - REQUIRED */ | ||||
|    png_read_end(png_ptr, info_ptr); | ||||
| 
 | ||||
|    transforms = transforms; /* Quiet compiler warnings */ | ||||
|    params = params; | ||||
|    PNG_UNUSED(transforms) /* Quiet compiler warnings */ | ||||
|    PNG_UNUSED(params) | ||||
| 
 | ||||
| } | ||||
| #endif /* PNG_INFO_IMAGE_SUPPORTED */ | ||||
|  | ||||
| @ -1,8 +1,8 @@ | ||||
| 
 | ||||
| /* pngrtran.c - transforms the data in a row for PNG readers
 | ||||
|  * | ||||
|  * Last changed in libpng 1.2.49 [March 29, 2012] | ||||
|  * Copyright (c) 1998-2012 Glenn Randers-Pehrson | ||||
|  * Last changed in libpng 1.2.51 [February 6, 2014] | ||||
|  * Copyright (c) 1998-2014 Glenn Randers-Pehrson | ||||
|  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | ||||
|  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | ||||
|  * | ||||
| @ -917,7 +917,10 @@ png_init_read_transformations(png_structp png_ptr) | ||||
|     for (i=0; i<png_ptr->num_trans; i++) | ||||
|     { | ||||
|       if (png_ptr->trans[i] != 0 && png_ptr->trans[i] != 0xff) | ||||
|       { | ||||
|         k=1; /* Partial transparency is present */ | ||||
|         break; | ||||
|       } | ||||
|     } | ||||
|     if (k == 0) | ||||
|       png_ptr->transformations &= ~PNG_GAMMA; | ||||
|  | ||||
							
								
								
									
										10
									
								
								pngrutil.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								pngrutil.c
									
									
									
									
									
								
							| @ -1,8 +1,8 @@ | ||||
| 
 | ||||
| /* pngrutil.c - utilities to read a PNG file
 | ||||
|  * | ||||
|  * Last changed in libpng 1.2.48 [March 8, 2012] | ||||
|  * Copyright (c) 1998-2012 Glenn Randers-Pehrson | ||||
|  * Last changed in libpng 1.2.51 [February 6, 2014] | ||||
|  * Copyright (c) 1998-2014 Glenn Randers-Pehrson | ||||
|  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | ||||
|  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | ||||
|  * | ||||
| @ -659,7 +659,7 @@ png_handle_IEND(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) | ||||
|    } | ||||
|    png_crc_finish(png_ptr, length); | ||||
| 
 | ||||
|    info_ptr = info_ptr; /* Quiet compiler warnings about unused info_ptr */ | ||||
|    PNG_UNUSED(info_ptr) /* Quiet compiler warnings about unused info_ptr */ | ||||
| } | ||||
| 
 | ||||
| #ifdef PNG_READ_gAMA_SUPPORTED | ||||
| @ -2465,7 +2465,7 @@ png_handle_unknown(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) | ||||
|    png_crc_finish(png_ptr, skip); | ||||
| 
 | ||||
| #ifndef PNG_READ_USER_CHUNKS_SUPPORTED | ||||
|    info_ptr = info_ptr; /* Quiet compiler warnings about unused info_ptr */ | ||||
|    PNG_UNUSED(info_ptr) /* Quiet compiler warnings about unused info_ptr */ | ||||
| #endif | ||||
| } | ||||
| 
 | ||||
| @ -2921,7 +2921,7 @@ png_do_read_interlace(png_structp png_ptr) | ||||
|       row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, final_width); | ||||
|    } | ||||
| #ifndef PNG_READ_PACKSWAP_SUPPORTED | ||||
|    transformations = transformations; /* Silence compiler warning */ | ||||
|    PNG_UNUSED(transformations) /* Silence compiler warning */ | ||||
| #endif | ||||
| } | ||||
| #endif /* PNG_READ_INTERLACING_SUPPORTED */ | ||||
|  | ||||
							
								
								
									
										35
									
								
								pngset.c
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								pngset.c
									
									
									
									
									
								
							| @ -1,8 +1,8 @@ | ||||
| 
 | ||||
| /* pngset.c - storage of image information into info struct
 | ||||
|  * | ||||
|  * Last changed in libpng 1.2.49 [March 29, 2012] | ||||
|  * Copyright (c) 1998-2012 Glenn Randers-Pehrson | ||||
|  * Last changed in libpng 1.2.51 [February 6, 2014] | ||||
|  * Copyright (c) 1998-2014 Glenn Randers-Pehrson | ||||
|  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | ||||
|  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | ||||
|  * | ||||
| @ -533,8 +533,10 @@ png_set_sRGB_gAMA_and_cHRM(png_structp png_ptr, png_infop info_ptr, | ||||
| #ifdef PNG_FLOATING_POINT_SUPPORTED | ||||
|    float white_x, white_y, red_x, red_y, green_x, green_y, blue_x, blue_y; | ||||
| #endif | ||||
| #ifdef PNG_FIXED_POINT_SUPPORTED | ||||
|    png_fixed_point int_white_x, int_white_y, int_red_x, int_red_y, int_green_x, | ||||
|       int_green_y, int_blue_x, int_blue_y; | ||||
| #endif | ||||
| #endif | ||||
|    png_debug1(1, "in %s storage function", "sRGB_gAMA_and_cHRM"); | ||||
| 
 | ||||
| @ -555,6 +557,7 @@ png_set_sRGB_gAMA_and_cHRM(png_structp png_ptr, png_infop info_ptr, | ||||
| #endif | ||||
| 
 | ||||
| #ifdef PNG_cHRM_SUPPORTED | ||||
| #  ifdef PNG_FIXED_POINT_SUPPORTED | ||||
|    int_white_x = 31270L; | ||||
|    int_white_y = 32900L; | ||||
|    int_red_x   = 64000L; | ||||
| @ -563,8 +566,12 @@ png_set_sRGB_gAMA_and_cHRM(png_structp png_ptr, png_infop info_ptr, | ||||
|    int_green_y = 60000L; | ||||
|    int_blue_x  = 15000L; | ||||
|    int_blue_y  =  6000L; | ||||
|    png_set_cHRM_fixed(png_ptr, info_ptr, | ||||
|        int_white_x, int_white_y, int_red_x, int_red_y, int_green_x, | ||||
|        int_green_y, int_blue_x, int_blue_y); | ||||
| #  endif | ||||
| 
 | ||||
| #ifdef PNG_FLOATING_POINT_SUPPORTED | ||||
| #  ifdef PNG_FLOATING_POINT_SUPPORTED | ||||
|    white_x = (float).3127; | ||||
|    white_y = (float).3290; | ||||
|    red_x   = (float).64; | ||||
| @ -573,17 +580,9 @@ png_set_sRGB_gAMA_and_cHRM(png_structp png_ptr, png_infop info_ptr, | ||||
|    green_y = (float).60; | ||||
|    blue_x  = (float).15; | ||||
|    blue_y  = (float).06; | ||||
| #endif | ||||
| 
 | ||||
| #ifdef PNG_FIXED_POINT_SUPPORTED | ||||
|    png_set_cHRM_fixed(png_ptr, info_ptr, | ||||
|        int_white_x, int_white_y, int_red_x, int_red_y, int_green_x, | ||||
|        int_green_y, int_blue_x, int_blue_y); | ||||
| #endif | ||||
| #ifdef PNG_FLOATING_POINT_SUPPORTED | ||||
|    png_set_cHRM(png_ptr, info_ptr, | ||||
|        white_x, white_y, red_x, red_y, green_x, green_y, blue_x, blue_y); | ||||
| #endif | ||||
| #  endif | ||||
| #endif /* cHRM */ | ||||
| } | ||||
| #endif /* sRGB */ | ||||
| @ -850,6 +849,12 @@ png_set_tRNS(png_structp png_ptr, png_infop info_ptr, | ||||
|    if (png_ptr == NULL || info_ptr == NULL) | ||||
|       return; | ||||
| 
 | ||||
|    if (num_trans < 0 || num_trans > PNG_MAX_PALETTE_LENGTH) | ||||
|       { | ||||
|         png_warning(png_ptr, "Ignoring invalid num_trans value"); | ||||
|         return; | ||||
|       } | ||||
| 
 | ||||
|    if (trans != NULL) | ||||
|    { | ||||
|        /* It may not actually be necessary to set png_ptr->trans here;
 | ||||
| @ -1184,7 +1189,7 @@ png_set_asm_flags (png_structp png_ptr, png_uint_32 asm_flags) | ||||
| /* Obsolete as of libpng-1.2.20 and will be removed from libpng-1.4.0 */ | ||||
|     if (png_ptr != NULL) | ||||
|     png_ptr->asm_flags = 0; | ||||
|     asm_flags = asm_flags; /* Quiet the compiler */ | ||||
|     PNG_UNUSED(asm_flags) /* Quiet the compiler */ | ||||
| } | ||||
| 
 | ||||
| /* This function was added to libpng 1.2.0 */ | ||||
| @ -1197,8 +1202,8 @@ png_set_mmx_thresholds (png_structp png_ptr, | ||||
|     if (png_ptr == NULL) | ||||
|        return; | ||||
|     /* Quiet the compiler */ | ||||
|     mmx_bitdepth_threshold = mmx_bitdepth_threshold; | ||||
|     mmx_rowbytes_threshold = mmx_rowbytes_threshold; | ||||
|     PNG_UNUSED(mmx_bitdepth_threshold) | ||||
|     PNG_UNUSED(mmx_rowbytes_threshold) | ||||
| } | ||||
| #endif /* ?PNG_ASSEMBLER_CODE_SUPPORTED */ | ||||
| 
 | ||||
|  | ||||
| @ -1,8 +1,8 @@ | ||||
| 
 | ||||
| /* pngtest.c - a simple test program to test libpng
 | ||||
|  * | ||||
|  * Last changed in libpng 1.2.43 [February 25, 2010] | ||||
|  * Copyright (c) 1998-2010 Glenn Randers-Pehrson | ||||
|  * Last changed in libpng 1.2.51 [February 6, 2014] | ||||
|  * Copyright (c) 1998-2014 Glenn Randers-Pehrson | ||||
|  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | ||||
|  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | ||||
|  * | ||||
| @ -382,7 +382,7 @@ static void | ||||
| pngtest_flush(png_structp png_ptr) | ||||
| { | ||||
|    /* Do nothing; fflush() is said to be just a waste of energy. */ | ||||
|    png_ptr = png_ptr;  /* Stifle compiler warning */ | ||||
|    PNG_UNUSED(png_ptr)  /* Stifle compiler warning */ | ||||
| } | ||||
| #endif | ||||
| 
 | ||||
| @ -1702,4 +1702,4 @@ main(int argc, char *argv[]) | ||||
| } | ||||
| 
 | ||||
| /* Generate a compiler error if there is an old png.h in the search path. */ | ||||
| typedef version_1_0_60 your_png_h_is_not_version_1_0_60; | ||||
| typedef version_1_0_61 your_png_h_is_not_version_1_0_61; | ||||
|  | ||||
| @ -1,8 +1,8 @@ | ||||
| 
 | ||||
| /* pngwrite.c - general routines to write a PNG file
 | ||||
|  * | ||||
|  * Last changed in libpng 1.2.45 [July 7, 2011] | ||||
|  * Copyright (c) 1998-2011 Glenn Randers-Pehrson | ||||
|  * Last changed in libpng 1.2.51 [February 6, 2014] | ||||
|  * Copyright (c) 1998-2014 Glenn Randers-Pehrson | ||||
|  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | ||||
|  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | ||||
|  * | ||||
| @ -1586,8 +1586,8 @@ png_write_png(png_structp png_ptr, png_infop info_ptr, | ||||
|    /* It is REQUIRED to call this to finish writing the rest of the file */ | ||||
|    png_write_end(png_ptr, info_ptr); | ||||
| 
 | ||||
|    transforms = transforms; /* Quiet compiler warnings */ | ||||
|    params = params; | ||||
|    PNG_UNUSED(transforms) /* Quiet compiler warnings */ | ||||
|    PNG_UNUSED(params) | ||||
| } | ||||
| #endif | ||||
| #endif /* PNG_WRITE_SUPPORTED */ | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| A set of project files is available for WinCE.  Get | ||||
| libpng-1.0.60-project-wince.zip from a libpng distribution | ||||
| libpng-1.0.61-project-wince.zip from a libpng distribution | ||||
| site such as http://libpng.sourceforge.net/index.html | ||||
| 
 | ||||
| Put the zip file in this directory (projects) and then run | ||||
| "unzip -a libpng-1.0.60-project-wince.zip" | ||||
| "unzip -a libpng-1.0.61-project-wince.zip" | ||||
|  | ||||
| @ -1,8 +1,8 @@ | ||||
| 
 | ||||
| Makefiles for  libpng version 1.0.60 - July 10, 2012 | ||||
| Makefiles for  libpng version 1.0.61 - February 6, 2014 | ||||
| 
 | ||||
|  makefile.linux    =>  Linux/ELF makefile | ||||
|                        (gcc, creates libpng10.so.0.1.0.60) | ||||
|                        (gcc, creates libpng10.so.0.1.0.61) | ||||
|  makefile.gcc      =>  Generic makefile (gcc, creates static libpng.a) | ||||
|  makefile.knr      =>  Archaic UNIX Makefile that converts files with | ||||
|                        ansi2knr (Requires ansi2knr.c from | ||||
| @ -20,7 +20,7 @@ Makefiles for  libpng version 1.0.60 - July 10, 2012 | ||||
|  makefile.dec      =>  DEC Alpha UNIX makefile | ||||
|  makefile.dj2      =>  DJGPP 2 makefile | ||||
|  makefile.elf      =>  Linux/ELF makefile symbol versioning, | ||||
|                        gcc, creates libpng10.so.0.1.0.60) | ||||
|                        gcc, creates libpng10.so.0.1.0.61) | ||||
|  makefile.freebsd  =>  FreeBSD makefile | ||||
|  makefile.gcc      =>  Generic gcc makefile | ||||
|  makefile.gccmmx   =>  Generic gcc makefile previously using MMX code | ||||
| @ -38,14 +38,14 @@ Makefiles for  libpng version 1.0.60 - July 10, 2012 | ||||
|  makefile.os2      =>  OS/2 Makefile (gcc and emx, requires pngos2.def) | ||||
|  makefile.sco      =>  For SCO OSr5  ELF and Unixware 7 with Native cc | ||||
|  makefile.sggcc    =>  Silicon Graphics (gcc, | ||||
|                        creates libpng10.so.0.1.0.60) | ||||
|                        creates libpng10.so.0.1.0.61) | ||||
|  makefile.sgi      =>  Silicon Graphics IRIX makefile (cc, creates static lib) | ||||
|  makefile.solaris  =>  Solaris 2.X makefile (gcc, | ||||
|                        creates libpng10.so.0.1.0.60) | ||||
|                        creates libpng10.so.0.1.0.61) | ||||
|  makefile.solaris-x86  =>  Solaris 2.X makefile (gcc, no MMX code, | ||||
|                        creates libpng10.so.0.1.0.60) | ||||
|                        creates libpng10.so.0.1.0.61) | ||||
|  makefile.so9      =>  Solaris 9 makefile (gcc, | ||||
|                        creates libpng10.so.0.1.0.60) | ||||
|                        creates libpng10.so.0.1.0.61) | ||||
|  makefile.std      =>  Generic UNIX makefile (cc, creates static libpng.a) | ||||
|  makefile.sunos    =>  Sun makefile | ||||
|  makefile.32sunu   =>  Sun Ultra 32-bit makefile | ||||
|  | ||||
| @ -11,7 +11,7 @@ | ||||
| 
 | ||||
| # Modeled after libxml-config. | ||||
| 
 | ||||
| version=1.0.60 | ||||
| version=1.0.61 | ||||
| prefix="" | ||||
| libdir="" | ||||
| libs="" | ||||
|  | ||||
| @ -5,6 +5,6 @@ includedir=@includedir@/libpng10 | ||||
| 
 | ||||
| Name: libpng | ||||
| Description: Loads and saves PNG files | ||||
| Version: 1.0.60 | ||||
| Version: 1.0.61 | ||||
| Libs: -L${libdir} -lpng10 | ||||
| Cflags: -I${includedir} | ||||
|  | ||||
| @ -11,7 +11,7 @@ | ||||
| # Library name: | ||||
| LIBNAME=libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -11,7 +11,7 @@ | ||||
| # Library name: | ||||
| LIBNAME=libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -23,7 +23,7 @@ LN_SF = ln -f -s | ||||
| 
 | ||||
| LIBNAME=libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| prefix=/usr/local | ||||
|  | ||||
| @ -11,7 +11,7 @@ | ||||
| # Library name: | ||||
| LIBNAME=libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -23,7 +23,7 @@ | ||||
| 
 | ||||
| VERMAJ = 1 | ||||
| VERMIN = 0 | ||||
| VERMIC = 60 | ||||
| VERMIC = 61 | ||||
| VER = $(VERMAJ).$(VERMIN).$(VERMIC) | ||||
| NAME = libpng | ||||
| PACKAGE = $(NAME)-$(VER) | ||||
|  | ||||
| @ -77,7 +77,7 @@ CFLAGS= $(strip $(MINGW_CCFLAGS) $(addprefix -I,$(ZLIBINC)) \ | ||||
| LIBNAME = libpng10 | ||||
| PNGMAJ = 0 | ||||
| CYGDLL = 10 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| SHAREDLIB=cygpng$(CYGDLL).dll | ||||
|  | ||||
| @ -22,7 +22,7 @@ ZLIBINC=../zlib | ||||
| # Library name: | ||||
| LIBNAME = libpng10 | ||||
| PNGMAJ = 10 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -8,7 +8,7 @@ | ||||
| 
 | ||||
| # Library name: | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| LIBNAME = libpng10 | ||||
| 
 | ||||
|  | ||||
| @ -16,7 +16,7 @@ | ||||
| # Library name: | ||||
| LIBNAME = libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -17,7 +17,7 @@ | ||||
| # Library name: | ||||
| LIBNAME = libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -21,7 +21,7 @@ ZLIBINC=/opt/zlib/include | ||||
| # Library name: | ||||
| LIBNAME = libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -11,7 +11,7 @@ | ||||
| # Library name: | ||||
| LIBNAME = libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -21,7 +21,7 @@ ZLIBINC=/opt/zlib/include | ||||
| # Library name: | ||||
| LIBNAME = libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -10,7 +10,7 @@ | ||||
| # Library name: | ||||
| LIBNAME = libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -81,7 +81,7 @@ CFLAGS= $(strip $(MINGW_CCFLAGS) $(addprefix -I,$(ZLIBINC)) \ | ||||
| LIBNAME = libpng10 | ||||
| PNGMAJ = 0 | ||||
| MINGDLL = 10 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| SHAREDLIB=libpng$(MINGDLL).dll | ||||
|  | ||||
| @ -17,7 +17,7 @@ INCSDIR=${LOCALBASE}/include/libpng10 | ||||
| 
 | ||||
| LIB=	png10 | ||||
| SHLIB_MAJOR=	0 | ||||
| SHLIB_MINOR=	1.0.60 | ||||
| SHLIB_MINOR=	1.0.61 | ||||
| SRCS=	png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \ | ||||
| 	pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \ | ||||
| 	pngwtran.c pngmem.c pngerror.c pngpread.c | ||||
|  | ||||
| @ -17,7 +17,7 @@ INCSDIR=${LOCALBASE}/include | ||||
| 
 | ||||
| LIB=	png | ||||
| SHLIB_MAJOR=	3 | ||||
| SHLIB_MINOR=	1.0.60 | ||||
| SHLIB_MINOR=	1.0.61 | ||||
| SRCS=	png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \ | ||||
| 	pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \ | ||||
| 	pngwtran.c pngmem.c pngerror.c pngpread.c | ||||
|  | ||||
| @ -10,7 +10,7 @@ | ||||
| # Library name: | ||||
| LIBNAME = libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -11,7 +11,7 @@ LIBDIR=	${PREFIX}/lib | ||||
| MANDIR= ${PREFIX}/man/cat | ||||
| 
 | ||||
| SHLIB_MAJOR=	0 | ||||
| SHLIB_MINOR=	1.0.60 | ||||
| SHLIB_MINOR=	1.0.61 | ||||
| 
 | ||||
| LIB=	png | ||||
| SRCS=	png.c pngerror.c pngget.c pngmem.c pngpread.c \ | ||||
|  | ||||
| @ -12,7 +12,7 @@ | ||||
| # Library name: | ||||
| LIBNAME = libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -9,7 +9,7 @@ | ||||
| # Library name: | ||||
| LIBNAME=libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -9,7 +9,7 @@ | ||||
| # Library name: | ||||
| LIBNAME=libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -11,7 +11,7 @@ | ||||
| 
 | ||||
| # Library name: | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| LIBNAME = libpng10 | ||||
| 
 | ||||
|  | ||||
| @ -11,7 +11,7 @@ | ||||
| # Library name: | ||||
| LIBNAME = libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -11,7 +11,7 @@ | ||||
| # Library name: | ||||
| LIBNAME = libpng10 | ||||
| PNGMAJ = 0 | ||||
| PNGMIN = 1.0.60 | ||||
| PNGMIN = 1.0.61 | ||||
| PNGVER = $(PNGMAJ).$(PNGMIN) | ||||
| 
 | ||||
| # Shared library names: | ||||
|  | ||||
| @ -5,7 +5,7 @@ | ||||
| LIBRARY lpngce | ||||
| 
 | ||||
| EXPORTS | ||||
| ;Version 1.0.60 | ||||
| ;Version 1.0.61 | ||||
|   png_build_grayscale_palette  @1 | ||||
|   png_check_sig        @2 | ||||
|   png_chunk_error      @3 | ||||
|  | ||||
| @ -2,7 +2,7 @@ | ||||
| ; PNG.LIB module definition file for OS/2 | ||||
| ;---------------------------------------- | ||||
| 
 | ||||
| ; Version 1.0.60 | ||||
| ; Version 1.0.61 | ||||
| 
 | ||||
| LIBRARY		PNG | ||||
| DESCRIPTION	"PNG image compression library for OS/2" | ||||
|  | ||||
| @ -5,7 +5,7 @@ | ||||
| LIBRARY | ||||
| 
 | ||||
| EXPORTS | ||||
| ;Version 1.0.60 | ||||
| ;Version 1.0.61 | ||||
|   png_build_grayscale_palette  @1 | ||||
|   png_check_sig        @2 | ||||
|   png_chunk_error      @3 | ||||
|  | ||||
							
								
								
									
										139
									
								
								test-driver
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										139
									
								
								test-driver
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,139 @@ | ||||
| #! /bin/sh | ||||
| # test-driver - basic testsuite driver script. | ||||
| 
 | ||||
| scriptversion=2013-07-13.22; # UTC | ||||
| 
 | ||||
| # Copyright (C) 2011-2013 Free Software Foundation, Inc. | ||||
| # | ||||
| # This program is free software; you can redistribute it and/or modify | ||||
| # it under the terms of the GNU General Public License as published by | ||||
| # the Free Software Foundation; either version 2, or (at your option) | ||||
| # any later version. | ||||
| # | ||||
| # This program is distributed in the hope that it will be useful, | ||||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
| # GNU General Public License for more details. | ||||
| # | ||||
| # You should have received a copy of the GNU General Public License | ||||
| # along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||
| 
 | ||||
| # As a special exception to the GNU General Public License, if you | ||||
| # distribute this file as part of a program that contains a | ||||
| # configuration script generated by Autoconf, you may include it under | ||||
| # the same distribution terms that you use for the rest of that program. | ||||
| 
 | ||||
| # This file is maintained in Automake, please report | ||||
| # bugs to <bug-automake@gnu.org> or send patches to | ||||
| # <automake-patches@gnu.org>. | ||||
| 
 | ||||
| # Make unconditional expansion of undefined variables an error.  This | ||||
| # helps a lot in preventing typo-related bugs. | ||||
| set -u | ||||
| 
 | ||||
| usage_error () | ||||
| { | ||||
|   echo "$0: $*" >&2 | ||||
|   print_usage >&2 | ||||
|   exit 2 | ||||
| } | ||||
| 
 | ||||
| print_usage () | ||||
| { | ||||
|   cat <<END | ||||
| Usage: | ||||
|   test-driver --test-name=NAME --log-file=PATH --trs-file=PATH | ||||
|               [--expect-failure={yes|no}] [--color-tests={yes|no}] | ||||
|               [--enable-hard-errors={yes|no}] [--] | ||||
|               TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS] | ||||
| The '--test-name', '--log-file' and '--trs-file' options are mandatory. | ||||
| END | ||||
| } | ||||
| 
 | ||||
| test_name= # Used for reporting. | ||||
| log_file=  # Where to save the output of the test script. | ||||
| trs_file=  # Where to save the metadata of the test run. | ||||
| expect_failure=no | ||||
| color_tests=no | ||||
| enable_hard_errors=yes | ||||
| while test $# -gt 0; do | ||||
|   case $1 in | ||||
|   --help) print_usage; exit $?;; | ||||
|   --version) echo "test-driver $scriptversion"; exit $?;; | ||||
|   --test-name) test_name=$2; shift;; | ||||
|   --log-file) log_file=$2; shift;; | ||||
|   --trs-file) trs_file=$2; shift;; | ||||
|   --color-tests) color_tests=$2; shift;; | ||||
|   --expect-failure) expect_failure=$2; shift;; | ||||
|   --enable-hard-errors) enable_hard_errors=$2; shift;; | ||||
|   --) shift; break;; | ||||
|   -*) usage_error "invalid option: '$1'";; | ||||
|    *) break;; | ||||
|   esac | ||||
|   shift | ||||
| done | ||||
| 
 | ||||
| missing_opts= | ||||
| test x"$test_name" = x && missing_opts="$missing_opts --test-name" | ||||
| test x"$log_file"  = x && missing_opts="$missing_opts --log-file" | ||||
| test x"$trs_file"  = x && missing_opts="$missing_opts --trs-file" | ||||
| if test x"$missing_opts" != x; then | ||||
|   usage_error "the following mandatory options are missing:$missing_opts" | ||||
| fi | ||||
| 
 | ||||
| if test $# -eq 0; then | ||||
|   usage_error "missing argument" | ||||
| fi | ||||
| 
 | ||||
| if test $color_tests = yes; then | ||||
|   # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'. | ||||
|   red='[0;31m' # Red. | ||||
|   grn='[0;32m' # Green. | ||||
|   lgn='[1;32m' # Light green. | ||||
|   blu='[1;34m' # Blue. | ||||
|   mgn='[0;35m' # Magenta. | ||||
|   std='[m'     # No color. | ||||
| else | ||||
|   red= grn= lgn= blu= mgn= std= | ||||
| fi | ||||
| 
 | ||||
| do_exit='rm -f $log_file $trs_file; (exit $st); exit $st' | ||||
| trap "st=129; $do_exit" 1 | ||||
| trap "st=130; $do_exit" 2 | ||||
| trap "st=141; $do_exit" 13 | ||||
| trap "st=143; $do_exit" 15 | ||||
| 
 | ||||
| # Test script is run here. | ||||
| "$@" >$log_file 2>&1 | ||||
| estatus=$? | ||||
| if test $enable_hard_errors = no && test $estatus -eq 99; then | ||||
|   estatus=1 | ||||
| fi | ||||
| 
 | ||||
| case $estatus:$expect_failure in | ||||
|   0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; | ||||
|   0:*)   col=$grn res=PASS  recheck=no  gcopy=no;; | ||||
|   77:*)  col=$blu res=SKIP  recheck=no  gcopy=yes;; | ||||
|   99:*)  col=$mgn res=ERROR recheck=yes gcopy=yes;; | ||||
|   *:yes) col=$lgn res=XFAIL recheck=no  gcopy=yes;; | ||||
|   *:*)   col=$red res=FAIL  recheck=yes gcopy=yes;; | ||||
| esac | ||||
| 
 | ||||
| # Report outcome to console. | ||||
| echo "${col}${res}${std}: $test_name" | ||||
| 
 | ||||
| # Register the test result, and other relevant metadata. | ||||
| echo ":test-result: $res" > $trs_file | ||||
| echo ":global-test-result: $res" >> $trs_file | ||||
| echo ":recheck: $recheck" >> $trs_file | ||||
| echo ":copy-in-global-log: $gcopy" >> $trs_file | ||||
| 
 | ||||
| # Local Variables: | ||||
| # mode: shell-script | ||||
| # sh-indentation: 2 | ||||
| # eval: (add-hook 'write-file-hooks 'time-stamp) | ||||
| # time-stamp-start: "scriptversion=" | ||||
| # time-stamp-format: "%:y-%02m-%02d.%02H" | ||||
| # time-stamp-time-zone: "UTC" | ||||
| # time-stamp-end: "; # UTC" | ||||
| # End: | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Glenn Randers-Pehrson
						Glenn Randers-Pehrson